mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-21 21:43:40 +00:00
Initial commit
This commit is contained in:
6314
static/scripts/bootstrap.bundle.js
vendored
Normal file
6314
static/scripts/bootstrap.bundle.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
8
static/scripts/darkmode.js
Normal file
8
static/scripts/darkmode.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function checkDarkMode() {
|
||||
var mode = localStorage.getItem('mode');
|
||||
if(mode === 'disabled') {
|
||||
document.body.classList.remove("dark-mode");
|
||||
document.body.classList.add("bg-light");
|
||||
}
|
||||
}
|
||||
|
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');
|
||||
}
|
||||
|
1
static/scripts/htmx.min.js
vendored
Normal file
1
static/scripts/htmx.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user