Bestenliste
This commit is contained in:
@@ -8,19 +8,19 @@ class HighScoreLoader{
|
||||
}
|
||||
|
||||
async setup(){
|
||||
const response = await fetch("/api/highscore");
|
||||
this.data = await response.json();
|
||||
// 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>
|
||||
`
|
||||
}
|
||||
// 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>
|
||||
// `;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user