Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
tuitioncoin.org
/
assets
/
vendor
/
jarallax
/
src
/
Filename :
core.umd.js
back
Copy
import domReady from './utils/ready'; import global from './utils/global'; import jarallax from './core'; const $ = global.jQuery; // jQuery support if (typeof $ !== 'undefined') { const $Plugin = function (...args) { Array.prototype.unshift.call(args, this); const res = jarallax.apply(global, args); return typeof res !== 'object' ? res : this; }; $Plugin.constructor = jarallax.constructor; // no conflict const old$Plugin = $.fn.jarallax; $.fn.jarallax = $Plugin; $.fn.jarallax.noConflict = function () { $.fn.jarallax = old$Plugin; return this; }; } // data-jarallax initialization domReady(() => { jarallax(document.querySelectorAll('[data-jarallax]')); }); export default jarallax;