[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
backup
/
components
/
com_gridbox
/
libraries
/
animation
/
js
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 viewportchecker.js
1,319 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: viewportchecker.js
/** * @package Gridbox * @author Balbooa http://www.balbooa.com/ * @copyright Copyright @ Balbooa * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ (function($){ $.fn.viewportChecker = function(options){ var $this = this, flag = true; this.checkElements = function(){ var top = window.pageYOffset, bottom = top + window.innerHeight, elemTop = Math.round($this.offset().top), elemBottom = elemTop + $this[0].offsetHeight, overlay = $this[0].closest('.ba-overlay-section-backdrop'); if (flag) { if ((!overlay && elemTop < bottom && elemBottom > top) || (overlay && overlay.classList.contains('visible-section'))) { $this.addClass('visible animated '+options.effect); flag = false; setTimeout(function(){ $this.removeClass(options.effect); }, options.delay * 1000 + options.duration * 1000); } } }; $(window).on("load scroll touchmove", this.checkElements); return this; }; })(window.$g ? window.$g : window.jQuery);