forked from zachd/flappy-bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
118 lines (118 loc) · 4 KB
/
index.php
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
<?php
require("score.php");
require_once("assets/detect.php");
$detect = new Mobile_Detect;
if($detect->isMobile())
header('Location: http://zach.ie/flappy/m');
?>
<html>
<head>
<title>Better Flappy Bird</title>
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="assets/icon.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/icon.png">
<link rel="shortcut icon" href="assets/birdie.ico" type="image/x-icon" />
<meta property="fb:admins" content="1434685963"/>
<meta property="og:site_name" content="Better Flappy Bird"/>
<meta property="og:title" content="Better Flappy Bird"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://zach.ie/flappy/"/>
<meta property="og:image" content="http://zach.ie/flappy/assets/icon.png" />
<meta property="og:description" content="A better version of Ural Özden's HTML5 Flappy Bird game which adds high score saving, custom game messages and a larger screen size." />
<style>
body {
background: #abc;
margin: 0;
padding: 0;
}
a {
color: black;
}
#container {
width: 100%;
}
#users {
position: absolute;
top: 0;
left: 0;
margin: 1%;
font-family: "Press Start 2P";
font-size: 12px;
height:600px;
z-index: 0;
}
#usersheader {
font-size: 10px;
}
#usersvalues {
padding-top: 10px;
line-height: 130%;
}
#playingstats {
bottom:10px;
position: absolute;
left: 0;
width: 250px;
}
#screen {
position:relative;
margin: 0 auto;
max-width: 800px;
max-height: 800px;
overflow: hidden;
z-index: 1;
}
#scores {
position: absolute;
top: 0;
right: 0;
margin: 1%;
font-family: "Press Start 2P";
font-size: 12px;
z-index: 0;
}
#scoreheader {
font-size: 10px;
}
#scorevalues {
padding-top: 10px;
line-height: 130%;
}
#footer {
text-align:center;
text-transform: uppercase;
margin-top:10px;
font-size: 9px;
}
.footerlink {
text-decoration: none;
color: black;
}
</style>
</style>
<script type="text/javascript">
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
</script>
</head>
<body>
<div id="container">
<div id="users"><span id="usersvalues"><?php
printusers("");
?></span></div>
<div id="screen"></div>
<div id="scores"><span id="scorevalues"><?php
printscores("", isset($_GET['all']));
?></span><a href="doge" /><img src="assets/doge.png" style="vertical-align:middle;padding-right:5px;" title="Doge" />Doge</a></div>
<script src="js/phaser.min.js"></script>
<script src="js/main.js"></script>
<div id="footer">original html5 game by <a href="http://uralozden.com/flappy/" target="_blank" class="footerlink">Ural Özden</a> | forked by zach diebold</div>
</div>
</body>
</html>