From eefb799307788d211f15bed646cffbf80d609e17 Mon Sep 17 00:00:00 2001 From: css pro Date: Wed, 2 Oct 2024 15:29:29 -0700 Subject: [PATCH] this better work --- js/darkmoderewrite.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/darkmoderewrite.js b/js/darkmoderewrite.js index 9ccddbd..8582418 100644 --- a/js/darkmoderewrite.js +++ b/js/darkmoderewrite.js @@ -6,22 +6,22 @@ $(document).ready(function() { body.style.backgroundColor = '#404040'; body.style.color = '#f1f1f1'; - const text = document.querySelector('.footer'); - text.style.backgroundColor = 'grey'; + const foot = document.querySelector('.footer'); + foot.style.backgroundColor = 'grey'; - const body = document.querySelector('button'); - body.style.backgroundColor = '#13f4f3'; + const button = document.querySelector('button'); + button.style.backgroundColor = '#13f4f3'; } else { const body = document.querySelector('body'); body.style.backgroundColor = '#f1f1f1'; body.style.color = 'black'; - const text = document.querySelector('.footer'); - text.style.backgroundColor = '#ddd'; + const foot = document.querySelector('.footer'); + foot.style.backgroundColor = '#ddd'; - const body = document.querySelector('button'); - body.style.backgroundColor = '#4caf50'; + const button = document.querySelector('button'); + button.style.backgroundColor = '#4caf50'; } }