forked from ellisonleao/clumsy-bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
140 lines (129 loc) · 5.33 KB
/
index.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Clumsy Bird</title>
<link rel="apple-touch-icon-precomposed" href="data/img/touch-icon-iphone.png"/>
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="data/img/touch-icon-iphone-retina.png"/>
<link rel="shortcut icon" href="data/img/favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Clumsy Bird">
<meta charset="UTF-8" />
<meta name="description" content="Clumsy Bird - A Flappy Bird clone using MelonJS"/>
<meta name="keywords" content="flappybird, flappy, bird, game, html5, melonjs,clone"/>
<meta name="robots" content="index, follow">
<meta name="google-site-verification" content="RDZI9SqVaffd48uHfZMv67-YdvviOMe2HuULEYqVgd4" />
<meta property="og:image" content="http://ellisonleao.github.io/clumsy-bird/data/img/bg.png" />
<meta property="og:title" content="Clumsy Bird - A Flappy Bird clone using MelonJS"/>
<meta property="og:url" content="http://ellisonleao.github.io/clumsy-bird/"/>
<meta property="og:site_name" content="Clumsy Bird - MelonJS"/>
<!-- Twitter Card -->
<meta name="twitter:hashtag" content="clumsybird" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@ellisonleao" />
<meta name="twitter:creator" content="@ellisonleao" />
<meta name="twitter:title" content="Clumsy Bird" />
<meta name="twitter:description" content="A Flappy Bird melonJS clone " />
<!-- Humans -->
<link rel="author" href="humans.txt" />
<link rel="stylesheet" type="text/css" href="addtohomescreen.css">
<script src="js/addtohomescreen.min.js"></script>
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '213642148840283',
status : true,
xfbml : true
});
};
(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/pt_BR/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
addToHomescreen();
</script>
<!-- Canvas placeholder -->
<div id="screen"></div>
<!-- Sharing section -->
<div id="share">
<div
class="fb-share-button"
data-href="http://ellisonleao.github.io/clumsy-bird/"
data-type="button_count">
</div>
<a
href="https://twitter.com/ellisonleao"
class="twitter-follow-button"
data-show-count="false">Follow @ellisonleao
</a>
<div class="google">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-899823-9', 'ellisonleao.github.io');
ga('send', 'pageview');
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1107121710553160";
/* Clumsy Ads */
google_ad_slot = "4971477596";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<script>
!function(d,s,id){
var js,fjs=d.getElementsByTagName(s)[0],
p=/^http:/.test(d.location)?'http':'https';
if(!d.getElementById(id)){
js=d.createElement(s);
js.id=id;
js.src=p+'://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js,fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
</div>
<!-- melonJS Library -->
<script type="text/javascript" src="js/melonJS-2.1.1-min.js"></script>
<script type="text/javascript" src="js/debugPanel.js" ></script>
<script type="text/javascript" src="build/clumsy-min.js" ></script>
<!-- Bootstrap & Mobile optimization tricks -->
<script type="text/javascript">
window.onReady(function onReady() {
game.onload();
// Mobile browser hacks
if (me.device.isMobile && !navigator.isCocoonJS) {
// Prevent the webview from moving on a swipe
window.document.addEventListener("touchmove", function (e) {
e.preventDefault();
window.scroll(0, 0);
return false;
}, false);
// Scroll away mobile GUI
(function () {
window.scrollTo(0, 1);
me.video.onresize(null);
}).defer();
me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) {
window.scrollTo(0, 1);
});
}
});
</script>
</body>
</html>