-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_test.html
122 lines (99 loc) · 2.61 KB
/
index_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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
<div id="fb-root"></div>
<script src="js/jquery.js"></script>
<script src="//connect.facebook.net/en_US/all.js"></script>
<script src="js/swfobject.js"></script>
<script type="text/javascript">
var appId = "601400096658911";
var url = "https://bizimdepo.mobi/game01/test/index_test.html";
FB.init({appId:appId, xfbml: true, status: true, cookie: true});
FB.getLoginStatus(checkLoginStatus);
function checkLoginStatus(response)
{
if(response && response.status == 'connected')
{
var authResponse = response.authResponse;
console.log(authResponse);
if(authResponse.accessToken != null && authResponse.userID != null)
{
buildFlashMovie(authResponse.accessToken, authResponse.userID);
return;
}
}
else
{
window.location="https://www.facebook.com/dialog/oauth?client_id="+appId+"&redirect_uri="+url+"&response_type=token";
}
}
function buildFlashMovie(token, uid)
{
var version = 101;
var flashvars = {
version:version
};
flashvars.token = token;
flashvars.fb_user_id = uid;
flashvars.facebookLogin = "2";
flashvars.version = version;
var params = {
menu: "false",
allowFullscreen: "true",
allowFullscreenInteractive: "true",
allowScriptAccess: "always",
bgcolor: "",
wmode: "direct" // can cause issues with FP settings & webcam
};
var attributes = {
id:"Bin_web"
};
var maxHeight = 785;
var currentHeight = $(document).height();
var padding = 25;
if(currentHeight > maxHeight)
currentHeight = maxHeight;
swfobject.embedSWF(
"Bin_web.swf?test=true&" + version,
"flashHolder", "100%", currentHeight - padding, "19.0.0",
"expressInstall.swf",
flashvars, params, attributes);
}
window.onresize = function(event) {
var maxHeight = 785;
var currentHeight = $(document).height();
var padding = 25;
if(currentHeight > maxHeight)
currentHeight = maxHeight;
document.getElementById("Bin_web").height = currentHeight - padding;
};
</script>
<style>
html, body {
height:100%;
overflow:hidden;
}
body {
background-color:#000000;
}
body {
margin:0;
}
</style>
<div id="flashHolder">
<p>
<a href="https://www.adobe.com/go/getflashplayer">
<img
src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" />
</a>
</p>
</div>
<div id="infosection" align="center">
<a href="https://www.facebook.com/batirkazan"><font color="#FFFFFF" face="Verdana">FAN PAGE</font></a>
</div>
</body>
</html>