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 17: | Line 17: | ||
init = function(){ | init = function(){ | ||
$timer1 = $('#output1'); | $timer1 = $('#output1'); | ||
Obj1.Timer = $.timer(updateTimer, incrementTime, true); | |||
}; | }; | ||
this.extPause = function(){ | this.extPause = function(){ | ||
Line 39: | Line 39: | ||
currentTime -= incrementTime; | currentTime -= incrementTime; | ||
if(currentTime === 100){ | if(currentTime === 100){ | ||
Obj1.extPause(); | |||
this.resetTimer(); | this.resetTimer(); | ||
alert("Click OK to continue accruing CME Time"); | alert("Click OK to continue accruing CME Time"); | ||
Line 55: | Line 55: | ||
this.resetTimer = function(){ | this.resetTimer = function(){ | ||
currentTime = 30000; | currentTime = 30000; | ||
Obj1.extPlay(); | |||
if(!this.isActive){ | if(!this.isActive){ | ||
TimerBin.Obj2.extPlay(); | TimerBin.Obj2.extPlay(); |