beta version

This commit is contained in:
Tomas Dvorak
2024-10-23 20:51:00 +02:00
parent 74e9b1c9dc
commit 5c37086e67
19 changed files with 2123 additions and 1340 deletions
-31
View File
@@ -1,31 +0,0 @@
const newMatch = {
homeTeam: {
name: "FC Bizoni UH",
logo: "./img/logo.png",
score: 0
},
awayTeam: {
name: "Žabinští Vlci Brno B",
logo: "https://is1.fotbal.cz/media/kluby/59452859-3d56-48ce-826b-121c4ccf8400/59452859-3d56-48ce-826b-121c4ccf8400_crop.jpg",
score: 0
},
date: "Neděle 3. 11. 2024",
time: "20:00",
location: "SH Uherské Hradiště",
matchLink: "zapasy/bizoni-vlci.html"
};
// Update content dynamically using JavaScript
document.getElementById('home-team').textContent = newMatch.homeTeam.name;
document.getElementById('home-logo').src = newMatch.homeTeam.logo;
document.getElementById('home-score').textContent = newMatch.homeTeam.score;
document.getElementById('away-team').textContent = newMatch.awayTeam.name;
document.getElementById('away-logo').src = newMatch.awayTeam.logo;
document.getElementById('away-score').textContent = newMatch.awayTeam.score;
document.getElementById('score').innerHTML = `${newMatch.homeTeam.score} <span>:</span> ${newMatch.awayTeam.score}`;
document.getElementById('match-date').textContent = `${newMatch.date}, ${newMatch.location}`;
document.getElementById('match-time').textContent = newMatch.time;
document.getElementById('match-link').href = newMatch.matchLink;