-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
80 lines (60 loc) · 2.12 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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Know your friends</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<div id="fb-root"></div>
<script>
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
window.fbAsyncInit = function() {
FB.init({
appId : '244312848996295', // App ID
channelUrl : '//spathon.com/channel.php', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
oauth: true
});
FB.Event.subscribe('auth.statusChange',handleStatusChange );
};
</script>
<div class="container">
<div class="header">
<h1>Do you know your friends?</h1>
<div id="user_info"></div>
<div>
Guess which friend who likes ...
</div>
</div>
<a href="#" id="fb_login">Login with facebook to play</a>
<div class="game-wrap">
<div class="like-wrap">
<!--h2>Like</h2-->
<div class="col like-box"><div class="col-inside" id="like"></div></div>
</div>
<div class="clearfix friends">
<h2>Who is it?</h2>
<div class="col person-1 person alignleft"><div class="col-inside" id="col_1"></div></div>
<div class="col person-2 person last alignleft"><div class="col-inside" id="col_2"></div></div>
</div>
</div>
<div class="footer">
Created by <a href="http://spathon.com">Patrik Spathon</a> at Facebook mobile hack Stockholm
</div>
</div><!-- end container -->
<div id="overlay" class="hidden"><div id="overlay_msg">You answer were wrong!</div></div>
<script src="script.js"></script>
</body>
</html>