-
Notifications
You must be signed in to change notification settings - Fork 1
/
logon.php
96 lines (75 loc) · 2.91 KB
/
logon.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http:https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/login.css">
<script src="http:https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http:https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
<body>
<div id="heade" ><div id="particles-js" style="height: 100%;"></div></div>
<div class="login-reg-panel">
<div class="login-info-box">
<h2>Have an account?</h2>
<p>Thats Good</p>
<label id="label-register" for="log-reg-show" >Login</label>
<input type="radio" name="active-log-panel" id="log-reg-show" checked="checked">
</div>
<div class="register-info-box">
<h2>Don't have an account?</h2>
<p>Sign Up now!</p>
<label id="label-login" for="log-login-show">Register</label>
<input type="radio" name="active-log-panel" id="log-login-show">
</div>
<div class="white-panel">
<form action="login.php" method="post">
<div class="login-show">
<h2>LOGIN</h2>
<input type="text" placeholder="Email" name="email" >
<input type="password" placeholder="Password" name="pass">
<button type="submit"> <input type="button" value="Login"> </button>
<a href="">Forgot password?</a>
</div>
</form>
<form action="signin.php" method="post">
<div class="register-show">
<h2>REGISTER</h2>
<input type="text" placeholder="Name" name="name">
<input type="text" placeholder="Email" name="email">
<input type="password" placeholder="Password" name="pass">
<input type="password" placeholder="Confirm Password" >
<button type="submit" > <input type="button" value="Register"> </button>
</div>
</form>
</div>
</div>
<script src="./js/particle.js"></script>
<script src="./js/app.js"></script>
<script src="./js/particles.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.login-info-box').fadeOut();
$('.login-show').addClass('show-log-panel');
});
$('.login-reg-panel input[type="radio"]').on('change', function() {
if($('#log-login-show').is(':checked')) {
$('.register-info-box').fadeOut();
$('.login-info-box').fadeIn();
$('.white-panel').addClass('right-log');
$('.register-show').addClass('show-log-panel');
$('.login-show').removeClass('show-log-panel');
}
else if($('#log-reg-show').is(':checked')) {
$('.register-info-box').fadeIn();
$('.login-info-box').fadeOut();
$('.white-panel').removeClass('right-log');
$('.login-show').addClass('show-log-panel');
$('.register-show').removeClass('show-log-panel');
}
});
</script>
</body>
</html>