-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
73 lines (66 loc) · 2.61 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
<!DOCTYPE html>
<html lang="es">
<head>
<title>LogIn</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="./css/main.css">
</head>
<body class="cover" style="background-image: url(./assets/img/fondo.jpg);">
<header>
<br>
<div>
<nav class="navbar navbar-expand-lg">
<ul class="">
<a class="text-light navbar-brand" href="#">
----------- CALCULADORA PUSE ----------
</a>
</ul>
</nav>
</div>
</header>
<form action="" method="" autocomplete="off" class="full-box logInForm">
<p class="text-center text-muted"><i class="zmdi zmdi-account-circle zmdi-hc-5x"></i></p>
<p class="text-center text-muted text-uppercase">Inicia sesión con tu cuenta</p>
<div class="form-group label-floating">
<label class="control-label" for="UserEmail" style="color: white;">E-mail</label>
<input class="form-control" id="UserEmail" type="email" style="color: white;" >
<p class="help-block">Usuario</p>
</div>
<div class="form-group label-floating">
<label class="control-label" for="UserPass" style="color: white;">Contraseña</label>
<input type="password" class="form-control" id="UserPass" placeholder="" style="color: white;">
<p class="help-block">Contraseña</p>
</div>
<div class="form-group text-center">
<button type="button" class="btn btn-primary btn-lg font-weight-bold" onclick="ingresar()">Ingresar</button>
</div>
</form>
<!--====== Scripts -->
<script src="./js/jquery-3.1.1.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/material.min.js"></script>
<script src="./js/ripples.min.js"></script>
<script src="./js/sweetalert2.min.js"></script>
<script src="./js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="./js/main.js"></script>
<script>
$.material.init();
</script>
<script>
function ingresar() {
var usuario = document.getElementById("UserEmail").value;
var contrasena = document.getElementById("UserPass").value;
if (usuario === '[email protected]' && contrasena === 'admin123') {
// Las credenciales son válidas, redirige al usuario a "home.html".
window.location.href = 'period.html';
} else {
alert('Credenciales incorrectas. Inténtalo de nuevo.');
document.getElementById("UserEmail").value = '';
document.getElementById("UserPass").value = '';
document.getElementById("UserEmail").focus();
}
}
</script>
</body>
</html>