Skip to content

Commit

Permalink
erreur corrigé
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBacou authored Apr 1, 2024
1 parent 486efe1 commit e0c5c00
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ <h3>Leaderboard - Niveaux</h3>
.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 = `
<div class="c-list__grid" id="${member.id}">
<div class="c-flag c-place u-bg--transparent">${member.rank}</div>
<div class="c-flag c-place u-bg--transparent">${i+1}</div>
<div class="c-media">
<img class="c-avatar c-media__img" src="${member.img}" />
<div class="c-media__content">
Expand Down Expand Up @@ -75,18 +75,7 @@ <h3>Leaderboard - Niveaux</h3>
newRow.querySelector('.c-kudos').classList.add('u-text--orange');
}
list.appendChild(newRow);
});











}



Expand Down

0 comments on commit e0c5c00

Please sign in to comment.