-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
407 lines (402 loc) · 20.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
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<?php
include('config.php');
?>
<!DOCTYPE html>
<html lang="<?= $locale ?>">
<head>
<meta charset="utf-8">
<title><?= $title ?></title>
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<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="PokeMap">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#3b3b3b">
<!-- Fav- & Apple-Touch-Icons -->
<!-- Favicon -->
<link rel="shortcut icon" href="static/appicons/favicon.ico"
type="image/x-icon">
<!-- non-retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/114x114.png"
sizes="57x57">
<!-- non-retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/144x144.png"
sizes="72x72">
<!-- non-retina iPad iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/152x152.png"
sizes="76x76">
<!-- retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/114x114.png"
sizes="114x114">
<!-- retina iPhone iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/120x120.png"
sizes="120x120">
<!-- retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/144x144.png"
sizes="144x144">
<!-- retina iPad iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/152x152.png"
sizes="152x152">
<!-- retina iPhone 6 iOS 7 -->
<link rel="apple-touch-icon" href="static/appicons/180x180.png"
sizes="180x180">
<link rel="stylesheet" href="static/dist/css/app.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.css">
<script src="static/js/vendor/modernizr.custom.js"></script>
</head>
<body id="top">
<div class="wrapper">
<!-- Header -->
<header id="header">
<a href="#nav"><span class="label">Options</span></a>
<h1><a href="#"><?= $title ?></a></h1>
<a href="#stats" id="statsToggle" class="statsNav" style="float: right;"><span class="label">Stats</span></a>
</header>
<!-- NAV -->
<nav id="nav">
<div id="nav-accordion">
<h3>Marker Settings</h3>
<div>
<div class="form-control switch-container">
<h3>Pokemon</h3>
<div class="onoffswitch">
<input id="pokemon-switch" type="checkbox" name="pokemon-switch" class="onoffswitch-checkbox" checked>
<label class="onoffswitch-label" for="pokemon-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container">
<h3>Gyms</h3>
<div class="onoffswitch">
<input id="gyms-switch" type="checkbox" name="gyms-switch" class="onoffswitch-checkbox" checked>
<label class="onoffswitch-label" for="gyms-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container" id="gym-sidebar-wrapper" style="display:none">
<h3>Use Gym Sidebar</h3>
<div class="onoffswitch">
<input id="gym-sidebar-switch" type="checkbox" name="gym-sidebar-switch" class="onoffswitch-checkbox" checked>
<label class="onoffswitch-label" for="gym-sidebar-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div id="gyms-filter-wrapper" style="display:none">
<div class="form-control switch-container" id="team-gyms-only-wrapper">
<h3>Team</h3>
<select name="team-gyms-filter-switch" id="team-gyms-only-switch">
<option value="0">All</option>
<option value="1">Mystic</option>
<option value="2">Valor</option>
<option value="3">Instinct</option>
</select>
</div>
<div class="form-control switch-container" id="open-gyms-only-wrapper">
<h3>Open Spot</h3>
<select name="open-gyms-only-switch" id="open-gyms-only-switch">
<option value="0">All</option>
<option value="1">Open Spot</option>
<option value="2"><= 1000 Prestige Until Open Spot</option>
<option value="3"><= 2500 Prestige Until Open Spot</option>
<option value="4"><= 5000 Prestige Until Open Spot</option>
</select>
</div>
<div class="form-control switch-container" id="min-level-gyms-filter-wrapper">
<h3>Minimum Level</h3>
<select name="min-level-gyms-filter-switch" id="min-level-gyms-filter-switch">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="form-control switch-container" id="max-level-gyms-filter-wrapper">
<h3>Maximum Level</h3>
<select name="max-level-gyms-filter-switch" id="max-level-gyms-filter-switch">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="form-control switch-container" id="last-update-gyms-wrapper">
<h3>Last Scan</h3>
<select name="last-update-gyms-switch" id="last-update-gyms-switch">
<option value="0">All</option>
<option value="1">Last Hour</option>
<option value="6">Last 6 Hours</option>
<option value="12">Last 12 Hours</option>
<option value="24">Last 24 Hours</option>
<option value="168">Last Week</option>
</select>
</div>
</div>
<div class="form-control switch-container">
<h3>Pokestops</h3>
<div class="onoffswitch">
<input id="pokestops-switch" type="checkbox" name="pokestops-switch" class="onoffswitch-checkbox" checked>
<label class="onoffswitch-label" for="pokestops-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container" id="lured-pokestops-only-wrapper" style="display:none">
<select name="lured-pokestops-only-switch" id="lured-pokestops-only-switch">
<option value="0">All</option>
<option value="1">Only Lured</option>
</select>
</div>
<div class="form-control switch-container">
<h3>Scanned Locations</h3>
<div class="onoffswitch">
<input id="scanned-switch" type="checkbox" name="scanned-switch" class="onoffswitch-checkbox">
<label class="onoffswitch-label" for="scanned-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container">
<h3>Spawn Points</h3>
<div class="onoffswitch">
<input id="spawnpoints-switch" type="checkbox" name="spawnpoints-switch" class="onoffswitch-checkbox">
<label class="onoffswitch-label" for="spawnpoints-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container">
<h3>Ranges</h3>
<div class="onoffswitch">
<input id="ranges-switch" type="checkbox" name="ranges-switch" class="onoffswitch-checkbox">
<label class="onoffswitch-label" for="ranges-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control">
<label for="exclude-pokemon">
<h3>Hide Pokemon</h3>
<div style="max-height:165px;overflow-y:auto">
<select id="exclude-pokemon" multiple="multiple"></select>
</div>
</label>
</div>
</div>
<h3>Location & Search Settings</h3>
<div>
<div class="form-control switch-container" style="display:{{is_fixed}}" >
<label for="next-location">
<h3>Change search location</h3>
<input id="next-location" type="text" name="next-location" placeholder="Change search location">
</label>
</div>
<div class="form-control switch-container" style="display:{{is_fixed}}" >
<h3>Lock search marker</h3>
<div class="onoffswitch">
<input id="lock-marker-switch" type="checkbox" name="lock-marker-switch" class="onoffswitch-checkbox" checked/>
<label class="onoffswitch-label" for="lock-marker-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container" style="display:{{is_fixed}}" >
<h3>Search follows me</h3>
<div class="onoffswitch">
<input id="geoloc-switch" type="checkbox" name="geoloc-switch" class="onoffswitch-checkbox" checked/>
<label class="onoffswitch-label" for="geoloc-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container" >
<h3>Start map at me</h3>
<div class="onoffswitch">
<input id="start-at-user-location-switch" type="checkbox" name="start-at-user-location-switch" class="onoffswitch-checkbox" checked/>
<label class="onoffswitch-label" for="start-at-user-location-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container" style="display:{{search_control}}">
<h3>Search</h3>
<div class="onoffswitch">
<input id="search-switch" type="checkbox" name="search-switch" class="onoffswitch-checkbox" checked/>
<label class="onoffswitch-label" for="search-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container">
<h3>Follow me</h3>
<div class="onoffswitch">
<input id="follow-my-location-switch" type="checkbox" name="follow-my-location-switch" class="onoffswitch-checkbox" checked/>
<label class="onoffswitch-label" for="follow-my-location-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
<div class="form-control switch-container" style="display:{{show_scan}}">
<h3>Scan here button</h3>
<div class="onoffswitch">
<input id="scan-here-switch" type="checkbox" name="scan-here-switch" class="onoffswitch-checkbox" checked/>
<label class="onoffswitch-label" for="scan-here-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
</div>
<h3>Notification Settings</h3>
<div>
<div class="form-control">
<label for="notify-pokemon">
<h3>Notify of Pokemon</h3>
<div style="max-height:165px;overflow-y:auto">
<select id="notify-pokemon" multiple="multiple"></select>
</div>
</label>
</div>
<div class="form-control">
<label for="notify-rarity">
<h3>Notify of Rarity</h3>
<div style="max-height:165px;overflow-y:auto">
<select id="notify-rarity" multiple="multiple"></select>
</div>
</label>
</div>
<div class="form-control">
<label for="notify-perfection">
<h3>Notify of Perfection</h3>
<input id="notify-perfection" type="text" name="notify-perfection" placeholder="Minimum perfection %"/>
</label>
</div>
<div class="form-control switch-container">
<h3>Notify with sound</h3>
<div class="onoffswitch">
<input id="sound-switch" type="checkbox" name="sound-switch" class="onoffswitch-checkbox" checked>
<label class="onoffswitch-label" for="sound-switch">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
</div>
</div>
</div>
<h3>Style Settings</h3>
<div>
<div class="form-control switch-container">
<h3>Map Style</h3>
<select id="map-style"></select>
</div>
<div class="form-control switch-container">
<h3>Icons</h3>
<select name="pokemon-icons" id="pokemon-icons"></select>
</div>
<div class="form-control switch-container">
<h3>Icon Size</h3>
<select name="pokemon-icon-size" id="pokemon-icon-size">
<option value="-8">Small</option>
<option value="0">Normal</option>
<option value="10">Large</option>
<option value="20">X-Large</option>
</select>
</div>
<div class="form-control switch-container">
<h3>Gym Marker Style</h3>
<select name="gym-marker-style" id="gym-marker-style">
<option value='ingame'>In-Game</option>
<option value='shield'>Shield</option>
</select>
<h3>Location Icon Marker</h3>
<select name="locationmarker-style" id="locationmarker-style"></select>
</div>
</div>
</div>
</nav>
<nav id="stats">
<div class="switch-container">
<div class="switch-container">
<div><center><a href="stats">Full Stats</a></center></div>
</div>
<div class="switch-container">
<center><h1 id="stats-ldg-label">Loading...</h1></center>
</div>
<div class="stats-label-container">
<center><h1 id="stats-pkmn-label"></h1></center>
</div>
<div id="pokemonList" style="color: black;">
<table id="pokemonList_table" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Icon</th> <th>Name</th> <th>Count</th> <th>%</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div id="pokeStatStatus" style="color: black;"></div>
</div>
<div class="stats-label-container">
<center><h1 id="stats-gym-label"></h1></center>
</div>
<div id="arenaList" style="color: black;"></div>
<div class="stats-label-container">
<center><h1 id="stats-pkstop-label"></h1></center>
</div>
<div id="pokestopList" style="color: black;"></div>
</div>
</nav>
<nav id="gym-details">
<center><h1>Loading...</h1></center>
</nav>
<div id="map"></div>
</div>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.9.1/polyfill.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/skel/3.0.1/skel.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="static/js/app.js"></script>
<script src="static/js/vendor/classie.js"></script>
<script>
var centerLat = <?= $startingLat; ?>;
var centerLng = <?= $startingLng; ?>;
</script>
<script src="static/js/map.common.js"></script>
<script src="static/js/map.js"></script>
<script src="static/dist/js/stats.min.js"></script>
<script defer
src="https://maps.googleapis.com/maps/api/js?key=<?= $gmapsKey ?>&callback=initMap&libraries=places,geometry"></script>
</body>
</html>