Update darkmode.js

This commit is contained in:
css pro 2024-10-01 10:34:50 -07:00 committed by GitHub
parent ee394b7d24
commit c52805a2a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
var dToggle = document.getElementById("darkMode")
dToggle.onclick = function dMode(){ function dMode(){
var body = document.body; var body = document.body;
body.classList.toggle("darkBody"); body.classList.toggle("darkBody");
var button = document.button; var button = document.button;