-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
82 lines (66 loc) · 2.37 KB
/
index.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
<?php
session_start();
if (isset($_SESSION['logged_in']))
{
header('location: chat.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="bg-style.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/5.1.1/bootstrap-social.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<title></title>
<!-- <script src=""></script> -->
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
</head>
<body>
<div id="login-button">
<img src="https://dqcgrsy5v35b9.cloudfront.net/cruiseplanner/assets/img/icons/login-w-icon.png">
</img>
</div>
<div id="container">
<h1>Log In</h1>
<span class="close-btn">
<!-- <img src="https://cdn4.iconfinder.com/data/icons/miu/22/circle_close_delete_-128.png"></img> -->
</span>
<form method="GET" action="https://github.com/login/oauth/authorize">
<input type="hidden" name="client_id" value="8f74c6a9b5f13e9b3b01">
<div class="container" style="padding-left: 45px;">
<button type="submit" class="btn btn-github" style="align-content: center;">
<i class="fa fa-github"></i> | Login via GitHub
</button>
</div>
</form>
</div>
<!-- Forgotten Password Container -->
<script type="text/javascript">
$('#login-button').click(function(){
$('#login-button').fadeOut("slow",function(){
$("#container").fadeIn();
TweenMax.from("#container", .4, { scale: 0, ease:Sine.easeInOut});
TweenMax.to("#container", .4, { scale: 1, ease:Sine.easeInOut});
});
});
$(".close-btn").click(function(){
TweenMax.from("#container", .4, { scale: 1, ease:Sine.easeInOut});
TweenMax.to("#container", .4, { left:"0px", scale: 0, ease:Sine.easeInOut});
$("#container, #forgotten-container").fadeOut(800, function(){
$("#login-button").fadeIn(800);
});
});
/* Forgotten Password */
$('#forgotten').click(function(){
$("#container").fadeOut(function(){
$("#forgotten-container").fadeIn();
});
});
</script>
</body>
</html>