Update 1.js

This commit is contained in:
FURK4NGG
2025-02-24 20:01:24 +03:00
committed by GitHub
parent f99b110ede
commit c79125ab28
+7 -5
View File
@@ -1,10 +1,12 @@
/*CHANGE THEME*/
let metaTheme = document.getElementById("themeMeta");
if (document.body.classList.contains("darkmode--activated")) {
metaTheme.content = "#F8F6E3"; // Light mode theme rengi
} else {
metaTheme.content = "#100f2c"; // Dark mode theme rengi
}
setTimeout(() => {
if (document.body.classList.contains("darkmode--activated")) {
metaTheme.content = "#100f2c"; // Dark mode theme rengi
} else {
metaTheme.content = "#F8F6E3"; // Light mode theme rengi
}
}, 100);
});