-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 1.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Simple Form Validation with Regex" />
<link rel="manifest" href="./manifest.webmanifest" />
<link rel="stylesheet" href="./index.css" />
<script src="./index.js" defer></script>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title>Javascript Validation with Regex</title>
</head>
<body>
<div id="container">
<div id="heading-section">
<h1 id="main-heading">Welcome</h1>
<h2 id="sub-heading">Login to Continue</h2>
</div>
<div id="svg-section"></div>
<div id="form-section">
<form>
<div>
<label for="email">Email Address</label>
<input type="text" id="email" />
<div role="alert" class="error">Only @gmail allowed.</div>
</div>
<div>
<label for="username">Username</label>
<input type="text" id="username" />
<div role="alert" class="error">Only letters with no spaces.</div>
</div>
<div>
<label for="password">Password</label>
<input type="password" id="password" />
<div role="alert" class="error">
Requires five(5) capital letters, six (6) symbols and two hyphens
(-) in any order.
</div>
</div>
<input type="submit" value="Login" />
</form>
</div>
</div>
<div id="modal-bg">
<div id="modal">
<div id="modal-heading">Congratulations!</div>
<div id="modal-message">You sucessfully signed in!</div>
<button id="signout">
<a href="javascript:location.reload()">Sign Out</a>
</button>
</div>
</div>
</body>
</html>