Pomodoro clock help

Pomodoro clock help
0

#1

Hello, My pomodoro clock seems to have a glitch. When I press my start button twice, it seems to speed up the countdown, and I’m trying to prohibit that. Any ideas? Here is my code:


#2

That’s because you set a new timer every time the start button is clicked. In the event handlere you should put a test to see if the timer is already running before starting a new timer.


#3

Also when I hit reset it displays: 24:0060


#4

Thanks guys. I fixed the bugs I believe.


#5

Hey guys, I noticed that this problem occurs even after I put an event.preventDefault() within the onclick event for the start button. This only seems to solve the problem in Firefox, but not in other browsers like IE or Chrome. Any ideas?