Merge branch 'main' of https://github.com/eaglercraftx1-8/eaglercraftx1-8.github.io
This commit is contained in:
commit
68e7a5c320
7
js/darkmode.js
Normal file
7
js/darkmode.js
Normal file
@ -0,0 +1,7 @@
|
||||
var dToggle = document.getElementById("darkMode")
|
||||
dToggle.onclick = function dMode(){
|
||||
var body = document.body;
|
||||
body.classList.toggle("darkBody");
|
||||
var button = document.button;
|
||||
button.classList.toggle("darkButton");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user