diff --git a/img/prace.png b/img/prace.png new file mode 100644 index 0000000..ea54afb Binary files /dev/null and b/img/prace.png differ diff --git a/index.html b/index.html index f6bde2e..59666cb 100644 --- a/index.html +++ b/index.html @@ -451,7 +451,7 @@ 14 :4 4AC Napoleon Prace @@ -1112,7 +1112,7 @@

Radek Janečka

- Golfman + Brankář

diff --git a/js/script-tdvorak.js b/js/script-tdvorak.js new file mode 100644 index 0000000..e5b6ecf --- /dev/null +++ b/js/script-tdvorak.js @@ -0,0 +1,31 @@ +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} : ${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; \ No newline at end of file