Darebee Timer
A simple workout interval timer I built for the fitness site Darebee.com
What It Is
Darebee is a free fitness resource with hundreds of workout routines. Many of their exercises use timed intervals—hold a plank for 30 seconds, rest for 10, repeat.
I built this timer to make it easier to follow along with their workouts. Pick a duration, hit the button, and it counts down with a buzzer at the end.
Try It
Technical Notes
The tricky part with JavaScript timers is that setInterval isn't accurate—it
drifts over time. This timer uses a self-correcting approach: it checks the actual elapsed time
against the expected time and adjusts the next tick accordingly.
Originally built in 2018 with jQuery, now converted to vanilla JS.
This was a small contribution to a site I used for my own workouts. Sometimes the best code is the code that solves a simple problem and just keeps working.