-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
253 lines (243 loc) · 10.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1, width=device-width">
<title>IGC Viewer</title>
<link rel="stylesheet" href="igcviewer.css" />
</head>
<body>
<button id='help'>Help</button>
<button id='about'>About</button>
<div id='titlediv'>
<h1>IGC Webview</h1>
<p>
A free browser-based tool for viewing IGC format tracks and barograph traces from gliding loggers.
</p>
<p> © 2016 Alistair Malcolm Green and Richard Brisbourne </p>
<p>
<b>Warning:</b> Airspace data is not valid for flight planning or navigation.
</p>
<p>
Always consult the official publications for current and correct information.
</p>
<p>
<label for="fileControl"><b>Select a file to view:</b></label>
<input id="fileControl" type="file" accept=".igc" class="inbutton" />
</p>
</div>
<noscript>
<p>
<strong>Please enable JavaScript to use this application.</strong>
</p>
</noscript>
<div id="errorMessage">
</div>
<div class="halfwidth">
<div>
<h2> Preferences </h2>
<button class='toggle'>Hide</button>
<div class='hideable'>
<p>
<button id="unitconfig">Units</button>
<button id="sectorconfig">Sectors</button>
<button id="enl">Engine</button>
<button id="altref">Altitude ref.</button>
<span class="nowrap">
<label for="airclip"> Hide airspace over:</label>
<select id="airclip" class="inbutton">
<option value="0">No Airspace</option>
<option value="3001">3000 feet</option>
<option value="4501">4500 feet</option>
<option value="6001" selected>6000 feet</option>
<option value="9001">9000 feet</option>
<option value="12001">12000 feet</option>
<option value="19501">19500 feet</option>
</select>
</span>
</p>
</div>
</div>
<h2>Select Task Source</h2>
<button class='toggle'>Hide</button>
<div>
<p><span class='nowrap'><label for='infile'>IGC File</label><input type='radio' name='tasksource' value='infile' id='infile' checked/></span>
<span class='nowrap'><label for='user'>User entry</label><input type='radio' name='tasksource' value='user' id='user'/></span>
<span class='nowrap'><label for='xcplan'>XCWebPlan (world)</label><input type='radio' name='tasksource' value='xcplan' id='world'/></span>
<span class='nowrap'><label for='xcplan'>XCWebPlan (UK)</label><input type='radio' name='tasksource' value='xcplan' id='uk'/></span>
<span class='nowrap'><label for='nix'>None</label><input type='radio' name='tasksource' value='nix' id='nix'/> </span></p>
<div id='taskentry'>
<p>You may enter <a href="http://www.spsys.demon.co.uk/turningpoints.htm" target="_blank">BGA trigraphs</a>, six
character codes for waypoints on the <a href="http://www.segelflug.de/vereine/welt2000/" target="_blank"> Welt2000 database</a> or Lat/Long in either 'dd:mm.mmm N ddd:mm.mmm W' or 'dd:mm:ss N ddd:mm:ss W'
format. Start and finish must be filled in, blank turning points will be ignored.</p>
<p id="requestdata">
<span class="nowrap">Start: <input type="text" id="start"/> </span>
<span class="nowrap">TP1: <input type="text"/> </span>
<span class="nowrap">TP2: <input type="text"/> </span>
<span class="nowrap">TP3: <input type="text"/> </span>
<span class="nowrap"> TP4: <input type="text"/> </span>
<span class="nowrap">Finish: <input type="text" id="finish"/></span>
<br>
<button id="enterTask" class="inbutton">Enter</button>
<button id="clearTask" class="inbutton">Clear</button>
</p>
</div>
</div>
<div id="task">
<h2> Task </h2>
<button class='toggle'>Hide</button>
<div>
<table>
<tbody id="taskinfo">
</tbody>
</table>
<p id="tasklength"></p>
</div>
</div>
</div>
<div id="flightInfo" class="halfwidth">
<h2> Flight Information </h2>
<button class='toggle'>Hide</button>
<div>
<table id="headerInfo">
<tbody>
<tr>
<th>Date:</th>
<td id='datecell'></td>
</tbody>
<tbody id="headers">
</tbody>
</table>
</div>
</div>
<br>
<div id="igcFileDisplay">
<div id="mapWrapper" class="halfwidth">
<div id="map"></div>
<div id="flightinfo">
<div id="slider">
<label for="timeSlider">Time:</label>
<input type="range" id="timeSlider" step="1" value="0" min="0" max="100" />
</div>
<div>
<button class="floatright" id="moreData">More...</button>
<p id="timePositionDisplay"></p>
</div>
<p>Zoom:
<button id="zoomtrack">Track</button> <span id="taskbuttons"></span><button id="analyse"> Analyse task</button></p>
</div>
</div>
<div id="barogram" class="halfwidth"></div>
</div>
<div id="taskdata">
<p id="takeoff"></p>
<p id="startmsg"></p>
<p id="landing"></p>
<p id="taskcalcs"></p>
<p id="flighttime"></p>
<button class="closewindow">Close</button>
</div>
<div id='setunits'>
<p><b>Select units:</b> </p>
<p>Altitude:
<select id="altitudeunits" class="inbutton">
<option value="ft" selected>Feet</option>
<option value="mt">Metres</option>
</select>
</p>
<p>
<p>Climb rate:
<select id="climbunits" class="inbutton">
<option value="kt" selected>Knots</option>
<option value="mps">Metres/second</option>
<option value="fpm">Ft/min</option>
</select>
</p>
<p>Cruise Speed:
<select id="cruiseunits" class="inbutton">
<option value="kt" selected>Knots</option>
<option value="kph">Km/hour</option>
<option value="mph">Miles/hr</option>
</select>
</p>
<p>Task Speed:
<select id="taskunits" class="inbutton">
<option value="kph" selected>Km/hour</option>
<option value="mph">Miles/hr</option>
</select>
</p>
<p>Task Distance:
<select id="lengthunits" class="inbutton">
<option value="km" selected>Kilometres</option>
<option value="miles">Miles</option>
</select>
</p>
<button id="cancelunits">Cancel</button>
<button id="applyunits" class="floatright">Apply</button>
</div>
<div id="sectordefs">
<h3>Control Sectors</h3>
<p>
<b>Start Line:</b><br/>Radius: <input id="startrad" type="text" value="5.0"/>Km
</p>
<p><b>Turning Points:</b><br/>
Circle radius: <input id="tpbarrelrad" type="text" value="0.5"/>Km <input id="tpbarrel" type="checkbox" checked/><br/>
Sector:
<select id="subtends" class="inbutton">
<option value="90" selected>90°</option>
<option value="180">180°</option>
</select>
radius: <input id="tpsectorrad" type="text" value="15"/>Km <input type="checkbox" id="tpsector" checked/>
</p>
<p>
<b>Finish:</b><br/>Radius: <input id="finishrad" type="text" value="1.0"/>Km<br/>
<input type="radio" name="finishtype" value="line" checked> Line <input type="radio" name="finishtype" value="circle">Circle
</p>
<button id="tpdefaults">Restore defaults</button>
<p>Save configuration: <input id="savesectors" type="checkbox"></p>
<button id="cancelsectors">Cancel</button>
<button id="setsectors" class="floatright">Apply</button>
</div>
<div id='setenl'>
<p><b>ENL engine detect:</b> <input type="radio" name="enldetect" value="Off" checked>Off <input type="radio" name="enldetect" value="On">On
<p>Threshold: <input type='text' id="enlthreshold" /> (1-1000)</p>
<p>Time required: <input type='text' id="enltime" /> seconds</p>
<button id="enlhelp">Help</button>
<button id="enldefaults" class="floatright">Restore defaults</button>
<p>Save configuration: <input id="saveenl" type="checkbox" checked=false></p>
<button id="cancelenl">Cancel</button>
<button id="applyenl" class="floatright">Apply</button>
</div>
<div id='setaltref'>
<h3>Altitude reference</h3>
<p>*Standard (STD) <input type='radio' name='alttype' value='std'/><br />
QFE take off <input type='radio' name='alttype' value='QFE' checked='checked' /><br />
QNH, ref sea level <input type='radio' name='alttype' value='QNH' /></p>
<p>*With pressure source, reference 1013.25 mb. With GPS, raw file data</p>
<br />
<h3>Data Source</h3>
<p>Pressure <input type='radio' name='altsource' value='baro' checked='checked' />
GPS <input type='radio' name='altsource' value='gps' /></p>
<p><button id="althelp">Help</button></p>
<button id="restorealtref">Cancel</button>
<button id="applyaltref" class="floatright">Apply</button>
</div>
<div id='positionDetail'>
<p id="heightAGL"></p>
<p id="flightMode"></p>
<p id="flightdetail1"></p>
<button class="floatright">Close</button>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="lib/jquery.flot.min.js"></script>
<script src="lib/jquery.flot.axislabels.js"></script>
<script src="lib/jquery.flot.resize.min.js"></script>
<script src="lib/jquery.flot.crosshair.js"></script>
<script src="lib/jquery.flot.time.min.js"></script>
<script src="parseigc.js"></script>
<script src="mapcontrol.js"></script>
<script src="taskcalc.js"></script>
<script src="igcviewer.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=SECRET&callback=initMap" async defer></script>
</body>
</html>