From 3df8e70e066900f9c9c5633f1c38c9b019b5c62d Mon Sep 17 00:00:00 2001 From: css pro Date: Mon, 28 Oct 2024 11:07:30 -0700 Subject: [PATCH] Update darkmode.js --- js/darkmode.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/darkmode.js b/js/darkmode.js index 0b0e577..cc3f8c2 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -3,10 +3,8 @@ $(document).ready(function() { var isChecked = $("#darkModeCheckbox").is(":checked"); if (isChecked) { const body = document.querySelector('body'); - //body.style.backgroundColor = '#141414'; - //body.style.color = '#f1f1f1'; - body.style = 'background: linear-gradient(39deg, rgba(0,0,0,1) 0%, rgba(128,3,251,1) 20%, rgba(107,6,255,1) 40%, rgba(88,31,255,1) 60%, rgba(43,0,255,1) 80%, rgba(0,0,0,1) 100%);'; - // linear-gradient(39deg, rgba(0,0,0,1) 0%, rgba(128,3,251,1) 20%, rgba(107,6,255,1) 40%, rgba(88,31,255,1) 60%, rgba(43,0,255,1) 80%, rgba(0,0,0,1) 100%); + body.style.backgroundColor = '#141414'; + body.style.color = '#f1f1f1'; const paragraphs = document.querySelectorAll('p'); paragraphs.forEach(function(p) {