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"); }