Submit
Path:
~
/
home
/
getwphos
/
public_html
/
milceticarch
/
wp-content
/
plugins
/
edge-core
/
shortcodes
/
counter
/
assets
/
js
/
File Content:
counter.js
(function($) { 'use strict'; var counter = {}; edgtf.modules.counter = counter; counter.edgtfInitCounter = edgtfInitCounter; counter.edgtfOnDocumentReady = edgtfOnDocumentReady; $(document).ready(edgtfOnDocumentReady); /* All functions to be called on $(document).ready() should be in this function */ function edgtfOnDocumentReady() { edgtfInitCounter(); } /** * Counter Shortcode */ function edgtfInitCounter() { var counterHolder = $('.edgtf-counter-holder'); if (counterHolder.length) { counterHolder.each(function() { var thisCounterHolder = $(this), thisCounter = thisCounterHolder.find('.edgtf-counter'); thisCounterHolder.appear(function() { thisCounterHolder.css('opacity', '1'); //Counter zero type if (thisCounter.hasClass('edgtf-zero-counter')) { var max = parseFloat(thisCounter.text()); thisCounter.countTo({ from: 0, to: max, speed: 1500, refreshInterval: 100 }); } else { thisCounter.absoluteCounter({ speed: 2000, fadeInDelay: 1000 }); } },{accX: 0, accY: edgtfGlobalVars.vars.edgtfElementAppearAmount}); }); } } })(jQuery);
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
plugins
---
0755
counter.js
1219 bytes
0644
N4ST4R_ID | Naxtarrr