-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (108 loc) · 3.79 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PassGen</title>
<link rel="icon" href="Images/keyIcon.svg" />
<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=Karla:[email protected]&display=swap"
rel="stylesheet"
/>
<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=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="index.css" />
<script type="text/javascript" src="darkmode.js" defer></script>
</head>
<body>
<section id="container">
<button id="theme-switch-el">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#e8eaed"
>
<path
d="M480-280q-83 0-141.5-58.5T280-480q0-83 58.5-141.5T480-680q83 0 141.5 58.5T680-480q0 83-58.5 141.5T480-280ZM200-440H40v-80h160v80Zm720 0H760v-80h160v80ZM440-760v-160h80v160h-80Zm0 720v-160h80v160h-80ZM256-650l-101-97 57-59 96 100-52 56Zm492 496-97-101 53-55 101 97-57 59Zm-98-550 97-101 59 57-100 96-56-52ZM154-212l101-97 55 53-97 101-59-57Z"
/>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#e8eaed"
id="darkmode-icon"
>
<path
d="M480-120q-150 0-255-105T120-480q0-150 105-255t255-105q14 0 27.5 1t26.5 3q-41 29-65.5 75.5T444-660q0 90 63 153t153 63q55 0 101-24.5t75-65.5q2 13 3 26.5t1 27.5q0 150-105 255T480-120Z"
/>
</svg>
</button>
<h1 id="header-el">
Generate a <span id="header-part-el">random password</span>
</h1>
<h2 id="lower-header-el">Never use an insecure password again.</h2>
<button id="generate-btn-el" onclick="generatePasswords()">
Generate passwords
</button>
<div class="options-container">
<p id="length-el">Length: 15</p>
<input type="range" min="5" max="100" value="15" id="slider-el" />
</div>
<div class="switches-container">
<p class="switch-text">A:</p>
<label class="switch" id="switch-capitals-el">
<input
type="checkbox"
checked="true"
onchange="toggleCharacters('capitals')"
id="capital-switch"
/>
<span class="slider round"></span>
</label>
<p class="switch-text">1:</p>
<label class="switch" id="switch-numbers-el">
<input
type="checkbox"
checked="true"
onchange="toggleCharacters('numbers')"
id="number-switch"
/>
<span class="slider round"></span>
</label>
<p class="switch-text">!:</p>
<label class="switch" id="switch-symbols-el">
<input
type="checkbox"
checked="true"
onchange="toggleCharacters('symbols')"
id="symbol-switch"
/>
<span class="slider round"></span>
</label>
</div>
<hr id="horizontal-divider-el" />
<div id="passwords-container">
<button
class="passwords"
id="password-one-el"
onclick="copy(1)"
></button>
<button
class="passwords"
id="password-two-el"
onclick="copy(2)"
></button>
</div>
</section>
<script src="index.js"></script>
</body>
</html>