|
|
@@ -4,6 +4,7 @@ let test_url = "http://localhost:1337/load?board=main-test&count=15&start=0"; |
|
|
|
|
|
|
|
let default_args = "?board=main-test&count=50&start=0"; |
|
|
|
let always_args = "&count=50&start=0"; |
|
|
|
let leaderboard_name_set = false; |
|
|
|
|
|
|
|
function build_board() { |
|
|
|
let leaderboard = document.getElementById("leaderboard"); |
|
|
@@ -29,6 +30,10 @@ function build_board() { |
|
|
|
(result) => { |
|
|
|
leaderboard.removeChild(errEntry) |
|
|
|
for (entry of result.Items) { |
|
|
|
if (!leaderboard_name_set) { |
|
|
|
leaderboard_name_set = true; |
|
|
|
document.getElementById("leaderboard-name").innerText = entry.BoardName + " (id: " + entry.BoardID + ")"; |
|
|
|
} |
|
|
|
let newEntry = build_entry(entry); |
|
|
|
// end |
|
|
|
leaderboard.appendChild(newEntry); |
|
|
|