Widget:TimerTest2: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) Created page with "<includeonly> var Example1 = new (function() { var $stopwatch, // Stopwatch element on the page incrementTime = 70, // Timer speed in milliseconds currentTime ..." |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type='text/javascript'> | |||
var Example1 = new (function() { | var Example1 = new (function() { | ||
var $stopwatch, // Stopwatch element on the page | var $stopwatch, // Stopwatch element on the page | ||
Line 44: | Line 45: | ||
return (min > 0 ? pad(min, 2) : "") + ":" + pad(sec, 2) + ":" + hundredths; | return (min > 0 ? pad(min, 2) : "") + ":" + pad(sec, 2) + ":" + hundredths; | ||
} | } | ||
</script> | |||
<script type='text/javascript' src="http://jchavannes.com/include/scripts/timer-demo.js"></script> | <script type='text/javascript' src="http://jchavannes.com/include/scripts/timer-demo.js"></script> | ||
<h3 style='margin-top:20px;'>Example 1 - Stopwatch</h3> | <h3 style='margin-top:20px;'>Example 1 - Stopwatch</h3> |