-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
156 lines (156 loc) · 5.68 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Strong password generator</title>
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/main.css" />
</head>
<body class="body">
<header class="header text-center">
<h1 class="site-title">Strong password generator</h1>
<small class="text-muted">Use this tool to generate with one click secure random password</small>
</header>
<main class="main container">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="exampleInputEmail1">Generated Password</label>
<div class="input-group">
<input
type="text"
id="randomPassword"
class="form-control form-control-lg"
aria-describedby="crackTime"
placeholder="Generated password"
/>
<div class="input-group-append">
<button
type="button"
id="copyButton"
class="btn text-secondary"
data-clipboard-target="#randomPassword"
aria-label="Copy"
>
<svg><use xlink:href="icons.svg#icons-copy" /></svg>
</button>
</div>
<div class="input-group-append">
<!-- specify WHAT form this button is triggering `submit` -->
<button
type="submit"
form="generatePassword"
class="btn text-primary btn-block"
aria-label="Generate new Passowrd"
>
<svg><use xlink:href="icons.svg#icons-refresh" /></svg>
</button>
</div>
</div>
<small id="crackTime" class="form-text"
>It would take a computer about <strong id="time"></strong> to
crack your password</small
>
</div>
</div>
</div>
</div>
<form id="generatePassword" action="#" class="container-fluid">
<div class="form-group row">
<label class="col-3 col-form-label" for="randomPasswordLength"
>Length: <strong id="randomPasswordLengthLabel">12</strong></label
>
<div class="col-9">
<input
type="range"
class="form-control custom-range"
min="0"
max="56"
step="1"
value="12"
id="randomPasswordLength"
/>
</div>
</div>
<div class="form-group row">
<div class="col-6 col-sm-3">
<div class="form-check form-check-inline">
<label class="custom-control fill-checkbox">
<input
checked
type="checkbox"
class="fill-control-input"
value="lowercase"
/>
<span class="fill-control-indicator"></span>
<span class="fill-control-description">Lowercase</span>
</label>
</div>
</div>
<div class="col-6 col-sm-3">
<div class="form-check form-check-inline">
<label class="custom-control fill-checkbox">
<input
type="checkbox"
class="fill-control-input"
value="uppercase"
/>
<span class="fill-control-indicator"></span>
<span class="fill-control-description">Uppercase</span>
</label>
</div>
</div>
<div class="col-6 col-sm-3">
<div class="form-check form-check-inline">
<label class="custom-control fill-checkbox">
<input
type="checkbox"
class="fill-control-input"
value="numbers"
/>
<span class="fill-control-indicator"></span>
<span class="fill-control-description">Numbers</span>
</label>
</div>
</div>
<div class="col-6 col-sm-3">
<div class="form-check form-check-inline">
<label class="custom-control fill-checkbox">
<input
type="checkbox"
class="fill-control-input"
value="symbols"
/>
<span class="fill-control-indicator"></span>
<span class="fill-control-description">Symbols</span>
</label>
</div>
</div>
</div>
</form>
<code class="alert" id="alert"></code>
</main>
<footer class="footer">
<div class="container">
<h6 class="footer__copy">
Made with
<svg class="footer__love"><use xlink:href="icons.svg#icons-favorite" /></svg>
by <a href="https://davidtavarez.github.io/">David Tavarez</a> and
<a href="https://github.com/taverasmisael">Misael Taveras</a>
</h6>
</div>
</footer>
<script type="text/javascript" src="js/hsimp.min.js" defer></script>
<script
src="https://cdn.rawgit.com/zenorocha/clipboard.js/v2.0.0/dist/clipboard.min.js"
defer
></script>
<script type="text/javascript" src="js/main.js" defer></script>
</body>
</html>