From ff042af28998df9a3be0bb36fff4624827b92070 Mon Sep 17 00:00:00 2001 From: css pro Date: Tue, 1 Oct 2024 10:56:26 -0700 Subject: [PATCH] Update darkmode.js --- js/darkmode.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/darkmode.js b/js/darkmode.js index 805f29f..4845fa1 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -1,6 +1,8 @@ +var buttons = document.getElementsByTagName('button'); +var body = document.body; function dMode(){ - document.button.style.background-color("#13f4f3") - document.body.style.color("f1f1f1") - document.body.style.background-color("3c3c3c") + buttons.style.background-color("#13f4f3"); + body.style.color("f1f1f1"); + body.style.background-color("3c3c3c"); }