Resultados 1ra División

RESULTADOS - PRIMERA DIVISIÓN LALIGA

Viernes 12 de enero de 2024
RESULTADOS
PRIMERA DIVISIÓN
RESULTADOS
PRIMERA DIVISIÓN

// { if (iframe.contentWindow === e.source) { miIframe = iframe; } }); if (!miIframe) return; // A) AJUSTE ALTURA PC if (e.data.tipo === 'ajustarAlturaFData') { if (miIframe.dataset.fullscreen !== 'true') { miIframe.style.height = e.data.altura + 'px'; } } // B) PANTALLA COMPLETA MODAL if (e.data.tipo === 'toggleFullscreenFData') { if (e.data.estado) { // Modo Ampliado miIframe.dataset.fullscreen = 'true'; miIframe.dataset.origStyle = miIframe.getAttribute('style') || ''; // EL TRUCO: z-index al límite matemático y 100dvh para tapar privacidad const fullscreenCss = 'position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; z-index: 2147483647 !important; background-color: white !important; max-width: 100% !important; max-height: 100% !important; margin: 0 !important; border: none !important;'; miIframe.setAttribute('style', miIframe.dataset.origStyle + ' ' + fullscreenCss); document.body.style.overflow = 'hidden'; } else { // Cerrar miIframe.dataset.fullscreen = 'false'; miIframe.setAttribute('style', miIframe.dataset.origStyle); document.body.style.overflow = ''; ajustarIframeMovil(); } } // C) SCRIPT OYENTE SEO - FOOTBALL DATA (NUEVO) if (e.data.tipo === 'inyectarSEOFData') { // Si el script SEO ya existe, no lo duplicamos if (document.getElementById('fdata-seo-schema')) { return; } // Creamos el elemento de Datos Estructurados const scriptSEO = document.createElement('script'); scriptSEO.id = 'fdata-seo-schema'; scriptSEO.type = 'application/ld+json'; // Convertimos la matriz de datos a texto JSON scriptSEO.text = JSON.stringify(e.data.schema); // Lo inyectamos silenciosamente en el de la página web document.head.appendChild(scriptSEO); console.log("FData: ¡Datos Estructurados SEO (SportsEvent) inyectados correctamente para Googlebot!"); } }); // 2. RADAR DE SCROLL Y "EFECTO IMÁN" MÓVIL window.addEventListener('scroll', function() { const isMobile = window.innerWidth windowHeight) { miIframe.dataset.centrado = 'false'; } } }, { passive: true }); // ]]>