mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-22 05:43:42 +00:00
Initial commit
This commit is contained in:
11
static/scripts/darkmode_toggle.js
Normal file
11
static/scripts/darkmode_toggle.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function darkModeFunc() {
|
||||
document.body.classList.toggle("dark-mode");
|
||||
document.body.classList.toggle("bg-light");
|
||||
|
||||
var mode = localStorage.getItem('mode');
|
||||
if(mode === 'disabled')
|
||||
localStorage.setItem('mode', 'enabled');
|
||||
else
|
||||
localStorage.setItem('mode', 'disabled');
|
||||
}
|
||||
|
Reference in New Issue
Block a user