1function closebtn(){var element=document.getElementById("site-navigation");element.classList.remove("toggled")}(function(){var container,button,menu,links,i,len;container=document.getElementById('site-navigation');if(!container){return} 2button=container.getElementsByTagName('button')[0];if('undefined'===typeof button){return} 3menu=container.getElementsByTagName('ul')[0];if('undefined'===typeof menu){button.style.display='none';return} 4menu.setAttribute('aria-expanded','false');if(-1===menu.className.indexOf('nav-menu')){menu.className+=' nav-menu'} 5button.onclick=function(){if(-1!==container.className.indexOf('toggled')){container.className=container.className.replace(' toggled','');button.setAttribute('aria-expanded','false');menu.setAttribute('aria-expanded','false')}else{container.className+=' toggled';button.setAttribute('aria-expanded','true');menu.setAttribute('aria-expanded','true')}};links=menu.getElementsByTagName('a');for(i=0,len=links.length;i<len;i++){links[i].addEventListener('focus',toggleFocus,!0);links[i].addEventListener('blur',toggleFocus,!0)} 6function toggleFocus(){var self=this;while(-1===self.className.indexOf('nav-menu')){if('li'===self.tagName.toLowerCase()){if(-1!==self.className.indexOf('focus')){self.className=self.className.replace(' focus','')}else{self.className+=' focus'}} 7self=self.parentElement}}(function(container){var touchStartFn,i,parentLink=container.querySelectorAll('.menu-item-has-children > a, .page_item_has_children > a');if('ontouchstart' in window){touchStartFn=function(e){var menuItem=this.parentNode,i;if(!menuItem.classList.contains('focus')){e.preventDefault();for(i=0;i<menuItem.parentNode.children.length;++i){if(menuItem===menuItem.parentNode.children[i]){continue} 8menuItem.parentNode.children[i].classList.remove('focus')} 9menuItem.classList.add('focus')}else{menuItem.classList.remove('focus')}};for(i=0;i<parentLink.length;++i){parentLink[i].addEventListener('touchstart',touchStartFn,!1)}}}(container))})();(function($){'use strict';var screenReaderText={"expand":"Untermen\u00fc anzeigen","collapse":"Untermen\u00fc verbergen"};var masthead,menuToggle,siteNavigation,socialNavigation,siteHeaderMenu;function initMainNavigation(container){var dropdownToggle=$('<button />',{'class':'dropdown-toggle','aria-expanded':!1}).append($('<span />',{'class':'screen-reader-text',text:screenReaderText.expand}));container.find('.menu-item-has-children > a').after(dropdownToggle);container.find('.current-menu-ancestor > button').addClass('toggled-on');container.find('.current-menu-ancestor > .sub-menu').addClass('toggled-on');container.find('.menu-item-has-children').attr('aria-haspopup','true');container.find('.dropdown-toggle').click(function(e){var _this=$(this),screenReaderSpan=_this.find('.screen-reader-text');e.preventDefault();_this.toggleClass('toggled-on');_this.next('.children, .sub-menu').toggleClass('toggled-on');_this.attr('aria-expanded',_this.attr('aria-expanded')==='false'?'true':'false');screenReaderSpan.text(screenReaderSpan.text()===screenReaderText.expand?screenReaderText.collapse:screenReaderText.expand)})} 10initMainNavigation($('.main-navigation'));masthead=$('#masthead');menuToggle=masthead.find('#menu-toggle');siteHeaderMenu=masthead.find('#site-header-menu');siteNavigation=masthead.find('#site-navigation');socialNavigation=masthead.find('#social-navigation');(function(){if(!menuToggle.length){return} 11menuToggle.add(siteNavigation).add(socialNavigation).attr('aria-expanded','false');menuToggle.on('click.dantheme',function(){$(this).add(siteHeaderMenu).toggleClass('toggled-on');$(this).add(siteNavigation).add(socialNavigation).attr('aria-expanded',$(this).add(siteNavigation).add(socialNavigation).attr('aria-expanded')==='false'?'true':'false')})})();(function(){if(!siteNavigation.length||!siteNavigation.children().length){return} 12function toggleFocusClassTouchScreen(){if(window.innerWidth>=769){$(document.body).on('touchstart.dantheme',function(e){if(!$(e.target).closest('.main-navigation li').length){$('.main-navigation li').removeClass('focus')}});siteNavigation.find('.menu-item-has-children > a').on('touchstart.dantheme',function(e){var el=$(this).parent('li');if(!el.hasClass('focus')){e.preventDefault();el.toggleClass('focus');el.siblings('.focus').removeClass('focus')}})}else{siteNavigation.find('.menu-item-has-children > a').unbind('touchstart.dantheme')}} 13if('ontouchstart' in window){$(window).on('resize.dantheme',toggleFocusClassTouchScreen);toggleFocusClassTouchScreen()} 14siteNavigation.find('a').on('focus.dantheme blur.dantheme',function(){$(this).parents('.menu-item').toggleClass('focus')})})();function onResizeARIA(){if(window.innerWidth<769){if(menuToggle.hasClass('toggled-on')){menuToggle.attr('aria-expanded','true')}else{menuToggle.attr('aria-expanded','false')} 15if(siteHeaderMenu.hasClass('toggled-on')){siteNavigation.attr('aria-expanded','true');socialNavigation.attr('aria-expanded','true')}else{siteNavigation.attr('aria-expanded','false');
15socialNavigation.attr('aria-expanded','false')} 16menuToggle.attr('aria-controls','site-navigation social-navigation')}else{menuToggle.removeAttr('aria-expanded');siteNavigation.removeAttr('aria-expanded');socialNavigation.removeAttr('aria-expanded');menuToggle.removeAttr('aria-controls')}} 17$('.main-navigation').find('a').off('focus.dantheme blur.dantheme');if('ontouchstart' in window){$('body').off('touchstart.dantheme','.menu-item-has-children > a, .page_item_has_children > a')} 18$('.main-navigation').find('a').on('focus.dantheme blur.dantheme',function(){if(window.innerWidth>=769){$(this).parents('.menu-item, .page_item').toggleClass('focus')}});if('ontouchstart' in window){$('body').on('touchstart.dantheme','.menu-item-has-children > a, .page_item_has_children > a',function(e){if(window.innerWidth>=769){var el=$(this).parent('li');if(!el.hasClass('focus')){e.preventDefault();el.toggleClass('focus');el.siblings('.focus').removeClass('focus')}}})}})(jQuery);jQuery(function($){'use strict';call(mainNavigation);function mainNavigation(){$('.menu-item a').on('touchstart mouseenter',function(){var bodyWidth=$(window).innerWidth();var $this=$(this);if(bodyWidth>960){var obj,menuItemWidth,menuItemOffsetLeft;if($this.siblings('ul').length){obj=$this.siblings('ul');obj.removeClass('rightToLeft');menuItemWidth=$('li',$this.siblings('ul')).width();menuItemOffsetLeft=$('li',$this.siblings('ul')).offset().left}else{obj=$this.parent().parent();obj.removeClass('rightToLeft');menuItemWidth=$this.parent().width();menuItemOffsetLeft=$this.parent().offset().left} 19if(bodyWidth<menuItemWidth+menuItemOffsetLeft){obj.addClass('rightToLeft')} 20if(obj.parent().length&&obj.parent().parent().length&&obj.parent().parent().hasClass('sub-menu')){var parent=obj.parent().parent();var parentItemWidth=parent.children('li').width();var parenItemOffsetLeft=parent.children('li').offset().left;parent.removeClass('rightToLeft');if(bodyWidth<parentItemWidth+parenItemOffsetLeft){parent.addClass('rightToLeft')}}}})} 21function call(fun){setTimeout(function(){try{fun()}catch(error){console.error(error)}},0)}}(jQuery));$('.menu-toggle, .closebtn').click(function(){$('.menu').toggleClass('toggled');if($('.menu').hasClass('toggled')){$("#content").hide();$("footer").hide();$("body").css("background-color","#fff");$(".pseudo--body--background").hide();$(".mobile-logo").hide();$(".topline").hide();$(".back-to-top ").css("right","-500px");$(".navi-logo ").show();$(".navi-background-color ").show();$(".background-img-posts").hide();$(".site-header.fix ").css("position","relative")}else{$("#content").show();$("footer").show();$("body").css("background-color","#00004C");$(".pseudo--body--background").show();$(".mobile-logo").show();$(".topline").show();$(".back-to-top ").css("right","0");$(".navi-logo ").hide();$(".navi-background-color ").hide();$(".background-img-posts").show();$(".site-header.fix ").css("position","fixed")}});var navi_logo=[''+'<div class="navi-logo">'+'<a href="/home">'+'<img src="/wp-content/themes/straubing-tigers-theme/assets/img/logo.svg">'+'</a>'+'</div>'].join("");$("#primary-menu").append(navi_logo)
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.