-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (76 loc) · 2.69 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Generator</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<style>
body {
background-color: #f5f5f5;
}
.container {
margin-top: 50px;
}
.center-align {
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m2">
<div class="card">
<div class="card-content">
<span class="card-title center-align font-bold text-large font-montserrat">Password Generator</span>
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12 m6">
<input id="passwordLength" type="number" min="6" max="50" class="validate" value="12">
<label for="passwordLength">Password length</label>
</div>
<div class="input-field col s12 m6">
<p>
<label>
<input name="group1" type="radio" checked />
<span>Weak</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" />
<span>Medium</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" />
<span>Strong</span>
</label>
</p>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col s12 center-align">
<span id="passwordDisplay" class="green-text text-darken-2" style="font-size: 2rem;"></span>
</div>
</div>
</div>
<div class="card-action center-align">
<a class="waves-effect waves-light btn" id="generateButton">Generate Password</a>
<a class="waves-effect waves-light btn" id="copyButton">Copy password</a>
</div>
</div>
</div>
</div>
</div>
<!-- Adicione o Materialize JS e o script do gerador de senhas -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="./src/script.js"></script>
</body>
</html>