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");
            window.Obj2.extPause().once();
            currentTime = 30000;
         }
         }
     },
     },
Line 65: Line 64:
         currentTime = 30000;
         currentTime = 30000;
         if(!this.isActive){
         if(!this.isActive){
         $timer2.play().once();
         window.Obj2.extPlay();
         }
         }
         window.Obj1.extPlay();
         window.Obj1.extPlay();

Revision as of 18:46, 22 April 2014