0
Why it doesn't work
I don't where is the problem it don't have any problem on VSCODE but here it just doesn't work. https://code.sololearn.com/WR8ijH9eQzu8/?ref=app
1 Answer
+ 1
onload=()=>{
document.querySelector('.theme-button').addEventListener('click' , () => {
document.body.classList.toggle('dark')
$(document).ready(function(){
$(".circ").toggleClass("after");
});
})
};
/"
add js code in :
onload=() =>{
//here, then it loads with page load
};
*/