New favicon, email field on login feedback

This commit is contained in:
MrFry 2021-02-16 11:34:39 +01:00
parent 23fcb48fcd
commit 36f927a950
4 changed files with 10 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 252 KiB

Before After
Before After

View file

@ -43,7 +43,7 @@
cursor: pointer;
}
input[type=text], input[type=password], textarea {
font-size: 20px;
font-size: 16px;
color: #ffffff;
background-color: #181a1b;
width: 100%;
@ -51,9 +51,8 @@
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #333333;
text-align: center;
}
input[type=text], input[type=password]:focus {
input[type=text]:focus, input[type=password]:focus, textarea:focus {
border: 2px solid #000;
}
button {
@ -95,7 +94,8 @@
</div>
<div id='text' class='text'></div>
<div id='feedback'>
<textarea placeholder='Feedback' id='feedbackTextArea'></textarea>
<textarea placeholder='Üzenet' id='feedbackTextArea'></textarea>
<input id='email' type='text' placeholder='E-mail, amire választ vársz (nem kötelező)' />
<div class='ircLinkContainer' >
<a class='ircLink' href='<%= devel? 'http' : 'https' %>://qmining.frylabs.net/irc?loginClick'>IRC chatszoba</a>
</div>
@ -103,7 +103,7 @@
</div>
<div id='form'>
<div class='inputContainer'>
<input onkeyup="PWKeyUp(this)" type='text' id='pw' name='pw' autocomplete="off" autofocus/>
<input placeholder='Jelszó' onkeyup="PWKeyUp(this)" type='text' id='pw' name='pw' autocomplete="off" autofocus/>
<input type='hidden' id='cid' name='pw' autocomplete="off"/>
</div>
<div class='ircLinkContainer' >
@ -132,6 +132,7 @@
}
async function SendFeedback (button) {
const feedback = document.getElementById('feedbackTextArea').value
const email = document.getElementById('email').value
button.innerText = '...'
const rawResponse = await fetch('<%= devel? 'http' : 'https' %>://api.frylabs.net/postfeedback', {
method: 'POST',
@ -142,6 +143,7 @@
},
body: JSON.stringify({
description: feedback,
email: email,
fromLogin: true
})
})
@ -163,7 +165,7 @@
function ShowFeedback () {
const form = document.getElementById('form').style.display = "none";
const feedback = document.getElementById('feedback').style.display = "block";
document.getElementById('text').innerText = 'Ha szeretnél választ kapni akkor IRC-n próbálj meg elérni (lenti link). Jelszót meglévő felhasználóktól kérj!'
document.getElementById('text').innerText = 'Jelszót meglévő felhasználóktól lehet kérni!'
}
function HandleResp (resp) {
const button = document.getElementById('sendButton')

@ -1 +1 @@
Subproject commit dc07c903d39003a5cc13302a9ee6e6e3e0b6ee17
Subproject commit 4c90321380e6f6c094a94e03e2b18efaf8d326a6

@ -1 +1 @@
Subproject commit 2d6211a80af3ccd6fe78d6e30c98f340f0579ac8
Subproject commit 6668c32cb809a5c5b5bf4dcfc456efafaeb6cc21