Update 1.js
This commit is contained in:
+1
-2
@@ -6,7 +6,7 @@ const metaStatusBarDark = document.querySelector('meta[name="apple-mobile-web-ap
|
|||||||
// Dark mode değiştiğinde çalışacak fonksiyon
|
// Dark mode değiştiğinde çalışacak fonksiyon
|
||||||
function updateThemeColor() {
|
function updateThemeColor() {
|
||||||
// Dark mode aktifse tema rengini koyu yap, değilse beyaz yap
|
// Dark mode aktifse tema rengini koyu yap, değilse beyaz yap
|
||||||
const isDark = darkmode.isActivated(); // Dark mode durumunu burada kontrol ediyoruz
|
const isDark = document.body.classList.contains("darkmode--activated");
|
||||||
|
|
||||||
metaThemeDark.setAttribute("content", isDark ? "#100f2c" : "#ffffff");
|
metaThemeDark.setAttribute("content", isDark ? "#100f2c" : "#ffffff");
|
||||||
metaStatusBarDark.setAttribute("content", isDark ? "black-translucent" : "default");
|
metaStatusBarDark.setAttribute("content", isDark ? "black-translucent" : "default");
|
||||||
@@ -21,7 +21,6 @@ document.getElementById("darkmode-toggle").addEventListener("click", function ()
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*SERVICES VISIBILITY*/
|
/*SERVICES VISIBILITY*/
|
||||||
const boxes = document.querySelectorAll('.services_id');
|
const boxes = document.querySelectorAll('.services_id');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user