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:
1 parent
7c25f23ad0
commit
41043a990d
12 files changed
+72
-12
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user