5 $('#countdown').each(function() {
8 var serverTime = function() {
10 $.ajax({url: '/zegar/',
11 async: false, dataType: 'text',
12 success: function(text) {
13 time = new Date(text);
14 }, error: function(http, message, exc) {
20 if (LANGUAGE_CODE != 'en') {
21 $.countdown.setDefaults($.countdown.regional[LANGUAGE_CODE]);
24 $.countdown.setDefaults($.countdown.regional['']);
27 var d = new Date($this.attr('data-year'), 0, 1);
28 function re() {location.reload()};
29 $this.countdown({until: d, format: 'ydHMS', serverSync: serverTime,
30 onExpiry: re, alwaysExpire: true});