Update darkmode.js

This commit is contained in:
css pro 2024-10-01 11:29:20 -07:00 committed by GitHub
parent 632129db36
commit a0ecacdaab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,15 @@
function dMode(){ function dMode(){
var buttons = document.getElementsByTagName('button'); console.log("heck yeah");
var inputs = document.getElementsByTagName('input');
var body = document.body; var body = document.body;
buttons.style.backgroundcolor="#13f4f3";
body.style.color="f1f1f1"; body.style.color="f1f1f1";
body.style.backgroundcolor="3c3c3c"; body.style.backgroundColor="3c3c3c";
for(var i=0; i<inputs.length; i++){
if(inputs[i].getAttribute('type')=='button'){
buttons.style.backgroundcolor="#13f4f3";
}
}
} }