From 122c7ee8d32c7904b7bafd6bf3891241ee0df62e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 21 Dec 2025 20:49:16 +0000 Subject: [PATCH] Feat: Add tie indicator to user stats and app control Co-authored-by: mathieumoran1 --- public/js/app_control.js | 3 ++- public/js/app_user-stat.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/app_control.js b/public/js/app_control.js index 8ba6e91..228b8b2 100644 --- a/public/js/app_control.js +++ b/public/js/app_control.js @@ -622,8 +622,9 @@ window.onload = async function () { `; }).join(''); + const tieLabel = sorted.length > 1 ? ' (égalité)' : ''; winnerCurrentEl.innerHTML = ` -
${y}
+
${y}${tieLabel}
${rows} `; diff --git a/public/js/app_user-stat.js b/public/js/app_user-stat.js index 1ae3d69..c4bbd0a 100644 --- a/public/js/app_user-stat.js +++ b/public/js/app_user-stat.js @@ -79,6 +79,7 @@ window.onload = async function () { const item = document.createElement('div'); item.className = 'list-group-item'; + const tieLabel = sorted.length > 1 ? ' (égalité)' : ''; const winnersHtml = sorted .map((w) => { @@ -90,7 +91,7 @@ window.onload = async function () { item.innerHTML = `
-
${year}
+
${year}${tieLabel}
${sorted.length}
${winnersHtml}