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 23: Line 23:
     var $timer2,
     var $timer2,
     incrementTime = 100,
     incrementTime = 100,
     currentTime = 100000,
     currentTime = 5000,
     updateTimer = function() {
     updateTimer = function() {
         $timer2.html(currentTime);
         $timer2.html(currentTime);
         currentTime -=incrementTime;
         currentTime -=incrementTime;
        if(currentTime = 0){
            Obj1.resetTimer();
        }
     },
     },
     init = function(){
     init = function(){
Line 39: Line 42:
});
});
</script>
</script>
<span id="output1"></span>
<span id="output1"></span><br />
<span id="output2"></span>
<span id="output2"></span>
</includeonly>
</includeonly>

Revision as of 15:48, 11 April 2014