PageSourceSearch

https://www.theworldgames.org/build/home.e6b4b790.js?1788944527

js theworldgames.org collected 2026-09-24 17:33:45 UTC 10,328 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunkiwga_www=self.webpackChunkiwga_www||[]).push([[152,962],{9852:(function(u,l,s){var h=s(8111),C=s(7588),d=s(4276);const _=(0,d._c)("#main_menu"),p=document.body,P=1199,S=(0,d._c)("#mobile_menu_toggler");let E=0,c=null,m=[0,0],f=[0,0];S.addEventListener("click",M),g(),window.addEventListener("resize",D),(0,d.Gb)(_,"click",".has-children",b),(0,d.Gb)(_,"click",".close",A),_.addEventListener("mousedown",o=>m=[o.offsetX,o.offsetY]),_.addEventListener("mouseup",o=>f=[o.offsetX,o.offsetY]);function M(){S.classList.toggle("open"),S.classList.contains("open")?_.classList.add("open"):O()}function g(){E=-1,window.innerWidth>=P&&(c===null||c)?(c=!1,p.classList.remove("fixed"),O(),_.classList.remove("open"),(0,d._)("#main_menu .nav-section").forEach(o=>o.classList.remove("hidden"))):window.innerWidth<P&&(c===null||!c)&&(c=!0,_.classList.remove("open"),(0,d._)("#main_menu .nav-section").forEach(o=>o.classList.add("hidden")))}function D(){E>0&&window.clearTimeout(E),E=window.setTimeout(g,100)}function O(){S.classList.remove("open"),_.classList.remove("open"),_.querySelectorAll(".nav-section").forEach(o=>{o.classList.remove("visible"),o.classList.add("hidden")})}function b(o){if(c!==!0||Math.hypot(f[0]-m[0],f[1]-m[1])>4)return;const v=o.target,L=v.closest("li"),w=L.querySelector(".nav-section");w&&((0,d.jo)(o),w.classList.contains("hidden")&&(w.classList.remove("hidden"),window.setTimeout(function(){w.classList.add("visible")},50)))}function A(o){if(c!==!0)return;(0,d.jo)(o);const a=o.target,v=a.closest(".nav-section");v.classList.contains("visible")&&(v.classList.remove("visible"),window.setTimeout(function(){v.classList.add("hidden")},500))}s(2990),s(3923),window.gtag=window.gtag||function(){},window.addEventListener("load",function(){document.body.classList.add("ready")}),document.querySelectorAll('a[href^="http"]').forEach(function(o){o.target="_blank"}),document.querySelectorAll('a[href*="nospam"]').forEach(o=>{o.href=o.href.replace(/nospam\./,""),o.innerHTML=o.innerHTML.replace(/nospam\./,"")}),document.querySelectorAll(".contact-form").forEach(x);function T(o){const a=o.target,v=new FormData(a);o.stopPropagation(),o.preventDefault(),!a.classList.contains("loading")&&(a.classList.add("loading"),v.append("id",a.id),fetch("/contact",{method:"POST",body:v}).then(function(L){return a.classList.remove("loading"),L.ok?L.text():(a.classList.remove("loading"),alert(`Could not send message.
2
3Please try again at a alter time.`),Promise.reject())}).then(function(L){const w=a.querySelector(".form-response");w.classList.remove("hidden"),w.innerHTML=L,a.reset()}).catch(function(L){L!==void 0&&(a.classList.remove("loading"),alert(`Could not send message.
4
5Please try again at a alter time.`))}))}function x(o){o.addEventListener("submit",T);const a=o.querySelector(".form-response");a&&a.addEventListener("click",()=>{a.classList.add("hidden")}),o.querySelector("[name=JsCheck]").value=new Date().getFullYear().toString()}}),335:(function(u,l,s){var h=s(8111),C=s.n(h),d=s(7588),_=s.n(d),p=s(4276);s(4251);class P{time={days:0,hours:0,min:0,sec:0,mSec:0};skipperCounter=0;currentTimestamp=0;days;hours;min;sec;mSec;constructor(c,m){const f=new Date,M=new Date(m.getTime()-f.getTime());if(this.days=(0,p._c)(".js-countdown-day",c),this.hours=(0,p._c)(".js-countdown-hour",c),this.min=(0,p._c)(".js-countdown-min",c),this.sec=(0,p._c)(".js-countdown-sec",c),this.mSec=(0,p._c)(".js-countdown-msec",c),m.getTime()-f.getTime()>0){var g=M.getTime()/1e3;this.time.sec=Math.floor(g%60),this.time.min=Math.floor(g/60%60),this.time.hours=Math.floor(g/3600%24),this.time.days=Math.floor((g-((this.time.hours*60+this.time.min)*60+this.time.sec))/(1440*60))}this.mSec&&(this.mSec.textContent="000"),this.sec.textContent=this.time.sec.toString().padStart(2,"0"),this.min.textContent=this.time.min.toString().padStart(2,"0"),this.hours.textContent=this.time.hours.toString().padStart(2,"0"),this.days.textContent=this.time.days.toString(),this.time.days>999&&this.days.classList.add("iwga-countdown__time-days--thousand"),m.getTime()-f.getTime()>0&&window.requestAnimationFrame(this.step.bind(this))}step(c){if(this.skipperCounter>0){this.skipperCounter--,window.requestAnimationFrame(this.step.bind(this));return}this.skipperCounter=4;let m=!1,f=!1,M=!1,g=!1;for(this.time.mSec-=c-this.currentTimestamp,this.currentTimestamp=c;this.time.mSec<0;)this.time.mSec+=1e3,this.time.sec--,m=!0;this.time.sec<0&&(this.time.sec=59,this.time.min--,f=!0),this.time.min<0&&(this.time.min=59,this.time.hours--,M=!0),this.time.hours<0&&(this.time.hours=23,this.time.days--,g=!0);var D=Math.trunc(this.time.mSec);this.mSec&&(this.mSec.textContent=D<100?D.toString().padStart(3,"0"):D.toString()),m&&(this.sec.textContent=this.time.sec.toString().padStart(2,"0")),f&&(this.min.textContent=this.time.min.toString().padStart(2,"0")),M&&(this.hours.textContent=this.time.hours.toString().padStart(2,"0")),g&&(this.days.textContent=this.time.days.toString()),this.time.days+this.time.hours+this.time.min+this.time.sec<=0?(this.sec.textContent="0",this.mSec&&(this.mSec.textContent="0")):window.requestAnimationFrame(this.step.bind(this))}}(0,p._)(".js-countdown").forEach(E=>{const c=E.dataset.countdownEnd;c&&new P(E,new Date(parseInt(c)))})}),8477:(function(u,l,s){var h=s(4276),C=s(2522),d=s.n(C);s(2296),s(4693);const _=document.querySelector(".slideshow_news");if(_){const p=new(d())(_,{cellAlign:"left",contain:!0,draggable:!0,setGallerySize:!0,autoPlay:!1,prevNextButtons:!1,groupCells:"100%",pageDots:!1,on:{ready:()=>_.classList.add("flickity-ready")}});(0,h._c)(".news__controls__next").addEventListener("click",()=>{p.next()}),(0,h._c)(".news__controls__prev").addEventListener("click",()=>{p.previous()})}}),395:(function(u,l,s){var h=s(4276);const C=(0,h._c)(".shortcuts__toggler");C&&(0,h.xU)(C,"click",d=>{(0,h.jo)(d),document.querySelector(".shortcuts").classList.toggle("open")})}),2912:(function(u,l,s){var h=s(9852),C=s(335),d=s(395),_=s(8477),p=s(2453),P=s.n(p),S=s(4276),E=s(2522),c=s.n(E);s(1537),s(8451),s(2296);
5const m=document.querySelector(".slideshow_sports");if(m){const f=new(c())(m,{cellAlign:"left",contain:!0,draggable:!0,setGallerySize:!0,autoPlay:!1,prevNextButtons:!1,groupCells:"100%",pageDots:!1});(0,S._c)(".sport-icons__controls__next").addEventListener("click",()=>{f.next()}),(0,S._c)(".sport-icons__controls__prev").addEventListener("click",()=>{f.previous()})}}),4276:(function(u,l,s){s.d(l,{D4:function(){return B},Gb:function(){return T},L$:function(){return v},Mx:function(){return o},_:function(){return b},_c:function(){return O},hN:function(){return a},jo:function(){return D},kc:function(){return L},xU:function(){return A},yF:function(){return w}});var h=s(8111),C=s.n(h),d=s(7588),_=s.n(d);function p(n){if(!n)return 0;const t=getComputedStyle(n);let e=parseFloat(t.getPropertyValue("marginTop")),i=parseFloat(t.getPropertyValue("marginBottom"));return isNaN(e)&&(e=0),isNaN(i)&&(i=0),n.getBoundingClientRect().height+e+i}function P(n){return document.importNode(document.getElementById(n).content,!0)}function S(n,t,e){E(n,t,e),c(n,t,e),m(n,t,e),f(n,t,e),M(n,t,e),g(n,t,e)}const E=(n,t,e)=>{n.querySelectorAll(`[name*="{${t}}"]`).forEach(i=>{const r=i;r.name=r.name.replace(`{${t}}`,e)})},c=(n,t,e)=>{n.querySelectorAll(`[id*="${t}"]`).forEach(i=>{const r=i;r.id=r.id.replace(`-${t.replace("_","-")}-`,`-${e}-`)}),t=t.toLowerCase(),n.querySelectorAll(`[id*="${t}"]`).forEach(i=>{const r=i;r.id=r.id.replace(`-${t.replace("_","-")}-`,`-${e}-`)})},m=(n,t,e)=>{n.querySelectorAll(`[for*="-${t}-"],[for*="[${t}]"]`).forEach(i=>{const r=i,y=r.getAttribute("for").replace(`-${t}-`,`-${e}-`);r.setAttribute("for",y)}),t=t.toLowerCase(),n.querySelectorAll(`[for*="-${t}-"],[for*="[${t}]"]`).forEach(i=>{const r=i,y=r.getAttribute("for").replace(`-${t}-`,`-${e}-`);r.setAttribute("for",y)})},f=(n,t,e)=>{n.querySelectorAll(`.html-editor[id*="{${t}}"]`).forEach(i=>{const r=i;r.id=r.id.replace(`{${t}}`,e)})},M=(n,t,e)=>{n.querySelectorAll(`[value="{${t}}"]`).forEach(i=>{const r=i;r.value=e})},g=(n,t,e)=>{n.querySelectorAll('[data-bs-toggle="collapse"]').forEach(i=>{const r=i;r.dataset.bsTarget=r.dataset.bsTarget.replace(`{${t}}`,e),r.hasAttribute("aria-controls")&&r.setAttribute("aria-controls",r.getAttribute("aria-controls").replace(`{${t}}`,e))}),n.querySelectorAll(".collapse").forEach(i=>{const r=i;r.id=r.id.replace(`{${t}}`,e)})};function D(n){n.stopPropagation(),n.preventDefault()}function O(n,t=null){return(t??document).querySelector(n)}function b(n,t=null){const i=(t??document).querySelectorAll(n);return Array.from(i)}function A(n,t,e){typeof n=="string"?document.querySelector(n)?.addEventListener(t,e):n.addEventListener(t,e)}function T(n,t,e,i){n.addEventListener(t,function(r){const y=r.target;(y.matches(e)||y.matches(e+" *"))&&i(r)})}function x(n,t,e){n.removeEventListener(t,e)}function o(n,t,e){n.querySelectorAll(t).forEach(i=>i.classList.add(e))}function a(n,t,e){n.querySelectorAll(t).forEach(i=>i.classList.remove(e))}function v(n){n?.classList.remove("d-none")}function L(n){[...n].forEach(t=>t.classList.remove("d-none"))}function w(n){n?.classList.add("d-none")}function B(n){[...n].forEach(t=>t.classList.add("d-none"))}function j(n,t){let e=n.previousElementSibling;for(;e!=null;){if(e.classList.contains(t))return e;e=e.previousElementSibling}return null}function U(n,t){let e=n.nextElementSibling;for(;e!=null;){if(e.classList.contains(t))return e;e=e.nextElementSibling}return null}function R(n,t){let e=n.previousElementSibling;const i=t.toUpperCase();for(;e!=null;){if(e.tagName===i)return e;e=e.previousElementSibling}return null}function I(n,t){let e=n.nextElementSibling;const i=t.toUpperCase();for(;e!=null;){if(e.tagName===i)return e;e=e.nextElementSibling}return null}function W(n){for(const t in document.styleSheets){const e=document.styleSheets[t];for(const i in e.cssRules){const r=e.cssRules[i];if(r.selectorText===n)return r}}throw new Error('CSS Rule "'+n+'" not found')}}),2990:(function(u,l,s){s.r(l)}),8451:(function(u,l,s){s.r(l)}),3923:(function(u,l,s){s.r(l)}),4251:(function(u,l,s){s.r(l)}),4693:(function(u,l,s){s.r(l)}
5),2296:(function(u,l,s){s.r(l)}),1537:(function(u,l,s){s.r(l)})},function(u){var l=function(h){return u(u.s=h)};u.O(0,[82,453,522,705,977],function(){return l(2912)});var s=u.O()}]);

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.