Fix statistics page

This commit is contained in:
Pieter Vander Vennet 2023-04-04 11:50:17 +02:00
parent 24efcfb945
commit 439e66e9e3

View file

@ -44,12 +44,12 @@ const cm = document.getElementById("centermessage")
cm.parentElement.removeChild(cm)
if (mode.data === "statistics") {
console.log("Statistics mode!")
new StatisticsGUI().SetClass("w-full h-full pointer-events-auto").AttachTo("topleft-tools")
new StatisticsGUI().SetClass("w-full h-full pointer-events-auto").AttachTo("top-left")
} else if (mode.data === "pdf") {
MinimapImplementation.initialize()
const div = document.createElement("div")
div.id = "extra_div_for_maps"
new PdfExportGui(div.id).SetClass("pointer-events-auto").AttachTo("topleft-tools")
new PdfExportGui(div.id).SetClass("pointer-events-auto").AttachTo("top-left")
document.getElementById("topleft-tools").appendChild(div)
} else {
new AllThemesGui().setup()