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';