PageSourceSearch

https://zugfunk-podcast.de/wp-content/themes/suki/assets/js/main.min.js?ver=1.3.7

js zugfunk-podcast.de collected 2026-10-02 21:45:33 UTC 11,120 bytes, 1 lines download raw bytes

1!function(){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),window.sukiHelper={getOffset:function(e){if(e instanceof HTMLElement){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}return{top:null,left:null}},isVisible:function(e){return e.offsetWidth>0&&e.offsetHeight>0},isRTL:function(){return document.body.classList.contains("rtl")},slideUp:function(e,t){e&&(t=void 0!==t?t:250,e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout((function(){e.removeAttribute("style")}),t))},slideDown:function(e,t){if(e){t=void 0!==t?t:250,e.style.removeProperty("display");var n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n;var i=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=i+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)}},slideToggle:function(e,t){if(e)return t=void 0!==t?t:250,"none"===window.getComputedStyle(e).display?slideDown(e,t):slideUp(e,t)}},window.suki={initKeyboardAndMouseFocus:function(){document.body.addEventListener("keydown",(function(e){document.body.classList.add("using-keyboard")}),!1),document.body.addEventListener("mousedown",(function(e){document.body.classList.remove("using-keyboard")}),!1)},initDropdownMenuReposition:function(){var e=window.sukiHelper.isRTL()?"left":"right",t=function(){Array.prototype.slice.call(document.querySelectorAll(".suki-header-section .menu > * > .sub-menu")).forEach((function(t){var n=t.closest(".suki-header-section"),i=t.parentElement,o=i.closest(".suki-wrapper"),s=o;i.classList.contains("suki-mega-menu")&&i.classList.contains("suki-mega-menu-full-width")?s=n:n.classList.contains("suki-section-contained")&&(s=n.querySelector(".suki-section-inner")),t.classList.remove("suki-sub-menu-edge"),t.style[e]="",t.style.maxWidth=s.offsetWidth+"px";var l=s.getBoundingClientRect()[e],u=t.getBoundingClientRect()[e];if((window.sukiHelper.isRTL()?u<l:u>l)&&(t.classList.add("suki-sub-menu-edge"),t.style[e]=(window.sukiHelper.isRTL()?s.getBoundingClientRect()[e]-o.getBoundingClientRect()[e]:o.getBoundingClientRect()[e]-s.getBoundingClientRect()[e])+"px"),i.classList.contains("suki-mega-menu")&&i.classList.contains("suki-mega-menu-full-width")){var r=n.classList.contains("suki-section-contained")?i.closest(".suki-section-inner").offsetWidth:i.closest(".suki-wrapper").offsetWidth,a=(t.clientWidth-r)/2;t.style.paddingLeft=a-parseFloat(window.getComputedStyle(t.firstElementChild,null).getPropertyValue("padding-left"))+"px",t.style.paddingRight=a-parseFloat(window.getComputedStyle(t.lastElementChild,null).getPropertyValue("padding-left"))+"px"}(t.style.maxHeight=window.innerHeight-t.getBoundingClientRect().top+"px",i.classList.contains("suki-mega-menu"))||Array.prototype.slice.call(t.querySelectorAll(".sub-menu")).forEach((function(e){var t=e.getBoundingClientRect().left+(window.sukiHelper.isRTL()?0:e.getBoundingClientRect().width),n=window.sukiHelper.isRTL()?t<l:t>l;e.classList.remove("suki-sub-menu-right"),n&&e.classList.add("suki-sub-menu-right"),e.style.maxHeight=window.innerHeight-e.getBoundingClientRect().top+"px"}))}))};window.addEventListener("resize",t,!1),t()},initMenuAccessibility:function(){var e=function(e){for(var t=e.target.closest(".suki-hover-menu"),n=this;n!==t;)n.classList.contains("menu-item")&&(n.classList.contains("focus")?n.classList.remove("focus"):n.classList.add("focus")),n=n.parentElement};Array.prototype.slice.call(document.querySelectorAll(".suki-hover-menu .menu-item >
1 a")).forEach((function(t){t.addEventListener("focus",e,!0),t.addEventListener("blur",e,!0)}));document.addEventListener("keydown",(function(e){var t=e.target.closest(".suki-hover-menu .menu-item > a");if(t){var n=e.which||e.keyCode;37===n?(e.preventDefault(),t.parentElement.previousElementSibling&&t.parentElement.previousElementSibling.firstElementChild.focus()):39===n?(e.preventDefault(),t.parentElement.nextElementSibling&&t.parentElement.nextElementSibling.firstElementChild.focus()):40===n?(e.preventDefault(),t.nextElementSibling?t.nextElementSibling.firstElementChild.firstElementChild.focus():t.parentElement.nextElementSibling&&t.parentElement.nextElementSibling.firstElementChild.focus()):38===n&&(e.preventDefault(),t.parentElement.previousElementSibling?t.parentElement.previousElementSibling.firstElementChild.focus():t.parentElement.parentElement.previousElementSibling&&t.parentElement.parentElement.previousElementSibling.focus())}}),!1)},initDoubleTapMobileMenu:function(){document.addEventListener("touchend",(function(e){var t=e.target.closest(".suki-hover-menu .menu-item > a");t&&(t.parentElement.classList.contains("menu-item-has-children")&&t!==document.activeElement&&(e.preventDefault(),document.activeElement.blur(),t.focus()))}),!1)},initClickToggleDropdownMenu:function(){var e=null,t=function(t){var n=t.target.closest(".suki-header-section .suki-toggle-menu .suki-sub-menu-toggle");if(n){t.preventDefault();var i=document.getElementById("masthead"),o=n.parentElement;if(o.classList.contains("focus"))o.classList.remove("focus"),n.setAttribute("aria-expanded",!1);else{Array.prototype.slice.call(i.querySelectorAll(".menu-item.focus")).forEach((function(e){e.classList.remove("focus")})),o.classList.add("focus"),n.setAttribute("aria-expanded",!0);var s=o.querySelector('input[type="search"]');if(s){var l=s.closest(".sub-menu"),u=function(){s.click(),l.removeEventListener("transitionend",u)};l.addEventListener("transitionend",u)}e=n}}};document.addEventListener("click",t,!1),document.addEventListener("touchend",t,!1);var n=function(t){if(!t.target.closest(".suki-header-section .suki-toggle-menu")){var n=document.getElementById("masthead");if(n)Array.prototype.slice.call(n.querySelectorAll(".suki-toggle-menu .menu-item.focus")).forEach((function(t){t.classList.remove("focus"),e.setAttribute("aria-expanded",!1)}))}};document.addEventListener("click",n,!1),document.addEventListener("touchend",n,!1)},initAccordionMenu:function(){var e=function(e){var t=e.target.closest(".suki-header-section-vertical .suki-toggle-menu .suki-sub-menu-toggle");if(t){e.preventDefault();var n=t.parentElement,i=n.querySelector(".sub-menu");if(n.classList.contains("focus"))window.sukiHelper.slideUp(i),n.classList.remove("focus"),Array.prototype.slice.call(n.querySelectorAll(".menu-item.focus")).forEach((function(e){window.sukiHelper.slideUp(e.querySelector(".sub-menu")),e.classList.remove("focus")}));else Array.prototype.slice.call(n.parentElement.querySelectorAll(".menu-item.focus")).forEach((function(e){window.sukiHelper.slideUp(e.querySelector(".sub-menu")),e.classList.remove("focus")})),window.sukiHelper.slideDown(i),n.classList.add("focus")}};document.addEventListener("click",e,!1),document.addEventListener("touchend",e,!1);var t=function(e){var t=e.target.closest('.suki-header-section-vertical .suki-toggle-menu .menu-item-has-children > .suki-menu-item-link[href="#"]');t&&(e.preventDefault(),t.parentElement.querySelector(".suki-sub-menu-toggle").click())};document.addEventListener("click",t,!1),document.addEventListener("touched",t,!1)},initGlobalPopup:function(){var e=null,t=function(t){Array.prototype.slice.call(document.querySelectorAll(".suki-popup-active"+(void 0!==t?".suki-hide-on-"+t:""))).forEach((function(t){e.classList.remove("suki-popup-toggle-active"),e.setAttribute("aria-expanded",!1),t.classList.remove("suki-popup-active"),document.body.classList.remove("suki-has-popup-active"),t.removeAttribute("tabindex"),document.body.classList.contains("using-keyboard")&&e.focus()}))},n=function(n){var i=n.target.closest(".suki-popup-toggle");if(i){n.preventDefault();var o=document.querySelector("#"+i.getAttribute("data-target"));o&&(o.classList.contains("suki-popup-active")?t():(i.classList.add("suki-popup-toggle-active"),i.setAttribute("aria-expanded",!0),o.classList.add("suki-popup-active"),document.body.classList.add("suki-has-popup-active"),setTimeout((function(){o.setAttribute("tabindex",0),o.focus()}),300),e=i))}};document.addEventListener("click",n,!1),document.addEventListener("touchend",n,!1);var i=function(e){e.target.closest(".suki-popup-close")&&(e.preventDefault(),t())};document.addEventListener("click",i,!1),document.addEventListener("touchend",i,!1);document.addEventListener("keydown",(function(e){var n=e.which||e.keyCode;document.body.classList.contains("suki-has-popup-active")&&27===n&&t()}),!1);window.addEventListener("resize",(function(e){if(document.body.classList.contains("suki-has-popup-active")){var n="mobile";sukiConfig.breakpoints.mobile<=window.innerWidth&&(n="tablet"),sukiConfig.breakpoints.desktop<=window.innerWidth&&(n="desktop"),t(n)}}),!1);var o=function(e){if(e.target.closest(".suki-popup a")){var n=e.target.closest("a");if(""!==n.hash)(window.location.hostname+"/"+window.location.pathname).replace("//$/","")===(n.hostname+"/"+n.pathname).replace("//$/","")&&document.body.classList.contains("suki-has-popup-active")&&t()}};document.addEventListener("click",o,!1),document.addEventListener("touchend",o,!1)},initScrollToTop:function(){var e=document.querySelector(".suki-scroll-to-top");if(e){var t=function(e){if(e.target.closest(".suki-scroll-to-top")){e.preventDefault();var t=e.target.closest(".suki-scroll-to-top"),n=document.getElementById(t.getAttribute("href").replace("#",""));n&&window.scrollTo({top:n.getBoundingClientRect().top,behavior:"smooth"})}};if(document.addEventListener("click",t,!1),document.addEventListener("touchend",t,!1),e.classList.contains("suki-scroll-to-top-display-sticky")){var n=function(){window.pageYOffset>.5*window.innerHeight?e.classList.add("suki-sticky"):e.classList.remove("suki-sticky")};window.addEventListener("scroll",n,!1),n()}}}
1,initAll:function(){window.suki.initKeyboardAndMouseFocus(),window.suki.initDropdownMenuReposition(),window.suki.initMenuAccessibility(),window.suki.initClickToggleDropdownMenu(),window.suki.initDoubleTapMobileMenu(),window.suki.initAccordionMenu(),window.suki.initGlobalPopup(),window.suki.initScrollToTop()}},document.addEventListener("DOMContentLoaded",window.suki.initAll,!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.