1/* Source and licensing information for the line(s) below can be found at https://www.justformen.com/sites/g/files/sgirzt191/files/cohesion/scripts/parallax_scrolling/jquery.paroller.js. */ 2(function(factory){'use strict';if(typeof module==='object'&&typeof module.exports==='object'){module.exports=factory(require('jquery'))}else factory(jQuery)})(function($){'use strict';var setDirection={bgVertical:function(elem,bgOffset,bgStart){return elem.css({backgroundPositionY:'calc('+ -bgOffset+'px + '+bgStart+')'})},bgHorizontal:function(elem,bgOffset,bgStart){return elem.css({backgroundPositionX:'calc('+ -bgOffset+'px + '+bgStart+')'})},vertical:function(elem,elemOffset,oldTransform){(oldTransform==='none'?oldTransform='':true);return elem.css({'-webkit-transform':'translateY('+elemOffset+'px)'+oldTransform,'-moz-transform':'translateY('+elemOffset+'px)'+oldTransform,transform:'translateY('+elemOffset+'px)'+oldTransform,transition:'transform linear','will-change':'transform'})},horizontal:function(elem,elemOffset,oldTransform){(oldTransform==='none'?oldTransform='':true);return elem.css({'-webkit-transform':'translateX('+elemOffset+'px)'+oldTransform,'-moz-transform':'translateX('+elemOffset+'px)'+oldTransform,transform:'translateX('+elemOffset+'px)'+oldTransform,transition:'transform linear','will-change':'transform'})}};$.fn.paroller=function(options){var windowHeight=$(window).height(),documentHeight=$(document).height();options=$.extend({factor:0,type:'background',direction:'vertical',bgstart:0},options);return this.each(function(){var working=false,$this=$(this),offset=$this.offset().top,height=$this.outerHeight(),dataFactor=$this.data('paroller-factor'),dataType=$this.data('paroller-type'),dataDirection=$this.data('paroller-direction'),dataBgStart=$this.data('paroller-bg-start'),factor=dataFactor?dataFactor:options.factor,type=dataType?dataType:options.type,direction=dataDirection?dataDirection:options.direction,bgStart=dataBgStart?dataBgStart:options.bgstart,bgOffset=Math.round(offset*factor),transform=Math.round((offset-(windowHeight/2)+height)*factor),oldTransform=$this.css('transform');if(type==='background'){if(typeof bgStart==='number')bgStart=bgStart+'px';if(!bgStart.length)bgStart='0';if($.isNumeric(bgStart.slice(-1)))bgStart=bgStart+'px';if(direction==='vertical'){setDirection.bgVertical($this,bgOffset,bgStart)}else if(direction==='horizontal')setDirection.bgHorizontal($this,bgOffset,bgStart)}else if(type==='foreground')if(direction==='vertical'){setDirection.vertical($this,transform,oldTransform)}else if(direction==='horizontal')setDirection.horizontal($this,transform,oldTransform);$(window).on('scroll.paroller',onScroll).trigger('scroll') 3function scrollAction(){working=false} 4function onScroll(){if(!working){var scrolling=$(this).scrollTop();documentHeight=$(document).height();bgOffset=Math.round((offset-scrolling)*factor);transform=Math.round(((offset-(windowHeight/2)+height)-scrolling)*factor);if(type==='background'){if(direction==='vertical'){setDirection.bgVertical($this,bgOffset,bgStart)}else if(direction==='horizontal')setDirection.bgHorizontal($this,bgOffset,bgStart)}else if((type==='foreground')&&(scrolling<=documentHeight))if(direction==='vertical'){setDirection.vertical($this,transform,oldTransform)}else if(direction==='horizontal')setDirection.horizontal($this,transform,oldTransform);window.requestAnimationFrame(scrollAction);working=true}}})}}) 5/* Source and licensing information for the above line(s) can be found at https://www.justformen.com/sites/g/files/sgirzt191/files/cohesion/scripts/parallax_scrolling/jquery.paroller.js. */
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.