Start display clock earlier
This commit is contained in:
parent
c58137b424
commit
fe1b3bc246
|
@ -20,14 +20,17 @@ $(document).ready(function(){
|
|||
})
|
||||
|
||||
// Show time
|
||||
setInterval(function(){
|
||||
var n = new Date();
|
||||
var mins = n.getMinutes()
|
||||
var secs = n.getSeconds()
|
||||
$("#time").html(n.getHours()+":"+(mins<10?"0"+mins:mins)+":"+(secs<10?"0"+secs:secs))
|
||||
}, 1000)
|
||||
setInterval(showTimeFunc, 1000)
|
||||
showTimeFunc()
|
||||
});
|
||||
|
||||
function showTimeFunc(){
|
||||
var n = new Date();
|
||||
var mins = n.getMinutes()
|
||||
var secs = n.getSeconds()
|
||||
$("#time").html(n.getHours()+":"+(mins<10?"0"+mins:mins)+":"+(secs<10?"0"+secs:secs))
|
||||
}
|
||||
|
||||
function initTemplates(names, done) {
|
||||
for(n in names) {
|
||||
source = $("#template-"+names[n]).html()
|
||||
|
|
Loading…
Reference in New Issue