forked from ellisonleao/clumsy-bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (107 loc) · 4.44 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Clumsy Bird</title>
<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 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 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"/>
</head>
<body>
<div id="fb-root"></div>
<script>(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#xfbml=1&appId=454517184645569";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Canvas placeholder -->
<div id="screen"></div>
<!-- Sharing section -->
<div id="share">
<iframe
src="http://ghbtns.com/github-btn.html?user=ellisonleao&repo=clumsy-bird&type=watch&count=true"
allowtransparency="true"
frameborder="0"
scrolling="0"
width="77"
height="20">
</iframe>
<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>
<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="lib/melonJS-1.0.0-dev-min.js"></script>
<!-- Plugin(s) -->
<script type="text/javascript" src="lib/plugins/debugPanel.js"></script>
<!-- Game Scripts -->
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/resources.js"></script>
<script type="text/javascript" src="js/entities/entities.js"></script>
<script type="text/javascript" src="js/entities/HUD.js"></script>
<script type="text/javascript" src="js/screens/title.js"></script>
<script type="text/javascript" src="js/screens/play.js"></script>
<script type="text/javascript" src="js/screens/gameover.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>
<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>
</body>
</html>