17 lines
256 B
JavaScript
17 lines
256 B
JavaScript
|
/**
|
||
|
* Main function
|
||
|
* Create app, Init it and then update it regularly
|
||
|
*/
|
||
|
function init() {
|
||
|
var app = App();
|
||
|
|
||
|
app.oninit = function() {
|
||
|
app.update();
|
||
|
setTimeout(arguments.callee, Config.update_timeout);
|
||
|
}
|
||
|
|
||
|
app.init();
|
||
|
}
|
||
|
|
||
|
window.onload = init();
|