-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathreplay.html
More file actions
618 lines (582 loc) · 24.3 KB
/
Copy pathreplay.html
File metadata and controls
618 lines (582 loc) · 24.3 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
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
<!doctype html>
<!-- Legacy standalone test/dev harness. Production ships through index.html SPA routes. -->
<html lang="en" class="replay-page">
<head>
<meta charset="utf-8" />
<script>
(function () {
var stored = null;
try {
stored = localStorage.getItem('vatio_board_lang');
} catch (_error) {}
var lang =
stored || (navigator.language && navigator.language.startsWith('es') ? 'es' : 'en');
document.documentElement.lang = lang;
window.__lang = lang;
})();
</script>
<meta
name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<link
rel="icon"
type="image/svg+xml"
href="/favicon_dark.svg?v=2"
media="(prefers-color-scheme: dark)"
/>
<link
rel="icon"
type="image/svg+xml"
href="/favicon_ligth.svg?v=2"
media="(prefers-color-scheme: light)"
/>
<link id="favicon-fallback" rel="icon" type="image/svg+xml" href="/favicon_ligth.svg?v=2" />
<link id="shortcut-favicon" rel="shortcut icon" href="/favicon_ligth.svg?v=2" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<script>
(function () {
var query = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
var icons = [
document.getElementById('favicon-fallback'),
document.getElementById('shortcut-favicon'),
];
function applyThemeFavicon() {
var href = (query && query.matches ? '/favicon_dark.svg' : '/favicon_ligth.svg') + '?v=2';
icons.forEach(function (icon) {
if (icon) icon.href = href;
});
}
applyThemeFavicon();
if (!query) return;
if (query.addEventListener) query.addEventListener('change', applyThemeFavicon);
else if (query.addListener) query.addListener(applyThemeFavicon);
})();
</script>
<title>Vatio Drive Replay - Replay your latest GPS drive on a 3D globe</title>
<meta
name="description"
content="Replay your latest Vatio Speed drive with a hardware-accelerated 3D globe, route timeline, live playback metrics, and session highlights."
/>
<meta
name="robots"
content="index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1"
/>
<meta name="color-scheme" content="light dark" />
<meta name="theme-color" content="#181818" media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
<link rel="canonical" href="https://vatioboard.com/replay.html" />
<meta property="og:site_name" content="VatioLibre" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Vatio Drive Replay - Replay your latest GPS drive" />
<meta
property="og:description"
content="Replay your latest Vatio Speed drive on a hardware-accelerated 3D globe with route animation, playback controls, and highlights."
/>
<meta property="og:url" content="https://vatioboard.com/replay.html" />
<meta
property="og:image"
content="https://vatioboard.com/img/vatio-board-speed-og-1200x630.jpg"
/>
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta
property="og:image:alt"
content="Vatio Drive Replay showing a route replay on a 3D globe"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Vatio Drive Replay - Replay your latest GPS drive" />
<meta
name="twitter:description"
content="Replay your latest Vatio Speed drive on a hardware-accelerated 3D globe with route animation, playback controls, and highlights."
/>
<meta
name="twitter:image"
content="https://vatioboard.com/img/vatio-board-speed-og-1200x630.jpg"
/>
<meta
name="twitter:image:alt"
content="Vatio Drive Replay showing a route replay on a 3D globe"
/>
<style>
.sr-only {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
</style>
</head>
<body class="replay-page">
<h1 class="sr-only" data-i18n="replayPageH1">Vatio Drive Replay</h1>
<p class="sr-only" data-i18n="replayPageLead">
Replay your latest Vatio Speed drive on a hardware-accelerated 3D globe with a progress
timeline and live metrics.
</p>
<div class="app replay-app">
<header>
<div class="header-inner replay-header-inner">
<div class="brand" data-i18n-title="replayTagline" title="Drive replay by Vatio Libre">
<a class="brand-home" href="/" data-i18n-aria="openBoard" aria-label="Open Vatio Board">
<span class="dot" aria-hidden="true"></span>
<picture class="brand-logo" aria-hidden="true">
<source srcset="/img/vb_logo_dark.svg" media="(prefers-color-scheme: dark)" />
<source srcset="/img/vb_logo_light.svg" media="(prefers-color-scheme: light)" />
<img
src="/img/vb_logo_light.svg"
alt=""
width="757"
height="107"
decoding="async"
/>
</picture>
<span class="sr-only">Vatio Board</span>
</a>
<button
id="langToggle"
type="button"
class="lang-toggle"
data-i18n-aria="changeLanguage"
aria-label="Change language"
>
EN
</button>
</div>
<div class="toolbar replay-toolbar">
<div class="replay-toolbar-right">
<div class="replay-toolbar-strip">
<section
class="replay-axis-group"
role="group"
aria-label="Dashboard axis"
data-i18n-aria="replayDashboardAxis"
>
<button
id="replayAxisTime"
type="button"
class="replay-axis-btn replay-toolbar-icon-btn"
data-axis="time"
data-i18n-aria="replayAxisTime"
data-i18n-title="replayAxisTime"
aria-label="Time"
title="Time"
>
<span class="btn-icon" aria-hidden="true"></span>
</button>
<button
id="replayAxisDistance"
type="button"
class="replay-axis-btn replay-toolbar-icon-btn"
data-axis="distance"
data-i18n-aria="replayAxisDistance"
data-i18n-title="replayAxisDistance"
aria-label="Distance"
title="Distance"
>
<span class="btn-icon" aria-hidden="true"></span>
</button>
</section>
<button
id="replayPlayPause"
type="button"
class="replay-toolbar-icon-btn replay-toolbar-transport-btn replay-toolbar-transport-btn-play"
aria-label="Play"
title="Play"
>
<span
id="replayPlayPauseIcon"
class="replay-action-icon"
aria-hidden="true"
></span>
<span id="replayPlayPauseText" class="sr-only">Play</span>
</button>
<button
id="replayRestart"
type="button"
class="replay-toolbar-icon-btn replay-toolbar-transport-btn"
aria-label="Restart"
title="Restart"
>
<span id="replayRestartIcon" class="replay-action-icon" aria-hidden="true"></span>
<span class="sr-only" data-i18n="replayRestart">Restart</span>
</button>
<button
id="replayApproach"
type="button"
class="replay-toolbar-icon-btn replay-toolbar-transport-btn"
aria-label="World approach"
title="World approach"
>
<span
id="replayApproachIcon"
class="replay-action-icon"
aria-hidden="true"
></span>
<span class="sr-only" data-i18n="replayApproach">World approach</span>
</button>
</div>
</div>
<span
id="replaySessionChip"
class="status replay-session-chip"
aria-live="polite"
data-i18n="replaySessionActive"
>Active session</span
>
</div>
<span class="route-chip" aria-hidden="true" data-i18n="replayRoute">REPLAY</span>
</div>
</header>
<main class="replay-main">
<section id="replayEmptyState" class="replay-empty-card" hidden>
<span class="replay-card-kicker" data-i18n="driveReplay">Drive Replay</span>
<h2 class="replay-empty-title" data-i18n="replayEmptyTitle">
No replay session saved yet
</h2>
<p class="replay-card-lead" data-i18n="replayEmptyLead">
Open Vatio Speed, let GPS collect a route, then come back here to replay it on the
globe.
</p>
<button
id="replayOpenSpeed"
type="button"
class="replay-action-btn"
data-i18n="replayOpenSpeed"
>
Open Vatio Speed
</button>
</section>
<section id="replayShell" class="replay-shell" hidden>
<article class="replay-card replay-graphs-card">
<section class="replay-graphs-grid" aria-label="Replay graphs">
<button
type="button"
class="replay-graph-card replay-graph-trigger"
data-graph-metric="speedMs"
data-i18n-aria="replayExpandGraph"
aria-label="Expand graph"
>
<header class="replay-graph-head">
<span class="replay-metric-label" data-i18n="speed">Speed</span>
<strong id="replayGraphSpeedCurrent" class="replay-graph-current">—</strong>
</header>
<canvas
id="replayGraphSpeedCanvas"
class="replay-graph-canvas"
aria-label="Replay speed chart"
></canvas>
</button>
<button
type="button"
class="replay-graph-card replay-graph-trigger"
data-graph-metric="altitudeM"
data-i18n-aria="replayExpandGraph"
aria-label="Expand graph"
>
<header class="replay-graph-head">
<span class="replay-metric-label" data-i18n="altitude">Altitude</span>
<strong id="replayGraphAltitudeCurrent" class="replay-graph-current">—</strong>
</header>
<canvas
id="replayGraphAltitudeCanvas"
class="replay-graph-canvas"
aria-label="Replay altitude chart"
></canvas>
</button>
<button
type="button"
class="replay-graph-card replay-graph-trigger"
data-graph-metric="headingDeg"
data-i18n-aria="replayExpandGraph"
aria-label="Expand graph"
>
<header class="replay-graph-head">
<span class="replay-metric-label" data-i18n="heading">Heading</span>
<strong id="replayGraphHeadingCurrent" class="replay-graph-current">—</strong>
</header>
<canvas
id="replayGraphHeadingCanvas"
class="replay-graph-canvas"
aria-label="Replay heading chart"
></canvas>
</button>
</section>
</article>
<section class="replay-stage" aria-label="Replay content">
<article class="replay-card replay-map-card">
<div id="replayMap" class="replay-map"></div>
<div class="replay-transport-row">
<div class="replay-progress-wrap">
<input
id="replayProgress"
type="range"
min="0"
max="1000"
value="0"
step="1"
aria-label="Progress"
data-i18n-aria="replayProgress"
/>
<div class="replay-progress-meta">
<div class="replay-progress-values">
<span id="replayElapsedValue">00:00</span>
<span id="replayDurationValue">00:00</span>
</div>
<section class="replay-rate-group" role="group" aria-label="Replay speed">
<button type="button" class="replay-rate-btn" data-rate="1">1x</button>
<button type="button" class="replay-rate-btn" data-rate="4">4x</button>
<button type="button" class="replay-rate-btn" data-rate="10">10x</button>
<button type="button" class="replay-rate-btn" data-rate="100">100x</button>
<button type="button" class="replay-rate-btn" data-rate="1000">1000x</button>
</section>
</div>
</div>
</div>
<section class="replay-recordings-section">
<section class="replay-card-copy">
<span class="replay-card-kicker" data-i18n="replayRecordings">Recordings</span>
<p class="replay-card-lead" data-i18n="replayRecordingsLead">
Pick an active or saved drive to replay.
</p>
</section>
<section
id="replayRecordingsList"
class="replay-recordings-list"
aria-label="Replay recordings"
></section>
</section>
</article>
<aside class="replay-side-panel" aria-label="Replay details">
<article class="replay-card">
<section class="replay-card-copy">
<span class="replay-card-kicker" data-i18n="replaySummary">Summary</span>
<p class="replay-card-lead" data-i18n="replaySummaryLead">
Static trip totals from the recorded drive.
</p>
</section>
<section class="replay-summary-grid" aria-label="Replay summary metrics">
<article class="replay-metric">
<span class="replay-metric-label" data-i18n="replayRecordedAt">Recorded</span>
<strong id="replayRecordedAtValue" class="replay-metric-value">—</strong>
</article>
<article class="replay-metric">
<span class="replay-metric-label" data-i18n="replaySamples">Samples</span>
<strong id="replaySampleCountValue" class="replay-metric-value">0</strong>
</article>
<article class="replay-metric">
<span class="replay-metric-label" data-i18n="max">Max</span>
<strong id="replayPeakSpeedValue" class="replay-metric-value">—</strong>
</article>
<article class="replay-metric">
<span class="replay-metric-label" data-i18n="average">Average</span>
<strong id="replayAverageSpeedValue" class="replay-metric-value">—</strong>
</article>
<article class="replay-metric">
<span class="replay-metric-label" data-i18n="distance">Distance</span>
<strong id="replaySummaryDistanceValue" class="replay-metric-value">—</strong>
</article>
<article class="replay-metric">
<span class="replay-metric-label" data-i18n="duration">Duration</span>
<strong id="replaySummaryDurationValue" class="replay-metric-value">—</strong>
</article>
<article class="replay-metric replay-metric-wide">
<span class="replay-metric-label" data-i18n="replayRouteLabel">Route</span>
<strong id="replayRouteValue" class="replay-metric-value">—</strong>
</article>
<article class="replay-metric replay-metric-wide">
<span class="replay-metric-label" data-i18n="replayAltitudeRange"
>Altitude range</span
>
<strong id="replayAltitudeRangeValue" class="replay-metric-value">—</strong>
</article>
</section>
</article>
<article class="replay-card">
<section class="replay-card-copy">
<span class="replay-card-kicker" data-i18n="replayHighlights">Highlights</span>
<p class="replay-card-lead" data-i18n="replayHighlightsLead">
Fast checkpoints extracted from the recorded drive.
</p>
</section>
<section
id="replayHighlightsList"
class="replay-highlights-list"
aria-label="Replay highlights"
></section>
</article>
</aside>
</section>
</section>
</main>
</div>
<section
id="replayGraphSheet"
class="replay-graph-sheet"
role="dialog"
aria-modal="true"
aria-labelledby="replayGraphSheetTitle"
hidden
>
<div
id="replayGraphSheetBackdrop"
class="replay-graph-sheet-backdrop"
aria-hidden="true"
></div>
<section class="replay-graph-sheet-panel">
<header class="replay-graph-sheet-header">
<h2
id="replayGraphSheetTitle"
class="replay-graph-sheet-title"
data-i18n="replayExploreCharts"
>
Explore charts
</h2>
<section
class="replay-axis-group replay-sheet-axis-group"
role="group"
aria-label="Dashboard axis"
data-i18n-aria="replayDashboardAxis"
>
<button
type="button"
class="replay-axis-btn replay-toolbar-icon-btn"
data-axis="time"
data-i18n-aria="replayAxisTime"
data-i18n-title="replayAxisTime"
aria-label="Time"
title="Time"
>
<span class="btn-icon" aria-hidden="true"></span>
<span class="replay-sheet-axis-label" data-i18n="replayAxisTime">Time</span>
</button>
<button
type="button"
class="replay-axis-btn replay-toolbar-icon-btn"
data-axis="distance"
data-i18n-aria="replayAxisDistance"
data-i18n-title="replayAxisDistance"
aria-label="Distance"
title="Distance"
>
<span class="btn-icon" aria-hidden="true"></span>
<span class="replay-sheet-axis-label" data-i18n="replayAxisDistance">Distance</span>
</button>
</section>
<button
id="closeReplayGraphSheet"
type="button"
class="replay-action-btn replay-action-btn-secondary"
data-i18n="close"
>
Close
</button>
</header>
<section class="replay-graph-sheet-controls">
<section
class="replay-filter-group"
aria-label="Filter range"
data-i18n-aria="replayFilterRange"
>
<div class="replay-filter-row">
<span class="replay-filter-value">
<span class="replay-metric-label" data-i18n="replayFilterStart">Start</span>
<strong id="replayFilterStartValue" class="replay-filter-value-text">00:00</strong>
</span>
<div id="replayFilterSlider" class="replay-filter-slider dual-range-input">
<input
id="replayFilterStart"
class="replay-filter-range replay-filter-range-start"
type="range"
min="0"
max="1000"
value="0"
step="1"
aria-label="Filter start"
data-i18n-aria="replayFilterStart"
/>
<input
id="replayFilterEnd"
class="replay-filter-range replay-filter-range-end"
type="range"
min="0"
max="1000"
value="1000"
step="1"
aria-label="Filter end"
data-i18n-aria="replayFilterEnd"
/>
</div>
<span class="replay-filter-value replay-filter-value-end">
<span class="replay-metric-label" data-i18n="replayFilterEnd">End</span>
<strong id="replayFilterEndValue" class="replay-filter-value-text">00:00</strong>
</span>
</div>
</section>
</section>
<section class="replay-graph-sheet-grid" aria-label="Expanded replay charts">
<article class="replay-graph-sheet-stage">
<header class="replay-graph-sheet-stage-head">
<span class="replay-metric-label" data-i18n="speed">Speed</span>
<strong id="replayExpandedSpeedCurrent" class="replay-graph-sheet-current">—</strong>
</header>
<div class="replay-graph-sheet-canvas-wrap">
<canvas
id="replayExpandedSpeedCanvas"
class="replay-expanded-graph-canvas"
data-graph-sheet-scrub="speedMs"
aria-label="Expanded replay speed chart"
></canvas>
</div>
</article>
<article class="replay-graph-sheet-stage">
<header class="replay-graph-sheet-stage-head">
<span class="replay-metric-label" data-i18n="altitude">Altitude</span>
<strong id="replayExpandedAltitudeCurrent" class="replay-graph-sheet-current"
>—</strong
>
</header>
<div class="replay-graph-sheet-canvas-wrap">
<canvas
id="replayExpandedAltitudeCanvas"
class="replay-expanded-graph-canvas"
data-graph-sheet-scrub="altitudeM"
aria-label="Expanded replay altitude chart"
></canvas>
</div>
</article>
<article class="replay-graph-sheet-stage">
<header class="replay-graph-sheet-stage-head">
<span class="replay-metric-label" data-i18n="heading">Heading</span>
<strong id="replayExpandedHeadingCurrent" class="replay-graph-sheet-current"
>—</strong
>
</header>
<div class="replay-graph-sheet-canvas-wrap">
<canvas
id="replayExpandedHeadingCanvas"
class="replay-expanded-graph-canvas"
data-graph-sheet-scrub="headingDeg"
aria-label="Expanded replay heading chart"
></canvas>
</div>
</article>
</section>
<section class="replay-graph-sheet-foot">
<p class="replay-graph-sheet-hint" data-i18n="replayDragToExplore">
Drag across the chart to scrub the replay.
</p>
</section>
</section>
</section>
<script type="module">
import "/src/replay/dev-harness.ts";
</script>
</body>
</html>