-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (77 loc) · 2.94 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/style.css">
<link href="https://fonts.googleapis.com/css?family=Poppins:600&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/a81368914c.js"></script>
<title>Ilha do Poseidon</title>
</head>
<body>
<div class="container">
<div class="login-content">
<form id="formulario" name="formulario">
<img src="Img/poseidon.svg">
<h3 class="title">Bem vindo á Ilha do Poseidon</h3>
<div class="input-div one">
<div class="i">
<i class="fas fa-user"></i>
</div>
<div class="div">
<h5>Login/Email</h5>
<input type="text" class="input" type="email" name="login" id="login">
</div>
</div>
<div class="input-div pass">
<div class="i">
<i class="fas fa-lock"></i>
</div>
<div class="div">
<h5>Senha</h5>
<input type="password" class="input" name="password" id="password">
</div>
</div>
<a onclick="esqueceusenha()">Esqueceu sua senha ? Clique aqui?</a>
<button class="btn" type="button" onclick="validar()">Acessar</button>
</form>
</div>
</div>
<script>
function validar(){
var login = formulario.login;
var password = formulario.password;
if(login.value == "" && password.value == ""){
alert("Por favor, verifique se todos os dados foram preenchidos")
}else if(login.value == ""){
alert("Por favor, insira o login e tente novamente")
nome.focus();
}else if(password.value == ""){
alert("Por favor, insira a senha e tente novamente")
password.focus();
}else{
alert("Seja bem vinde ao Ilha de Poseidon")
window.location.href = "./pages/home.html";
}
}
function esqueceusenha(){
alert("Para recuperar a senha, entre em contato com o restaurante")
}
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
}
form.classList.add('was-validated')
}, false)
})
})()
</script>
<script type="text/javascript" src="javascript/main.js"></script>
</body>
</html>