summaryrefslogtreecommitdiffhomepage
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/js/main.js b/js/main.js
index 71aaf65..255c43f 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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,