forked from rossengeorgiev/habitat-mobile-tracker
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
251 lines (245 loc) · 12 KB
/
index.html
File metadata and controls
251 lines (245 loc) · 12 KB
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
<!DOCTYPE html>
<html lang="en" manifest="cache.manifest">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>habitat mobile tracker</title>
<meta name="description" content="The little brother of spacenear.us/tracker. A cross-device web application for tracking high altitude balloons on habitat. Track on your mobile or desktop." />
<meta name="author" content="Rossen Georgiev" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="apple-mobile-web-app-title" content="Habitat Tracker">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" sizes="57x57" href="img/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon.png" />
<link rel="fluid-icon" href="img/fluidicon.png" title="Mobile Tracker" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!--
<link rel="stylesheet" href="css/base.css"/>
<link rel="stylesheet" href="css/skeleton.css"/>
<link rel="stylesheet" href="css/layout.css"/>
<link rel="stylesheet" href="css/habitat-font.css"/>
<link rel="stylesheet" href="css/main.css"/>
-->
<link rel="stylesheet" href="css/mobile.css"/>
</head>
<body>
<div id="loading">
<div>
<img src="img/logo.png" />
<div class="bar" style="display: none"><div class="complete"></div></div>
</div>
</div>
<header style="display: none">
<div class="container">
<ol class="nav">
<li class="home"><i class="icon-habhub"></i></li>
<li class="chasecar" style="display: none"><i class="icon-car"></i></li>
<li class="settings"><i class="icon-settings"></i></li>
<li class="embed">
<svg width="100%" height="100%" viewbox="0 0 35 40" version="1.1">
<path style="fill:#ffffff;" d="m19.188,4.0378c-1.698,10.6-3.396,21.2-5.094,31.8,1.478,0.9,2.037-0.6,2.024-1.7,1.607-10.1,3.213-20.1,4.82-30.1h-1.75zm-6.469,5.3c-3.9064,3-7.8129,6-11.719,9v3.7c3.9045,3,7.8143,6,11.719,9v-3.9c-3.0949-2.3-6.1868-4.6-9.2815-7,3.0937-2.3,6.1875-4.6,9.2815-6.9v-3.9zm9.562,0v3.9c3.094,2.3,6.188,4.6,9.281,6.9-3.093,2.4-6.187,4.7-9.281,7v3.9c3.905-3,7.814-6,11.719-9v-3.7c-3.906-3-7.813-6-11.719-9z"/>
</svg>
</li>
<li class="about last"><i class="icon-question"></i></li>
</ol>
<span id="locate-me" style="display: none"><i class="icon-target"></i></span>
<span id="app_name"><b>mobile<br/>tracker</b></span>
</div>
</header>
<div id="embedbox" style="display: none" class="flatpage">
<div class="slimContainer">
<h2>Embed tracker
<svg width="35" height="40" viewbox="0 0 35 40" version="1.1" class="rfloat">
<path style="fill:#666666;" d="m19.188,4.0378c-1.698,10.6-3.396,21.2-5.094,31.8,1.478,0.9,2.037-0.6,2.024-1.7,1.607-10.1,3.213-20.1,4.82-30.1h-1.75zm-6.469,5.3c-3.9064,3-7.8129,6-11.719,9v3.7c3.9045,3,7.8143,6,11.719,9v-3.9c-3.0949-2.3-6.1868-4.6-9.2815-7,3.0937-2.3,6.1875-4.6,9.2815-6.9v-3.9zm9.562,0v3.9c3.094,2.3,6.188,4.6,9.281,6.9-3.093,2.4-6.187,4.7-9.281,7v3.9c3.905-3,7.814-6,11.719-9v-3.7c-3.906-3-7.813-6-11.719-9z"/>
</svg>
</h2>
<hr>
<p>
It's possible to embed the mobile tracker on any page. If you are developing a HAB project, you can add the tracker
to your website. You can customize the tracker to fit. There are options to limit, the visible vehicles to
a specific callsign. Or two, or three. There are options to play with. It's easy. Just visit the page bellow and check it out.
</p>
<p>
<a href="embed-preview.html">Customize tracker for embedding</a>
</p>
</div>
</div>
<div id="aboutbox" style="display: none" class="flatpage">
<div class="slimContainer">
<h2><i class="icon-question rfloat"></i>About</h2>
<hr>
<p>
This is the Habitat Mobile Tracker app. It sits on spacenear.us API, which gives us the latest from Habitat.
You can run the app on almost any device, all you need is a modern browser. Try it on a phone, table, or PC.
There are a few differences. Specifically, on mobile devices the app will provice access to 'chase car'
functionallity. This especially useful when you are hunting for your freshly landed HAB.
</p>
<h2>Contribute</h2>
<hr>
<p>
If you find any bugs or have a suggestion just find us on <u>#highaltitude</u> at <u>irc.freenode.org</u>.
Or on <a href="https://github.com/rossengeorgiev/habitat-mobile-tracker">github/habitat-mobile-tracker</a>
</p>
</div>
</div>
<div id="settingsbox" style="display: none" class="flatpage">
<div class="slimContainer">
<h2><i class="icon-settings rfloat"></i>Settings</h2>
<hr>
<div class="row option">
<span><b>Daylight overlay</b></span>
<div class="switch off" id="sw_daylight">
<span class="thumb"></span>
<input type="checkbox" id="opt_daylight">
</div>
</div>
<div class="row option">
<span><b>Cloud layer</b></span>
<div class="switch off" id="sw_layers_clouds">
<span class="thumb"></span>
<input type="checkbox" id="opt_layers_clouds">
</div>
</div>
<div class="row option">
<span><b>Imperial units</b></span>
<div class="switch off" id="sw_imperial">
<span class="thumb"></span>
<input type="checkbox" id="opt_imperial">
</div>
</div>
<div class="row option">
<span><b>Horizontal speed in hours</b></span>
<div class="switch off" id="sw_haxis_hours">
<span class="thumb"></span>
<input type="checkbox" id="opt_haxis_hours">
</div>
</div>
<div class="row option">
<span><b>Hide receivers from the map</b></span>
<div class="switch off" id="sw_hide_receivers">
<span class="thumb"></span>
<input type="checkbox" id="opt_hide_receivers">
</div>
</div>
<div class="row option">
<span><b>Availability offline</b></span>
<div class="switch off" id="sw_offline">
<span class="thumb"></span>
<input type="checkbox" id="opt_offline">
</div>
</div>
<div class="row option">
<span><b>Mobile station</b></span>
<div class="switch off" id="sw_station">
<span class="thumb"></span>
<input type="checkbox" id="opt_station">
</div>
</div>
<div class="row info">
<span>
Chase car equipped with radio receiver
</span>
</div>
<div class="row option">
<span><b>Force check for new version</b></span>
<div class="switch off" id="sw_cache">
<span class="thumb"></span>
<input type="checkbox" id="opt_cache">
</div>
</div>
<div class="row info">
<span>
Reloads appcache if nessasary.
The size of cache files is 1.2 MB.
This does not include map tiles.
</span>
</div>
</div>
</div>
<div id="chasecarbox" style="display: none" class="flatpage">
<div class="slimContainer">
<h2>Chase car mode</h2>
<hr>
<div class="row option">
<span>Enable</span>
<div class="switch off" id="sw_chasecar">
<span class="thumb"></span>
<input type="checkbox" id="chasecar_on">
</div>
</div>
<div class="row option">
<span>Callsign</span>
<span class="r"><input type="text" id="cc_callsign" style="width: 140px;"/></span>
</div>
<div class="row">
<span><b>Warning: If you enable this, your location will be uploaded to habitat; making it publicly visible on the map.</b></span>
</div>
<hr>
<div class="row">
<span>Last updated</span>
<span class="r" id="cc_timestamp">never</span>
</div>
<div class="row">
<span>Latitude</span>
<span class="r" id="cc_lat">0.000000</span>
</div>
<div class="row">
<span>Longitude</span>
<span class="r" id="cc_lon">0.000000</span>
</div>
<div class="row">
<span>Altitude</span>
<span class="r" id="cc_alt">none</span>
</div>
<div class="row">
<span>Accuracy</span>
<span class="r" id="cc_accuracy">none</span>
</div>
<div class="row">
<span>Speed</span>
<span class="r" id="cc_speed">none</span>
</div>
</div>
</div>
<div id="homebox" style="width:0px;height:0px"></div>
<div id="mapscreen">
<div id="map"></div>
<div id="telemetry_graph" style="display: none">
<div class="graph_label">Telemetry Graph</div>
<div class="holder" style="height: 200px;width: 50px"></div>
</div>
</div>
<div id="main" style="dispaly: none">
<div class="scrollwrapper">
<div class="portrait">
<div class="row vehicle0"><div class="header empty"><span>No vehicles :(</span></div></div>
</div>
<div class="landscape">
<div class="row vehicle0"><div class="header empty"><span>No vehicles :(</span></div></div>
</div>
</div>
</div>
<script src="http://maps.google.com/maps/api/js?v=3.10&sensor=false&libraries=weather&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="js/mobile.js"></script>
<!--
<script type="text/javascript" language="javascript" src="js/jquery-1.8.3-min.js"></script>
<script type="text/javascript" language="javascript" src="js/chasecar.lib.js"></script>
<script type="text/javascript" language="javascript" src="js/iscroll.js"></script>
<script type="text/javascript" language="javascript" src="js/nite-overlay.js"></script>
<script type="text/javascript" language="javascript" src="js/tracker.js"></script>
<script type="text/javascript" language="javascript" src="js/app.js"></script>
-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38761552-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>