From d8b7c85b9a3681acf9b24e10a64cc4b35cc88876 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 21 Apr 2021 17:15:15 +0000 Subject: [PATCH] im inputhelper fehlte was und jetzt ist es wieder da --- .../assets/html/inputhelper/index.html | 16 +++++++++------- .../assets/js/inputhelper/application.js | 15 ++++++--------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/ReallifeGamemode.Client/assets/html/inputhelper/index.html b/ReallifeGamemode.Client/assets/html/inputhelper/index.html index f3247c4b..a83e9194 100644 --- a/ReallifeGamemode.Client/assets/html/inputhelper/index.html +++ b/ReallifeGamemode.Client/assets/html/inputhelper/index.html @@ -1,4 +1,4 @@ - + @@ -6,17 +6,20 @@ Eingabe | Life of German - - - + + +
-

+

{{ Überschrift }}

+ +

+
@@ -45,7 +48,6 @@ $('.input-main h1').text(title); } - - \ No newline at end of file + diff --git a/ReallifeGamemode.Client/assets/js/inputhelper/application.js b/ReallifeGamemode.Client/assets/js/inputhelper/application.js index e26febbc..8f9d69e4 100644 --- a/ReallifeGamemode.Client/assets/js/inputhelper/application.js +++ b/ReallifeGamemode.Client/assets/js/inputhelper/application.js @@ -47,14 +47,6 @@ function getInput() { return input.value.length != 0 ? input.value : null; } -close.onclick = function closeWindow() { - mp.trigger('closeinputhelper'); - console.log('Fenster geschlossen!'); -} - -setInputFieldType('text'); -setText("Überschrift", "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores laboriosam atque ut voluptates molestiae ab autem? Est consectetur voluptatem quia, commodi sint a omnis consequuntur. Tempora dolores ullam natus in?"); - /* Enter wird im Input-Feld gedrückt */ input.onkeyup = e => { let code = e.keyCode ? e.keyCode : e.which; @@ -70,4 +62,9 @@ document.onkeyup = e => { if (code === 27) { closeWindow(); } } -close.onclick = e => { closeWindow(); } +close.onclick = e => { + mp.trigger('closeinputhelper'); + console.log('Fenster geschlossen!'); +} + +setInputFieldType('text');