The attached patch will add a javascript countdown to the block, honoring the block accuracy setting.
It tries to be efficient by (1) firing the timer only as often as the block accuracy demands, (2) doesn't do any fancy math in the timer. The side effect of this is that the timer is not a "real-time" application.
For example, if the browser timer doesn't run when it should (which is bound to happen occassionally), the timer will decrement the interval (second) when in reality a little more time may have elapsed. If the accuracy is set to seconds and if the browser window is left open a long time, these mis-fires can add up to. That said, don't count on the timer to be exact! Other than that, it's a nice extension.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | countdown_0.patch | 5.21 KB | douggreen |
| countdown.patch | 3.77 KB | douggreen |
Comments
Comment #1
douggreen commentedAttached is an improved patch that also counts up, and properly switches from counting down to counting up.
Comment #2
stella commentedThe attached patch works perfectly for me. Thanks Doug.
Cheers,
Stella
Comment #3
deekayen commented[dumb question removed]
Comment #4
deekayen commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.