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