Setting time for changing class in javascript~!?(please help) | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Setting time for changing class in javascript~!?(please help)

Hi how can i set time for changing style i mean i need a javascript code which could change my class at night automatically and then change the class for morning? for iran,tehran time zone! for example for night mode which websites use , but automatically:) can anyone help?

15th Jan 2020, 8:45 AM
MAHDI
MAHDI - avatar
3 Respuestas
15th Jan 2020, 9:02 AM
Calvi’≤
Calvi’≤ - avatar
+ 2
https://code.sololearn.com/WnLqMn9XJy7b/?ref=app
15th Jan 2020, 9:49 AM
visph
visph - avatar
+ 2
Thanks guys Calvin & Visph :) it's worked!
16th Jan 2020, 8:54 AM
MAHDI
MAHDI - avatar