Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
163 lines (161 loc) · 5.59 KB
/
Copy pathindex.html
File metadata and controls
163 lines (161 loc) · 5.59 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/favicon-32x32.png"
/>
<link rel="stylesheet" href="styles.css" />
<script defer src="script.js"></script>
<title>Frontend Mentor | Password generator app</title>
</head>
<body>
<main>
<div class="app-container">
<h1>Password Generator</h1>
<div class="password-output-box">
<div class="password-copy-wrapper">
<p id="password-output" class="password-output">P4$5W0rD!</p>
<div class="copied-icon">
<p id="copied" class="copied" aria-live="polite"></p>
<button
type="button"
class="copy-btn"
id="copy-btn"
aria-label="copy password"
disabled
>
<svg
width="21"
height="24"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<path
d="M20.341 3.091 17.909.659A2.25 2.25 0 0 0 16.319 0H8.25A2.25 2.25 0 0 0 6 2.25V4.5H2.25A2.25 2.25 0 0 0 0 6.75v15A2.25 2.25 0 0 0 2.25 24h10.5A2.25 2.25 0 0 0 15 21.75V19.5h3.75A2.25 2.25 0 0 0 21 17.25V4.682a2.25 2.25 0 0 0-.659-1.591ZM12.469 21.75H2.53a.281.281 0 0 1-.281-.281V7.03a.281.281 0 0 1 .281-.281H6v10.5a2.25 2.25 0 0 0 2.25 2.25h4.5v1.969a.282.282 0 0 1-.281.281Zm6-4.5H8.53a.281.281 0 0 1-.281-.281V2.53a.281.281 0 0 1 .281-.281H13.5v4.125c0 .621.504 1.125 1.125 1.125h4.125v9.469a.282.282 0 0 1-.281.281Zm.281-12h-3v-3h.451c.075 0 .147.03.2.082L18.667 4.6a.283.283 0 0 1 .082.199v.451Z"
class="copy-svg"
id="copy-svg"
/>
</svg>
</button>
</div>
</div>
</div>
<div class="generator-box">
<div class="slider-wrapper">
<div class="char-length-wrapper">
<label for="slider-input" id="character-length"
>Character Length</label
>
<output for="slider-input" class="number-length" id="number-el"
>0</output
>
</div>
<input
type="range"
min="0"
max="15"
value="0"
autocomplete="off"
class="char-slider"
id="slider-input"
aria-labelledby="character-length"
/>
</div>
<div class="inclusion-list-wrapper">
<ul class="inclusion-list">
<li>
<input
type="checkbox"
autocomplete="off"
id="uppercase-check"
class="inclusion-box"
/><label for="uppercase-check" class="inclusion"
>Include Uppercase Letters</label
>
</li>
<li>
<input
type="checkbox"
autocomplete="off"
id="lowercase-check"
class="inclusion-box"
/><label for="lowercase-check" class="inclusion"
>Include Lowercase Letters</label
>
</li>
<li>
<input
type="checkbox"
autocomplete="off"
id="numbers-check"
class="inclusion-box"
/><label for="numbers-check" class="inclusion"
>Include Numbers</label
>
</li>
<li>
<input
type="checkbox"
autocomplete="off"
id="symbols-check"
class="inclusion-box"
/><label for="symbols-check" class="inclusion"
>Include Symbols</label
>
</li>
</ul>
</div>
<div class="strength-box">
<div class="strength-markers-wrapper">
<p class="strength">STRENGTH</p>
<div class="strength-level-wrapper">
<p
id="strength-msg"
class="strength-msg"
aria-live="polite"
></p>
<div id="strength-markers" class="strength-markers">
<span id="marker1" class="marker mk1"></span>
<span id="marker2" class="marker mk2"></span>
<span id="marker3" class="marker mk3"></span>
<span id="marker4" class="marker mk4"></span>
</div>
</div>
</div>
</div>
<button
type="button"
id="generate-btn"
class="generate-btn"
aria-label="generate password"
>
<span class="btn-text">GENERATE</span>
<svg
class="arrow-icon"
aria-hidden="true"
width="12"
height="12"
xmlns="http://www.w3.org/2000/svg"
>
<path
class="btn-text"
d="m5.106 12 6-6-6-6-1.265 1.265 3.841 3.84H.001v1.79h7.681l-3.841 3.84z"
/>
</svg>
</button>
<p
id="error-msg"
class="error-msg"
role="alert"
aria-live="polite"
></p>
</div>
</div>
</main>
</body>
</html>