Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert to UTF-8

  • Loading branch information...
commit 2723940430ee2fc826b7c50b44a9d87c50187103 1 parent 393bd9a
@shvchk authored
Showing with 6 additions and 6 deletions.
  1. +5 −5 jquery.countdown-timer.js
  2. +1 −1  jquery.countdown-timer.min.js
View
10 jquery.countdown-timer.js
@@ -55,7 +55,7 @@
// Calculate number of seconds remain until end date/time
seconds_remaining = (end_date.getTime() - start_date.getTime()) * .001;
- // If end point is already history there’s no point in continuing
+ // If end point is already history there’s no point in continuing
if (seconds_remaining < 0) {
seconds_remaining = 0;
}
@@ -215,22 +215,22 @@
case time_str.length - 1 :
// Append Seconds label and close unit group
- html += '</div><div class="label">Ñåêóíäû</div></div>';
+ html += '</div><div class="label">Секунды</div></div>';
break;
case time_str.length - 4 :
// Append Minutes label and close unit group
- html += '</div><div class="label">Ìèíóòû</div></div>';
+ html += '</div><div class="label">Минуты</div></div>';
break;
case time_str.length - 7 :
// Append Hours label and close unit group
- html += '</div><div class="label">×àñû</div></div>';
+ html += '</div><div class="label">Часы</div></div>';
break;
case time_str.length - 9 :
// Append Days label and close unit group
- html += '</div><div class="label">Äíè</div></div>';
+ html += '</div><div class="label">Дни</div></div>';
break;
default :
View
2  jquery.countdown-timer.min.js
@@ -1,2 +1,2 @@
// Countdown Timer jQuery Plug-in | https://github.com/shvchk/jQuery-Countdown-Timer
-(function(e){var b={display_as_text:false,to:"2111:11:11:11:11",separator:":",significant_days:2,UTC:false};var d;var c;var a;e.fn.countdown=function(f){var l=function(o){c=o;var p=b.to.split(":");if(b.UTC){var q=new Date(Date.UTC(p[0],p[1]-1,p[2],p[3],p[4]))}else{var q=new Date(p[0],p[1]-1,p[2],p[3],p[4])}var n=new Date();a=(q.getTime()-n.getTime())*0.001;if(a<0){a=0}m(a);d=setInterval(k,1000)};var k=function(){a--;if(a>=0){m(a)}else{clearInterval(d)}};var m=function(n){var p;var o=h(n);if(b.display_as_text){p=o}else{p=j(o)}c.html(p)};var h=function(p){time_array=new Array();var o=String(Math.floor(p/86400));if(String(o).length>b.significant_days){time_array.push(o)}else{time_array.push(g(o,b.significant_days,"0"))}var r=String(Math.floor((p%86400)/3600));time_array.push(g(r,2,"0"));var q=String(Math.floor((p%3600)/60));time_array.push(g(q,2,"0"));var s=String(Math.floor(p%60));time_array.push(g(s,2,"0"));var n;switch(true){case (b.separator==""):case (b.separator==null):n=":";break;case (b.separator.length>1):n=b.separator.substr(0,1);break;default:n=b.separator}return time_array.join(n)};var j=function(q){var r;var o;var n='<div class="clock-bezel">';for(i=0;i<q.length;i++){chr=q.substr(i,1);if(chr==b.separator){r="separator"}else{r="digit number-"+chr}var p='<div class="'+r+'">'+chr+"</div>";switch(i){case 0:case q.length-2:case q.length-5:case q.length-8:p='<div class="unit"><div class="digits">'+p;break;case q.length-1:p+='</div><div class="label">Ñåêóíäû</div></div>';break;case q.length-4:p+='</div><div class="label">Ìèíóòû</div></div>';break;case q.length-7:p+='</div><div class="label">×àñû</div></div>';break;case q.length-9:p+='</div><div class="label">Äíè</div></div>';break;default:}n+=p}n+="</div>";return n};var g=function(o,n,q){var p="";if(q==null){q="0"}if(n==null){n=o.length+1}for(i=o.length;i<n;i++){p+=q.substr(0,1)}return p+o};e.extend(b,f);l(this);return(this)}})(jQuery);
+(function(e){var b={display_as_text:false,to:"2111:11:11:11:11",separator:":",significant_days:2,UTC:false};var d;var c;var a;e.fn.countdown=function(f){var l=function(o){c=o;var p=b.to.split(":");if(b.UTC){var q=new Date(Date.UTC(p[0],p[1]-1,p[2],p[3],p[4]))}else{var q=new Date(p[0],p[1]-1,p[2],p[3],p[4])}var n=new Date();a=(q.getTime()-n.getTime())*0.001;if(a<0){a=0}m(a);d=setInterval(k,1000)};var k=function(){a--;if(a>=0){m(a)}else{clearInterval(d)}};var m=function(n){var p;var o=h(n);if(b.display_as_text){p=o}else{p=j(o)}c.html(p)};var h=function(p){time_array=new Array();var o=String(Math.floor(p/86400));if(String(o).length>b.significant_days){time_array.push(o)}else{time_array.push(g(o,b.significant_days,"0"))}var r=String(Math.floor((p%86400)/3600));time_array.push(g(r,2,"0"));var q=String(Math.floor((p%3600)/60));time_array.push(g(q,2,"0"));var s=String(Math.floor(p%60));time_array.push(g(s,2,"0"));var n;switch(true){case (b.separator==""):case (b.separator==null):n=":";break;case (b.separator.length>1):n=b.separator.substr(0,1);break;default:n=b.separator}return time_array.join(n)};var j=function(q){var r;var o;var n='<div class="clock-bezel">';for(i=0;i<q.length;i++){chr=q.substr(i,1);if(chr==b.separator){r="separator"}else{r="digit number-"+chr}var p='<div class="'+r+'">'+chr+"</div>";switch(i){case 0:case q.length-2:case q.length-5:case q.length-8:p='<div class="unit"><div class="digits">'+p;break;case q.length-1:p+='</div><div class="label">Секунды</div></div>';break;case q.length-4:p+='</div><div class="label">Минуты</div></div>';break;case q.length-7:p+='</div><div class="label">Часы</div></div>';break;case q.length-9:p+='</div><div class="label">Дни</div></div>';break;default:}n+=p}n+="</div>";return n};var g=function(o,n,q){var p="";if(q==null){q="0"}if(n==null){n=o.length+1}for(i=o.length;i<n;i++){p+=q.substr(0,1)}return p+o};e.extend(b,f);l(this);return(this)}})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.