This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sample_code:digital_clock [2016/08/28 20:49] titus created |
sample_code:digital_clock [2017/06/14 09:13] titus |
||
---|---|---|---|
Line 2: | Line 2: | ||
This is a simple clock. | This is a simple clock. | ||
+ | \\ | ||
+ | [[http:// | ||
- | <code JavaScript> | + | <code JavaScript |
//Called when application is started. | //Called when application is started. | ||
Line 28: | Line 30: | ||
//Add layout to app. | //Add layout to app. | ||
app.AddLayout( lay ); | app.AddLayout( lay ); | ||
- | setInterval("Clock()",1000) | + | setInterval(Clock, |
} | } | ||
function Clock() | function Clock() | ||
Line 81: | Line 83: | ||
</ | </ | ||
+ | |||
+ | [[: |