mirror of
https://github.com/kristoferssolo/kristofersxyz.git
synced 2025-10-21 18:30:34 +00:00
Forgot to save
This commit is contained in:
parent
17476e893e
commit
4a1cdd1236
@ -27,13 +27,13 @@ $(document).ready(function () {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// if (window.matchMedia) {
|
if (window.matchMedia) {
|
||||||
// if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||||
// disable_light_mode()
|
disable_light_mode()
|
||||||
// } else {
|
} else {
|
||||||
// enable_light_mode()
|
enable_light_mode()
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
$("#color-mode-toggle").click(() => {
|
$("#color-mode-toggle").click(() => {
|
||||||
lightmode = localStorage.getItem("lightmode")
|
lightmode = localStorage.getItem("lightmode")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user