PageSourceSearch

https://gymboreeclasses-dach.com/wp-content/cache/min/1/wp-content…/js/gymbo-location.js?ver=1789736836

js gymboreeclasses-dach.com collected 2026-09-28 18:01:55 UTC 3,485 bytes, 14 lines download raw bytes

1(function(){var CFG=window.GYMBO_LOC||{};var KEY='gymbo_location';var LANG=CFG.lang||'en';var SEL='a.dropbtn, a.cta-banner__link, a.freetrial';function valid(loc){return loc==='munich'||loc==='geneva'?loc:''}
2function getStored(){try{var v=localStorage.getItem(KEY);if(valid(v))return v}catch(e){}
3var m=document.cookie.match(/(?:^|;\s*)gymbo_location=([^;]+)/);return m?valid(decodeURIComponent(m[1])):''}
4function setStored(loc){loc=valid(loc);if(!loc)return;try{localStorage.setItem(KEY,loc)}catch(e){}
5document.cookie=KEY+'='+loc+';path=/;max-age='+(60*60*24*90)+';samesite=lax'}
6function urlFor(loc){var m=CFG.urls&&CFG.urls[loc];return m?(m[LANG]||m.en):null}
7function label(kind){var l=CFG.labels&&CFG.labels[kind];if(!l)return kind;return(typeof l==='string')?l:(l[LANG]||l.en)}
8var pageLoc=valid(CFG.pageLocation);if(pageLoc)setStored(pageLoc);function effective(){return pageLoc||getStored()}
9function ctas(){return Array.prototype.slice.call(document.querySelectorAll(SEL))}
10function wire(){var loc=effective();var url=loc?urlFor(loc):null;ctas().forEach(function(a){if(url){a.setAttribute('href',url);a.removeAttribute('data-gymbo-needloc')}else{a.setAttribute('data-gymbo-needloc','1')}})}
11var overlay=null;function buildModal(){if(overlay)return overlay;var style=document.createElement('style');style.textContent='.gymbo-loc-ov{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}'+'.gymbo-loc-ov.is-open{display:flex}'+'.gymbo-loc-box{position:relative;background:#fff;border-radius:10px;max-width:430px;width:100%;padding:30px 26px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.3);font-family:inherit}'+'.gymbo-loc-box h3{margin:0 0 8px;font-size:21px;color:#262728}'+'.gymbo-loc-box p{margin:0 0 20px;color:#555;font-size:14px}'+'.gymbo-loc-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}'+'.gymbo-loc-btns a{display:inline-block;padding:13px 30px;background:#e87411;color:#fff;text-decoration:none;border-radius:6px;font-weight:700;cursor:pointer;font-size:15px}'+'.gymbo-loc-btns a:hover{background:#cf6410}'+'.gymbo-loc-x{position:absolute;top:10px;right:16px;color:#999;font-size:26px;line-height:1;cursor:pointer;text-decoration:none}';document.head.appendChild(style);overlay=document.createElement('div');overlay.className='gymbo-loc-ov';overlay.innerHTML='<div class="gymbo-loc-box" role="dialog" aria-modal="true">'+'<a href="#" class="gymbo-loc-x" aria-label="Close">&times;</a>'+'<h3>'+label('choose')+'</h3>'+'<div class="gymbo-loc-btns">'+'<a href="#" data-loc="munich">'+label('munich')+'</a>'+'<a href="#" data-loc="geneva">'+label('geneva')+'</a>'+'</div>'+'</div>';document.body.appendChild(overlay);overlay.addEventListener('click',function(e){var pick=e.target.closest?e.target.closest('a[data-loc]'):null;if(pick){e.preventDefault();var loc=pick.getAttribute('data-loc');setStored(loc);var u=urlFor(loc);if(u)window.location.href=u;return}
12if((e.target.closest&&e.target.closest('.gymbo-loc-x'))||e.target===overlay){e.preventDefault();overlay.classList.remove('is-open')}});return overlay}
13function showModal(){buildModal().classList.add('is-open')}
14document.addEventListener('click',function(e){var a=e.target.closest?e.target.closest(SEL):null;if(!a)return;if(a.getAttribute('data-gymbo-needloc')==='1'){e.preventDefault();showModal()}});if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',wire);else wire()})()

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.