PageSourceSearch

https://www.reitimwinkl.de/_assets/c773e2f4a6cea59566a5430c2759ac0…/365/Molecules/ItemImage.js?1790252336

js reitimwinkl.de collected 2026-09-24 21:46:03 UTC 5,315 bytes, 1 lines download raw bytes

1(()=>{var t={20083:(t,e,i)=>{var n=i(58611);t.exports=function(){const t=t=>{switch(t.type){case"viewport":h.viewport||(h.viewport=!0,e());break;case"hover":i(t);break;case"click":o(t)}},e=()=>{const t=()=>{const t=window.pageYOffset,e=window.innerHeight;for(let i of u.viewport){const o=i.node.offsetHeight,a=n.offsetTop(i.node);t+e>=a&&t<a+o&&(i.rendered?l(i):s(i))}};window.addEventListener("scroll",t),window.addEventListener("resize",t),n.documentReady(t)},i=t=>{t.node.addEventListener("mouseover",(()=>{t.rendered?l(t):s(t)}))},o=t=>{t.node.addEventListener("click",(()=>{t.rendered?l(t):s(t)}))},s=t=>{t.rendered=!0,console.log("imx_init: firing init",t.node),t.node.dispatchEvent(r),"function"==typeof t.initCallback&&t.initCallback(),t.node.setAttribute("data-imx_init","init")},l=t=>{t.node.dispatchEvent(c),"function"==typeof t.updateCallback&&t.updateCallback()},a=t=>{if("function"==typeof window.Event)return new Event(t);{const e=document.createEvent("Event");return e.initEvent(t,!1,!0),e}},r=a("imx_init"),c=a("imx_update"),d=["viewport","hover","click"],h={viewport:!1},u={};return{addListener:e=>{const i=n.extendObject(e,{type:"viewport",node:null,initCallback:null,updateCallback:null});return-1!==d.indexOf(i.type)&&((e=>{"object"!=typeof u[e.type]&&(u[e.type]=[]),e.rendered=!1,t(e),u[e.type].push(e)})(i),i)}}}()},58611:t=>{t.exports={offsetTop:function(t){var e=document.querySelector("body");return t.getBoundingClientRect().top-e.getBoundingClientRect().top},offsetLeft:function(t){var e=document.querySelector("body");return t.getBoundingClientRect().left-e.getBoundingClientRect().left},scrollTo:function(t,e,i){var n=function(){return{x:window.pageXOffset,y:window.pageYOffset}},o=n(),s={x:(t-o.x)/(i/15),y:(e-o.y)/(i/15)},l=setInterval((function(){!function(){var i=n(),o={x:!1,y:!1};return s.x<0?i.x+s.x<=t&&(o.x=!0):i.x+s.x>=t&&(o.x=!0),s.y<0?i.y+s.y<=e&&(o.y=!0):i.y+s.y>=e&&(o.y=!0),!(!o.x||!o.y)}()?window.scrollBy(s.x,s.y):(clearInterval(l),window.scrollTo(t,e))}),15)},scrollElementTo:function(t,e,i,n){var o=function(){return{x:n.scrollLeft,y:n.scrollTop}},s=o(),l=(t-s.x)/(i/15),a=(e-s.y)/(i/15),r=setInterval((function(){!function(){var i=o(),n={x:!1,y:!1};return l<0?i.x+l<=t&&(n.x=!0):i.x+l>=t&&(n.x=!0),a<0?i.y+a<=e&&(n.y=!0):i.y+a>=e&&(n.y=!0),!(!n.x||!n.y)}()?(n.scrollLeft+=l,n.scrollTop+=a):(clearInterval(r),n.scrollLeft=t,n.scrollTop+=e)}),15)},accessDataset:function(t,e){return t.dataset?t.dataset[e]:t.getAttribute("data-"+e)},extendObject:function(t,e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i]);return t},documentReady:function(t){let e=!1;"undefined"!=typeof less&&"object"==typeof less.pageLoadFinished&&(e=!0);var i=function(){e?less.pageLoadFinished.then((()=>{setTimeout(t)})):setTimeout(t)},n=function(){document.removeEventListener("DOMContentLoaded",n),window.removeEventListener("load",n),i()};"complete"===document.readyState?i():(document.addEventListener("DOMContentLoaded",n),window.addEventListener("load",n))}}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,i),s.exports}(()=>{"use strict";const t=i(58611);class e{constructor(t){this.setClassProperties(),this.itemNode=t,this.imageNode=t.querySelector("img"),this.articleNode=this.itemNode.parentElement.parentElement.parentElement,this.textNode=this.articleNode.querySelector(".m365__item__text"),this.update(),this.check()}setClassProperties(){this.state={final:!1,idle:!1},this.totalDistance=100,this.mediaWatch=window.matchMedia("(min-width: 551px)")}update(){this.textNode.style.paddingTop=null,this.scrollDistance=this.itemNode.offsetHeight,this.scrollEnd=t.offsetTop(this.articleNode),this.scrollStart=this.scrollEnd-this.scrollDistance;const e=window.innerHeight-this.scrollDistance-(window.innerHeight-this.scrollDistance)/2,i=this.scrollDistance>e?this.scrollDistance-e:0;this.scrollEnd+=i,this.scrollStart+=i,this.textNode.style.paddingTop=i+"px",this.mediaWatch.matches?this.modValue={item:.9,image:.5}:this.modValue={item:.833,image:.5},this.articleNode.classList.contains("m365__item--left")?this.modValue.item*=-1:this.modValue.image*=-1}check(t){if(t>=this.scrollStart&&t<=this.scrollEnd){const e=this.getActualDistance(t,this.totalDistance);this.itemNode.style.left=e*this.modValue.item+"%",this.imageNode.style.left=e*this.modValue.image+"%",this.state.idle=!1,this.state.final=!1}else t<this.scrollStart&&!this.state.idle?(this.itemNode.style.left=null,this.imageNode.style.left=null,this.state.idle=!0,this.state.final=!1):t>this.scrollEnd&&!this.state.final&&(this.itemNode.style.left=this.totalDistance*this.modValue.item+"%",this.imageNode.style.left=this.totalDistance*this.modValue.image+"%",this.state.idle=!1,this.state.final=!0)}getActualDistance(t,e){const i=t-this.scrollStart;return(Math.cos(Math.PI+Math.PI/this.scrollDistance*i)+1)/2*e}}const n=i(58611),o=i(20083);(()=>{const t=t=>{o.addListener({node:t,initCallback:()=>{(t=>{i.push(new e(t)),1===i.length&&(window.addEventListener("resize",(()=>{const t=window.scrollY;
1for(let e of i)e.update(),e.check(t)})),window.addEventListener("scroll",(()=>{const t=window.scrollY;for(let e of i)e.check(t)})))})(t)}})},i=[];n.documentReady((()=>{const e=document.getElementsByClassName("m365__item__image__fig");for(let i of e)t(i)}))})()})()})();

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.