$(document).ready(function(){ var da = new Date(); da.setHours(07,26,01);
//change this to very near time and elapse and check it var format='%M Dakika %S Saniye'; $('#clock').countdown(da) .on('update.countdown', function(event){ $(this).html(event.strftime(format)); }).on('finish.countdown',function(event){ var ev=event; console.log('here'); var ctrl=$(this); $(ctrl).html('This offer has expired!'); window.setTimeout(function(){ $('#clock').countdown (da.setHours(07,27,01)); },5000); $('#clock').countdown(da) .on('update.countdown', function(event){ $(this).html(event.strftime(format)); }).on('finish.countdown',function(event){ var ev=event; console.log('here'); var ctrl=$(this); $(ctrl).html('This offer has expired!'); window.setTimeout(function(){ $('#clock').countdown(da.setHours(08,40,01)); },5000);
}) }) });
kodlar çalışır durumda ama sayfayı yenilediğinde en son girilen zaman hata veriyor
Mesaj linki kopyalandı.
İşlem başarılı.
Bir sorun oluştu.
DH Mobil uygulaması ile devam edin.
Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin.
var da = new Date();
da.setHours(07,26,01);
//change this to very near time and elapse and check it
var format='%M Dakika %S Saniye';
$('#clock').countdown(da)
.on('update.countdown', function(event){
$(this).html(event.strftime(format));
}).on('finish.countdown',function(event){
var ev=event;
console.log('here');
var ctrl=$(this);
$(ctrl).html('This offer has expired!');
window.setTimeout(function(){
$('#clock').countdown (da.setHours(07,27,01));
},5000);
$('#clock').countdown(da)
.on('update.countdown', function(event){
$(this).html(event.strftime(format));
}).on('finish.countdown',function(event){
var ev=event;
console.log('here');
var ctrl=$(this);
$(ctrl).html('This offer has expired!');
window.setTimeout(function(){
$('#clock').countdown(da.setHours(08,40,01));
},5000);
})
})
});
kodlar çalışır durumda ama sayfayı yenilediğinde en son girilen zaman hata veriyor