|
|
@ -579,6 +579,8 @@ async function update_leaderboard_elements() { |
|
|
|
document.querySelector(".leaderboard-list").outerHTML = leaderboard_list; |
|
|
|
document.querySelector(".leaderboard-list").outerHTML = leaderboard_list; |
|
|
|
// reapply EventListeners
|
|
|
|
// reapply EventListeners
|
|
|
|
document.querySelectorAll("button.leaderboard-element").forEach(element => element.addEventListener("mousedown", toggle_leaderboard_chart)); |
|
|
|
document.querySelectorAll("button.leaderboard-element").forEach(element => element.addEventListener("mousedown", toggle_leaderboard_chart)); |
|
|
|
|
|
|
|
// Legende leeren (wird mit neuen Charts neu generiert)
|
|
|
|
|
|
|
|
document.querySelectorAll(".chart-legend").forEach(element => element.innerHTML = ""); |
|
|
|
// recreate charts
|
|
|
|
// recreate charts
|
|
|
|
create_charts(); |
|
|
|
create_charts(); |
|
|
|
}) |
|
|
|
}) |
|
|
|