This repository has been archived by the owner on Jul 11, 2018. It is now read-only.
/
login.html
executable file
·50 lines (49 loc) · 1.52 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
<html>
<head>
<title>Login | postr</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<style>
a:hover{
font-weight: normal;
}
</style>
<!-- Moar jQuery magic hax -->
<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
$(document).ready(function() {
var curswitch = window.location.hash;
$("#error").hide();
if(curswitch == "#error") {
$("#error").slideToggle(250);
$("#error p").text("ERROR: Email/password incorrect.");
}
if(curswitch == "#error1") {
$("#error").slideToggle(250);
$("#error p").text("ERROR: Please login.");
}
});
</script>
</head>
<body>
<div id="content">
<header>
<h1>postr</h1>
<p>Social media - one post at a time.</p>
</header>
<div id = "error"><p></p></div>
<div id = "register">
<form action="login.php" method="POST">
<p class="no_margin"><input type="text" id="email_login" name="email" placeholder="Email" /></p>
<p class="no_margin"><input type="password" id="password_login" name="password" placeholder="Password" /></p>
<p><input type="submit" id="login_button_2" value="Log in" /></p>
</form>
</div>
<hr style="width: 300px; background-color: #fff; margin-bottom: 15px" />
<div id="register">
<a id="register_button" href="index.html">Need an account?</a>
</div>
</div>
</body>
</html>