-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (46 loc) · 2.08 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
55
56
57
58
<!DOCTYPE html>
<html lang="en-gb">
<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>
<link rel="stylesheet" href="./assets/style.css" />
</head>
<body>
<section class="wrapper">
<header>
<h1>Password Generator</h1>
</header>
<form>
<!-- Welcome message and user instructions for form -->
<p>
Welcome to the Password Generator. For security reasons, passwords must be between 8 - 128 characters and at least one character type must be selected.
</p>
<!-- Form elements to generate a new password -->
<!-- Range (slider) to input password length: only accepts the allowed range (between 8 - 128 characters) -->
<label for="passwordLength">Password Length:</label>
<input type="range" id="passwordLength" min="8" max="128" value="8" />
<span id="passwordLengthValue">8</span>
<p></p>
<label for="specialCharacters">Include Special Characters:</label>
<input type="checkbox" id="specialCharacters" />
<label for="numericCharacters">Include Numeric Characters:</label>
<input type="checkbox" id="numericCharacters" />
<p></p>
<label for="lowerCasedCharacters">Include Lowercase Characters:</label>
<input type="checkbox" id="lowerCasedCharacters" />
<label for="upperCasedCharacters">Include Uppercase Characters:</label>
<input type="checkbox" id="upperCasedCharacters" />
<p></p>
<button id="generate" class="btn"><i class="fa-solid fa-key"></i> Generate Password</button>
<input type="reset" value="Reset" class="btn" id="btn-reset">
<textarea readonly id="password" placeholder="Your Secure Password" aria-label="Generated Password"></textarea>
</form>
</section>
<!-- JavaScript references -->
<script src="./assets/script.js"></script>
<!-- Font awsome kit reference (for icons) -->
<script src="https://kit.fontawesome.com/b00aec035f.js" crossorigin="anonymous"></script>
</body>
</html>