-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
220 lines (214 loc) · 6.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0" />
<title>GPX Visualizer</title>
<script type="module"
src="/src/main.ts"></script>
<!-- Custom style -->
<link rel="stylesheet"
href="/src/style.css" />
<!-- Bulma -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" />
<!-- Fontawesome -->
<script defer
src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<!-- Leaflet -->
<link rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
</head>
<body>
<div id="dropbox"
class="container file-selector">
<div class="box mt-5 has-text-centered">
<div class="notification file-info">
Select or drag and drop your gpx file.
</div>
<a class="button is-rounded"
href="#"
id="fileSelect">
<span class="icon">
<i class="fas fa-file-upload"></i>
</span>
<span>Upload</span>
</a>
<input type="file"
name="ride"
id="ride"
accept=".gpx"
style="display: none;" />
</div>
<div id="gpx"
class="box gpx-overview has-text-centered"
style="display: none;">
<div class="columns is-mobile">
<div class="column">
<p class="heading">Ride Name</p>
<p class="title is-4"
id="gpxName"></p>
</div>
<div class="column">
<p class="heading">Segments</p>
<p class="title is-4"
id="gpxSegs"></p>
</div>
<div class="column">
<p class="heading">Distance</p>
<p class="title is-4"
id="distance"></p>
</div>
</div>
<div class="columns is-mobile">
<div class="column">
<p class="heading">Time</p>
<p class="title is-4"
id="totalTime"></p>
</div>
<div class="column">
<p class="heading">Moving Time</p>
<p class="title is-4"
id="movingTime"></p>
</div>
</div>
<div class="columns is-mobile">
<div class="column">
<p class="heading">Average speed</p>
<p class="title is-4"
id="avgSpeed"></p>
</div>
<div class="column">
<p class="heading">Average moving speed</p>
<p class="title is-4"
id="avgMovingSpeed"></p>
</div>
<div class="column">
<p class="heading">Max Speed</p>
<p class="title is-4"
id="maxSpeed"></p>
</div>
</div>
<div class="columns is-mobile">
<div class="column">
<p class="heading">Min Elevation</p>
<p class="title is-4"
id="minEle"></p>
</div>
<div class="column">
<p class="heading">Elevation Gain</p>
<p class="title is-4"
id="gainEle"></p>
</div>
<div class="column">
<p class="heading">Max Elevation</p>
<p class="title is-4"
id="maxEle"></p>
</div>
<div class="column">
<p class="heading">Total Evolution</p>
<p class="title is-4"
id="totEle"></p>
</div>
</div>
<div class="columns is-mobile">
<div class="column">
<p class="heading">Average Temp</p>
<p class="title is-5"
id="avgTemp"></p>
</div>
<div class="column">
<p class="heading">Max Temp</p>
<p class="title is-5"
id="maxTemp"></p>
</div>
<div class="column">
<p class="heading">Average Heart Rate</p>
<p class="title is-5"
id="avgHr"></p>
</div>
<div class="column">
<p class="heading">Max Heart Rate</p>
<p class="title is-5"
id="maxHr"></p>
</div>
<div class="column">
<p class="heading">Average Cadence</p>
<p class="title is-5"
id="avgCad"></p>
</div>
<div class="column">
<p class="heading">Max Cadence</p>
<p class="title is-5"
id="maxCad"></p>
</div>
</div>
</div>
<div id="mapBox"
class="box"
style="display: none;">
<div id="mapWrapper"
class="mb-3">
<span id="centerCursor"></span>
<div id="mapContainer">
</div>
</div>
<div id="mapBoxButtons"
class="columns is-mobile">
<div class="column">
<div class="buttons">
<button id="startVisualisation"
class="button is-rounded">
<span class="icon">
<i class="fas fa-play"></i>
</span>
</button>
<button id="stopVisualisation"
class="button is-rounded">
<span class="icon">
<i class="fas fa-stop"></i>
</span>
</button>
<button id="fullscreen"
class="button is-rounded">
<span class="icon">
<i class="fas fa-expand"></i>
</span>
</button>
</div>
</div>
<div class="column">
<div class="field">
<div class="control has-icons-left">
<div class="select is-rounded">
<select id="speedSelector">
<option selected
value="1">x1</option>
<option value="2">x2</option>
<option value="5">x5</option>
<option value="10">x10</option>
<option value="20">x20</option>
<option value="100">x100</option>
</select>
</div>
<div class="icon is-small is-left">
<i class="fas fa-tachometer-alt"></i>
</div>
</div>
</div>
</div>
</div>
<div id="speedChartContainer">
</div>
<div id="dataChartContainer">
</div>
</div>
</div>
</body>
</html>