PageSourceSearch

https://www.elitepartner.de/wp-content/themes/elitepartner-theme/assets/dist/js/theme.js?ver=2.2.5

js elitepartner.de collected 2026-10-01 11:56:02 UTC 8,715 bytes, 2 lines download raw bytes

1(function(){var e=class{target;tempPosition;constructor(e){this.target=e,this.tempPosition=0,document.addEventListener(`scroll`,this.handle,{passive:!0}),document.addEventListener(`touchmove`,this.handle,{passive:!0}),this.handle()}handle=()=>{let e=document.documentElement.scrollTop;switch(!0){case e===0:this.onTop();break;case e<this.tempPosition:this.scrollUp();break;case e>this.tempPosition:this.scrollDown();break}this.tempPosition=e};onTop(){this.target.classList.remove(`window--scroll-down`,`window--scroll-up`),this.target.classList.add(`window--on-top`)}scrollDown(){this.target.classList.remove(`window--on-top`,`window--scroll-up`),this.target.classList.add(`window--scroll-down`)}scrollUp(){this.target.classList.remove(`window--on-top`,`window--scroll-down`),this.target.classList.add(`window--scroll-up`)}},t=class{overlay;toggle;navigationDesktopMobile;navigationMobile;state;constructor(){this.navigationDesktopMobile=document.querySelector(`#transparent-header-navigation`),this.navigationMobile=document.querySelector(`#mobile-navigation`),this.overlay=document.querySelector(`#mobile-navigation-overlay`),this.toggle=document.querySelector(`#mobile-navigation-toggle`),this.state=`closed`,this.toggle&&this.overlay&&(this.toggle.addEventListener(`click`,this.toggleNavigation),this.overlay.addEventListener(`click`,this.toggleNavigation)),window.addEventListener(`resize`,this.updateAlly)}toggleNavigation=e=>{switch(e.preventDefault(),this.state){case`open`:this.closeNavigation();break;case`closed`:this.openNavigation();break}this.updateAlly()};closeNavigation(){document.body.classList.remove(`mobile-navigation--is-open`),document.body.classList.add(`mobile-navigation--is-closed`),this.state=`closed`}openNavigation(){document.body.classList.remove(`mobile-navigation--is-closed`),document.body.classList.add(`mobile-navigation--is-open`),this.state=`open`}updateAlly=()=>{this.navigationMobile&&(this.navigationMobile.inert=this.state===`closed`),this.navigationDesktopMobile&&(this.navigationDesktopMobile.inert=this.state===`closed`&&window.getComputedStyle(this.toggle).display!==`none`)}},n=class{constructor(e){this.buttonPrev=e.config.target.querySelector(`.button-prev`),this.buttonNext=e.config.target.querySelector(`.button-next`),this.buttonPrev&&this.buttonNext&&(this.buttonPrev.addEventListener(`click`,()=>e.prevItem()),this.buttonNext.addEventListener(`click`,()=>e.nextItem()))}updateNavigation(e,t){this.buttonPrev&&this.buttonNext&&(this.buttonPrev.disabled=!e,this.buttonNext.disabled=!t)}},r=class{constructor(e){this.slider=e,this.paginationContainer=this.slider.config.target.querySelector(`.scroll-slider-pagination`),this.paginationContainer!==null&&window.addEventListener(`resize`,()=>this.handleResize(),{passive:!0})}renderPagination(){if(this.paginationContainer===null)return;this.paginationContainer.innerHTML=``,this.numBullets=this.calculateTotalBullets();let e;for(let t=0;t<this.numBullets;t++)e=document.createElement(`button`),e.classList.add(`bullet`),e.setAttribute(`aria-label`,`Slide ${t+1}`),e.addEventListener(`click`,()=>{this.slider.currentItem=t,this.slider.scrollToCurrentItem()}),this.paginationContainer.appendChild(e);this.paginationItems=this.paginationContainer.querySelectorAll(`.bullet`)}calculateTotalBullets(){let e=this.slider.totalItems-(this.slider.itemsPerView-1);return this.slider.config.itemsPerView===-1?e-Math.floor(this.slider.wrapper.offsetWidth/this.slider.itemSize):e}updatePagination(e){var t;(t=this.paginationItems)==null||t.forEach((t,n)=>{n===e?t.classList.add(`active`):t.classList.remove(`active`)})}handleResize(){if(this.paginationContainer===null)return;let e=this.calculateTotalBullets();this.numBullets!==e&&(this.numBullets=e,this.renderPagination())}},i=class{constructor(e){this.slider=e,this.breakpointKeys=Object.keys(this.slider.config.breakpoints).sort((e,t)=>parseInt(e,10)-parseInt(t,10)),window.addEventListener(`resize`,()=>this.handleBreakpoints(),{passive:!0}),this.handleBreakpoints()}getCurrentBreakpoint(){let e=window.innerWidth,t=``;for(let n=this.breakpointKeys.length-1;n>=0;--n)if(parseInt(this.breakpointKeys[n],10)<=e){t=this.breakpointKeys[n];break}return this.slider.config.breakpoints?this.slider.config.breakpoints[t]:void 0}handleBreakpoints(){let e=this.getCurrentBreakpoint(),t=Math.abs(e===void 0?this.slider.config.itemsPerVie
1w:e.itemsPerView);this.slider.itemsPerView!==t&&(this.slider.itemsPerView=t,this.slider.pagination.renderPagination())}},a=class{constructor(e){this.config=e,this.overflow=!1,this.currentItem=0,this.isScrolling=0,this.itemsPerView=Math.abs(this.config.itemsPerView),this.container=this.config.target.querySelector(`.scroll-slider`),this.wrapper=this.container.querySelector(`.scroll-slider-wrapper`),this.items=this.container.querySelectorAll(`.scroll-slider-wrapper > *`),this.totalItems=this.items.length,this.itemSize=this.items[0].offsetWidth+this.getRowGap(),this.scrollPaddingInlineStart=this.getScrollPaddingInlineStart(),this.navigation=new n(this),this.pagination=new r(this),this.pagination.renderPagination(),this.config.loop&&this.navigation.updateNavigation(!0,!0),this.config.breakpoints&&new i(this),this.wrapper.addEventListener(`scroll`,()=>this.handleScroll(),{passive:!0}),window.addEventListener(`resize`,()=>this.handleResize(),{passive:!0}),this.handleResize()}getRowGap(){let e=getComputedStyle(this.wrapper).rowGap;return e===`normal`?0:parseInt(e)}getScrollPaddingInlineStart(){let e=getComputedStyle(this.wrapper).scrollPaddingInlineStart;return e===`auto`?0:parseInt(e)}scrollToCurrentItem(e=`smooth`){this.pagination.updatePagination(this.currentItem),this.wrapper.scrollTo({left:this.items[this.currentItem].offsetLeft-this.scrollPaddingInlineStart,top:0,behavior:e})}prevItem(){this.currentItem--,this.currentItem<0&&(this.currentItem=this.config.loop?this.totalItems-1:0),this.scrollToCurrentItem()}nextItem(){this.currentItem++;let e=this.totalItems-(this.itemsPerView-1)-1;(this.currentItem>e||this.isScrollEnd())&&(this.currentItem=this.config.loop?0:e),this.scrollToCurrentItem()}handleScroll(){if(!this.config.loop){let e=!this.isScrollStart(),t=!this.isScrollEnd();this.navigation.updateNavigation(e,t)}window.clearTimeout(this.isScrolling),this.isScrolling=window.setTimeout(()=>{this.currentItem=this.calculateCurrentItem(),this.pagination.updatePagination(this.currentItem)},66)}isScrollStart(){return this.wrapper.scrollLeft===0}isScrollEnd(){return Math.round(this.wrapper.scrollLeft)>=Math.round(this.wrapper.scrollWidth-this.wrapper.clientWidth)}calculateCurrentItem(){return Math.round(this.wrapper.scrollLeft/this.itemSize)}handleResize(){this.overflow=this.wrapper.scrollWidth>this.wrapper.clientWidth,this.itemSize=this.items[0].offsetWidth+this.getRowGap(),this.scrollPaddingInlineStart=this.getScrollPaddingInlineStart(),this.overflow?this.container.classList.add(`scroll-enabled`):(this.container.classList.remove(`scroll-enabled`),this.currentItem=0,this.scrollToCurrentItem(`auto`)),this.handleScroll()}},o=class extends a{constructor(e){super({target:e,itemsPerView:-1}),this.overflow&&this.items.forEach((e,t)=>{(e.classList.contains(`current-menu-item`)||e.classList.contains(`current-menu-parent`))&&(this.currentItem=t,this.scrollToCurrentItem(`auto`))})}},s=class{header;fixedNavigation;constructor(){this.header=document.querySelector(`.wp-block-fluid-header`),this.fixedNavigation=document.querySelector(`#sticky-header`),this.header&&this.fixedNavigation&&(window.addEventListener(`scroll`,()=>this.onScroll(),{passive:!0}),this.onScroll())}onScroll(){let e=this.header.getBoundingClientRect();e.height+e.top>0?(this.fixedNavigation.classList.remove(`visible`),this.fixedNavigation.setAttribute(`inert`,`true`)):(this.fixedNavigation.classList.add(`visible`),this.fixedNavigation.removeAttribute(`inert`))}},c=class{constructor(){let e=document.querySelectorAll(`.wp-block-table`);if(e.length===0)return;let t=new ResizeObserver(this.onTableResize);e.forEach(e=>{t.observe(e)})}onTableResize=e=>{requestAnimationFrame(()=>{e.forEach(e=>{let t=e.target;t.scrollWidth>t.clientWidth?t.classList.add(`scroll-enabled`):t.classList.remove(`scroll-enabled`)})})}};new s,new t,new e(document.body),new c;var l=document.querySelectorAll(`.current-menu-item .psg-slider, .current-menu-parent .psg-slider`);l.forEach(e=>{new o(e)}),l=document.querySelectorAll(`.magazine-slider, .success-stories.psg-slider, .studies-slider`),l.forEach(e=>
1{new a({target:e,loop:!0,itemsPerView:1})}),l=document.querySelectorAll(`.single-portraits.psg-slider`),l.forEach(e=>{new a({target:e,loop:!0,itemsPerView:1,breakpoints:{600:{itemsPerView:2},768:{itemsPerView:3}}})});})();
2//# sourceMappingURL=theme.js.map

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.