-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (133 loc) · 7.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Password Generator & Strength Checker</title>
<meta name="author" content="Amir Asyraf">
<meta name="description" content="Passgen - Password Generator | Amir Asyraf">
<meta name="theme-color" content="#393E46">
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<link rel="apple-touch-icon" href="src/img/favicon-192.png">
<link rel="manifest" href="manifest.webmanifest"></link>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<link href="src/css/style.css" rel="stylesheet"/>
</head>
<body class="body">
<header class="header text-center">
<h1 class="site-title">Password Generator & Strength Checker</h1>
<div class="test"><h6 class="text-muted">Generate random password or type in your own password to check for its strength</h6></div>
</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 aria-describedby="crackTime" class="form-control form-control-lg" id="randomPassword" placeholder="Generated password" type="text"/>
<div class="input-group-append">
<button aria-label="Copy" class="btn text-secondary" data-clipboard-target="#randomPassword" id="copyButton" type="button">
<svg>
<use xlink:href="icons.svg#icons-copy">
</use>
</svg>
</button>
</div>
<div class="input-group-append">
<!-- specify WHAT form this button is triggering `submit` -->
<button aria-label="Generate new password" class="btn text-primary btn-block" form="generatePassword" type="submit">
<svg>
<use xlink:href="icons.svg#icons-refresh">
</use>
</svg>
</button>
</div>
</div>
<small class="form-text" id="crackTime">
It would take a computer about
<strong id="time">
</strong>
to
crack your password
</small>
</div>
</div>
</div>
</div>
<form action="#" class="container-fluid" id="generatePassword">
<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 class="form-control custom-range" id="randomPasswordLength" max="56" min="0" step="1" type="range" value="12"/>
</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="" class="fill-control-input" type="checkbox" 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 class="fill-control-input" type="checkbox" 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 class="fill-control-input" type="checkbox" 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 class="fill-control-input" type="checkbox" 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"></use></svg>
by
<a href="https://amirasyraf.dev/">Amir Asyraf</a>
</h6>
</div>
</footer>
<script src="src/js/hsimp.min.js" type="text/javascript" defer></script>
<script src="https://cdn.rawgit.com/zenorocha/clipboard.js/v2.0.0/dist/clipboard.min.js" defer></script>
<script src="src/js/main.js" type="text/javascript" defer></script>
<script src="serviceworker-register.js"></script>
<script src="serviceworker.js"></script>
</body>
</html>