-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (35 loc) · 1.32 KB
/
Copy pathindex.html
File metadata and controls
42 lines (35 loc) · 1.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Password Generator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card">
<h1>Password Generator</h1>
<!-- Generated password display -->
<div class="output">
<span id="password">Click generate</span>
<button id="copy-btn" onclick="copyPassword()">Copy</button>
</div>
<!-- Length slider -->
<div class="option">
<label>Length: <span id="length-display">16</span></label>
<input type="range" id="length" min="6" max="32" value="16"
oninput="document.getElementById('length-display').textContent = this.value" />
</div>
<!-- Character options -->
<div class="checkboxes">
<label><input type="checkbox" id="uppercase" checked /> Uppercase (A-Z)</label>
<label><input type="checkbox" id="lowercase" checked /> Lowercase (a-z)</label>
<label><input type="checkbox" id="numbers" checked /> Numbers (0-9)</label>
<label><input type="checkbox" id="symbols" /> Symbols (!@#$...)</label>
</div>
<button id="generate-btn" onclick="generatePassword()">Generate</button>
<p id="message"></p>
</div>
<script src="app.js"></script>
</body>
</html>