Update 1.js
This commit is contained in:
+3
-3
@@ -388,10 +388,10 @@ animateCircles();
|
||||
const themeMetaTag = document.querySelector('meta[name="theme-color"]');
|
||||
|
||||
function updateThemeColor() {
|
||||
if (document.body.classList.contains("darkmode--activated")) {
|
||||
themeMetaTag.setAttribute("content", "#100f2c"); // Karanlık Mod Rengi
|
||||
if (darkmode.isActivated()) {
|
||||
themeMetaTag.setAttribute("content", "#000000"); // Dark mode aktifken siyah renk
|
||||
} else {
|
||||
themeMetaTag.setAttribute("content", "#000000"); // Açık Mod Rengi
|
||||
themeMetaTag.setAttribute("content", "#100f2c"); // Açık modda farklı renk
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user