mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-01-24 13:40:00 +00:00
fix gender
This commit is contained in:
10
src/index.js
10
src/index.js
@ -298,7 +298,15 @@ const generateTodayPage = () => {
|
||||
html.push(`<div class="event py-4" data-start="${event.DTSTART}" data-end="${event.DTEND}" data-noc="${event._NOCS.join(",")}">`);
|
||||
html.push(" <div class=\"time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10\">__:__</div>");
|
||||
html.push(" <div class=\"w-3/5 align-top inline-block text-black pl-2\">");
|
||||
html.push(` <div class="text-2xl"${event._MEDAL ? "🏅" : ""} ${sport.name.toUpperCase()} ${event._GENDER === "M" ? "♂" : event._GENDER === "F" ? "♀" : ""}</div>`);
|
||||
html.push(" <div class=\"text-2xl\">");
|
||||
html.push(` ${event._MEDAL ? "🏅" : ""}`);
|
||||
html.push(` ${sport.name.toUpperCase()}`);
|
||||
if (event._GENDER === "M") {
|
||||
html.push(` <span class=\"text-xs align-middle bg-blue-400 text-white py-1 px-2 rounded-xl\">M</span>`);
|
||||
} else if (event._GENDER === "W") {
|
||||
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._COMPETITORS) {
|
||||
event._COMPETITORS.forEach((competitor) => {
|
||||
|
||||
Reference in New Issue
Block a user