Revert "Add onlineicon test"

This reverts commit 3d12b63ab6.
This commit is contained in:
Dominic Zimmer
2020-09-26 12:40:14 +02:00
parent 0c7c9f1973
commit 03deb66a04
2 changed files with 5 additions and 25 deletions

View File

@@ -55,15 +55,8 @@ function render_scoreboard(data) {
const color_index = ((user.uuid.hashCode() % COLORS.length) + COLORS.length) % COLORS.length;
bar.style.backgroundColor = COLORS[color_index];
name.innerText = user.name;
score.innerText = user.score;
const onlineIcon = document.createElement("img");
onlineIcon.src = "static/coin.png";
onlineIcon.classList.add("online")
const nameSpan = document.createElement("span");
nameSpan.innerText = user.name;
name.appendChild(onlineIcon);
name.appendChild(nameSpan);
tbody.appendChild(clone);
}
@@ -86,4 +79,4 @@ async function update_scoreboard() {
}
update_scoreboard();
// setInterval(update_scoreboard, 1000);
// setInterval(update_scoreboard, 1000);