forked from mikespub-org/seblucas-cops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
97 lines (90 loc) · 2.63 KB
/
login.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
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>COPS</title>
<script type="text/javascript" src="vendor/npm-asset/jquery/dist/jquery.min.js"></script>
<style media="screen" type="text/css">
body{
background:white;
font-family: "Century Gothic", CenturyGothic, Geneva, AppleGothic, sans-serif;
}
#block{
width:230px;
height:113px;
margin:auto;
background:#2c3e50;
margin-top:100px;
border-radius:2px;
}
#block:before{
content:'';
display:block;
width:230px;
height:3px;
}
#block:after{
content:'';
display:block;
}
#block input[type=text],#block input[type=password] {
font-family:'Open Sans';
width:156px;
height:32px;
margin:15px 15px;
border:0;
border-radius:2px;
display:block;
font-size:18px;
}
#block input[type=password]{
width:156px;
height:32px;
margin:-5px 15px;
}
#submit{
position:absolute;
width:33px;
height:34px;
background:#9b59b6;
margin:15px;
color:#ffffff;
border:0;
margin:-29px 180px;
font-size:22px;
padding:0;
}
</style>
<script>
$(document).ready(function()
{
$('#loginForm').on("submit", function()
{
var username = $('#user').val();
var password = $('#password').val();
$.ajax(
{
'password' : password,
'username' : username,
'url' : 'index.php',
'type' : 'GET',
'success' : function(){ window.location = 'index.php'; },
'error' : function(){ alert('Bad Login Details');},
}
);
return false;
});
});
</script>
</head>
<body>
<form id="loginForm">
<div id="block">
<input id="user" type="text" placeholder="Username" required="required" />
<input id="password" type="password" placeholder="Password" required="required" />
<input id="submit" type="submit" value="→" />
</div>
</form>
</body>
</html>