X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0afa8ce8f8858c875404136d81dfb1645aeac19f..01e221c6dc122a8a930fd7b83bf123ae02a2ef0d:/wolnelektury/templates/pdcounter/pd_counter.html 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});