-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
78 lines (72 loc) · 2.3 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
<!--
/**
* Created by alejandrorioscalera
* On 17/09/18
*
* - SOCIAL NETWORKS -
*
* GitHub: https://github.com/clonalejandro or @clonalejandro
* Website: https://clonalejandro.me/
* Twitter: https://twitter.com/clonalejandro11/ or @clonalejandro11
* Keybase: https://keybase.io/clonalejandro/
*
* - LICENSE -
*
* All rights reserved for clonalejandro ©Password-generator 2018 / 2019
*/
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="clonalejandro">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Password Generator</title>
<link href="https://clonalejandro.github.io/cdn/clonaweb/malextrap.min.css" rel="stylesheet">
<style>
.title .headline {
font-size: 2.5em!important;
}
</style>
</head>
<body>
<div id="wrapper">
<header class="header">
<div class="head">
<div class="title">
<h1 class="headline">Password Generator</h1>
</div>
</div>
</header>
<div class="container">
<form id="passForm" onsubmit="return false">
<div class="form-group">
<div>
<label>Size: </label>
<input name="size" type="number" value="8" min="8" max="32" />
</div>
<div>
<span id="password" style="display: none"></span>
</div>
<br>
<button type="submit" class="btn first-gradient animated">Generate Password</button>
</div>
</form>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<script src="https://clonalejandro.github.io/cdn/clonaweb/malextrap.min.js"></script>
<script src="./js/src/app.js"></script>
<script>
/** EVENTS **/
$("#passForm").addEventListener("submit", e => {
const size = $("input[name='size']").value;
const output = $("#password");
const password = new Password(size).generate();
output.setAttribute("style", "");//Displays
output.innerHTML = password;//Display password
})
</script>
</body>
</html>