forked from MapComplete/MapComplete
Fix statistics page
This commit is contained in:
parent
24efcfb945
commit
439e66e9e3
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue