mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging in on enter press
This commit is contained in:
parent
d2a8f29b21
commit
f482c65f3c
1 changed files with 7 additions and 1 deletions
|
@ -101,7 +101,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id='form'>
|
<div id='form'>
|
||||||
<div class='inputContainer'>
|
<div class='inputContainer'>
|
||||||
<input type='text' id='pw' name='pw' autocomplete="off" autofocus/>
|
<input onkeyup="PWKeyUp(this)" type='text' id='pw' name='pw' autocomplete="off" autofocus/>
|
||||||
<input type='hidden' id='cid' name='pw' autocomplete="off"/>
|
<input type='hidden' id='cid' name='pw' autocomplete="off"/>
|
||||||
</div>
|
</div>
|
||||||
<div class='ircLinkContainer' >
|
<div class='ircLinkContainer' >
|
||||||
|
@ -112,6 +112,12 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
|
function PWKeyUp (inputField) {
|
||||||
|
if (event.keyCode === 13) {
|
||||||
|
event.preventDefault();
|
||||||
|
Login(document.getElementById('sendButton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
function HandleFeedbackResp (resp) {
|
function HandleFeedbackResp (resp) {
|
||||||
document.getElementById('sendButton').innerText = 'Submit'
|
document.getElementById('sendButton').innerText = 'Submit'
|
||||||
const textNode = document.getElementById('text')
|
const textNode = document.getElementById('text')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue