dropdown v3 #44

This commit is contained in:
gurusabarish
2022-01-26 17:33:09 +05:30
parent aeec9ef74f
commit d159cfb594
9 changed files with 107 additions and 23 deletions
+1 -1
View File
@@ -7,6 +7,7 @@ function setCookie(name,value,days) {
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
@@ -52,7 +53,6 @@ function switchDarkmodeSetting() {
}
}
const check_darkmode = getDarkmodeSetting();
const darkmode_prefer = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (darkmode_prefer && check_darkmode === null) {