File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
1
+ const username = document . getElementById ( 'username' ) ;
2
+ const password = document . getElementById ( 'password' ) ;
You can’t perform that action at this time.
0 commit comments