PHP 8.3.30
Preview: jquery.countTo.js Size: 1.84 KB
/home/getspomw/itechservicellc.com/public/js/jquery.countTo.js

!function(t){var e=function(o,i){this.$element=t(o),this.options=t.extend({},e.DEFAULTS,this.dataOptions(),i),this.init()};e.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function(t,e){return t.toFixed(e.decimals)},onUpdate:null,onComplete:null},e.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},e.prototype.dataOptions=function(){var t={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},e=Object.keys(t);for(var o in e){var i=e[o];void 0===t[i]&&delete t[i]}return t},e.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},e.prototype.render=function(){var t=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(t)},e.prototype.restart=function(){this.stop(),this.init(),this.start()},e.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},e.prototype.stop=function(){this.interval&&clearInterval(this.interval)},e.prototype.toggle=function(){this.interval?this.stop():this.start()},t.fn.countTo=function(o){return this.each((function(){var i=t(this),s=i.data("countTo"),n="object"==typeof o?o:{},r="string"==typeof o?o:"start";(!s||"object"==typeof o)&&(s&&s.stop(),i.data("countTo",s=new e(this,n))),s[r].call(s)}))}}(jQuery);

Directory Contents

Dirs: 1 × Files: 22

Name Size Perms Modified Actions
fancybox DIR
- drwxr-xr-x 2025-11-18 19:23:46
Edit Download
36.18 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
11.17 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
29.83 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
10.09 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
4.24 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
36.89 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
1.44 KB lrw-r--r-- 2025-10-28 20:21:46
Edit Download
19.08 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
18.91 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
1.84 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
5.42 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
22.59 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
3.27 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
53.63 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
94.75 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
28.26 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
21.00 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
5.21 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
633 B lrw-r--r-- 2025-10-28 20:21:48
Edit Download
39.45 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
20.40 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download
35.31 KB lrw-r--r-- 2025-10-28 20:21:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).