-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
83 lines (70 loc) · 2.53 KB
/
test.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!doctype html>
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="main.css" rel="stylesheet" type="text/css">
<title>Play Bridge with the Mother of Spades</title>
</head>
<body id="test">
<div id="fb-root"></div>
<div id="board">
<div id="spinner"><img src="images/spinner.gif"/></div>
<div id="user-info" class="clear">
<img id="user-pic" src="https://graph.facebook.com/<?php echo $uid; ?>/picture" />
<span class="user-welcome">Welcome, </span>
<span id="user-name"><?php echo $me['first_name']; ?></span>
<span class="user-welcome">!</span>
</div>
<div class="buttons">
<a class="button" id="worldpeace"><span>Bring world peace</span></a>
</div>
<a class="smallbutton" id="dealbutton"><span>Deal Cards!</span></a>
<div class="myhand">
</div>
<div class="playerInviteBox" id="invitePlayerN">
<input type="text" />
<a class="smallbutton" ><span>Invite!</span></a>
</div>
<div class="playerInviteBox" id="invitePlayerE">
<input type="text" />
<a class="smallbutton"><span>Invite!</span></a>
</div>
<div class="playerInviteBox" id="invitePlayerW">
<input type="text" />
<a class="smallbutton"><span>Invite!</span></a>
</div>
</div>
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js">
</script>
<script src="scripts/log4js/log4javascript.js">
</script>
<script src="main.js">
</script>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '178032535583061',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB.Canvas.setSize({ width: 760, height: 680 });
// whenever the user logs in, we refresh the page
FB.Event.subscribe('auth.login', function() {
window.location.reload();
});
$(function() { initBridge(); });
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
<div id="error"></div>
<div id="debug">
</div>
</body>
</html>