X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0afa8ce8f8858c875404136d81dfb1645aeac19f..01a22232d4c5bfd6c496842f9cb19b64b6b01520:/wolnelektury/templates/pdcounter/pd_counter.html?ds=sidebyside diff --git a/wolnelektury/templates/pdcounter/pd_counter.html b/wolnelektury/templates/pdcounter/pd_counter.html index af744aecf..fd157ad55 100644 --- a/wolnelektury/templates/pdcounter/pd_counter.html +++ b/wolnelektury/templates/pdcounter/pd_counter.html @@ -5,6 +5,8 @@ {% else %} $.countdown.setDefaults($.countdown.regional['']); {% endif %} -d = new Date({{ pd_counter }}, 1, 1); -$('#countdown').countdown({until: d, format: 'ydHMS', serverSync: serverTime}); +d = new Date({{ pd_counter }}, 0, 1); +function re() {location.reload()}; +$('#countdown').countdown({until: d, format: 'ydHMS', serverSync: serverTime, +onExpiry: re, alwaysExpire: true});