Adding form behavior to login.ejs.

Basic desired behavior which is now supported is submission when the enter key is pressed.
pull/1/head
Daniel Scalzi 2018-04-07 20:41:09 -04:00
parent a16a22e2e1
commit 07946714cc
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div id="loginContainer" style="display: none;">
<div id="loginContent">
<div id='loginForm'>
<form id="loginForm" onsubmit="void(0); return false;">
<img id="loginImageSeal" src="assets/images/WesterosSealCircle.png"/>
<span class="loginSpan" id="loginSubheader">MEMBER LOGIN</span>
<div class="loginFieldContainer">
@ -53,7 +53,7 @@
<p class="loginDisclaimerText">Your password is sent directly to mojang and never stored.</p>
<p class="loginDisclaimerText">WesterosCraft is not affiliated with Mojang AB.</p>
</div>
</div>
</form>
</div>
<script type="application/javascript">
//const validEmail = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i