add unitname to today's page

This commit is contained in:
Fabrice Lamant
2024-07-29 21:41:09 +02:00
parent c05ca7555f
commit 8d16d39e26
2 changed files with 6795 additions and 4998 deletions

File diff suppressed because it is too large Load Diff

View File

@ -325,10 +325,15 @@ const generateTodayPage = () => {
html.push(" <span class=\"text-xs align-middle bg-pink-400 text-white py-1 px-2 rounded-xl\">W</span>");
}
html.push(" </div>");
html.push(` <div class="">${summary}`);
if (event._UNITNAME.match(summary)) {
html.push(` <div class="">${summary}`);
} else {
html.push(` <div class="">${event._UNITNAME}`);
html.push(` <div class="">${summary}</div>`);
}
if (event._COMPETITORS) {
event._COMPETITORS.forEach((competitor) => {
html.push(`<div class="competitor ${competitor.noc}">${competitor.name}</div>`);
html.push(`<div class= "competitor ${competitor.noc}"> ${competitor.name} </div>`);
});
}
html.push(" </div>");