-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (60 loc) · 3.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gerador de Senhas</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
</head>
<body class="bg-dark">
<div class="container vh-100 d-flex justify-content-around align-items-center flex-wrap">
<div class="border border-warning rounded p-4 bg-amarelo img-thumbnail">
<h1 class="fw-bold">Gerador de Senhas</h1>
<div class="input-group flex-nowrap">
<input class="form-control" type="text" disabled id="inputSenha">
<button class="btn btn-secondary" onclick="copiarSenha()" id="btnCopiar"><i
class="bi bi-clipboard"></i></button>
</div>
<div>
<input type="range" class="my-3 me-3" id="inputTamanho" min="4" max="50"
oninput="visualizaValor(this.value, 'valueLabelTamanho')">
<label for="inputTamanho" class="form-label border-bottom">
<span class="fw-semibold">Tamanho:</span> <span id="valueLabelTamanho"></span>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="letrasMaiusculas">
<label class="form-check-label" for="letrasMaiusculas">
Letras maiúsculas
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="letrasMinusculas">
<label class="form-check-label" for="letrasMinusculas">
Letras minúsculas
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="caracteresEspeciais">
<label class="form-check-label" for="caracteresEspeciais">
Caracteres especiais
</label>
</div>
<button class="btn btn-primary mt-3" onclick="gerarSenha()">Gerar</button>
<button class="btn btn-secondary mt-3" onclick="limparTela()">Limpar</button>
</div>
<div>
<img class="img-thumbnail" width="300px" src="logo-gerador-de-senhas.jpg" alt="logo gerador de senhas">
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"></script>
</body>
<script src="script.js"></script>
</html>