From f6925354246ab87b7982f72d649d2593c8dcdce3 Mon Sep 17 00:00:00 2001 From: Sevi Date: Sat, 30 Nov 2024 02:24:14 -0800 Subject: [PATCH] remove background on darkmode i think im gonna remake darkmode because it breaks a lot of things --- js/darkmode.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/darkmode.js b/js/darkmode.js index f9d82a2..5c7835c 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -5,6 +5,7 @@ $(document).ready(function() { const body = document.querySelector('body'); body.style.backgroundColor = '#141414'; body.style.color = '#f1f1f1'; + document.body.style.backgroundImage= 'none'; const paragraphs = document.querySelectorAll('p'); paragraphs.forEach(function(p) { p.style.color = '#f1f1f1'; @@ -31,6 +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')"; const paragraphs = document.querySelectorAll('p'); paragraphs.forEach(function(p) { p.style.color = 'black';