Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (68 loc) · 2.33 KB
/
Copy pathindex.html
File metadata and controls
77 lines (68 loc) · 2.33 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.3.0/css/all.min.css"
integrity="sha512-ApSLB1Pd3/bZN8fWB/RG9YhN/7bd9Hkf3AGaE2mPfebjrxagjuBtx2GcgdqIlJkUzwylBo61r9Xa9NmgBI0swA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<div class="container">
<h1>Password Generator</h1>
<!-- password container -->
<div class="password-container">
<input type="text" readonly id="password" />
<i class="far fa-copy" id="copy-btn" title="Copy to Clipboard"></i>
</div>
<!-- options -->
<div class="options">
<!-- password length -->
<div class="option">
<label for="length">Password Length</label>
<div class="range-container">
<input type="range" id="length" min="6" max="24" value="12" />
<span id="length-value">12</span>
</div>
</div>
<!-- include uppercase -->
<div class="option">
<label for="uppercase">Inlcude Uppercase</label>
<input type="checkbox" id="uppercase" checked />
</div>
<!-- include lowercase -->
<div class="option">
<label for="lowercase">Inlcude lowercase</label>
<input type="checkbox" id="lowercase" checked />
</div>
<!-- include numbers -->
<div class="option">
<label for="numbers">Inlcude numbers</label>
<input type="checkbox" id="numbers" checked />
</div>
<!-- include symbols -->
<div class="option">
<label for="symbols">Inlcude symbols</label>
<input type="checkbox" id="symbols" checked />
</div>
</div>
<button id="generate-btn">
<i class="fas fa-key"></i>
Generate Password
</button>
<div class="strength-container">
<p>Password Strength: <span id="strength-label">Weak</span></p>
<div class="strength-meter">
<div class="strength-bar"></div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>