diff options
-rw-r--r-- | www/js/clock.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/clock.js b/www/js/clock.js index 59f53de..a2b0628 100644 --- a/www/js/clock.js +++ b/www/js/clock.js @@ -43,6 +43,10 @@ function Clock() { this.draw_callbacks.fireWith(window, [date_str, time_str, get_rd_week(rdtime_ms)]); } + this.addCallback = function(cb) { + this.draw_callbacks.add(cb); + } + this.ntp_update = function(event) { var t4 = (+new Date()); |