From fb134859834cc2165b6502e4aa8437669a82433e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 31 Jul 2020 18:48:37 +0200 Subject: [PATCH] Hide image on mobile --- UI/Img.ts | 29 +++++++++++++++++++++++++++++ UI/WelcomeMessage.ts | 3 ++- index.html | 2 +- index.ts | 10 +++++++--- 4 files changed, 39 insertions(+), 5 deletions(-) diff --git a/UI/Img.ts b/UI/Img.ts index 7a89820..23e399d 100644 --- a/UI/Img.ts +++ b/UI/Img.ts @@ -23,5 +23,34 @@ export class Img { ` + + static ornament = "\n" + + "image/svg+xml\n" + + " \n" + + " \n" + + " \n" + + " \n" + + "" + } diff --git a/UI/WelcomeMessage.ts b/UI/WelcomeMessage.ts index ca6e13f..1f1529e 100644 --- a/UI/WelcomeMessage.ts +++ b/UI/WelcomeMessage.ts @@ -31,7 +31,8 @@ export class WelcomeMessage extends UIElement { } this.description = fromLayout((layout) => layout.welcomeMessage); - this.plzLogIn = fromLayout((layout) => layout.gettingStartedPlzLogin.onClick(()=> State.state.osmConnection.AttemptLogin())); + this.plzLogIn = fromLayout((layout) => layout.gettingStartedPlzLogin); + this.plzLogIn.onClick(()=> State.state.osmConnection.AttemptLogin()); this.welcomeBack = fromLayout((layout) => layout.welcomeBackMessage); this.tail = fromLayout((layout) => layout.welcomeTail); } diff --git a/index.html b/index.html index fb8c848..170217e 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@
-
+
{ @@ -171,5 +175,5 @@ if ((window != window.top && !State.state.featureSwitchWelcomeMessage) || State. new GeoLocationHandler().AttachTo("geolocate-button"); -State.state.locationControl.ping() +// State.state.locationControl.ping()