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}