-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (59 loc) · 2.5 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
59
<!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>Cool Password Generator</title>
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;900&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
</head>
<body>
<div class="wrapper">
<header>
<h1>Password Generator</h1>
</header>
<main class="card">
<section class="card-header">
<h2>Generate a Password</h2>
<p>Please select the password length and the character types you would like to be included in your new password.</p>
<form>
<!--input for user length-->
<label for="length">Length (between 8-128)</label>
<input type="number" id="length" name="length" min="8" max="128"><br />
<!--checkbox for lowercase-->
<label for="lower">Include lowercase letters </label>
<input type="checkbox" id="lower" name="checkbox"><br />
<!--checkbox for uppercase-->
<label for="upper">Include uppercase letters</label>
<input type="checkbox" id="upper" name="checkbox"><br />
<!--checkbox for numbers-->
<label for="number">Include numbers</label>
<input type="checkbox" id="number" name="checkbox"><br />
<!--checkbox for special characters-->
<label for="special">Include special characters</label>
<input type="checkbox" id="special" name="checkbox"><br />
</form>
</section>
<section>
<!--text area for dynamic password-->
<div class="card-body">
<textarea readonly id="password" placeholder="Your Secure Password" aria-label="Generated Password"></textarea>
</div>
<!--div to store dynamic error messages-->
<div class="cardResponse">
<p id="lengthError"></p>
<p id="selectionError"></p>
<!--sumbit button-->
<div class="card-footer">
<button id="generate" class="btn">Generate Password</button>
</div>
</div>
</section>
</main>
</div>
<script src="script.js"></script>
</body>
</html>