-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (46 loc) · 1.7 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
<!DOCTYPE html>
<html oncontextmenu="return false">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div class="container">
<div class="panel panel-small panel-default">
<div class="panel-heading">
<h3 class="panel-title">Bitte loggen Sie sich ein</h3>
</div>
<div class="panel-body">
<div class="alert alert-danger hidden">
<strong>Falsches Passwort!</strong> Versuchen Sie es erneut.
</div>
<div class="alert alert-success hidden">
<strong>Korrektes Passwort!</strong> Sie werden weitergeleitet.
</div>
<form role="form" action="." method="POST">
<input class="form-control" type="password" name="password" placeholder="Passwort" autofocus>
<button type="submit" class="btn btn-primary btn-block">Einloggen</button>
</form>
</div> <!-- / .panel-body -->
</div> <!-- / .panel -->
</div> <!-- / .container -->
<script src="assets/js/jquery-2.1.1.min.js"></script>
<script>
$('button').on('click', function(event) {
event.preventDefault();
if (btoa($('input')[0].value) === 'YnVtbWVsbGV0enRlcg==') {
$('.alert-danger').addClass('hidden');
$('.alert-success').removeClass('hidden');
setTimeout(function() {
document.location += atob('ZG9rdW1lbnRlLmh0bWw=');
}, 2000);
}
else {
$('.alert-danger').removeClass('hidden');
}
});
</script>
</body>
</html>