PageSourceSearch

https://smartgyro.com/hubfs/hub_generated/template_assets/1/720295…/1789563482315/template_pwr-parallax.min.js

js smartgyro.com collected 2026-10-04 13:25:23 UTC 2,108 bytes, 2 lines download raw bytes

1function initParallax(){function getOffset(el){var result=pwr.vanilla.getAbsoluteOffset(el);return result.left+=window.scrollX,result.top+=window.scrollY,result}var isMobileParallaxOff=null!=document.querySelector(".pwr--mobile-parallax-off");document.querySelectorAll(".vanilla .pwr-parallax").forEach(e=>{var parImg=e,parImgContainer=parImg.parentNode;function calcParallax(){if(!isMobileParallaxOff||isMobileParallaxOff&&pwr.ui.getWindowWidth()>=576){const SPEED=1;var parImgContainerStart=getOffset(parImgContainer).top,windowHeight=document.documentElement.clientHeight,scrollPos=window.scrollY,parImgContainerHeight=parImgContainer.clientHeight,pos2Come=scrollPos+windowHeight;if(pos2Come>parImgContainerStart&&scrollPos<parImgContainerStart+parImgContainerHeight)var val2Set=(pos2Come-parImgContainerStart)*SPEED/(windowHeight+parImgContainerHeight)*100+(50-50*SPEED);var imgHeight=function(element){return element.scrollHeight}(parImg);if(parImg.classList.contains("pwr-video-background-plyr")){var offset=getOffset(parImg);imgHeight=offset.bottom-offset.top,parImg.style.height=1.3*parImgContainerHeight+"px"}var scale2Set=1,diffHeight=1.3*function(element){return element.offsetHeight}(parImgContainer)-imgHeight;diffHeight>=0&&(scale2Set=1+diffHeight/imgHeight),parImg.style.top=val2Set+"%",parImg.style.transform="translate(-50%, -"+val2Set+"%) scale("+scale2Set+")",parImg.style.webkitTransform="translate(-50%, -"+val2Set+"%) scale("+scale2Set+")",parImg.closest(".page-center")&&(parImg.closest(".page-center").style.overflow="hidden")}else parImg.style.top="",parImg.style.transform="translate(-50%, 0)",parImg.style.webkitTransform="translate(-50%, 0)"}window.addEventListener("scroll",calcParallax),calcParallax(),parImg.addEventListener("lazyloaded",calcParallax),new ResizeObserver(calcParallax).observe(parImgContainer)})}"loading"!=document.readyState?initParallax():document.addEventListener("DOMContentLoaded",initParallax);
2//# sourceURL=https://25853954.fs1.hubspotusercontent-eu1.net/hubfs/25853954/hub_generated/template_assets/1/72029591771/1789563482315/template_pwr-parallax.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.