-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.js
1 lines (1 loc) · 4.17 KB
/
script.js
1
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t){window.onload=function(){let e=!1;const t=document.getElementById("submenu"),n=document.getElementById("submenu-cover"),o=document.querySelectorAll("[data-submenu]"),a=document.querySelectorAll("[data-menu]"),c=function(){a.forEach((function(e){delete e.dataset.highlighted}))},d=function(a){e=!1,t.dataset.visible="1",n.dataset.visible="1",delete n.dataset.fading,o.forEach((function(e){delete e.dataset.visible}));document.querySelector(`[data-submenu=${a}]`).dataset.visible="1",c();document.querySelector(`[data-menu=${a}]`).dataset.highlighted="1"},i=function(){e=!0,setTimeout((function(){e&&(delete t.dataset.visible,n.dataset.fading="1",c(),setTimeout((function(){e&&(delete n.dataset.fading,delete n.dataset.visible)}),400))}),100)};a.forEach((function(e){e.addEventListener("mouseover",(function(){d(e.dataset.menu)})),e.addEventListener("mouseout",i)})),t.addEventListener("mouseover",(function(){e=!1})),t.addEventListener("mouseout",i);const r=document.getElementById("mobile-menu-open"),l=document.getElementById("mobile-menu-close"),u=document.getElementById("mobile-menu"),s=document.querySelectorAll("[data-submenu-mobile]"),m=document.querySelectorAll("[data-menu-mobile]"),f=function(){s.forEach((function(e){delete e.dataset.visible}))};r.addEventListener("click",(function(){u.dataset.visible="1"})),l.addEventListener("click",(function(){delete u.dataset.visible,f()})),m.forEach((function(e){e.addEventListener("click",(function(){f();document.querySelector(`[data-submenu-mobile=${e.dataset.menuMobile}]`).dataset.visible="1"}))})),document.querySelectorAll("[data-block]").forEach((function(e){const t=e.querySelector("[data-block-nav-left]"),n=e.querySelector("[data-block-nav-right]"),o=e.querySelectorAll("[data-block-page]"),a=o.length;let c=0;const d=e=>{o.forEach(e=>{e.dataset.hidden="1"}),delete o[e].dataset.hidden};var i,r;d((i=0,r=a-1,Math.floor(Math.random()*(r-i+1)+i))),t.addEventListener("click",(function(){c=(c-1+a)%a,d(c)})),n.addEventListener("click",(function(){c=(c+1)%a,d(c)}))}));const b=document.getElementById("watch-video"),p=document.getElementById("video-close"),v=document.getElementById("video"),y=document.getElementById("video-content");function g(){function e(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config","UA-120469224-1")}b&&v&&p&&y&&(b.onclick=function(e){e.preventDefault(),v.dataset.open="1";y.innerHTML='<iframe allowfullscreen="true" src="https://www.youtube.com/embed/gcSPG_dyVUQ?ecver=1&autoplay=1&cc_load_policy=1&iv_load_policy=3&rel=0&showinfo=0&autohide=1&color=white" allowtransparency="true" frameborder="0">'},p.onclick=function(e){e.preventDefault(),delete v.dataset.open,y.innerHTML=""});const h=document.getElementById("cookie-banner"),E=document.getElementById("cookie-accept");var w;localStorage.cookieConsent?g():(h.dataset.visible="1",E.addEventListener("click",(function(){delete h.dataset.visible,localStorage.cookieConsent=1,g()}))),(w=window._paq=window._paq||[]).push(["trackPageView"]),w.push(["enableLinkTracking"]),function(){var e="//analytics.ds-wizard.org/";w.push(["setTrackerUrl",e+"matomo.php"]),w.push(["setSiteId","1"]);var t=document,n=t.createElement("script"),o=t.getElementsByTagName("script")[0];n.async=!0,n.src=e+"matomo.js",o.parentNode.insertBefore(n,o)}()}}]);