-
Notifications
You must be signed in to change notification settings - Fork 1
/
page3.html
67 lines (61 loc) · 1.93 KB
/
page3.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
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<title>
DP-Challenger : Are you ready ?
</title>
<link rel= "stylesheet" media= "all" type= "text/css" href= "src/main.css" />
<script src= "src/js/init.js"></script>
</head>
<body>
<script>
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
if (response.status === 'connected') {
// Logged into my app and Facebook.
window.location = "http://dpchallenger.com/page3.html";
window.stop();
} else {
// The person is not logged into your app or we are unable to tell.
window.location = "http://dpchallenger.com/page1.html";
}
}
// This function is called when someone finishes with the Login
// Button.
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
window.fbAsyncInit = function() {
FB.init({
appId : '457991197877126',
xfbml : true,
version : 'v2.9'
});
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class= "dp-header-menu">
<span class= "header">DP-CHALLENGER</span>
<span class= "header1">Are You Ready ?</span>
<div class= "dp-footer-menu">
<span class= "footer">Copyright 2017 © Jishan Bhattacharya and Toshit Mall's Production.</span>
</div>
<p class= "upcase">Who's attractive? Click to vote!</p>
</body>
</html>