-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_mobile.html
318 lines (294 loc) · 14.1 KB
/
test_mobile.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="en">
<head>
<title>Flaap.io</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Flaap flaap flaap!!! Flappy Bird Multiplayer has come back with many crazier new birds. Join and play with your friends now!"
/>
<meta property="og:type" content="game" />
<meta property="og:site_name" content="Flaap.io" />
<meta property="fb:app_id" content="1363556377030932" />
<meta property="og:title" content="Flaap.io" />
<meta property="og:description" content="Flaap flaap flaap!!! Flappy Bird Multiplayer has come back with many crazier new birds. Join and play with your friends now!">
<meta property="og:url" content="http://flaap.io">
<meta property="og:image" content="http://flaap.io/thumb.png" />
<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />
<link rel="canonical" href="http://flaap.io" />
<link rel="shortcut icon" type="image/x-icon" href="http://flaap.io/favicon.ico" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<link rel="dns-prefetch" href="//stats.g.doubleclick.net">
<link rel="dns-prefetch" href="//www.google-analytics.com">
<link rel="dns-prefetch" href="//pagead2.googlesyndication.com">
<link rel="dns-prefetch" href="//apis.google.com">
<link rel="dns-prefetch" href="//connect.facebook.net">
<link rel="dns-prefetch" href="//platform.twitter.com">
<link href="http://flaap.io/theme/mobile/css/mobile.css?v=1.0.25" rel="stylesheet" type="text/css" />
<script src="http://flaap.io/theme/js/jquery.min.js?v=1.1.2"></script>
</head>
<body class="mobile">
<div class="wrapper">
<div class="container">
<div class="header-logo">
<div class="title animated bounce">
<img class="title-image" src="http://flaap.io/theme/mobile/img/logo.svg" />
<img class='title-bird' src="http://flaap.io/theme/mobile/img/bird_title.gif" />
</div>
</div>
</div>
<div class="container">
<div class="col col-big pull-left reponsive">
<div class="row-form">
<div class="boxbrowm" id="user-box">
<div class="user-panel">
<div class="row-form" style="margin-top: 7px">
<input id="nickname" type="text" class="input input-form" placeholder="PLAYER NAME" value="sdfs" />
</div>
</div>
</div>
</div>
</div>
<div class="col col-small pull-left reponsive">
<div class="row-form">
<div class="boxbrowm" style="position: relative">
<div class="list-skin">
<ul class="skin-slide">
<li id="skin-item" class="skin-item" data-skinID="0">
<img src="http://flaap.io/images/bird1.gif">
</li>
</ul>
<a class="control prev" onclick="chooseSkin('prev');" href="javascript:void(0);">
<img src="http://flaap.io/theme/mobile/img/left-arrow.png" />
</a>
<a class="control next" onclick="chooseSkin('next');" href="javascript:void(0);">
<img src="http://flaap.io/theme/mobile/img/right-arrow.png" />
</a>
</div>
<style>
#share-block {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: block;
height: 100%;
width: 100%;
text-align: center;
background: rgba(85, 45, 0, 0.85);
}
#share-block .share-btns {
margin: 1% auto 0;
}
#share-block .share-btns a {
display: inline-block;
margin: 7px 1%;
overflow: hidden;
width: 29%;
max-width: 100px;
}
#share-block .share-btns a img {
width: 100%;
height: 100%;
display: block;
}
.share-text {
font-size: 8px;
}
</style>
<div class="share-block" id="share-block">
<div class="share-btns">
<a href="http://www.facebook.com/sharer.php?u=http://flaap.io" title="Share on Facebook" target="_blank">
<img width="86" height="25" src="http://flaap.io/theme/img/share-fb.png">
</a>
<a href="https://twitter.com/intent/tweet?text=Flappy+Bird+Multiplayer+has+come+back+with+many+crazier+new+birds.+Join+and+play+with+your+friends+now!+%40FlaapIo+%3d%3E+&url=http%3A%2F%2Fflaap.io"
title="Share on Twitter" target="_blank">
<img width="86" height="25" src="http://flaap.io/theme/img/share-tw.png">
</a>
<a href="https://plus.google.com/share?url=http://flaap.io" title="Share on Google Plus" target="_blank">
<img width="86" height="25" src="http://flaap.io/theme/img/share-gg.png">
</a>
</div>
<div class="share-text">
SHARE WITH FRIENDS TO UNLOCK SKINS
</div>
</div>
<script type="text/javascript">
// onclick share social choose skin
var chooseSkinAfterShareSocial = function () {
var share_buttons = document.querySelectorAll(".share-btns a");
if (share_buttons.length) {
for (var i = 0; i < share_buttons.length; i++) {
addEvenClickToButtonShareSocial(share_buttons[i]);
}
}
};
// add event click button share
var addEvenClickToButtonShareSocial = function (el) {
el.addEventListener('click', function () {
enableChooseSkin();
});
};
// enable choose skin
var enableChooseSkin = function () {
var shareBlock = document.getElementById('share-block');
shareBlock.parentNode.removeChild(shareBlock);
};
chooseSkinAfterShareSocial();
</script>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="col col-big pull-left reponsive">
<div class="row-form">
<button class="btn btn-link" onclick="FLAAP_IO_FUNC.act.show();">Play with friend</button>
</div>
<div class="row-form" style="margin-top: 20px">
<div class="pull-left">
<a href="http://flaap.io/user/register.php?callback=http%3A%2F%2Fflaap.io" title="Registration">Registration</a>
</div>
<div class="pull-right">
<a href="http://flaap.io/user/loginFunc.php?callback=http%3A%2F%2Fflaap.io" title="Login">Login</a>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="col col-small pull-left reponsive">
<div class="row-form">
<button class="btn btn-event" onclick="play();">play</button>
</div>
<div class="row-form text-right" style="margin-top: 20px">
<a href="/user/leader-board.php">leaderboard</a>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="container">
<div class="adv s320x50"></div>
</div>
</div>
<div class="modal" style="display: none">
<div class="container">
<div class="modal-content">
<div class="modal-body">
<span class="close" onclick="FLAAP_IO_FUNC.act.hide();">
<img src="http://flaap.io/theme/mobile/img/close.png" alt="close" title="close" />
</span>
<div class="row-form">
SEND YOUR PARTY LINK TO
<br /> YOUR FRIENDS TO PLAY TOGETHER
</div>
<div class="row-form">
<input id="room-id" type="text" name="link" class="input input-form" value="http://flaap.io/#zcxZ8C75KQ" style="width:280px; margin: 0 auto;"
onclick="this.select(); window.document.execCommand('copy');" />
</div>
<div class="row-form">
<span class="link" onclick="FLAAP_IO_FUNC.act.hide();">Back</span>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<script src="http://flaap.io/theme/js/jquery.cropit.js"></script>
<script type="text/javascript" src="http://flaap.io/theme/mobile/js/init.js?v=4"></script>
<script type="text/javascript">
var FLAAP_IO_SKIN, FLAAP_IO_FUNC;
window.onload = function () {
FLAAP_IO_SKIN = new SkinsSlide();
FLAAP_IO_FUNC = new Funcs();
};
</script>
<script type="text/javascript">
function play() {
var nickname = $('#nickname').val();
var data = { nickname: nickname };
$.ajax({
url: "http://flaap.io/user/play.php",
method: "POST",
data: data,
dataType: "json",
beforeSend: function () {
},
success: function (ress) {
if (!ress.status) {
alert('Sorry, operation failed, please try again');
} else {
window.location.href = "http://flaap.io/playgame/";
}
},
complete: function () {
},
error: function (msg) {
console.log(msg);
},
});
}
function chooseSkin(act) {
var currentSkinID = parseInt($('#skin-item').attr('data-skinID'));
switch (act) {
case 'prev':
if (currentSkinID === 0) {
var skinID = 13;
} else {
var skinID = currentSkinID - 1;
}
break;
case 'next':
if (currentSkinID === 13) {
var skinID = 0;
} else {
var skinID = currentSkinID + 1;
}
break;
default:
return;
break;
}
var data = { 'skinID': skinID };
$.ajax({
url: "http://flaap.io/user/chooseskin.php",
method: "POST",
data: data,
dataType: "json",
beforeSend: function () {
},
success: function (ress) {
if (!ress.status) {
alert('Sorry, operation failed, please try again');
} else {
$('#skin-item').attr('data-skinID', ress.data.id);
$('#skin-item').empty().html(ress.data.content);
}
},
complete: function () {
},
error: function (msg) {
console.log(msg);
},
});
}
</script>
<script type="text/javascript">
/ <![CDATA[ /
var google_conversion_id = 856777743;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/ ]]> /
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/856777743/?guid=ON&script=0"
/>
</div>
</noscript>
</body>
</html>