PageSourceSearch

https://www.informatikwerk.de/wp-content/cache/min/1/wp-content/themes/wtv-theme/wtv-script.js?ver=1788233420

js informatikwerk.de collected 2026-09-24 13:35:21 UTC 3,302 bytes, 13 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const scrollToTopButton=document.getElementById("scrolltotop");if(scrollToTopButton){scrollToTopButton.addEventListener("click",function(){window.scrollTo({top:0,behavior:"smooth"})})}else{console.error('Element with ID "scrolltotop" not found.')}});jQuery(document).ready(function($){let lastScrollTop=$(window).scrollTop();let scrollThreshold=150;let scrollDistance=0;const header=$('.header');$(window).on('scroll',function(){const currentScroll=$(this).scrollTop();const scrollDifference=currentScroll-lastScrollTop;if(scrollDifference>0){scrollDistance+=scrollDifference;if(scrollDistance>scrollThreshold){header.addClass('hide-header')}}else{scrollDistance=0;header.removeClass('hide-header')}
2lastScrollTop=currentScroll})});document.addEventListener('DOMContentLoaded',function(){const btn=document.querySelector('#iconUp');if(btn){window.addEventListener('scroll',function(){if(window.scrollY>100){btn.style.display='block'}else{btn.style.display='none'}});btn.addEventListener('click',function(){window.scrollTo({top:0,behavior:'smooth'})})}
3const telButton=document.getElementById('kontakt-fahne-tel');const telSlide=document.getElementById('kontakt-slide-tel');const mailButton=document.getElementById('kontakt-fahne-mail');const mailSlide=document.getElementById('kontakt-slide-mail');function toggleSlide(slide,button){if(!slide||!button){return}
4const isOpen=slide.classList.contains('active');if(isOpen){slide.classList.remove('active');button.classList.remove('active')}else{slide.classList.add('active');button.classList.add('active')}}
5if(telButton&&telSlide){telButton.addEventListener('click',function(event){event.preventDefault();event.stopPropagation();toggleSlide(telSlide,telButton)})}
6if(mailButton&&mailSlide){mailButton.addEventListener('click',function(event){event.preventDefault();event.stopPropagation();toggleSlide(mailSlide,mailButton)})}
7document.addEventListener('click',function(event){if(telSlide&&telButton&&telSlide.classList.contains('active')&&!telSlide.contains(event.target)&&!telButton.contains(event.target)){telSlide.classList.remove('active');telButton.classList.remove('active')}
8if(mailSlide&&mailButton&&mailSlide.classList.contains('active')&&!mailSlide.contains(event.target)&&!mailButton.contains(event.target)){mailSlide.classList.remove('active');mailButton.classList.remove('active')}})});(function(){'use strict';function setHeroMargin(){const header=document.querySelector('.header');const heroContainer=document.querySelector('.hero-con');if(!header||!heroContainer){return}
9const headerHeight=header.offsetHeight;heroContainer.style.marginTop=headerHeight+'px'}
10window.addEventListener('load',setHeroMargin);window.addEventListener('resize',function(){setHeroMargin()});if(typeof jQuery!=='undefined'){jQuery(window).on('elementor/frontend/init',function(){setHeroMargin()})}
11const observer=new MutationObserver(function(){setHeroMargin()});function initObserver(){const header=document.querySelector('.header');if(!header){return}
12observer.observe(header,{attributes:!0,attributeFilter:['style','class'],subtree:!0})}
13if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',function(){initObserver();setHeroMargin()})}else{initObserver();setHeroMargin()}})()

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.