-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (46 loc) · 1.47 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" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Password Generator</title>
</head>
<body>
<header>
<h1>Password Generator</h1>
</header>
<h2>Generate a Password</h2>
<form>
<label for="passLengthField">Password Length (8 to 128)</label><br>
<input id="passLengthField" type="number"><br>
<br>
<fieldset>
<legend>
Character Types (Must choose at least one)
</legend>
<input id="lowerCheckbox" type="checkbox" checked>
<label for="lowerCheckbox">Lowercase Letters</label><br>
<input id="upperCheckbox" type="checkbox">
<label for="upperCheckbox">Uppercase Letters</label><br>
<input id="numberCheckbox" type="checkbox">
<label for="numberCheckbox">Numbers</label><br>
<input id="specialCheckbox" type="checkbox">
<label for="specialCheckbox">Special Characters</label><br>
</fieldset>
</form>
<br>
<label for="passwored">Your Generated Password</label><br>
<textarea
readonly
id="password"
placeholder="Your Secure Password"
aria-label="Generated Password"
></textarea>
<button id="generate">Generate Password</button>
<button id="copy">
Copy to Clipboard
</button>
<script src="script.js"></script>
</body>
</html>