PageSourceSearch

https://www.swissperform.ch/wp-content/cache/min/1/wp-content/them…/Schmucki_child/js/script.js?ver=1790765973

js swissperform.ch collected 2026-10-02 10:26:11 UTC 2,153 bytes, 11 lines download raw bytes

1jQuery(document).ready(function($){$.fn.isInViewport=function(){var elementTop=$(this).offset().top;var elementBottom=elementTop+$(this).outerHeight();var viewportTop=$(window).scrollTop();var viewportBottom=viewportTop+$(window).height();return elementBottom>viewportTop&&elementTop<viewportBottom};setTimeout(function(){inViewport()},500);$(window).on('resize scroll',function(){inViewport()});function inViewport(){$('.vc_row').each(function(){if($(this).isInViewport()){$(this).addClass('visible')}})}
2var lastScrollTop=0;$(window).on('scroll',function(){toScroll=$(document).height()-$(window).height();if($(this).scrollTop()>toScroll){if(!$('body').hasClass('header-fixed')){$('body').addClass('header-fixed')}}else{var st=$(this).scrollTop();if(st<lastScrollTop){if(!$('body').hasClass('header-fixed')){$('body').addClass('header-fixed')}}else{$('body').removeClass('header-fixed')}
3lastScrollTop=st;if($(this).scrollTop()<=0){$('body').removeClass('header-fixed')}}
4var scrollPos=$(document).scrollTop();if(scrollPos>1){$('body').addClass('page-scrolled')}else{$('body').removeClass('page-scrolled')}});$(document).on('click','a.anchor-link',function(e){e.preventDefault();var position=$($(this).attr('href')).offset().top;$('body, html').animate({scrollTop:position},1000)});if(location.hash){setTimeout(function(){var id=$(location.hash);$('html,body').animate({scrollTop:$(id).offset().top-20},650,'linear')},500)}
5if(!Modernizr.objectfit){function showpanel(){var $container=$('.picture_container--cover'),imgUrl=$container.find('img').prop('src');if(imgUrl){$container.css('background','url('+imgUrl+') no-repeat center center')}}
6setTimeout(showpanel,500)}
7function replaceTextOnPage(from,to){getAllTextNodes().forEach(function(node){node.nodeValue=node.nodeValue.replace(new RegExp(quote(from),'g'),to)});function getAllTextNodes(){var result=[];(function scanSubTree(node){if(node.childNodes.length)
8for(var i=0;i<node.childNodes.length;i++)
9scanSubTree(node.childNodes[i]);else if(node.nodeType==Node.TEXT_NODE)
10result.push(node)})(document);return result}
11function quote(str){return(str+'').replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}}})

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.