mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-01-31 01:39:16 +00:00
add unitname to today's page
This commit is contained in:
11784
docs/today.html
11784
docs/today.html
File diff suppressed because it is too large
Load Diff
@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user