From 1293b29181ddd6f9d8c0ea3ac311974e21797182 Mon Sep 17 00:00:00 2001 From: Sevi Date: Sat, 30 Nov 2024 02:27:16 -0800 Subject: [PATCH] removed useless tags --- js/darkmode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/darkmode.js b/js/darkmode.js index 5c7835c..de8b122 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -5,7 +5,7 @@ $(document).ready(function() { const body = document.querySelector('body'); body.style.backgroundColor = '#141414'; body.style.color = '#f1f1f1'; - document.body.style.backgroundImage= 'none'; + body.style.backgroundImage= 'none'; const paragraphs = document.querySelectorAll('p'); paragraphs.forEach(function(p) { p.style.color = '#f1f1f1'; @@ -32,7 +32,7 @@ $(document).ready(function() { const body = document.querySelector('body'); body.style.backgroundColor = '#f1f1f1'; body.style.color = 'black'; - document.body.style.backgroundImage= "url('/images/snow1.jpg')"; + body.style.backgroundImage= "url('/images/snow1.jpg')"; const paragraphs = document.querySelectorAll('p'); paragraphs.forEach(function(p) { p.style.color = 'black';