- In the context of the window, start a timer (
setInterval
) to do a thing every 1000 ms - that thing:
tryToTickEachClockOnce()
:- find all clocks on the page
- for each of those clocks, call decrementByOneSecondUnlessAlreadyZero(thisClockInParticular)
Created
October 13, 2016 16:37
-
-
Save dpritchett/346cfbb4ce1c1dc82ed4614db1a441ab to your computer and use it in GitHub Desktop.