Skip to content

Commit

Permalink
fill tables on load
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Acker committed Jun 30, 2024
1 parent b85d00c commit b40a9de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@
<script>
const socketUrl = "wss://ws.eddn-realtime.space/eddn";
const listLength = 20;

// TODO: use style?
for (const tb of document.querySelectorAll("tbody")) {
for (let i = 0; i < listLength; i++) {
const tr = document.createElement("tr");
const td = document.createElement("td");
td.innerHTML = "&nbsp;";
tr.appendChild(td);
tb.appendChild(tr);
}
}
</script>

<script type="module" src="js/board.min.js"></script>
Expand Down

0 comments on commit b40a9de

Please sign in to comment.