diff --git a/UI/AllThemesGui.ts b/UI/AllThemesGui.ts index b71df1389..a56d18de0 100644 --- a/UI/AllThemesGui.ts +++ b/UI/AllThemesGui.ts @@ -14,7 +14,6 @@ import { LoginToggle } from "./Popup/LoginButton" export default class AllThemesGui { setup() { try { - new FixedUiElement("").AttachTo("centermessage") const state = new UserRelatedState(undefined) const intro = new Combine([ new LanguagePicker1(Translations.t.index.title.SupportedLanguages(), "").SetClass( @@ -42,7 +41,7 @@ export default class AllThemesGui { "Seems like no layers are compiled - check the output of `npm run generate:layeroverview`. Is this visible online? Contact pietervdvn immediately!" ) .SetClass("alert") - .AttachTo("centermessage") + .AttachTo("top-left") } } } diff --git a/all_themes_index.ts b/all_themes_index.ts index fb15e2671..bebc42393 100644 --- a/all_themes_index.ts +++ b/all_themes_index.ts @@ -40,14 +40,13 @@ const mode = QueryParameters.GetQueryParameter( "map", "The mode the application starts in, e.g. 'statistics'" ) - +const cm = document.getElementById("centermessage") +cm.parentElement.removeChild(cm) if (mode.data === "statistics") { console.log("Statistics mode!") - new FixedUiElement("").AttachTo("centermessage") new StatisticsGUI().SetClass("w-full h-full pointer-events-auto").AttachTo("topleft-tools") } else if (mode.data === "pdf") { MinimapImplementation.initialize() - new FixedUiElement("").AttachTo("centermessage") const div = document.createElement("div") div.id = "extra_div_for_maps" new PdfExportGui(div.id).SetClass("pointer-events-auto").AttachTo("topleft-tools")