Added weight column

This commit is contained in:
Yarne Coppens 2024-08-09 14:42:52 +02:00
parent bc494a6133
commit 581adb64a3
2 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,7 @@
<th scope="col">Thumbnail</th> <th scope="col">Thumbnail</th>
<th scope="col">Naam</th> <th scope="col">Naam</th>
<th scope="col">Beschrijving</th> <th scope="col">Beschrijving</th>
<th scope="col">Moeilijkheid</th>
</tr> </tr>
</thead> </thead>
<tbody id="boardgame_table_tbody"> <tbody id="boardgame_table_tbody">

View file

@ -18,6 +18,7 @@ function add_boardgame_row(html_tbody, boardgame_json) {
var icon_cell = row.insertCell(); var icon_cell = row.insertCell();
var name_cell = row.insertCell(); var name_cell = row.insertCell();
var description_cell = row.insertCell(); var description_cell = row.insertCell();
var weight_cell = row.insertCell()
var icon_image = document.createElement('img') var icon_image = document.createElement('img')
icon_image.src = boardgame_json.thumbnail_url icon_image.src = boardgame_json.thumbnail_url
@ -26,6 +27,7 @@ function add_boardgame_row(html_tbody, boardgame_json) {
icon_cell.appendChild(icon_image) icon_cell.appendChild(icon_image)
name_cell.innerHTML = boardgame_json.name name_cell.innerHTML = boardgame_json.name
description_cell.innerHTML = boardgame_json.description description_cell.innerHTML = boardgame_json.description
weight_cell.innerHTML = boardgame_json.weight
} }
async function loadOwnedGames() { async function loadOwnedGames() {