diff options
-rw-r--r-- | js/main.js | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -1,10 +1,3 @@ -/* - * TODO: - * - * - initialise time wasting clock from storage in OO idiom rather - * than just stray function call - */ - // class: one of the classes in our school var Class = function (grade, clas, total) { this.grade = grade; @@ -187,6 +180,7 @@ var timeWastingClock = MyFlipClock($('.time-wasting-clock'), { } } }); +timeWastingClock.setTime($.jStorage.get("time_wasted", 0)); timeWastingClock.running = false; timeWastingClock.reset = $.proxy(function () { @@ -220,10 +214,6 @@ timeWastingClock.toggle = $.proxy(function () { } }, timeWastingClock); -timeWastingClock.setTime($.jStorage.get("time_wasted", 0)); - -var $timeWastingClockRunning = false; - var activityClock = MyFlipClock($('.activity-countdown'), { autoStart:false, countdown:true, |