|
|
@ -378,11 +378,15 @@ function getColor(num) { |
|
|
|
function toggle_combined_chart() { |
|
|
|
function toggle_combined_chart() { |
|
|
|
const comb_charts = this.parentNode.parentNode.querySelectorAll(`.leaderboard>.graph-wrapper`); |
|
|
|
const comb_charts = this.parentNode.parentNode.querySelectorAll(`.leaderboard>.graph-wrapper`); |
|
|
|
const chart = this.parentNode.parentNode.querySelector(`.graph-wrapper.${this.id}`); |
|
|
|
const chart = this.parentNode.parentNode.querySelector(`.graph-wrapper.${this.id}`); |
|
|
|
|
|
|
|
const buttons = document.querySelectorAll("button.open-general-graph"); |
|
|
|
if (chart.classList.contains("closed")) { |
|
|
|
if (chart.classList.contains("closed")) { |
|
|
|
comb_charts.forEach(element => element.classList.add("closed")); |
|
|
|
comb_charts.forEach(element => element.classList.add("closed")); |
|
|
|
|
|
|
|
buttons.forEach(element => element.classList.remove("dropdown-open")); |
|
|
|
chart.classList.remove("closed"); |
|
|
|
chart.classList.remove("closed"); |
|
|
|
|
|
|
|
this.classList.add("dropdown-open"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
chart.classList.add("closed"); |
|
|
|
chart.classList.add("closed"); |
|
|
|
|
|
|
|
this.classList.remove("dropdown-open"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|