-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trying new things</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Create an account</h1>
<form>
<label for="name">
Name
<span aria-hidden="true">*</span>
</label>
<input id="name" class="input" type="text" placeholder="e.g. John Smith" required />
<div id="nameError" class="error"></div>
<label for="email">
Email
<span aria-hidden="true">*</span>
</label>
<input id="email" class="input" type="email" aria-describedby="emailError" placeholder="e.g. [email protected]" required />
<div id="emailError" class="error"></div>
<label for="password">
Password
<span aria-hidden="true">*</span>
</label>
<div id="passwordRequirements" class="requirements">
Unpredictable passwords are stronger: <br>
<strong>blackberries1</strong> is better than <strong>ex4mpl3pa55w0rd</strong>.
</div>
<input
id="password"
class="input"
type="password"
aria-describedby="passwordRequirements passwordError"
required
pattern="(?=.*[A-z])(?=.*\d)[A-z\d]+"
minlength="8"
placeholder="Make it memorable"
/>
<div id="passwordError" class="error"></div>
<div id="passwordScore" class="password__score-box"><div class="password__score"></div></div>
<div id="passwordTime" class="password__time">Your password should contain at least 8 characters, including a letter and number.</div>
<button>Sign up</button>
<p>Read more about how we measure password strength <a href="https://dropbox.tech/security/zxcvbn-realistic-password-strength-estimation" target="_blank">here</a>.</p>
</form>
<script src="index.js"></script>
<script src="zxcvbn.js"></script>
</body>
</html>