Last year I had to do a little PT. The regimen consisted of a few reps of several difference exercises, each with different lengths of active and rest periods, many of them quite short.
I quickly got tired of hitting the “lap” button on the iOS stopwatch.
I’m sure there are apps that do timers like this, but I figured it wouldn’t be too hard to build, and I like having control. I didn’t need anything fancy, just a few features:
There are several corner cases I’ve decided to put off solving. But it mostly does what I need. When I first started I just opened up a new tab for each exercise, but I’ve recently added the ability to save and reload timers.
You can try it out at jstimer.dcheno.work.
I packed all the CSS, JS, and HTML into one file. If they let you
put style
and script
tags in HTML I figure
they expect you to use them.
The JavaScript is a bit of a mess. I’d like to separate display and logic a bit, but I also don’t want to over-invest.
I recorded the sounds on GarageBand. I’d love to have something better so feel free to suggest alternatives. My main goal is to be able to do simple exercises without looking at the clock.