-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
280 lines (266 loc) · 13.1 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
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
<!DOCTYPE html>
<html>
<head>
<!-- Matthew Judge, 2014 -->
<title>Tawhiri</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link href="ext/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/base.css" rel="stylesheet" media="screen">
<link href="ext/css/slider.css" rel="stylesheet" media="screen">
<link href="ext/css/jquery.datetimepicker.css" rel="stylesheet" media="screen">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="ext/js/html5shiv.js"></script>
<script src="ext/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="main-wrap" class="tall">
<div id="form-wrap" class="tall" tabindex="0">
<div class="formToggleVisible-wrap">
<span class="formToggleVisible">
<span class="toggle-bar toggle-bar-1"></span>
<span class="toggle-bar toggle-bar-2"></span>
</span>
</div>
<div id="form">
<div class="row">
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-info" id="gps-locate" type="button"><span class="glyphicon glyphicon-record"></span></button>
</span>
<input class="form-control" type="text" id="pac-input" placeholder="Search for a place"/>
<span class="input-group-btn">
<button class="btn btn-default" id="pac-input-submit" type="button"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div><!-- /input-group -->
</div>
</div><!-- /.row -->
<div class="row">
<div class="col-xs-12">
<p></p>
<p class="text-right">
<small>
Right click map or tap here to
<button id="btn-set-position" class="btn btn-warning btn-xs" type="button">set position</button>
</small>
</p>
</div>
</div>
<form class="form-horizontal" id="prediction-form" role="form">
<input type="hidden" name="launchsite" value="Other"/>
<input type="hidden" name="submit" value="Run Prediction"/>
<div class="form-group">
<label for="hourly" class="col-xs-2 control-label">Hours:</label>
<div class="col-xs-5">
<select class="form-control" id="hourly" name="hourly" required="required">
<option value="1" selected="selected">1</option>
<option value="12">12</option>
<option value="24">24</option>
<option value="36">36</option>
<option value="48">48</option>
<option value="72">72</option>
<option value="80">80</option>
<option value="100">100</option>
<option value="180">180</option>
</select>
</div>
<div class="col-xs-5">
<button type="submit" class="btn btn-success btn-block">Predict</button>
</div>
</div>
<h4>Launch parameters</h4>
<div class="form-group">
<label for="inputLaunchLat" class="col-xs-3 control-label">Lat</label>
<div class="col-xs-9">
<input type="number" step="any" class="form-control" id="inputLaunchLat" name="launch_latitude" placeholder="" required="required">
</div>
</div>
<div class="form-group">
<label for="inputLaunchLong" class="col-xs-3 control-label">Lon</label>
<div class="col-xs-9">
<input type="number" step="any" class="form-control" id="inputLaunchLong" name="launch_longitude" placeholder="" required="required">
</div>
</div>
<div class="form-group ">
<label for="inputLaunchAltitude" class="col-xs-3 control-label">Altitude</label>
<div class="col-xs-9">
<div class="input-group">
<input type="number" step="any" class="form-control" id="inputLaunchAltitude" name="launch_altitude" value="0" placeholder="" required="required">
<div class="input-group-btn unit-selection">
<input type="hidden" name="unitLaunchAltitude" value="m"/>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span id="unit-current-LaunchAltitude" class="unit-current">m</span> <span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<li><a href="#">m</a></li>
<li><a href="#">ft</a></li>
</ul>
</div><!-- /btn-group -->
</div>
</div>
</div>
<div class="form-group">
<label for="dateTimePicker" class="col-xs-3 control-label">Date</label>
<div class="col-xs-9">
<div class="form-control" id="displayLaunchDate"></div>
</div>
<div id="dateTimePicker-wrapper" class="col-xs-12 collapse in">
<input id="dateTimePicker"/>
</div>
</div>
<div class="form-group">
<label for="inputLaunchHour" class="col-xs-3 control-label">Time</label>
<div class="col-xs-9">
<div class="row">
<div class="col-xs-6">
<select id="inputLaunchHour" name="launch_datetime_hour" class="form-control" required="required">
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
</select>
</div>
<div class="col-xs-6">
<select id="inputLaunchMinute" name="launch_datetime_min" class="form-control" required="required">
<option value="00">00</option>
<option value="05">05</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
<option value="35">35</option>
<option value="40">40</option>
<option value="45">45</option>
<option value="50">50</option>
<option value="55">55</option>
</select>
</div>
</div>
<div class="text-right" id="launchDatetimeUTCPreview"></div>
</div>
</div>
<h4>In flight parameters</h4>
<div class="form-group ">
<label for="inputLaunchAscentRate" class="col-xs-4 control-label">Ascent</label>
<div class="col-xs-8">
<div class="input-group">
<input type="number" step="1" min="0" class="form-control" id="inputLaunchAscentRate" name="ascent_rate" value="5" placeholder="" required="required">
<div class="input-group-btn unit-selection">
<input type="hidden" name="unitLaunchAscentRate" value="m/s"/>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="unit-current">m/s</span> <span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<li><a href="#">m/s</a></li>
<li><a href="#">ft/s</a></li>
</ul>
</div><!-- /btn-group -->
</div>
</div>
</div>
<div class="form-group ">
<label for="inputLaunchBurstAlt" class="col-xs-4 control-label">Burst Alt</label>
<div class="col-xs-8">
<div class="input-group">
<input type="number" step="100" class="form-control" id="inputLaunchBurstAlt" name="burst_altitude" value="30000" placeholder="" required="required">
<div class="input-group-btn unit-selection">
<input type="hidden" name="unitLaunchBurstAlt" value="m"/>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="unit-current">m</span> <span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<li><a href="#">m</a></li>
<li><a href="#">ft</a></li>
</ul>
</div><!-- /btn-group -->
</div>
</div>
</div>
<div class="form-group ">
<label for="inputLaunchDescentRate" class="col-xs-4 control-label">Descent</label>
<div class="col-xs-8">
<div class="input-group">
<input type="number" step="1" min="0" class="form-control" id="inputLaunchDescentRate" name="descent_rate" value="5" placeholder="" required="required">
<div class="input-group-btn unit-selection">
<input type="hidden" name="unitLaunchDescentRate" value="m/s"/>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="unit-current">m/s</span> <span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<li><a href="#">m/s</a></li>
<li><a href="#">ft/s</a></li>
</ul>
</div><!-- /btn-group -->
</div>
</div>
</div>
</form>
<footer class="footer">
<div class="row">
<div class="col-xs-6">
<a href="https://github.com/mattjudge/CUSF_tawhiri_ui">About UI</a>
</div>
<div class="col-xs-6">
<a href="https://github.com/cuspaceflight/tawhiri">About Predictor</a>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<small>
<strong class="text-danger">Please note: </strong>No guarantee is given for the accuracy, precision or reliability of the data produced by this software, and you use it entirely at your own risk.
</small>
</div>
</div>
</footer>
</div>
</div>
<div class="tall" id="map-wrap">
<div id="wrapper"></div>
<div id="progress-bar-wrapper">
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar">
</div>
</div>
</div>
<div id="hourly-time-slider-container" data-toggle="popover"
data-placement="left"
data-content="Select a time to show corrosponding path">
</div>
<pre id="current-launch-info-container"></pre>
<div class="map-canvas" tabindex="-1"></div>
</div>
<div id="debug"></div>
</div>
<div id="notification-area">
<div id="current-notifications"></div>
</div>
<script src="ext/js/jquery-1.10.2.min.js"></script>
<script src="ext/js/bootstrap.min.js"></script>
<script src="ext/js/modernizr.custom.21490.js"></script>
<script src="ext/js/bootstrap-slider.js"></script>
<script src="ext/js/jquery.datetimepicker.js"></script>
<!-- google maps -->
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyC_TUND4JfP-WYDZmRNVChQ71GvsqZepgA">
</script>
<script src="js/util.js"></script>
<script src="js/ui.js"></script>
<script src="js/predictions.js"></script>
<script src="js/cusf_tawhiri_ui.js"></script>
</body>
</html>