Skip to content

Commit 53f680f

Browse files
authored
Update GPS overlay HTML structure and styles
1 parent fa16b95 commit 53f680f

1 file changed

Lines changed: 25 additions & 46 deletions

File tree

static/gps_overlay.html

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,43 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>VLX GPS Overlay</title>
7-
<script>
8-
window.VLX_CONFIG = {
9-
WEBSOCKET_PATH: "{{.WebsocketPath}}",
10-
ASSET_PREFIX: "{{.AssetPrefix}}",
11-
VOLUME: {{.Volume}}
12-
};
13-
</script>
14-
<link rel="stylesheet" href="{{.AssetPrefix}}/static/overlay.css">
5+
<title>VLX GPS Telemetry Overlay</title>
6+
<link rel="stylesheet" href="overlay.css">
157
<style>
16-
#gps-container {
17-
position: absolute;
18-
top: 20px;
19-
right: 20px;
20-
background: rgba(0, 0, 0, 0.6);
21-
color: white;
22-
font-family: sans-serif;
8+
body {
9+
background-color: transparent;
10+
color: #ffffff;
11+
font-family: 'Courier New', Courier, monospace;
12+
font-weight: bold;
13+
font-size: 24px;
14+
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
15+
margin: 0;
2316
padding: 15px;
24-
border-radius: 10px;
25-
font-size: 1.2em;
26-
display: flex;
27-
flex-direction: column;
28-
gap: 10px;
29-
opacity: 0;
30-
transition: opacity 0.5s ease;
17+
overflow: hidden; /* Evita barre di scorrimento */
3118
}
32-
.gps-row {
33-
display: flex;
34-
justify-content: space-between;
35-
min-width: 150px;
19+
.gps-box {
20+
margin-bottom: 8px;
3621
}
37-
.gps-label {
38-
font-weight: bold;
39-
margin-right: 15px;
40-
color: #aaa;
22+
.gps-value {
23+
color: #00ffcc; /* Colore fluo per i numeri, stile HUD */
4124
}
4225
</style>
4326
</head>
4427
<body>
4528
<div id="gps-container">
46-
<div class="gps-row">
47-
<span class="gps-label">SPEED:</span>
48-
<span id="gps-speed">0 km/h</span>
49-
</div>
50-
<div class="gps-row">
51-
<span class="gps-label">LAT:</span>
52-
<span id="gps-lat">0.0000</span>
29+
<div id="box-speed" class="gps-box" style="display: none;">
30+
SPEED: <span id="val-speed" class="gps-value">0.0</span> km/h
5331
</div>
54-
<div class="gps-row">
55-
<span class="gps-label">LON:</span>
56-
<span id="gps-lon">0.0000</span>
32+
33+
<div id="box-alt" class="gps-box" style="display: none;">
34+
ALT: <span id="val-alt" class="gps-value">0.0</span> m
5735
</div>
58-
<div class="gps-row">
59-
<span class="gps-label">ALT:</span>
60-
<span id="gps-alt">0 m</span>
36+
37+
<div id="box-pos" class="gps-box" style="display: none;">
38+
POS: <span id="val-pos" class="gps-value">0.00000, 0.00000</span>
6139
</div>
6240
</div>
63-
<script src="{{.AssetPrefix}}/static/gps_overlay.js"></script>
41+
42+
<script src="gps_overlay.js"></script>
6443
</body>
6544
</html>

0 commit comments

Comments
 (0)