add full schedule for all sports

This commit is contained in:
Fabrice Lamant
2024-07-21 09:20:49 +01:00
parent a3e3f1e382
commit 84684542cf
3 changed files with 22487 additions and 0 deletions

22479
docs/general/general.ics Normal file

File diff suppressed because it is too large Load Diff

View File

@ -468,6 +468,7 @@
<tr class="even:bg-slate-200">
<th class="font-bold text-left">All sports</td>
<td>
<a href="general/general.ics" class="inline-block bg-slate-400 hover:bg-blue-400 text-white px-2 py-1 my-px rounded-lg text-base">Full schedule</a>
<a href="general/ANG.ics" class="inline-block bg-slate-400 hover:bg-blue-400 text-white px-2 py-1 my-px rounded-lg text-base">🇦🇴 ANG</a>
<a href="general/ARG.ics" class="inline-block bg-slate-400 hover:bg-blue-400 text-white px-2 py-1 my-px rounded-lg text-base">🇦🇷 ARG</a>
<a href="general/AUS.ics" class="inline-block bg-slate-400 hover:bg-blue-400 text-white px-2 py-1 my-px rounded-lg text-base">🇦🇺 AUS</a>

View File

@ -76,6 +76,12 @@ const generateCalendars = () => {
const title = `${getNOCFlag(noc)} ${getNOCName(noc)} | Paris 2024`;
generateICS(title, key, events);
});
const events = EVENTS
.sort((a, b) => a.UID > b.UID ? 1 : -1);
const key = "general/general";
const title = "Paris 2024";
generateICS(title, key, events);
};
const slugify = (text) => text.toLowerCase().replace(/\s/g, "-")
@ -161,6 +167,7 @@ const generateOutputPage = () => {
html.push("<tr class=\"even:bg-slate-200\">");
html.push("<th class=\"font-bold text-left\">All sports</td>");
html.push("<td>");
html.push(`<a href="general/general.ics" class="${linkClass}">Full schedule</a>`);
NOCS.sort().forEach((noc) => {
html.push(`<a href="general/${noc}.ics" class="${linkClass}">${getNOCFlag(noc)} ${noc}</a>`);
});