Widget:TimerTest2: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
this.pause = function(){ | this.pause = function(){ | ||
this.Timer.pause().once(); | this.Timer.pause().once(); | ||
} | |||
this.play = function(){ | |||
this.play(false); | |||
} | } | ||
$(init); | $(init); | ||
Line 28: | Line 31: | ||
if(currentTime === 0){ | if(currentTime === 0){ | ||
Obj1.pause(); | Obj1.pause(); | ||
$timer2.pause(); | |||
} | } | ||
}, | }, | ||
Line 36: | Line 40: | ||
this.resetTimer = function(){ | this.resetTimer = function(){ | ||
currentTime = 5000; | currentTime = 5000; | ||
Obj1.play(); | |||
} | } | ||
$(init); | $(init); |