Skip to content

Commit

Permalink
Merge pull request #91 from 16bravo/bugfix/correctiong_ranking_web
Browse files Browse the repository at this point in the history
correctiong reload ranking table web
  • Loading branch information
16bravo authored Jan 21, 2024
2 parents 53f517c + 0e34e2e commit 0355f09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ <h1 class="mb-4">Bravo!Ranking</h1>

// Load the new JSON and update the table
loadJSON(jsonFilePath).then(newJsonData => {

dataTable.clear().draw();

newJsonData.forEach(newItem => {
const row = document.createElement('tr');
row.innerHTML = `
Expand All @@ -126,6 +128,9 @@ <h1 class="mb-4">Bravo!Ranking</h1>
`;
tableBody.appendChild(row);
});

dataTable.draw();

});
});
});
Expand Down

0 comments on commit 0355f09

Please sign in to comment.