This repository has been archived by the owner on Dec 15, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathindex.php
executable file
·217 lines (194 loc) · 7.9 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
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
<?php require 'config.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>Friend Smash!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta property="og:image" content="<?= $serverUrl ?>/images/logo_large.jpg"/>
<link href="style/reset.css" rel="stylesheet" type="text/css">
<link href="style/style.css" rel="stylesheet" type="text/css">
<!-- Game logic -->
<script src="scripts/game.js"></script>
<!-- UI logic -->
<script src="scripts/ui.js"></script>
<!--[if IE]><script src="scripts/excanvas.js"></script><![endif]-->
<!-- Libraries -->
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="scripts/moment.js"></script>
<!-- Facebook SDK for Javascript -->
<script src="//connect.facebook.net/en_US/sdk.js"></script>
<!-- Parse -->
<script src="//www.parsecdn.com/js/parse-1.2.18.min.js"></script>
<script src="scripts/integration/persistence.js"></script>
<!-- Init and Login -->
<script src="scripts/integration/core.js"></script>
<script src="scripts/integration/login.js"></script>
<!-- Requests, Sharing and Graph API -->
<script src="scripts/integration/requests.js"></script>
<script src="scripts/integration/sharing.js"></script>
<script src="scripts/integration/graph_api.js"></script>
<!-- App Events and Payments -->
<script src="scripts/integration/app_events.js"></script>
<script src="scripts/integration/payments.js"></script>
</head>
<body>
<div id="fb-root"></div>
<!-- Share header -->
<header>
<div class="container">
<img class="logo" src="images/logo.png" />
<button class="image share"></button>
</div>
</header>
<section id="home" class="hidden">
<div class="panel left">
<!-- Welcome screen -->
<div id="welcome">
<h1>Welcome <span class="first_name">...</span></h1>
<img class="profile" src="images/profile.png" />
<ul class="stats">
<li><img src="images/coin40.png" alt="Coins" /> <span class="me coins">...</span></li>
<li><img class="buybomb" src="images/buybomb40.png" alt="Bombs" /> <span class="me bombs">...</span></li>
</ul>
</div>
<!-- Menu -->
<div id="menu">
<button class="image play"></button>
<button class="image challenge"></button>
<button class="image leaderboard"></button>
<button class="image store"></button>
</div>
</div>
<!-- Leaderboard -->
<div class="panel right hidden" id="leaderboard">
<div class="nofriends">
<p>Friend Smash! is better with friends! Click here to see your friends' scores</p>
<button class"friendPermissions">Grant user_friends</button>
</div>
<div class="friends">
<h1>Leaderboard</h1>
<ul class="scrollable_list leaderboard">
<li class="loading">Loading...</li>
<li class="template">
<img src="images/profile.png" class="profile small" />
<div class="namecontainer">
<span class="rank">1</span>. <span class="name">Ali</span>
</div>
<div class="scorecontainer">
Score <span class="score">99</span>
</div>
</li>
</ul>
</div>
</div>
<!-- Friends -->
<div class="panel right hidden friends" id="friendselector">
<div class="nofriends">
<p>Friend Smash! is better with friends! Click here to see a list of friends to challenge.</p>
<button class"friendPermissions">Grant user_friends</button>
</div>
<div class="friends">
<h1>Challenge friends</h1>
<div class="tabs">
<button class="friends">Request</button>
<button class="invitable_friends">Invite</button>
</div>
<ul class="scrollable_list friendselector friends">
<li class="loading">Loading...</li>
<li class="template">
<img src="images/profile.png" class="profile small" />
<span class="name">...</span>
</li>
</ul>
<ul class="scrollable_list friendselector invitable_friends">
<li class="loading">Loading...</li>
<li class="template">
<img src="images/profile.png" class="profile small" />
<span class="name">...</span>
</li>
</ul>
<div class="buttons">
<button class="image challenge send" disabled="disabled"></button>
</div>
</div>
</div>
<!-- Store -->
<div class="panel right hidden" id="store">
<h1>Store</h1>
<div class="normal_store">
<ul class="scrollable_list store invitable_friends">
<li class="item" data-product="<?= $serverUrl ?>/payments/100coins.html">
<img src="images/bundle.png" class="icon small" />
<span class="name">100 coins</span>
<img src="images/buy64.png" class="button buy small" alt="Buy" />
<img src="images/gift64.png" class="button gift small" alt="Gift" />
</li>
<li class="item" data-product="<?= $serverUrl ?>/payments/500coins.html">
<img src="images/bundle.png" class="icon small" />
<span class="name">500 coins</span>
<img src="images/buy64.png" class="button buy small" alt="Buy" />
<img src="images/gift64.png" class="button gift small" alt="Gift" />
</li>
<li class="item" data-product="<?= $serverUrl ?>/payments/1000coins.html">
<img src="images/bundle.png" class="icon small" />
<span class="name">1000 coins</span>
<img src="images/buy64.png" class="button buy small" alt="Buy" />
<img src="images/gift64.png" class="button gift small" alt="Gift" />
</li>
</ul>
</div>
<div class="mobile_store">
<ul class="scrollable_list friendselector invitable_friends">
<li class="loading">Loading...</li>
<li class="template">
<img src="images/profile.png" class="profile small" />
<span class="name">...</span>
</li>
</ul>
</div>
</div>
</section>
<!-- Game stage -->
<section id="stage" class="hidden">
<div id="gameboard">
<canvas id="canvas"></canvas>
</div>
<div id="gamestats">
<div class="message">
<img class="profile" src="images/profile.png" />
<p>Smash <span class="name">...</span></p>
</div>
<div class="score">
<p>Score <span class="score_value">...</span></p>
</div>
<div class="bombs"></div>
<div class="lives"></div>
</div>
</section>
<!-- Game Over screen -->
<section id="gameover" class="hidden">
<h1>Game Over!</h1>
<img src="images/profile.png" class="profile" />
<div class="stats">
<p>You smashed <span class="name">...</span> <span class="score">...</span> times and collected <span class="coins">...</span> <span class="coins_plurality">coins</span>!</p>
</div>
<div class="buttons">
<button class="image challenge"></button>
</div>
<div class="share_composer">
<textarea placeholder="Say something about your game"></textarea>
<div class="buttons">
<button class="image close"></button>
<button class="image share_action"></button>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<p><a href="https://www.facebook.com/appcenter/<?= $appNamespace ?>">View Friend Smash! on App Center</a></p>
</div>
</footer>
</body>
</html>