From 63ac392dd06c4a2c10849ac7eac6166f6eb13c4e Mon Sep 17 00:00:00 2001 From: clashofclanselixircollector Date: Wed, 11 Dec 2024 17:46:59 -0800 Subject: [PATCH] Update js/darkmode.js --- js/darkmode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/darkmode.js b/js/darkmode.js index a713474..86785c1 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -33,7 +33,7 @@ $(document).ready(function() { const dZone = document.querySelector('.danger-zone'); dZone.style.color = '#ff6847'; const dZoneText = document.querySelector('.modal'); - dZoneText.p.style.color = '#ff3c00'; + dZoneText.style.color = '#ff3c00'; } else { const body = document.querySelector('body'); body.style.backgroundColor = '#f1f1f1'; @@ -66,7 +66,7 @@ $(document).ready(function() { const dZone = document.querySelector('.danger-zone'); dZone.style.color = '#010101'; const dZoneText = document.querySelector('.modal'); - dZoneText.p.style.color = '#010101'; + dZoneText.style.color = '#010101'; } } $("#darkModeCheckbox").on("change", function() {