This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * function $.fn.onVisible runs callback function once the specified element is visible. | |
| * callback: A function to execute at the time when the element is visible. | |
| * example: $(selector).onVisible(callback); | |
| */ | |
| (function($) { | |
| $.fn.onVisible = function (callback) { | |
| var self = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Dependency: CountUp.js: https://github.com/inorganik/CountUp.js | |
| (function ($) { | |
| $.fn.countup = function (params) { | |
| // make sure dependency is present | |
| if (typeof CountUp !== 'function') { | |
| console.error('countUp.js is a required dependency of countUp-jquery.js.'); | |
| return; | |
| } |
OlderNewer