From 7fe86c2681d642c8ff2a8c3765378779e1752703 Mon Sep 17 00:00:00 2001 From: css pro Date: Wed, 2 Oct 2024 14:28:44 -0700 Subject: [PATCH] =?UTF-8?q?I=20hope=20it=20works=F0=9F=99=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/darkmoderewrite.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/js/darkmoderewrite.js b/js/darkmoderewrite.js index 9ff8d1e..9ccddbd 100644 --- a/js/darkmoderewrite.js +++ b/js/darkmoderewrite.js @@ -4,12 +4,10 @@ $(document).ready(function() { if (isChecked) { const body = document.querySelector('body'); body.style.backgroundColor = '#404040'; - + body.style.color = '#f1f1f1'; + const text = document.querySelector('.footer'); text.style.backgroundColor = 'grey'; - - const body = document.querySelector('text'); - body.style.color = '#f1f1f1'; const body = document.querySelector('button'); body.style.backgroundColor = '#13f4f3'; @@ -17,13 +15,11 @@ $(document).ready(function() { } else { const body = document.querySelector('body'); body.style.backgroundColor = '#f1f1f1'; - + body.style.color = 'black'; + const text = document.querySelector('.footer'); text.style.backgroundColor = '#ddd'; - const body = document.querySelector('text'); - body.style.color = 'black'; - const body = document.querySelector('button'); body.style.backgroundColor = '#4caf50';