Search
Close this search box.
// Script para cargar resultados vía AJAX function cargarResultados() { const apiKey = 'TU_API_KEY'; const url = 'https://api.thesportsdb.com/api/v1/json/3/eventslast.php?id=133604'; fetch(url) .then(response => response.json()) .then(data => { const container = document.getElementById('resultados-container'); let html = ''; data.results.forEach(partido => { html += `
${partido.strHomeTeam} vs ${partido.strAwayTeam}
${partido.intHomeScore} - ${partido.intAwayScore}
${partido.dateEvent}
`; }); container.innerHTML = html; }) .catch(error => console.error('Error:', error)); } // Cargar resultados al iniciar document.addEventListener('DOMContentLoaded', cargarResultados);
NUESTRAS REDES SOCIALES
MENÚ
Logo Panorama