From e0c5c0033f54f943a8ee0a992d5ad716be1eb285 Mon Sep 17 00:00:00 2001 From: TheBacou <69599039+TheBacou@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:32:26 +0200 Subject: [PATCH] =?UTF-8?q?erreur=20corrig=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index 33404ba..26c031c 100644 --- a/index.html +++ b/index.html @@ -39,14 +39,14 @@

Leaderboard - Niveaux

.then((json) => team = json); - - - team.forEach(member => { + for (i = 0; i < team.length; i++) { + let member = team[i][1] + member.id = team[i][0] let newRow = document.createElement('li'); newRow.classList = 'c-list__item'; newRow.innerHTML = `
-
${member.rank}
+
${i+1}
@@ -75,18 +75,7 @@

Leaderboard - Niveaux

newRow.querySelector('.c-kudos').classList.add('u-text--orange'); } list.appendChild(newRow); - }); - - - - - - - - - - - + }