Skip to content

Commit 6fb8462

Browse files
committed
added empty login form files
relates #1
1 parent a035cef commit 6fb8462

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Public/login.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="utf-8">
5+
<title></title>
6+
</head>
7+
<body>
8+
<section>
9+
10+
<form class="login__form" action="/login" method="POST" novalidate>
11+
12+
<label for="username">Username:
13+
<input id="username" type="text" required/>
14+
</label>
15+
<label for="password">Password:
16+
<input id="password" type="password" required pattern="^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$" />
17+
</label>
18+
19+
<p class="error" aria-live="polite"></p>
20+
21+
<button>login</button>
22+
</form>
23+
24+
</section>
25+
<script type="text/javascript" src="login.js"></script>
26+
</body>
27+
</html>

Public/login.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const username = document.getElementById('username');
2+
const password = document.getElementById('password');

0 commit comments

Comments
 (0)