Hi.. i found a event countdown timer:
but when i change h and min it counts - ....
i want to do a countdown to server rester to web page (just as info)
i lookin it for counting to 06:00:00 and restart (06:00:00 is serwer restart time)
is that code good? what to change in it?
JavaScript:
setInterval(function time(){
var d = new Date();
var hours = 24 - d.getHours();
var min = 60 - d.getMinutes();
if((min + '').length == 1){
min = '0' + min;
}
var sec = 60 - d.getSeconds();
if((sec + '').length == 1){
sec = '0' + sec;
}
jQuery('#the-final-countdown p').html(hours+':'+min+':'+sec)
}, 1000);
but when i change h and min it counts - ....
i want to do a countdown to server rester to web page (just as info)
i lookin it for counting to 06:00:00 and restart (06:00:00 is serwer restart time)
is that code good? what to change in it?