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');
         TimerBin.Obj1.Timer = $.timer(updateTimer, incrementTime, true);
         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){
             TimerBin.Obj1.extPause();
             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;
         TimerBin.Obj1.extPlay();
         Obj1.extPlay();
         if(!this.isActive){
         if(!this.isActive){
         TimerBin.Obj2.extPlay();
         TimerBin.Obj2.extPlay();

Revision as of 19:37, 22 April 2014