mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-01-30 17:20:00 +00:00
add full schedule for all sports
This commit is contained in:
22479
docs/general/general.ics
Normal file
22479
docs/general/general.ics
Normal file
File diff suppressed because it is too large
Load Diff
@ -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>
|
||||
|
||||
@ -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>`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user