, Date time getSeconds(), 0, , , 60, setTimeout, setInterval .
;
var time = new Date();
var timeout = 0;
if ( time.getSeconds() != 0 ) {
timeout = (60 - time.getSeconds());
}
setTimeout(function(){
setInterval( function(){
$.ajax({
url: "../time.php",
context: document.body,
success: function(result){
$('.time').html(result);
}
})}, 60000);
}, timeout);
;
setTimeout(function(){
setInterval( function(){
$.ajax({
url: "../time.php",
context: document.body,
success: function(result){
$('.time').html(result);
}
})}, 60000);
}, (60 - new Date().getSeconds()) );