feat(results): gold, silver and bronze medals for the top three in PDF, printouts and result tables (1.73.0)

This commit is contained in:
larssand committed 2026-11-06 23:12:29 +01:00
1 parent 7c25f23ad0
commit 41043a990d
12 files changed
+72 -12

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
// Gold / silver / bronze medal for places 1-3 in result tables; other places stay a plain number.
// The medal still holds the number, so text, CSV and the print table decoration keep working.
export function medal(pos) {
const value = String(pos ?? "").trim();
return ["1", "2", "3"].includes(value) ? `<span class="medal medal-${value}">${value}</span>` : value;
}