PageSourceSearch

https://www.gentside.de/modules/custom/websites_mod/dist/js/home-js.js

js gentside.de collected 2026-10-02 10:20:05 UTC 6,172 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsites_base=self.webpackChunkwebsites_base||[]).push([[2762,3271,3588,4035,4990],{4870(e,t,s){s.d(t,{default:()=>o});const n=[];class o{static add(e,t){n.push({qr:e,fn:t})}static one(e,t,s){document.querySelector(t).addEventListener(e,e=>(e.target.removeEventListener(e.type,s),s(e,e.target)))}static clickOnce(e,t){document.querySelector(e).addEventListener("click",t,{once:!0})}static addClick(e){if(0===n.length)return!1;if(e.target){let t=e.target,s=!1;const o=n=>!(!t.classList||!t.classList.contains(n.qr)||(s=n.fn(e,t),0));if(!n.some(o))for(;t.parentNode;)if(t=t.parentNode,n.some(o))return!1;return s}return!1}static attach(){document.body.addEventListener("click",e=>this.addClick(e))}}},1780(e,t,s){s.d(t,{default:()=>o});var n=s(7786);function o(){(0,n.default)("coreads","bind");const e=new ResizeObserver(e=>{const[t]=e;t.target.dataset.height<t.contentRect.height&&((0,n.default)("coreads","resizeObserver","trigger"),t.target.style.minHeight=`${t.contentRect.height}px`,t.target.dataset.height=t.contentRect.height)});[...document.querySelectorAll(".placeholder-ad--intext"),...document.querySelectorAll(".placeholder-ad--pave")].forEach(t=>{const{height:s}=t.getBoundingClientRect();t.dataset.height=s,e.observe(t)});const t=new IntersectionObserver(e=>{const[t]=e;[...document.querySelectorAll(".sticky-ad")].forEach(e=>{!0===t.isIntersecting?(e.classList.add("sticky-ad--large"),(0,n.default)("coreads","topBarObserver","visible")):(e.classList.remove("sticky-ad--large"),(0,n.default)("coreads","topBarObserver","hidden"))})},{threshold:0}),s=document.querySelectorAll(".sticky-ad"),o=document.querySelector(".categories-topbar");o&&s.length>0&&((0,n.default)("coreads","topBarObserver","trigger"),t.observe(o))}window.adsDisplayHelper={disableRefresh:()=>{},disableRefreshSlot:()=>{},disableSlot:()=>{}}},4049(e,t,s){s.d(t,{default:()=>o});var n=s(9010);class o{static instance=null;_element=null;_menu=null;_lastOpened=null;_lastPosition=0;_topOfDocument=null;_topOfColumn=null;_footer=null;_column=null;_hide=!1;constructor(){if(this._element=document.querySelector("#header"),null!==this._element){if(this._menu=this._element.querySelector(".layout-main.region-header"),this._topOfDocument=document.body.querySelector("#top-of-document"),"mobile"!==window.environmentHelper.getDevice()
1){if(this._element.addEventListener("mouseover",this._onMouseOver.bind(this)),this._element.addEventListener("mouseleave",this._onMouseLeave.bind(this)),this._column=document.body.querySelector("#sidebar"),this._footer=document.body.querySelector("#footer"),this._column){this._topOfColumn=this._column.querySelector("#top-of-column");const e=this._column.offsetHeight;this._column.style.maxHeight=`${e}px`,e<1500&&this._column.classList.add("short")}n.default.instance.addToObserverStack(this,this._topOfColumn),n.default.instance.addToObserverStack(this,this._footer)}this._element.addEventListener("click",this._resolveClick.bind(this)),n.default.instance.addToScrollStack(this),n.default.instance.addToObserverStack(this,this._topOfDocument),o.instance=this}}onObserve(e){switch(e.target){case this._topOfDocument:!0===e.isIntersecting&&(this._hide=!1,this._element.classList.remove("hide"));break;case this._topOfColumn:!0===e.isIntersecting?this._column.classList.remove("sticky"):this._column.classList.add("sticky");break;case this._footer:!0===e.isIntersecting&&this._column&&this._column.classList.remove("offset")}}onScroll(e){const t=window.scrollY;t>100&&t>this._lastPosition&&t?!1===this._hide&&(this._element.classList.add("hide"),this._column&&this._column.classList.remove("offset"),this._hide=!0):!0===this._hide&&(this._element.classList.remove("hide"),this._column&&this._column.classList.add("offset"),this._hide=!1),this._lastPosition=t}_onMouseLeave(e){null!==this._lastOpened&&(this._lastOpened.classList.remove("open-submenu"),this._lastOpened=null)}_onMouseOver(e){const t=e.target;if("A"!==t.tagName||!1===t.classList.contains("level-1"))return;const s=t.parentElement;this._lastOpened&&s!==this._lastOpened&&this._lastOpened.classList.remove("open-submenu"),!1!==t.classList.contains("submenu")&&(s.classList.add("open-submenu"),this._lastOpened=s)}_resolveClick(e){const t=e.target;switch(t.dataset.action){case"open":document.body.classList.add("no-scroll"),this._menu.classList.add("open");break;case"close":document.body.classList.remove("no-scroll"),this._menu.classList.remove("open");break;case"submenu":const e=t.parentElement;if("LI"!=e.tagName)return;e.classList.toggle("open-submenu")}}}},9010(e,t,s){s.r(t),s.d(t,{default:()=>n});class n{static instance=null;_observerStack=[];_scrollStack=[];_throttling=0;_iobserver=null;_observerMap=new Map;_scrollScheduled=!1;constructor(){window.addEventListener("scroll",this._onScroll.bind(this),{passive:!0}),this._iobserver=new IntersectionObserver(e=>{for(const t of e)(this._observerMap.get(t.target)||[]).forEach(e=>{e.instance.onObserve(t)})}),n.instance=this}addToScrollStack(e){"function"==typeof e.onScroll?-1===this._scrollStack.indexOf(e)?this._scrollStack.push(e):console.warn(`Cette entrée à déjà été ajoutée : ${e}`):console.warn(`Il n'existe pas de function 'onScroll' pour l'entrée : ${e}`)}addToObserverStack(e,t){if(!e||!t)return void console.warn(e?"'element' indéfini":"'entry' indéfini");if("function"!=typeof e.onObserve)return void console.warn(`Il n'existe pas de function 'onObserve' pour l'entrée : ${e}`);const s=this._observerMap.get(t)||[],n=s.find(t=>t.instance===e);if(void 0!==n)return void console.warn(`Cette entrée à déjà été ajoutée : ${n}`);0===s.length&&this._iobserver.observe(t);const o={instance:e,element:t};s.push(o),this._observerMap.set(t,s),this._observerStack.push(o)}_onScroll(e){this._scrollScheduled||(this._scrollScheduled=!0,window.requestAnimationFrame(()=>{this._scrollStack.forEach(t=>{t.onScroll(e)}),this._scrollScheduled=!1}))}}},9571(e,t,s){s.r(t);var n=s(9465),o=s.n(n),i=s(4870),r=s(4049),l=s(1780),c=s(9010);window.cherryCore=new c.default,new r.default,(0,l.default)(),null===o().getSessionStorage("from_hp")&&o().setSessionStorage("from_hp",!0),i.default.attach()}}]);

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.