Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zkPorpoise committed Feb 27, 2024
1 parent 5c60ea2 commit 47808e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
function generateTableRows() {
fetch(leaderboardLink)
.then((response) => {
console.log("asdfasdfasfasd: ", response)
if (!response.ok) {
throw new Error("Network response was not ok.")
} else {
Expand All @@ -28,7 +27,7 @@
const tableBody = document.getElementById('tableBody');
Object.keys(output).forEach((key) => {
let newRow = document.createElement('tr');
newRow.innerHTML = `<td>${output[key].username}</td><td>${output[key].numberofresponses}</td><td>${output[key].numberofcorrectresponses}</td><td>${output[key].score}</td>`
newRow.innerHTML = `<td>${key}</td><td>${output[key].numberofresponses}</td><td>${output[key].numberofcorrectresponses}</td><td>${output[key].score}</td>`
tableBody.appendChild(newRow);
});
})
Expand Down

0 comments on commit 47808e2

Please sign in to comment.