-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (94 loc) · 2.67 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!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
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./src/style.css" />
</head>
<body class="d-flex flex-column justify-content-center">
<main>
<section class="container box">
<h1>Password Generator</h1>
<form class="d-flex flex-column gap-1">
<label for="length" class="form-label">Password Length</label>
<li class="d-flex">
<input
type="range"
name="length"
id="length"
class="form-range w-50"
min="5"
max="16"
value="8"
/>
<span id="rangeVal" class="mx-3" data-range="8">8</span>
</li>
<li class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
role="switch"
name="lower"
checked
data-value="lower"
/>
<label for="lower" class="form-check-label">Lower Case (a,b,c,d,e...)</label>
</li>
<li class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="upper" data-value="upper" />
<label for="upper" class="form-check-label">Upper Case (A,B,C,D,E...)</label>
</li>
<li class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
role="switch"
name="number"
data-value="number"
/>
<label for="number" class="form-check-label">Numbers (1,2,3,4,5...)</label>
</li>
<li class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
role="switch"
name="symbols"
data-value="symbol"
/>
<label for="symbols" class="form-check-label">Symbols (!,@,#,$,&...)</label>
</li>
<li class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
role="switch"
name="unique"
data-value="unique"
/>
<label for="unique" class="form-check-label"
>No Repeated or Similar Characters (a,A,@...)</label
>
</li>
<button type="button" class="btn btn-primary w-25 my-2" id="generate">Generate Password</button>
<input
type="text"
name="password"
id="password"
class="form-control w-50"
placeholder="Password"
readonly
/>
</form>
</section>
</main>
<script src="./src/app.js"></script>
</body>
</html>