From 90e62c0fd1a3cef8ba225805fd786294a18304dd Mon Sep 17 00:00:00 2001 From: css pro Date: Tue, 1 Oct 2024 16:05:59 -0700 Subject: [PATCH] Update darkmode.js --- js/darkmode.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/darkmode.js b/js/darkmode.js index 6a96f56..06e4559 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -1,6 +1,6 @@ var dCheck = document.getElementById("dMode"); -dCheck.onClick() = function dClick(){ +function dClick(){ console.log("heck yeah"); var inputs = document.getElementsByTagName('input'); var body = document.body; @@ -14,3 +14,7 @@ dCheck.onClick() = function dClick(){ } } } + +dCheck.onClick(){ + dClick(); +}