Need help in Pomodoro clock

Need help in Pomodoro clock
0

#1

I got a timer, to stop it, I used cleartimeout which didn’t work. I am not sure whether its because I used settimeout twice in the code or so. Please help. Thanks in advance.


Need help in Pomodoro clock appln
#2

How are you wanting the user to be able to stop/pause the timer? I looked for a button, but did not see one. Also, I do not see where you tried clearTimeout.


#3

I want to hit the div ie. yellow circle so used that div id with onclick of stop function


#4

I’m not seeing your clearTimeout either.

https://www.w3schools.com/jsref/met_win_cleartimeout.asp


#5

please check now… Have updated the url… Stop is working now… Couldn’t able to resume it, as I have included hour also, I was not able to retrieve my last paused min and sec properly.


#6

I disabled my reset button when stop is clicked, however while enabling it on some condition, its not getting enabled. Please help me out.


#7

The code in line 79-80 is executed only a single time and the if statement always ends up false.

Hint

Move the code at line 80 to #resume button’s click event to enable the reset button on click.

Extra hint