forked from GlidingWeb/IGCWebView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
187 lines (177 loc) · 7.66 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
<!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="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="lib/leaflet/leaflet.css" />
<link rel="stylesheet" href="lib/leaflet-awesome-markers/leaflet.awesome-markers.css" />
<link rel="stylesheet" href="igcviewer.css" />
<script src="lib/jquery-2.1.3.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="lib/leaflet/leaflet.js"></script>
<script src="lib/leaflet/Semicircle.js"></script>
<script src="lib/leaflet-awesome-markers/leaflet.awesome-markers.min.js"></script>
<script src="parseigc.js"></script>
<script src="mapcontrol.js"></script>
<script src="igcviewer.js"></script>
</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> © 2015 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>
<label for="altitudeUnits">Altitude units:</label>
<select id="altitudeUnits" class="inbutton">
<option value="feet">Feet</option>
<option value="metres">Metres</option>
</select>
<span class="nowrap">
<label for="airclip">Clip airspace above:</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>
<button id="configure">Configure TP sectors</button>
</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='inflie'/></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</label><input type='radio' name='tasksource' value='xcplan' id='xcplan'/></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="slider">
<label for="timeSlider">Time:</label>
<input type="range" id="timeSlider" step="1" value="0" min="0" max="100" />
<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 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="sectors">
<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 class="closewindow">Cancel</button>
<button id="setsectors">Apply</button>
</div>
</body>
</html>