【100sites #001】Timer
- Published on
This English version was translated from my Chinese original with AI assistance.

A very simple countdown timer.
I built it with the classic front-end trio — HTML, CSS, and JavaScript — one file each.
The core timing feature is done with window.setInterval(function, delay), which works fine in normal use.
The current problem is that the time drifts once it runs for a while. And when the user switches to another tab, with the Timer running in the background, the browser gives setInterval fewer resources, so the countdown slows way down or even stops completely. I haven't found a solution yet.