diff --git a/pom.xml b/pom.xml index 47c64d3..a82fed5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 de.champonthis abi - 0.2.5 + 0.2.6 abi diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 420bf0d..24f9d89 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -107,8 +107,7 @@ :class="{'disabled': working}">Suchen - + @@ -134,7 +133,7 @@ + :class="{'disabled': working}" x-ref="continueBtn" autofocus> Weiter @@ -154,13 +153,12 @@ Schritt 2: Deine Kontaktdaten - + E-Mail: - + Handynummer (optional): @@ -202,8 +200,7 @@ :class="{'disabled': working}" autofocus>Suchen - + @@ -231,10 +228,11 @@ :class="{'disabled': working}" @click="setStep(2)"> Zurück - Weiter + Weiter @@ -250,8 +248,7 @@ Schritt 4: Bist du beim 20-Jahrestreffen am 13.11.2027 in Gevelsberg dabei? - + Hast du Lust, am Samstag, den 13.11.2027, beim Nachtreffen in Gevelsberg dabei zu sein? Genauere Infos und Details gibt's dann später hier und per Mail. @@ -441,6 +438,12 @@ localStorage.setItem('darkMode', this.darkMode.toString()); }, + setStep(step) { + this.stepMsg = ''; + this.stepMsgType = ''; + this.step = step; + }, + async findSelf() { this.stepMsg = ''; this.stepMsgType = ''; @@ -469,11 +472,11 @@ this.stepMsgType = 'danger'; } this.working = false; - }, - setStep(step) { - this.stepMsg = ''; - this.stepMsgType = ''; - this.step = step; + if (this.userName) { + setTimeout(() => { + document.getElementById('step1ContinueBtn').focus(); + }, 100); + } }, async continueStep1() { this.pendingUpdatedName = this.altNameChecked ? this.altName.trim() : null; @@ -490,8 +493,12 @@ } this.working = false; } + setTimeout(() => { + document.getElementById('step2InputEmail').focus(); + }, 100); this.setStep(2); }, + async submitContactData() { this.stepMsg = ''; this.stepMsgType = ''; @@ -517,7 +524,13 @@ this.stepMsgType = 'danger'; } this.working = false; + + + setTimeout(() => { + document.getElementById('step3ContinueBtn').focus(); + }, 100); }, + async findKnownContact() { this.stepMsg = ''; this.stepMsgType = ''; @@ -561,6 +574,7 @@ } this.working = false; }, + async submitKnownContactData() { this.stepMsg = ''; this.stepMsgType = ''; @@ -597,6 +611,7 @@ } this.working = false; }, + async submitCommit(committed) { this.working = true; this.committed = committed;
@@ -134,7 +133,7 @@
Hast du Lust, am Samstag, den 13.11.2027, beim Nachtreffen in Gevelsberg dabei zu sein? Genauere Infos und Details gibt's dann später hier und per Mail. @@ -441,6 +438,12 @@ localStorage.setItem('darkMode', this.darkMode.toString()); }, + setStep(step) { + this.stepMsg = ''; + this.stepMsgType = ''; + this.step = step; + }, + async findSelf() { this.stepMsg = ''; this.stepMsgType = ''; @@ -469,11 +472,11 @@ this.stepMsgType = 'danger'; } this.working = false; - }, - setStep(step) { - this.stepMsg = ''; - this.stepMsgType = ''; - this.step = step; + if (this.userName) { + setTimeout(() => { + document.getElementById('step1ContinueBtn').focus(); + }, 100); + } }, async continueStep1() { this.pendingUpdatedName = this.altNameChecked ? this.altName.trim() : null; @@ -490,8 +493,12 @@ } this.working = false; } + setTimeout(() => { + document.getElementById('step2InputEmail').focus(); + }, 100); this.setStep(2); }, + async submitContactData() { this.stepMsg = ''; this.stepMsgType = ''; @@ -517,7 +524,13 @@ this.stepMsgType = 'danger'; } this.working = false; + + + setTimeout(() => { + document.getElementById('step3ContinueBtn').focus(); + }, 100); }, + async findKnownContact() { this.stepMsg = ''; this.stepMsgType = ''; @@ -561,6 +574,7 @@ } this.working = false; }, + async submitKnownContactData() { this.stepMsg = ''; this.stepMsgType = ''; @@ -597,6 +611,7 @@ } this.working = false; }, + async submitCommit(committed) { this.working = true; this.committed = committed;