0

javascript set interval

hey guys, i made a code with a progress bar so when the setInterval is up, a timeout fades in. Im already done with the code but i dont know whats wrong with it, please help me check my js code, especially the set interval function. If theres anything wrong https://code.sololearn.com/Wk9j38oYKC3l/?ref=app https://code.sololearn.com/Wk9j38oYKC3l/?ref=app

25th May 2022, 11:00 PM
Mikeey
Mikeey - avatar
2 Answers
+ 1
Well everything seems to be going okay, the only thing being that nothing happens if the time runs out
25th May 2022, 11:38 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
works well on web version but wrap your js code in onload function and it will work here too
26th May 2022, 12:23 AM
JOY
JOY - avatar