PageSourceSearch

https://www.vorharz.net/res/js/bootstrap-carousel-parallax/parallax.min.js?v=v5.52.00

js vorharz.net collected 2026-10-02 16:40:28 UTC 1,482 bytes, 1 lines download raw bytes

1function initCarouselParallax(id){var scrollbarWidth=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--scrollbar-width",scrollbarWidth+"px");var gallery=document.getElementById(id);var inner=gallery.querySelector(".carousel-inner");var images=inner.querySelectorAll("img");var firstItem=inner.firstElementChild;window.addEventListener("scroll",function(event){updateCarouselParallax(gallery,images)},false);imagesLoaded(firstItem,function(){updateCarouselParallax(gallery,images)})}function updateCarouselParallax(gallery,images){var imgHeight=gallery.querySelector(".active img").clientHeight;if(isScrolledIntoView(gallery)){transformingY(images,calculateTransform(gallery,imgHeight))}}function calculateTransform(elem,imgHeight){var vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);var parallaxSrollY=parseInt(elem.getBoundingClientRect().top-vh,10);var parallaxViewport=parseInt(elem.clientHeight+vh,10);var transformPercent=-parallaxSrollY/parallaxViewport;var PixelsToTransform=parseInt(imgHeight-elem.offsetHeight,10);return parseInt(PixelsToTransform*transformPercent,10)}function transformingY(elements,value){for(var i=0;i<elements.length;i++){elements[i].style.transform="translateY(-"+value+"px)"}}function isScrolledIntoView(elem){var elemHeight=elem.clientHeight;var elemTop=elem.getBoundingClientRect().top;var elemBottom=elemTop+elemHeight;return elemTop<window.innerHeight&&elemBottom>=0}

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.