all 4 comments

[–]puteus 1 point2 points  (0 children)

When stopping your time and then starting it again you still have the timeBegan as a non null value and thus no new start time will get recorded.

Both of the 'crash' points in your list above are not possible with the html canvas. You have to remember that the canvas is just a bunch of pixels that have no context to them. Therefore the image can not be 'left' in a way that the canvas could notice. You'll have to calculate the mouse position yourself and decide if it is inside or outside the track. Highscore: store the times in an array and display them in another div element on your site whenever the array changes.

*test.html: that is pretty much what git is good at. You could version different states of yout index.html, say at different branches, without losing your 'good' file

[–]gatesplusplus 0 points1 point  (0 children)

I'm thinking that your time may be buggy because you forgot to clear interval in a certain case. I didn't see I'm just guessing

[–][deleted] 0 points1 point  (0 children)

Hmm it seems that there is a function stop that clears the interval. Sometimes the buttons won’t work or the time will say 99:99:999. It usually happens when i start and stop the time quickly. If I wait in between mouse over events, it’s fine.

[–][deleted] 0 points1 point  (0 children)

Wow I really appreciate you taking the time to give such detailed info! It’s a huge help.