This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sample_code:digital_clock [2016/08/29 06:19] titus |
sample_code:digital_clock [2017/06/14 17:13] (current) |
||
---|---|---|---|
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() |