From 4ea179b76d3a590839bb7f99ac7c7c06b1454617 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 31 Jul 2020 18:07:55 +0200 Subject: [PATCH] Add splash image --- index.html | 46 +++++++++++++++++++++++++++++++++++----------- index.ts | 2 +- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 43659c1..fb8c848 100644 --- a/index.html +++ b/index.html @@ -15,19 +15,43 @@ -
-
-
-
-
- Loading... If this message persists, check if javascript is enabled and if no extension (uMatrix) is - blocking it. -
+ +
+ + + +
-
- - Wikimania2019_icon +
+
+ + + + +
+
+
+
+ Loading MapComplete +
+
+
+
+ If this message persists: +
    +
  • Is javascript enabled?
  • +
  • Is a scriptblocker (such as UMatrix or Brave) active?
  • +
+
diff --git a/index.ts b/index.ts index 785930f..5bd1213 100644 --- a/index.ts +++ b/index.ts @@ -65,7 +65,7 @@ defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout).data; const layoutToUse: Layout = AllKnownLayouts.allSets[defaultLayout] ?? AllKnownLayouts["all"]; if (layoutToUse === undefined) { console.log("Incorrect layout") - new FixedUiElement("Error: incorrect layout " + defaultLayout + "Go to MapComplete").AttachTo("centermessage").onClick(() => { + new FixedUiElement("Error: incorrect layout " + defaultLayout + "
Go back").AttachTo("centermessage").onClick(() => { }); throw "Incorrect layout" }