Şimdi Ara

javascript countdown sayfa yenileme hatası

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
1 Misafir - 1 Masaüstü
5 sn
1
Cevap
0
Favori
181
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • $(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



    < Bu mesaj bu kişi tarafından değiştirildi matador50 -- 1 Şubat 2018; 9:51:18 >







  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.