Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 447 Bytes
import "timer.jsx";
import "js/web.jsx";
class Application {
static function main( elm_id: string ): void {
var elm = dom.id( elm_id ) as HTMLElement;
var f = (): void -> {
var date = new Date;
var delimiter = ":";
var hour = date.getHours() as string;
var min = date.getMinutes() as string;
var sec = date.getSeconds() as string;
elm.innerHTML = hour+delimiter+min+delimiter+sec;
};
Timer.setInterval( f, 100 );
}
}