-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (65 loc) · 3.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"
rel="stylesheet"
>
<link rel="stylesheet" href="index.css">
<title>Password Genrator</title>
</head>
<!-- force select input to reset on refresh -->
<body onLoad="document.querySelector('.selected-number').options[0].selected = 'selected';">
<header>
</header>
<div class = "main flow">
<div class="top flow" >
<h1 class="title" style="--flow-space: 5rem;">Generate a <span class="span-title">random password</span></h1>
<h2 class="sub-title" style="--flow-space: 2rem;">Never use an insecure password again.</h2>
<div class="inputs flow" style="--flow-space: 5rem;">
<label style="--flow-space: 5rem;">Choose password length:
<select class="selected-number">
<option value = "8">8</option>
<option value = "9">9</option>
<option value = "10">10</option>
<option value = "11">11</option>
<option value = "12">12</option>
<option value = "13">13</option>
<option value = "14">14</option>
</select>
</label>
<button class="generate-btn" >Generate passwords</button>
</div>
</div>
<div class="results" style="--flow-space: 5rem" >
<div class="outer-div">
<div id="pass-one" class="password" ></div>
<button class="copy btn-one" data-clipboard-target ="#passOne">copy</button>
<span class="tooltip-text tooltip-one">copied!</span>
</div>
<div class="outer-div">
<div id="pass-two" class="password"></div>
<button class="copy btn-two" data-clipboard-target ="#passTwo">copy</button>
<span class="tooltip-text tooltip-two">copied!</span>
</div>
<div class="outer-div">
<div id="pass-three" class="password"></div>
<button class="copy btn-three" data-clipboard-target ="#passThree">copy</button>
<span class="tooltip-text tooltip-three">copied!</span>
</div>
<div class="outer-div">
<div id="pass-four" class="password"></div>
<button class="copy btn-four" data-clipboard-target ="#passFour">copy</button>
<span class="tooltip-text tooltip-four">copied!</span>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script>
<script src="index.js"></script>
</body>
</html>