LittleDemon WebShell


Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
Path : /home/udaipurk/www/websites/rishh/XStore Theme/xstore/js/modules/
File Upload :
Command :
Current File : /home/udaipurk/www/websites/rishh/XStore Theme/xstore/js/modules/ethemeParallaxScrollEffect.min.js

jQuery(function(){ParallaxScroll.init()});var ParallaxScroll={showLogs:!1,round:1e3,elements:[],init:function(){this._log("init"),this._inited?(this._log("Already Inited"),this._inited=!0):(this._setElementsMap(),this._onScroll(!0))},_inited:!1,_properties:["x","y","z","rotate","rotateX","rotateY","rotateZ","scale"],_requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}},_log:function(e){this.showLogs&&console.log("Parallax Scroll / "+e)},_setElementsMap:function(){var a=new Map;jQuery(".etheme-parallax-scroll_effects").each(jQuery.proxy(function(e,t){jQuery(this).data("parallax-settings")&&a.set(jQuery(this),!0)}),this),this.elements=a},_onScroll:function(e){var y=jQuery(document).scrollTop(),f=jQuery(window).height();this._log("onScroll "+y),this.elements.forEach(jQuery.proxy(function(e,t){var a,n,o=jQuery(t),l=[],s=!1,r=o.data("style"),i=(null==r&&(r=o.attr("style")||"",o.data("style",r)),[o.data("parallax-settings")]),m=i.length;for(let e=0;e<m;e++){var d=i[e],h=d["from-scroll"]||Math.max(0,jQuery(t).offset().top-f),u=(h|=0,Math.max(0|f,1)),c=h+u|0,p=d.smoothness||30,_=(p=0==(p|=0)?1:p,Math.max(y,h));_=Math.min(_,c),this._properties.map(jQuery.proxy(function(e){var t,a,n=0,r=d[e];null!=r&&("scale"===e?n=1:r|=0,a=(t=o.data("_"+e)||n)+((n=(_-h)/(c-h)*(r-n)+n)-t)/p,(a=Math.ceil(a*this.round)/this.round)==t&&n==r&&(a=r),l[e]||(l[e]=0),l[e]+=a,t!=l[e])&&(o.data("_"+e,l[e]),s=!0)},this))}s&&(l.z&&(n=d.perspective||800,(a=o.parent()).data("style")||a.data("style",a.attr("style")||""),a.attr("style","perspective:"+n+"px; -webkit-perspective:"+n+"px; "+a.data("style"))),l.scale=l.scale||1,this._log(n="translate3d("+(l.x||0)+"px, "+(l.y||0)+"px, "+(l.z||0)+"px)"+" "+(l.rotate?"rotate("+(l.rotate||0)+"deg)":"rotateX("+(l.rotateX||0)+"deg) rotateY("+(l.rotateY||0)+"deg) rotateZ("+(l.rotateZ||0)+"deg)")+" "+("scale("+l.scale+")")+";"),o.attr("style","transform:"+n+" -webkit-transform:"+n+" "+r))},this)),window.requestAnimationFrame?window.requestAnimationFrame(jQuery.proxy(this._onScroll,this,!1)):this._requestAnimationFrame(jQuery.proxy(this._onScroll,this,!1))}};!function(){"use strict";jQuery(window).on("elementor/frontend/init",function(){var t=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},onElementChange:function(e){0===e.indexOf("etheme_parallax")&&(this.$element.data("parallax-settings",null),ParallaxScroll._setElementsMap(),this.run())},run:function(){var n,e,r;this.getElementSettings("etheme_parallax")&&(n=this.getElementSettings(),e="mobile"==elementorFrontend.getCurrentDeviceMode(),n.etheme_parallax_mobile&&e||!e)&&"scroll_effects"==n.etheme_parallax_type&&(r=new Map,["smoothness","perspective","rotate","rotateX","rotateY","rotateX","z","y","x","scale"].forEach((t,e,a)=>{if(n["etheme_parallax_scroll_"+t]){let e=n["etheme_parallax_scroll_"+t];null!=e.size&&(e=e.size),r.set(t,parseFloat(e)||0)}}),this.$element.data("parallax-settings",Object.fromEntries(r)),ParallaxScroll._setElementsMap())}});elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})})})}();

LittleDemon - FACEBOOK
[ KELUAR ]