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 45: | Line 45: | ||
updateTimer = function() { | updateTimer = function() { | ||
$timer2.html(currentTime); | $timer2.html(currentTime); | ||
currentTime -=incrementTime; | currentTime -= incrementTime; | ||
if(currentTime === 100){ | if(currentTime === 100){ | ||
window.Obj1.extPause(); | window.Obj1.extPause(); | ||
this.resetTimer(); | |||
alert("Click OK to continue accruing CME Time"); | alert("Click OK to continue accruing CME Time"); | ||
} | } | ||
}, | }, | ||
Line 65: | Line 64: | ||
currentTime = 30000; | currentTime = 30000; | ||
if(!this.isActive){ | if(!this.isActive){ | ||
window.Obj2.extPlay(); | |||
} | } | ||
window.Obj1.extPlay(); | window.Obj1.extPlay(); |