-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (50 loc) · 1.81 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
<!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>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="wrapper">
<header>
<h1>Password Generator</h1>
</header>
<div class="card">
<div class="card-header">
<h2>Generate a Password</h2>
</div>
<div class="card-body">
<textarea
readonly
id="password"
placeholder="Select a password length and options to generate a password"
aria-label="Generated Password"
></textarea>
<!-- Added Checkboxes and input for a better and easy navigation-->
<label for="length">Password Length:</label>
<input type="number" id="length" name="length" min="8" max="128" value="8">
<br><br>
<label for="uppercase">Include Uppercase Letters:</label>
<input type="checkbox" id="uppercase" name="uppercase">
<br><br>
<label for="lowercase">Include Lowercase Letters:</label>
<input type="checkbox" id="lowercase" name="lowercase">
<br><br>
<label for="numbers">Include Numbers:</label>
<input type="checkbox" id="numbers" name="numbers">
<br><br>
<label for="symbols">Include Symbols:</label>
<input type="checkbox" id="symbols" name="symbols">
</div>
<div class="card-footer">
<button id="generate" class="btn">Generate Password</button>
<button id="copy" class="btn">Copy to Clipboard</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>