This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Stopwatch in visupage.
#15
It looks that there is some small bug in this stopwatch. When minutes has some value higher than "00" clicking on the reset button doesn't reset the minutes. It starts to work when using appendMinutes.textContent = "00" instead of appendMinutes.innerHMTL = minutes in resetBtn.onclick function.

And it would be more precise with using Date.now() instead of incrementing tens in setInterval which isn't perfect for this purpose because it can be snoozed by a browser when you will switch the tab and restarted when you will return to it.
Done is better than perfect
Reply


Messages In This Thread
Stopwatch in visupage. - by ceddix - 17.12.2024, 15:26
RE: Stopwatch in visupage. - by Daniel - 18.12.2024, 10:23
RE: Stopwatch in visupage. - by ceddix - 18.12.2024, 12:50
RE: Stopwatch in visupage. - by Daniel - 18.12.2024, 12:55
RE: Stopwatch in visupage. - by ceddix - 18.12.2024, 13:03
RE: Stopwatch in visupage. - by ceddix - 19.12.2024, 12:21
RE: Stopwatch in visupage. - by Daniel - 19.12.2024, 12:32
RE: Stopwatch in visupage. - by admin - 19.12.2024, 12:32
RE: Stopwatch in visupage. - by ceddix - 09.01.2025, 13:53
RE: Stopwatch in visupage. - by Daniel - 09.01.2025, 13:57
RE: Stopwatch in visupage. - by ceddix - 09.01.2025, 14:01
RE: Stopwatch in visupage. - by Daniel - 09.01.2025, 14:06
RE: Stopwatch in visupage. - by ceddix - 09.01.2025, 14:11
RE: Stopwatch in visupage. - by Daniel - 09.01.2025, 14:17
RE: Stopwatch in visupage. - by buuuudzik - 09.01.2025, 16:13
RE: Stopwatch in visupage. - by ceddix - 09.01.2025, 19:20

Forum Jump: