PageSourceSearch

https://wgt.jetzt/wp-content/cache/autoptimize/js/autoptimize_single_5f93712d6ac79125c8ca2ffd39739d17.js

js wgt.jetzt collected 2026-10-02 23:57:12 UTC 12,989 bytes, 26 lines download raw bytes

1$(document).ready(function(){if($(window).width()<720){const options={linkSelector:'a[href^="'+
2window.location.origin+'"]:not([data-no-swup]):not([target="_blank"]), a[href^="/"]:not([data-no-swup]):not([target="_blank"]), a[href^="#"]:not([data-no-swup]):not([target="_blank"])'};const swup=new Swup(options);}
3loadScripts();document.addEventListener('swup:contentReplaced',(event)=>{loadScripts();var bLazy=new Blazy();bLazy.revalidate();});var calendar=[];function loadScripts(){$(window).scrollTop(0);$('.open-cal').click(function(){$('#'+$(this).data('cal')).fadeIn();$('body').addClass('noscroll');})
4$('.cal-popup-wrapper').click(function(){$(this).fadeOut();$('body').removeClass('noscroll');})
5$('.close-cals').click(function(){$('.cal-popup-wrapper').each(function(){$(this).fadeOut();})
6$('body').removeClass('noscroll');})
7$(document).keyup(function(e){if(e.key==="Escape"){$('.cal-popup-wrapper').each(function(){$(this).fadeOut();})
8$('body').removeClass('noscroll');}})
9var bLazy=new Blazy();$("#mapView").click(function(){bLazy.revalidate();});$(document).on('click touchstart',function(){bLazy.revalidate();});$("#headerMenuOverlayClose").click(function(){$("#headerMenuOverlay").fadeOut();$("body").removeClass("noscroll");});$("#headerMenuOverlayOpen").click(function(){$("#headerMenuOverlay").fadeIn();$("body").addClass("noscroll");});$(".form-open-button").click(function(){var formId=$(this).data("form");$("body").addClass("noscroll");$("#form-"+formId).fadeIn();});$(".form-close-button").click(function(){$(this).parents(".form-popup").fadeOut();$("body").removeClass("noscroll");});$("a").each(function(){var a=new RegExp("/"+window.location.host+"/");if(!a.test(this.href)&&this.href.indexOf("mailto")==-1&&!$(this).hasClass("notab")&&!$(this).hasClass("cli_action_button")&&!$(this).hasClass("cookie-optout")){$(this).click(function(event){event.preventDefault();event.stopPropagation();window.open(this.href,"_blank");});}});if($(window).width()<720){$(".cards-slider").lightSlider({item:1,loop:false,slideMove:1,centerSlide:true,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:500,slideMargin:40,controls:false,pager:false,onAfterSlide:function(el){bLazy.revalidate();},onSliderLoad:function(el){var maxHeight=0,container=$(el),children=container.children();children.each(function(){var childHeight=$(this).height();if(childHeight>maxHeight){maxHeight=childHeight;}});children.each(function(){$(this).height(maxHeight);});}});}
10$(".gallery-slider.slider_square").lightSlider({onSliderLoad:function(el){var parent=el.parent();var action=parent.find(".lSAction");action.insertBefore(parent);},onAfterSlide:function(el){bLazy.revalidate();},prevHtml:'<i class="wgt-arrow-left-long"></i>',nextHtml:'<i class="wgt-arrow-right-long"></i>',item:2,loop:true,slideMove:1,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:500,slideMargin:20,controls:true,pager:true,responsive:[{breakpoint:720,settings:{controls:false,item:1}}]});$(".gallery-slider.slider_wide").lightSlider({onSliderLoad:function(el){var parent=el.parent();var action=parent.find(".lSAction");action.insertBefore(parent);},onAfterSlide:function(el){bLazy.revalidate();},prevHtml:'<i class="wgt-arrow-left-long"></i>',nextHtml:'<i class="wgt-arrow-right-long"></i>',item:1,loop:true,slideMove:1,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:500,slideMargin:20,controls:true,pager:true,responsive:[{breakpoint:720,settings:{controls:false}}]});$(".gallery-slider.slider_normal").lightSlider({onSliderLoad:function(el){var parent=el.parent();var action=parent.find(".lSAction");action.insertBefore(parent);},onAfterSlide:function(el){bLazy.revalidate();},prevHtml:'<i class="wgt-arrow-left-long"></i>',nextHtml:'<i class="wgt-arrow-right-long"></i>',item:1,loop:true,slideMove:1,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:500,slideMargin:20,controls:true,pager:true,responsive:[{breakpoint:720,settings:{controls:false}}]});var subsiteSlider={};var i=0;$(document).find('.subsite-wrapper').each(function(){$(this).parents('.content-wrapper').find(".prev-slide").addClass("prev-slide-"+i);$(this).parents('.content-wrapper').find(".next-slide").addClass("next-sl
10ide-"+i);subsiteSlider[i]=$(this).lightSlider({onSliderLoad:function(el){var maxHeight=0,container=$(el),children=container.children();children.each(function(){var childHeight=$(this).height();if(childHeight>maxHeight){maxHeight=childHeight;}});container.height(maxHeight);if(el.getCurrentSlideCount()+1==el.getTotalSlideCount()){$(this).parents('.content-wrapper').find(".next-slide-"+i).addClass("not-active");}else{$(this).parents('.content-wrapper').find(".next-slide-"+i).removeClass("not-active");}
11if(el.getCurrentSlideCount()==1){$(this).parents('.content-wrapper').find(".prev-slide-"+i).addClass("not-active");}else{$(this).parents('.content-wrapper').find(".prev-slide-"+i).removeClass("not-active");}},item:3,loop:false,slideMove:1,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:500,slideMargin:0,controls:false,pager:false,responsive:[{breakpoint:999,settings:{item:2}}],onAfterSlide:function(el){if(el.getCurrentSlideCount()+2==el.getTotalSlideCount()){$(this).parents('.content-wrapper').find(".next-slide-"+i).addClass("not-active");}else{$(this).parents('.content-wrapper').find(".next-slide-"+i).removeClass("not-active");}
12if(el.getCurrentSlideCount()==1){$(this).parents('.content-wrapper').find(".prev-slide-"+i).addClass("not-active");}else{$(this).parents('.content-wrapper').find(".prev-slide-"+i).removeClass("not-active");}
13bLazy.revalidate();}});console.log('created '+i);$(this).parents('.content-wrapper').find(".next-slide-"+i).attr('slider',i).click(function(){subsiteSlider[$(this).attr('slider')].goToNextSlide();});$(this).parents('.content-wrapper').find(".prev-slide-"+i).attr('slider',i).click(function(){subsiteSlider[$(this).attr('slider')].goToPrevSlide();});i++;})
14var newsSlider=$(".magazine-news-wrapper").lightSlider({onSliderLoad:function(el){var maxHeight=0,container=$(el),children=container.children();children.each(function(){var childHeight=$(this).height();if(childHeight>maxHeight){maxHeight=childHeight;}});container.height(maxHeight);if(el.getCurrentSlideCount()+1==el.getTotalSlideCount()){$(".news-slider-controls .next-slide").addClass("not-active");}else{$(".news-slider-controls .next-slide").removeClass("not-active");}
15if(el.getCurrentSlideCount()==1){$(".news-slider-controls .prev-slide").addClass("not-active");}else{$(".news-slider-controls .prev-slide").removeClass("not-active");}},item:2,loop:false,slideMove:1,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:500,slideMargin:0,controls:false,pager:false,onAfterSlide:function(el){if(el.getCurrentSlideCount()+1==el.getTotalSlideCount()){$(".news-slider-controls .next-slide").addClass("not-active");}else{$(".news-slider-controls .next-slide").removeClass("not-active");}
16if(el.getCurrentSlideCount()==1){$(".news-slider-controls .prev-slide").addClass("not-active");}else{$(".news-slider-controls .prev-slide").removeClass("not-active");}
17bLazy.revalidate();console.log("done");}});$(".news-slider-controls .next-slide").click(function(){newsSlider.goToNextSlide();});$(".news-slider-controls .prev-slide").click(function(){newsSlider.goToPrevSlide();});$(".search-field").click(function(){$(this).parents(".search-form").addClass("activeForm");});$(".search-field").autocomplete("https://wgt.jetzt/wp-content/themes/wgt/assets/inc/wordlist.txt",{minChars:2,delay:10,maxItemsToShow:20,matchInside:true,matchSubset:true,useCache:false,preventDefaultReturn:false,showResult:function(value,data){return $.parseHTML("<div>"+value+"</div>");},onItemSelect:function(value,data){$(".activeForm").delay(500).submit();}});$("#openFilter").click(function(){$("#filterSelect").fadeIn();});$("#closeFilter").click(function(event){$("#filterSelect").fadeOut();event.stopPropagation();});$(document).mouseup(function(e){var container=$("#filterSelect");if(!container.is(e.target)&&container.has(e.target).length===0){container.fadeOut();}});$(".post-item").click(function(e){if($("#filterSelect").css("display")!="none"){e.stopPropagation();e.preventDefault();return false;}});$("#filterSelect").click(function(e){e.stopPropagation();});var activeFilter=[];if(window.location.href.indexOf("c=")>0){$("#filterSelect .categories ul li").each(function(){if($(this).data("filterid")==getUrlParameter("c")){$(this).addClass("active-filter");activeFilter.push($(this).data("filter"));}});doPostFilter();}
18$("#filterSelect li").click(function(e){var filter=$(this).data("filter");if($(this).hasClass("active-filter")){activeFilter.pop(filter);$(this).removeClass("active-filter");}else{activeFilter.push(filter);$(this).addClass("active-filter");}
19doPostFilter();e.stopPropagation();});function doPostFilter(){$("#postsWrapper").find(".post-item").each(function(){$(this).hide();});$.each(activeFilter,function(){$("#postsWrapper").find("."+this).each(function(){$(this).show();});});if(activeFilter.length==0){$("#postsWrapper").find(".post-item").each(function(){$(this).show();});$("#filterCount").hide();}else{$("#filterCount").html(activeFilter.length);$("#filterCount").show();}
20var url=document.location.href;window.history.pushState({},"",url.split("?")[0]);}
21function getUrlParameter(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^&#]*)");var results=regex.exec(location.href);return results===null?"":decodeURIComponent(results[1].replace(/\+/g,"    "));}
22$(".comment-input").focusin(function(){$(this).parents(".new-comment-wrapper").addClass("active");$(this).siblings(".submit").addClass("disabled");$(this).attr("placeholder",". . .");$(this).siblings("label").addClass("show");});$(".comment-input").focusout(function(){if($.trim($(this).val()).length<1){$(this).attr("placeholder",$(this).attr("alt"));$(this).siblings("label").removeClass("show");}});$(".comment-input").keyup(function(){activateCommentButton();});$(document).mouseup(function(e){var container=$(".new-comment-wrapper");if(!container.is(e.target)&&container.has(e.target).length===0){container.removeClass("active");}});$(".comment-form div").find("input").focusin(function(){$(this).attr("placeholder",". . .");$(this).siblings("label").addClass("show");});$(".comment-form div").find("input").focusout(function(){if($.trim($(this).val()).length<1){$(this).attr("placeholder",$(this).attr("alt"));$(this).siblings("label").removeClass("show");}});$(".comment-form div").find("input").keyup(function(){activateCommentButton();});function activateCommentButton(){var empty=false;$("#commentForm input").each(function(){if($.trim($(this).val()).length<1){empty=true;}});$("#commentForm textarea#comment").each(function(){if($.trim($(this).val()).length<1){empty=true;}});if(empty==true){$("#commentForm #submit").prop("disabled",true);$("#commentForm #submit").addClass("disabled");$("#commentForm #submit").removeClass("enabled");}
22else{$("#commentForm #submit").prop("disabled",false);$("#commentForm #submit").addClass("enabled");$("#commentForm #submit").removeClass("disabled");}}
23$(".posting-as.hide-author span").click(function(){$("#commentForm").find(".hide-author").each(function(){$(this).removeClass("hide-author");});});$(".comment-input").on("keydown",autosize);function autosize(){var el=this;setTimeout(function(){el.style.cssText="height:auto; padding:0";el.style.cssText="height:"+el.scrollHeight+"px";},0);}
24$(".form-popup textarea").on("keydown",autosize);function inputChange(){$(".form-popup").find("textarea").focusin(function(){var elem=$(this);$(this).attr("alt",$(this).attr("placeholder"));$(this).parents("div").siblings("label").addClass("show");setTimeout(function(){$(elem).attr("placeholder",". . .");},0);});$(".form-popup").find("textarea").focusout(function(){if($.trim($(this).val()).length<1){$(this).attr("placeholder",$(this).attr("alt"));$(this).parents("div").siblings("label").removeClass("show");}});$(".form-popup .form-group").find("input").focusin(function(){var elem=$(this);$(this).attr("alt",$(this).attr("placeholder"));$(this).parents("div").siblings("label").addClass("show");setTimeout(function(){$(elem).attr("placeholder",". . .");},0);});$(".form-popup .form-group").find("input").focusout(function(){if($.trim($(this).val()).length<1){$(this).attr("placeholder",$(this).attr("alt"));$(this).parents("div").siblings("label").removeClass("show");}});}
25inputChange();function checkDOMChange(){inputChange();setTimeout(checkDOMChange,200);}
26checkDOMChange();$(".load-more-comments.button").click(function(){$("#hiddenComments").slideDown();$(this).hide();$(".load-more-next").removeClass("load-more-next");});$(".accordion-item h4").click(function(event){if($(this).parents(".accordion-item").hasClass("open")){$(this).siblings(".content").slideUp();$(this).parents(".accordion-item").removeClass("open");event.stopPropagation();}else{$(this).siblings(".content").slideDown();$(this).parents(".accordion-item").addClass("open");event.stopPropagation();}});};});

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.