/var/www/myprog.com.ua/admin/public/js/counter
NameSizeModeActions
counter_mini.js73660644editdlrm
marker.png7350644editdlrm
marker_small.png3950644editdlrm
numeric_up_blackbg2.png26100644editdlrm
numeric_up_blackbg3.png32020644editdlrm
numeric_up_blackbg4.png34730644editdlrm
numeric_up_blackbg5.png101140644editdlrm
Edit: /var/www/myprog.com.ua/admin/public/js/counter/counter_mini.js (7366B)
Counter.DefaultCharacterSets={numericUp:'0123456789',numericDown:'9876543210',alphabeticUp:' ABCDEFGHIJKLMNOPQRSTUVWXYZ',alphabeticDown:'ZYXWVUTSRQPONMLKJIHGFEDCBA ',alphanumericUp:'0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ',alphanumericDown:'9876543210ZYXWVUTSRQPONMLKJIHGFEDCBA ',calculator:'0123456789.,+-*/= ',qwertyKeybord:' QWERTYUIOPASDFGHJKLZXCVBNM1234567890-=[]\\;\',./~`!@#$%^&*()_+{}|:"<>?',allCharacters:' ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=[]\\;\',./~`!@#$%^&*()_+{}|:"<>?'};Counter.ScrollDirection={Downwards:-1,Mixed:0,Upwards:1};function Counter(a,b){this.wrapper=document.getElementById(a);this.wrapperId=a;this.intervalTimerId=null;this.timeoutTimerId=null;this.isAnimating=false;this.animationStep=0.0;this.animationProgress=0.0;this.beforeAnimation=[];this.afterAnimation=[];this.digitsNumber=(b.digitsNumber||6);this.direction=(b.direction||Counter.ScrollDirection.Mixed);this.value=(b.value||"");this.characterSet=(b.characterSet||Counter.DefaultCharacterSets.allCharacters);this.characterNumber=this.characterSet.length;this.animationDuration=(b.animationDuration||50);var c=["wrapper","left","inner","right","marker"];this.extraClassName={};for(var i=0;i=1){this.animationProgress=1.0;if(this.timeoutTimerId)clearTimeout(this.timeoutTimerId);if(this.intervalTimerId)clearTimeout(this.intervalTimerId);this.isAnimating=false;this.timeoutTimerId=null;this.intervalTimerId=null}var i=0;var b=this.wrapper.id+"_";for(i=0;i=0;i--){var e=document.getElementById(c+(this.digitsNumber-i-1));this.beforeAnimation[i]=new Number(e.style.backgroundPosition.substr(4).replace("px",""))}var f=(this.value.toString?this.value.toString():new String(this.value));var g=(a.toString?a.toString():new String(a));for(i=this.digitsNumber-1;i>=0;i--){var e=document.getElementById(c+(this.digitsNumber-i-1));var h=-1;if(f.length-i-1>=0){var j=f.charAt(f.length-i-1).toUpperCase();h=this.characterSet.indexOf(j)}if(h==-1)h=this.characterSet.indexOf(" ");if(h==-1)h=this.characterSet.indexOf("0");if(h==-1)h=0;var k=-1;if(g.length-i-1>=0){var l=g.charAt(g.length-i-1).toUpperCase();k=this.characterSet.indexOf(l)}if(k==-1)k=this.characterSet.indexOf(" ");if(k==-1)k=this.characterSet.indexOf("0");if(k==-1)k=0;var m=this;this.afterAnimation[i]=Math.round((-this.digitHeight*k+this.offsetHeight));if(this.direction==0){if(Math.abs(h-k)>this.characterNumber/2){if(kthis.afterAnimation[i])this.beforeAnimation[i]=this.beforeAnimation[i]-this.digitHeight*this.characterNumber}else if(this.direction==1){if(this.beforeAnimation[i]0))b=1000;this.isAnimating=true;var n=this.animationDuration;this.animationStep=(n/b);this.animationProgress=0.0;var o=this;if(b>n)this.intervalTimerId=setInterval(function(){o.animate(false)},n);this.timeoutTimerId=setTimeout(function(){o.animate(true)},b)};Counter._parseInt=function(a){var b=parseInt(a);if(isNaN(b))b=0;return b};Counter._elementCurrentStyle=function(a,b){if(a.currentStyle){var i=0,temp="",changeCase=false;for(i=0;i