Skip to content

Tag: darkmode

Add a darkmode to your site via JavaScript

I’m a beginner and I set myself a challenge: create a darkmode for my portfolio with JS functions. HTML : JAVASCRIPT: But I have a problem. I use “if…esle”. The “if” part works. But the “else” part doesn’t work. Normally, if the user has already clicked on…

Dark Mode After 1700 hours

I’m trying to change the background and one (1) heading to different colors after a certain time on my webpage (1700 hours). However, it doesn’t trigger. What am I doing wrong here? Answer