1/*! 2 * parallax.js v1.5.0 (http://pixelcog.github.io/parallax.js/) 3 * @copyright 2016 PixelCog, Inc. 4 * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE) 5 */(function(r,h,p,d){function i(t,o){var e=this;typeof o=="object"&&(delete o.refresh,delete o.render,r.extend(this,o)),this.$element=r(t),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var s=(this.position+"").toLowerCase().match(/\S+/g)||[];if(s.length<1&&s.push("center"),s.length==1&&s.push(s[0]),s[0]!="top"&&s[0]!="bottom"&&s[1]!="left"&&s[1]!="right"||(s=[s[1],s[0]]),this.positionX!==d&&(s[0]=this.positionX.toLowerCase()),this.positionY!==d&&(s[1]=this.positionY.toLowerCase()),e.positionX=s[0],e.positionY=s[1],this.positionX!="left"&&this.positionX!="right"&&(isNaN(parseInt(this.positionX))?this.positionX="center":this.positionX=parseInt(this.positionX)),this.positionY!="top"&&this.positionY!="bottom"&&(isNaN(parseInt(this.positionY))?this.positionY="center":this.positionY=parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=r("<div />").prependTo(this.mirrorContainer);var n=this.$element.find(">.parallax-slider"),a=!1;n.length==0?this.$slider=r("<img />").prependTo(this.$mirror):(this.$slider=n.prependTo(this.$mirror),a=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){e.naturalHeight&&e.naturalWidth||(e.naturalHeight=this.naturalHeight||this.height||1,e.naturalWidth=this.naturalWidth||this.width||1),e.aspectRatio=e.naturalWidth/e.naturalHeight,i.isSetup||i.setup(),i.sliders.push(e),i.isFresh=!1,i.requestRender()}),a||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||n.length>0)&&this.$slider.trigger("load")}(function(){for(var t=0,o=["ms","moz","webkit","o"],e=0;e<o.length&&!h.requestAnimationFrame;++e)h.requestAnimationFrame=h[o[e]+"RequestAnimationFrame"],h.cancelAnimationFrame=h[o[e]+"CancelAnimationFrame"]||h[o[e]+"CancelRequestAnimationFrame"];h.requestAnimationFrame||(h.requestAnimationFrame=function(s){var n=new Date().getTime(),a=Math.max(0,16-(n-t)),l=h.setTimeout(function(){s(n+a)},a);return t=n+a,l}),h.cancelAnimationFrame||(h.cancelAnimationFrame=function(s){clearTimeout(s)})})(),r.extend(i.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,mirrorContainer:"body",refresh:function(){this.boxWidth=this.$element.outerWidth(),this.boxHeight=this.$element.outerHeight()+2*this.bleed,this.boxOffsetTop=this.$element.offset().top-this.bleed,this.boxOffsetLeft=this.$element.offset().left,this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var t,o=i.winHeight,e=i.docHeight,s=Math.min(this.boxOffsetTop,e-o),n=Math.max(this.boxOffsetTop+this.boxHeight-o,0),a=this.boxHeight+(s-n)*(1-this.speed)|0,l=(this.boxOffsetTop-s)*(1-this.speed)|0;a*this.aspectRatio>=this.boxWidth?(this.imageWidth=a*this.aspectRatio|0,this.imageHeight=a,this.offsetBaseTop=l,t=this.imageWidth-this.boxWidth,this.positionX=="left"?this.offsetLeft=0:this.positionX=="right"?this.offsetLeft=-t:isNaN(this.positionX)?this.offsetLeft=-t/2|0:this.offsetLeft=Math.max(this.positionX,-t)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,t=this.imageHeight-a,this.positionY=="top"?this.offsetBaseTop=l:this.positionY=="bottom"?this.offsetBaseTop=l-t:isNaN(this.positionY)?this.offsetBaseTop=l-t/2|0:this.offsetBaseTop=l+Math.max(this.positionY,-t))},render:function(){var t=i.scrollTop,o=i.scrollLeft,e=this.overScrollFix?i.overScroll:0,s=t+i.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=s?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-o,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d("+this.mirrorLeft+"px, "+(this.mirrorTop-e)+"px, 0px)",visibility:this.visibility,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d("+this.offsetLeft+"px, "+this.offsetTop+"px, 0px)",position:"absolute",height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),r.extend(i,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){function t(){if(l==h.pageYOffset)return h.requestAnimationFrame(t),!1;l=h.pageYOffset,o.render(),h.requestAnimationFrame(t)}if(!this.isReady){var o=this,e=r(p),s=r(h),n=function(){i.winHeight=s.height(),i.winWidth=s.width(),i.docHeight=e.height(),i.docWidth=e.width()},a=function(){var f=s.scrollTop(),c=i.docHeight-i.winHeight,u=i.docWidth-i.winWidth;i.scrollTop=Math.max(0,Math.min(c,f)),i.scrollLeft=Math.max(0,Math.min(u,s.scrollLeft())),i.overScroll=Math.max(f-c,Math.min(f,0))};s.on("resize.px.parallax load.px.parallax",function(){n(),o.refresh(),i.isFresh=!1,i.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){a(),i.requestRender()}),n(),a(),this.isReady=!0;var l=-1;t()}},configure:function(t){typeof t=="object"&&(delete t.refresh,delete t.render,r.extend(this.prototype,t))},refresh:function(){r.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),r.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;t.render(),t.isBusy=!1},destroy:function(t){var o,e=r(t).data("px.parallax");for(e.$mirror.remove(),o=0;o<this.sliders.length;o+=1)this.sliders[o]==e&&this.sliders.splice(o,1);r(t).data("px.parallax",!1),this.sliders.length===0&&(r(h).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,i.isSetup=!1)}});var m=r.fn.parallax;r.fn.parallax=function(t){return this.each(function(){var o=r(this),e=typeof t=="object"&&t;
5this==h||this==p||o.is("body")?i.configure(e):o.data("px.parallax")?typeof t=="object"&&r.extend(o.data("px.parallax"),e):(e=r.extend({},o.data(),e),o.data("px.parallax",new i(this,e))),typeof t=="string"&&(t=="destroy"?i.destroy(this):i[t]())})},r.fn.parallax.Constructor=i,r.fn.parallax.noConflict=function(){return r.fn.parallax=m,this},r(function(){r('[data-parallax="scroll"]').parallax()})})(jQuery,window,document);
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.