Servicio de Deportes

Servicio de deportes

Plazas disponibles en los Talleres puntuales de Mindfulness y de Entrenamiento en sala fitness aquí

Enlace al avance de la programación deportiva trimestral pinchando aquí

(function () { function getCurrentLang() { const path = window.location.pathname.toLowerCase().replace(/\/$/, »); if (path.endsWith(‘/en’)) return ‘en’; if (path.endsWith(‘/fr’)) return ‘fr’; return ‘es’; } function shouldInitSpanishTabs() { return getCurrentLang() === ‘es’; } function initHoverTabs() { const tabs = document.querySelectorAll( ‘.tabs-es-base .stk-block-tabs__tab[aria-controls]’ ); if (!tabs.length) return; tabs.forEach(tab => { if (tab.dataset.bound) return; tab.dataset.bound = «true»; const panelId = tab.getAttribute(‘aria-controls’); const container = tab.closest(‘.stk-block-tabs’); if (!container) return; const panel = container.querySelector(`#${CSS.escape(panelId)}`); if (!panel) return; const showPanel = () => { container.querySelectorAll(‘[role=»tabpanel»]’).forEach(p => p.setAttribute(‘hidden’, true) ); panel.removeAttribute(‘hidden’); container.querySelectorAll(‘.stk-block-tabs__tab’) .forEach(t => t.classList.remove(‘stk-block-tabs__tab–active’)); tab.classList.add(‘stk-block-tabs__tab–active’); const img = panel.querySelector(‘img’); if (img) { img.style.transition = ‘opacity 0.4s ease-in-out’; img.style.opacity = 0; setTimeout(() => { img.style.opacity = 1; }, 50); } }; tab.addEventListener(‘mouseover’, showPanel); tab.addEventListener(‘click’, showPanel); tab.addEventListener(‘focus’, showPanel); }); } function updateVisibilityAndInit() { const lang = getCurrentLang(); document.querySelectorAll(‘.tabs-es-base’).forEach(block => { if (lang === ‘es’) { block.style.removeProperty(‘display’); initHoverTabs(); // ? solo aquí } else { block.style.setProperty(‘display’, ‘none’, ‘important’); } }); } document.addEventListener(‘DOMContentLoaded’, updateVisibilityAndInit); const observer = new MutationObserver(updateVisibilityAndInit); observer.observe(document.body, { childList: true, subtree: true }); })();