LaLiga
Athletic
Atlético
Barcelona
Celta
Deportivo Alavés
Elche
Espanyol
Getafe
Girona
Levante
Mallorca
Osasuna
Rayo Vallecano
Real Betis
Real Madrid
Real Oviedo
Real Sociedad
Sevilla
Valencia
Villarreal
Fichajes Chollos Guías
let mobileBtn = document.getElementById('mobile-menu-btn'); let mobileMenuContainer = document.getElementById('mobile-menu-container'); let closeBtnMobile = document.getElementById('close-btn-mobile'); mobileMenuContainer.addEventListener('click', function() { mobileMenuContainer.style.display = 'none'; }); closeBtnMobile.addEventListener('click', function() { mobileMenuContainer.style.display = 'none'; }); mobileBtn.addEventListener('click', function() { mobileMenuContainer.style.display = 'flex'; }); let competitionBtn = document.getElementById('header-competition'); let competitionContainer = document.getElementById('competition-dialog'); let closeBtnCompetition = document.getElementById('close-btn-competition'); competitionContainer.addEventListener('click', function() { competitionContainer.style.display = 'none'; }); closeBtnCompetition.addEventListener('click', function() { competitionContainer.style.display = 'none'; }); competitionBtn.addEventListener('click', function() { competitionContainer.style.display = 'flex'; }); // Interactuar con widget de partidos let btnPartidos = document.getElementById('btn-partidos'); let widgetPartidos = document.getElementById('partidos-mobile'); btnPartidos.addEventListener('click', function() { if (widgetPartidos.style.display === 'flex') widgetPartidos.style.display = 'none'; else { widgetPartidos.style.display = 'flex'; window.scrollTo({ top: 0, behavior: 'smooth' }); } }); // Flechas de scroll let box = $(".round-results"), x; $(".arrow").click(function() { if ($(this).hasClass("arrow-right")) { x = ((box.width() / 2)) + box.scrollLeft(); box.animate({ scrollLeft: x, }) } else { x = ((box.width() / 2)) - box.scrollLeft(); box.animate({ scrollLeft: -x, }) } }); let boxShield = $(".shield-list-header-content"), xS; $(".arrow").click(function() { console.log("click on arrow"); if ($(this).hasClass("arrow-right")) { xS = ((boxShield.width() / 2)) + boxShield.scrollLeft(); boxShield.animate({ scrollLeft: xS, }) } else { xS = ((boxShield.width() / 2)) - boxShield.scrollLeft(); boxShield.animate({ scrollLeft: -xS, }) } }); // Check de ads $(window).scroll(function(){ // Header con backdrop // if($(window).scrollTop() > 50) { // mainHeader.style.background = 'rgba(9, 15, 15, 0.6)'; // } else { // mainHeader.style.background = 'var(--header-background)'; // } // Alerta en rojo se queda fijada debajo del header principal if(alertJP) { if($(window).scrollTop() > 188){ alertJPContainer.style.position = 'fixed'; alertJPContainer.style.top = '50px'; } else { alertJPContainer.style.position = 'static'; alertJPContainer.style.position = 'flex'; } } }); }); --> // // let fantasyBtn = document.getElementById('header-fantasy'); // // let fantasyContainer = document.getElementById('fantasy-container'); // // let closeBtnFantasy = document.getElementById('close-btn-fantasy'); // // // // fantasyContainer.addEventListener('click', function() { // // fantasyContainer.style.display = 'none'; // // }); // // closeBtnFantasy.addEventListener('click', function() { // // fantasyContainer.style.display = 'none'; // // }); // // // // fantasyBtn.addEventListener('click', function() { // // fantasyContainer.style.display = 'flex'; // // }); // // // let mobileBtn = document.getElementById('mobile-menu-btn'); // let mobileMenuContainer = document.getElementById('mobile-menu-container'); // let closeBtnMobile = document.getElementById('close-btn-mobile'); // // mobileMenuContainer.addEventListener('click', function() { // mobileMenuContainer.style.display = 'none'; // }); // closeBtnMobile.addEventListener('click', function() { // mobileMenuContainer.style.display = 'none'; // }); // // mobileBtn.addEventListener('click', function() { // mobileMenuContainer.style.display = 'flex'; // }); // // // let competitionBtn = document.getElementById('header-competition'); // let competitionContainer = document.getElementById('competition-dialog'); // let closeBtnCompetition = document.getElementById('close-btn-competition'); // // competitionContainer.addEventListener('click', function() { // competitionContainer.style.display = 'none'; // }); // closeBtnCompetition.addEventListener('click', function() { // competitionContainer.style.display = 'none'; // }); // // competitionBtn.addEventListener('click', function() { // competitionContainer.style.display = 'flex'; // }); // // // Interactuar con widget de partidos // let btnPartidos = document.getElementById('btn-partidos'); // let widgetPartidos = document.getElementById('partidos-mobile'); // // btnPartidos.addEventListener('click', function() { // if (widgetPartidos.style.display === 'flex') // widgetPartidos.style.display = 'none'; // else { // widgetPartidos.style.display = 'flex'; // window.scrollTo({ top: 0, behavior: 'smooth' }); // } // }); // // // Flechas de scroll // let box = $(".round-results"), x; // $(".arrow").click(function() { // if ($(this).hasClass("arrow-right")) { // x = ((box.width() / 2)) + box.scrollLeft(); // box.animate({ // scrollLeft: x, // }) // } else { // x = ((box.width() / 2)) - box.scrollLeft(); // box.animate({ // scrollLeft: -x, // }) // } // }); // // let boxShield = $(".shield-list-header-content"), xS; // $(".arrow").click(function() { // console.log("click on arrow"); // if ($(this).hasClass("arrow-right")) { // xS = ((boxShield.width() / 2)) + boxShield.scrollLeft(); // boxShield.animate({ // scrollLeft: xS, // }) // } else { // xS = ((boxShield.width() / 2)) - boxShield.scrollLeft(); // boxShield.animate({ // scrollLeft: -xS, // }) // } // }); // // // Check de ads // $(window).scroll(function(){ // // // Header con backdrop // if($(window).scrollTop() > 50) { // mainHeader.style.background = 'rgba(9, 15, 15, 0.6)'; // } else { // mainHeader.style.background = 'var(--header-background)'; // } // // // Alerta en rojo se queda fijada debajo del header principal // if(alertJP) { // if($(window).scrollTop() > 188){ // alertJPContainer.style.position = 'fixed'; // alertJPContainer.style.top = '50px'; // } else { // alertJPContainer.style.position = 'static'; // alertJPContainer.style.position = 'flex'; // } // } // // }); // }); -->