vendor: 6,632 bytes, line 1
1"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=t():e.Rellax=t()}("undefined"!=typeof window?window:global,function(){return function e(t,o){var k=Object.create(e.prototype),u=0,C=0,f=0,M=0,w=[],n=!0,r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=null,a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassive",null,l),window.removeEventListener("testPassive",null,l)}catch(e){}var s=window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout,v=window.transformProp||function(){var e=document.createElement("div");if(null===e.style.transform){var t=["Webkit","Moz","ms"];for(var o in t)if(void 0!==e.style[t[o]+"Transform"])return t[o]+"Transform"}return"transform"}();k.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}},o&&Object.keys(o).forEach(function(e){k.options[e]=o[e]});var p="string"==typeof(t=t||".rellax")?document.querySelectorAll(t):[t];if(0<p.length){if(k.elems=p,k.options.wrapper&&!k.options.wrapper.nodeType){var d=document.querySelector(k.options.wrapper);if(!d)return void console.warn("Rellax: The wrapper you're trying to use doesn't exist.");k.options.wrapper=d}var c=function e(){for(var t=0;t<w.length;t++)k.elems[t].style.cssText=w[t].style;w=[],C=window.innerHeight,M=window.innerWidth,x(),function(){for(var e=0;e<k.elems.length;e++){var t=m(k.elems[e]);w.push(t)}}(),g(),n&&(window.addEventListener("resize",e),n=!1,h())},m=function(e){var t=e.getAttribute("data-rellax-percentage"),o=e.getAttribute("data-rellax-speed"),n=e.getAttribute("data-rellax-vertical-speed"),r=e.getAttribute("data-rellax-horizontal-speed"),i=e.getAttribute("data-rellax-vertical-scroll-axis"),a=e.getAttribute("data-rellax-horizontal-scroll-axis"),l=e.getAttribute("data-rellax-zindex")||0,s=e.getAttribute("data-rellax-min"),p=e.getAttribute("data-rellax-max"),d=e.getAttribute("data-rellax-min-x"),c=e.getAttribute("data-rellax-max-x"),m=e.getAttribute("data-rellax-min-y"),u=e.getAttribute("data-rellax-max-y"),f=k.options.wrapper?k.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;k.options.relativeToWrapper&&(f=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)-k.options.wrapper.offsetTop);var w=k.options.vertical&&(t||k.options.center)?f:0,v=k.options.horizontal&&(t||k.options.center)?k.options.wrapper?k.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,x=w+e.getBoundingClientRect().top,y=e.clientHeight||e.offsetHeight||e.scrollHeight,h=v+e.getBoundingClientRect().left,g=e.clientWidth||e.offsetWidth||e.scrollWidth,b=t||(w-x+C)/(y+C),A=t||(v-h+M)/(g+M);k.options.center&&(b=A=.5);var z=o||k.options.speed,S=n||k.options.verticalSpeed,T=r||k.options.horizontalSpeed,E=i||k.options.verticalScrollAxis,L=a||k.options.horizontalScrollAxis,O=j(A,b,z,S,T),Y=e.style.cssText,X="",R=/transform\s*:/i.exec(Y);if(R){var W=R.index,q=Y.slice(W),F=q.indexOf(";");X=F?" "+q.slice(11,F).replace(/\s/g,""):" "+q.slice(11).replace(/\s/g,"")}return{baseX:O.x,baseY:O.y,top:x,left:h,height:y,width:g,speed:z,verticalSpeed:S,horizontalSpeed:T,verticalScrollAxis:E,horizontalScrollAxis:L,style:Y,transform:X,zindex:l,min:s,max:p,minX:d,maxX:c,minY:m,maxY:u}},x=function(){var e=u,t=f;if(u=k.options.wrapper?k.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,f=k.options.wrapper?k.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset,k.options.relativeToWrapper){var o=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset;u=o-k.options.wrapper.offsetTop}return!(e==u||!k.options.vertical)||!(t==f||!k.options.horizontal)},j=function(e,t,o,n,r){var i={},a=(r||o)*(100*(1-e)),l=(n||o)*(100*(1-t));return i.x=k.options.round?Math.round(a):Math.round(100*a)/100,i.y=k.options.round?Math.round(l):Math.round(100*l)/100,i},y=function e(){window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),(k.options.wrapper?k.options.wrapper:window).removeEventListener("scroll",e),(k.options.wrapper?k.options.wrapper:document).removeEventListener("touchmove",e),i=r(h)},h=function e(){x()&&!1===n?(g(),i=r(e)):(i=null,window.addEventListener("resize",y),window.addEventListener("orientationchange",y),(k.options.wrapper?k.options.wrapper:window).addEventListener("scroll",y,!!a&&{passive:!0}),(k.options.wrapper?k.options.wrapper:document).addEventListener("touchmove",y,!!a&&{passive:!0}))},g=function(){for(var e,t=0;t<k.elems.length;t++){var o=w[t].verticalScrollAxis.toLowerCase(),n=w[t].horizontalScrollAxis.toLowerCase(),r=-1!=o.indexOf("x")?u:0,i=-1!=o.indexOf("y")?u:0,a=-1!=n.indexOf("x")?f:0,l=(i+(-1!=n.indexOf("y")?f:0)-w[t].top+C)/(w[t].height+C),s=(r+a-w[t].left+M)/(w[t].width+M),p=(e=j(s,l,w[t].speed,w[t].verticalSpeed,w[t].horizontalSpeed)).y-w[t].baseY,d=e.x-w[t].baseX;null!==w[t].min&&(k.options.vertical&&!k.options.horizontal&&(p=p<=w[t].min?w[t].min:p),k.options.horizontal&&!k.options.vertical&&(d=d<=w[t].min?w[t].min:d)),null!=w[t].minY&&(p=p<=w[t].minY?w[t].minY:p),null!=w[t].minX&&(d=d<=w[t].minX?w[t].minX:d),null!==w[t].max&&(k.options.vertical&&!k.options.horizontal&&(p=p>=w[t].max?w[t].max:p),k.options.horizontal&&!k.options.vertical&&(d=d>=w[t].max?w[t].max:d)),null!=w[t].maxY&&(p=p>=w[t].maxY?w[t].maxY:p),null!=w[t].maxX&&(d=d>=w[t].maxX?w[t].maxX:d);var c=w[t].zindex,m="translate3d("+(k.options.horizontal?d:"0")+"px,"+(k.options.vertical?p:"0")+"px,"+c+"px) "+w[t].transform;k.elems[t].style[v]=m}k.options.callback(e)};return k.destroy=function(){for(var e=0;e<k.elems.length;e++)k.elems[e].style.cssText=w[e].style;n||(window.removeEventListener("resize",c),n=!0),s(i),i=null},c(),k.refresh=c,k}console.warn("Rellax: The elements you're trying to select don't exist.")}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.