We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c81cd7 commit 7768959Copy full SHA for 7768959
1 file changed
login.html
@@ -39,5 +39,18 @@ <h1>Login</h1>
39
</form>
40
<p>Please read our <a href="https://github.com/mihail0011/ChessForAll/blob/main/SECURITY.md">Privacy Policy</a>.</p>
41
<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>
55
</body>
56
</html>
0 commit comments