10 lines
244 B
JavaScript
10 lines
244 B
JavaScript
{08292d3041c193e448b9a09044a63dfb73105d83 true 244 app.js 0xc002c14770}
let body = document.querySelector('body');
|
|
let dark = document.querySelector('#dark');
|
|
|
|
dark.onclick = function (){
|
|
if(dark.checked == true){
|
|
body.classList.add('darkMode');
|
|
} else {
|
|
body.classList.remove('darkMode');
|
|
}
|
|
} |