Olympic Games Paris 2024

26 July - 11 August, 2024

ABOUT OLYMPICS

Olympics Medal Tally

Rank Country Gold Silver Bronze Total
${entry.Gold} ${entry.Silver} ${entry.Bronze} ${total === 0 ? '-' : total} `; tableBody.appendChild(row); } }); data.forEach(entry => { if (entry.Country === "Individual Neutral Athletes") { const gold = entry.Gold === '-' ? 0 : parseInt(entry.Gold); const silver = entry.Silver === '-' ? 0 : parseInt(entry.Silver); const bronze = entry.Bronze === '-' ? 0 : parseInt(entry.Bronze); const total = gold + silver + bronze; const row = document.createElement('tr'); row.innerHTML = ` ${entry.Rank}
${entry.Country}
${entry.Gold} ${entry.Silver} ${entry.Bronze} ${total === 0 ? '-' : total} `; tableBody.appendChild(row); } }); } // Fetch data from the remote URL fetch(dataUrl) .then(response => { if (!response.ok) { throw new Error('Network response was not ok'); } return response.json(); }) .then(data => { renderMedalTally(data); }) .catch(error => { console.error('There was a problem with the fetch operation:', error); });