PageSourceSearch

https://lillibros.com/cdn/shop/t/33/assets/parallax.js?v=176613159166806793511740424098

js lillibros.com collected 2026-09-25 14:55:59 UTC 2,254 bytes, 2 lines download raw bytes

1var windowHeight=window.innerHeight,windowHeightExtra=0,safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),mobile=/Mobi/.test(navigator.userAgent);safari&&!mobile&&(windowHeightExtra=window.outerHeight-window.innerHeight),mobile&&(windowHeight=window.screen.availHeight,windowHeightExtra=(window.screen.availHeight-window.innerHeight)/2);var positionParallax=function(e,t,a,i){var n=e.top/t-windowHeightExtra;a[i].style.top=n+"px"},animateParallax=function(e,t){for(var a=0;e.length>a;a++){var i=e[a].parentElement.parentElement.getBoundingClientRect();0<=i.top+i.height&&i.top<=windowHeight&&positionParallax(i,t,e,a)}},calculateHeight=function(e,t){for(var a=0;e.length>a;a++){var i=e[a].parentElement.parentElement.getBoundingClientRect(),n=e[a].parentElement.parentElement.offsetTop,o=(windowHeight-i.height)/2,r=windowHeight>i.height+n?i.height+n-n/t:i.height+2*(o-o/t);e[a].style.height=r+2*windowHeightExtra+"px",positionParallax(i,t,e,a)}},universalParallax=function(){this.init=function(i){i===void 0&&(i={}),i={speed:i.speed!==void 0?i.speed:1.5,className:i.className!==void 0?i.className:"yv-parallax"};for(var n=document.getElementsByClassName(i.className),e=0;n.length>e;e++){var t=document.createElement("div");n[e].parentNode.insertBefore(t,n[e]),t.appendChild(n[e]);var a=n[e].parentElement;a.className+="yv-image-banner-parallax-container",window.getComputedStyle(a.parentElement,null).getPropertyValue("position")!=="relative"&&(a.parentElement.style.position="relative");var o=n[e].dataset.imageSrc;n[e].dataset.media=="image"&&(n[e].style.position="fixed"),o!==void 0&&(n[e].style.backgroundImage="url("+o+")",n[e].classList.length===1&&n[e].classList[0]==="yv-parallax"&&(n[e].style.backgroundRepeat="no-repeat",n[e].style.backgroundPosition="center",n[e].style.backgroundSize="cover"))}document.addEventListener("readystatechange",function(e2){var t2,a2;e2.target.readyState==="complete"&&(t2=n,(a2=i.speed)<1&&(a2=1),calculateHeight(t2,a2),mobile||window.addEventListener("resize",function(){windowHeight=window.innerHeight,calculateHeight(t2,a2)}),window.addEventListener("scroll",function(){animateParallax(t2,a2)}))})}};
2//# sourceMappingURL=/cdn/shop/t/33/assets/parallax.js.map?v=176613159166806793511740424098

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.