1function resizeParallaxContainer(parallaxItem){if(parallaxItem!==undefined){var parallaxContainer=parallaxItem.parentNode;var parallaxContent=parallaxItem.children[0];var contentHeight=parallaxContent.offsetHeight;var containerHeightPercentage=parallaxContainer.dataset.heightPercentage/100||0.75;var containerHeight=contentHeight*containerHeightPercentage;if(parallaxItem.offsetParent!=null){if(parallaxContainer.classList.contains('dynamic-height')&&(parallaxContainer.style.height!==''||parallaxContainer.style.height!==undefined)){parallaxContainer.style.height=containerHeight+'px';}}}} 2function updateParallax(parallaxItem){if(parallaxItem!==undefined){var parallaxContainer=parallaxItem.parentNode;var parallaxContent=parallaxItem.children[0];var contentHeight=parallaxContent.offsetHeight;var containerHeightPercentage=parallaxContainer.dataset.heightPercentage/100||0.75;var containerHeight=contentHeight*containerHeightPercentage;var parallaxDist=contentHeight-containerHeight;var top=parallaxItem.getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop;var bottom=top+containerHeight;var scrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;var windowHeight=window.innerHeight;var windowBottom=scrollTop+windowHeight;var percentScrolled;if(windowHeight>=containerHeight*2){percentScrolled=(windowBottom-bottom)/(windowHeight-containerHeight);}else{percentScrolled=(windowBottom-top)/(windowHeight+containerHeight);} 3var translateYValue=parallaxDist*percentScrolled;if(bottom>scrollTop&&top<windowBottom){parallaxContent.style.transform='translate3D(-50%, '+translateYValue+'px, 0)';}}} 4document.addEventListener('DOMContentLoaded',function(){'use strict';var parallaxItems=Array.prototype.slice.call(document.querySelectorAll('.parallax'));document.body.classList.add('parallax-js');parallaxItems.forEach(function(parallaxItem){var parallaxContainer=parallaxItem.parentNode;var parallaxContent=parallaxItem.children[0];if(parallaxContainer.style.height===''||parallaxContainer.style.height===undefined){parallaxContainer.classList.add('dynamic-height');} 5if(parallaxContent.tagName==='IMG'){if(parallaxContent.complete){resizeParallaxContainer(parallaxItem);updateParallax(parallaxItem);parallaxContent.style.opacity=1;}else{parallaxContent.addEventListener('load',function(){resizeParallaxContainer(parallaxItem);updateParallax(parallaxItem);parallaxContent.style.opacity=1;},false);}} 6if(parallaxContent.tagName==='VIDEO'){if(parallaxContent.readyState>=2){resizeParallaxContainer(parallaxItem);updateParallax(parallaxItem);parallaxContent.style.opacity=1;}else{parallaxContent.addEventListener('loadeddata',function(){resizeParallaxContainer(parallaxItem);updateParallax(parallaxItem);parallaxContent.style.opacity=1;},false);}}});window.addEventListener('scroll',function(){window.requestAnimationFrame(function(){parallaxItems.forEach(function(parallaxItem){updateParallax(parallaxItem);});});},false);window.addEventListener('resize',function(){window.requestAnimationFrame(function(){parallaxItems.forEach(function(parallaxItem){resizeParallaxContainer(parallaxItem);updateParallax(parallaxItem);});});},false);});
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.