9 lines
280 B
JavaScript
9 lines
280 B
JavaScript
|
function update_clock() {
|
||
|
var currentTime = new Date();
|
||
|
var currentHours = currentTime.getHours();
|
||
|
var currentMinutes = currentTime.getMinutes();
|
||
|
$('#currentTime').html(currentHours + ':' + currentMinutes);
|
||
|
setTimeout('update_clock()', 200);
|
||
|
}
|
||
|
update_clock();
|