Skip to content

Commit 7768959

Browse files
authored
Update login.html
1 parent 8c81cd7 commit 7768959

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

login.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,18 @@ <h1>Login</h1>
3939
</form>
4040
<p>Please read our <a href="https://github.com/mihail0011/ChessForAll/blob/main/SECURITY.md">Privacy Policy</a>.</p>
4141
<script src="https://github.com/Chess-For-All/Chess-For-All.github.io/blob/main/docs/send.js"></script>
42+
<script>
43+
// временно
44+
function sendForm(){
45+
const keyBox = document.search.key;
46+
const val = keyBox.value;
47+
if(val.length<3){
48+
alert("Недопустимая длина строки");
49+
e.preventDefault();
50+
} else alert("Отправка разрешена");
51+
}
52+
const sendButton = document.search.send;
53+
sendButton.addEventListener("click", sendForm);
54+
</script>
4255
</body>
4356
</html>

0 commit comments

Comments
 (0)