Files
DoubleSnake/frontend/highscores/index.js
2025-05-02 12:38:45 +02:00

27 lines
695 B
JavaScript

class HighScoreLoader{
constructor(){
this.table = document.getElementById("highscoreTable");
this.data = undefined;
this.setup();
}
async setup(){
// const response = await fetch("/api/highscore");
// this.data = await response.json();
// for(const score of this.data.scores){
// this.table.innerHTML += `
// <tr>
// <td>${score.rang}</td>
// <td>${score.user1.username}</td>
// <td>${score.user2.username}</td>
// <td>${score.score}</td>
// </tr>
// `;
// }
}
}
new HighScoreLoader();