This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
595 lines (546 loc) · 31.2 KB
/
Copy pathindex.html
File metadata and controls
595 lines (546 loc) · 31.2 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
<!DOCTYPE html>
<!--
Required Notice: Copyright (c) 2026 CardoSystems
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0d1117">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Meshlog</title>
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="preconnect" href="https://a.basemaps.cartocdn.com" crossorigin />
<link rel="preconnect" href="https://a.tile.openstreetmap.fr" crossorigin />
<script>
window.process = { env: { NODE_ENV: 'production' } };
window.global = window;
</script>
<script src="/lib/jquery.min.js" defer></script>
<script src="/lib/jquery-ui.min.js" defer></script>
<script src="/include/spectrum.js" defer></script>
<link href="/include/spectrum.css" rel="stylesheet" type="text/css" />
<script src="/include/jquery.switchButton.js" defer></script>
<link href="/include/jquery.switchButton.css" rel="stylesheet" type="text/css" />
<script src="/include/simple-slider.js" defer></script>
<script src="/include/Detector.js" defer></script>
<script src="/data.js" defer></script>
<script src="/grid.js" defer></script>
<script src="/encom-globe.js" defer></script>
<link rel="stylesheet" href="/encom-styles.css" />
<!-- Leaflet CSS -->
<link rel="stylesheet" href="/lib/leaflet/leaflet.css" />
<!-- Chart.js -->
<script src="/lib/chart.min.js"></script>
<!-- D3 JS -->
<script src="/lib/d3.min.js" defer></script>
<!-- Leaflet JS -->
<script src="/lib/leaflet/leaflet.js" defer></script>
<script src="/lib/leaflet.markercluster.js" defer></script>
<link rel="stylesheet" href="/lib/MarkerCluster.css" />
<link rel="stylesheet" href="/lib/MarkerCluster.Default.css" />
<!-- Cloudflare Turnstile -->
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<!-- Driver.js for Tutorial -->
<script src="/lib/driver/driver.js.iife.js"></script>
<link rel="stylesheet" href="/lib/driver/driver.css" />
<link rel="stylesheet" href="./style.css" />
<!-- Encom Analytics Tracker -->
<script defer src="https://encom-boardroom-dashboard.pages.dev/tracker.js"></script>
<!-- Cloudflare Web Analytics -->
<script type='module' src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "ec065947e5ee41ec91081f3e3d353ffb"}'></script>
<!-- End Cloudflare Web Analytics -->
</head>
<body>
<div id="offline-banner"
style="display:none; position:fixed; top:90px; left:15px; text-align:center; z-index:9999;">
<div style="font-size:24px; filter: hue-rotate(0deg); line-height: 1;">🚨</div>
<div style="color:red; font-size:10px; font-weight:bold; margin-top:2px;">OFFLINE</div>
</div>
<div id="loading-screen">
<div id="container" style="z-index: -1;">
<div id="globe">
</div>
<div id="info-box">
Encom Globe by <a href="http://twitter.com/arscan">@arscan</a>. A tribute to the <a
href="http://work.gmunk.com/TRON-Board-Room">boardroom scene</a> in Disney's <a
href="http://www.imdb.com/title/tt1104001/">Tron: Legacy</a>. Built for reuse. Source on <a
href="http://github.com/arscan/encom-globe/" class="github-link">Github</a>.
</div>
<div id="options">
<div id="options-content">
<h3>Add element by clicking map below</h3>
<img class="projection" src="/resources/point_picker.png" width="280px" />
<ul id="add-element">
<li id="add-pin" class="button selected">Drop Pin</li>
<li id="add-marker" class="button">Marker</li>
<li id="add-satellite" class="button">Satellite</li>
</ul>
<h3>Configure Globe</h3>
<div>
<label>
Color Palette
</label>
<ul id="color-options">
<li title="Globe Color"><input type="text" id="globe-color" value="#ffcc00"></li>
<li title="Pin Color"><input type="text" id="pin-color" value="#8FD8D8"></li>
<li title="Marker Color"><input type="text" id="marker-color" value="#ffcc00"></li>
<li title="Satellite Core Color"><input type="text" id="satellite-color" value="#ff0000">
</li>
</ul>
<label>
Globe Scale
</label>
<input type="text" id="globe-scale" data-slider="true" data-slider-range=".1, 3.0"
data-slider-step=".01" data-slider-highlight="true" value="1.0" />
<label>
View Angle
</label>
<input type="text" id="globe-va" data-slider="true" data-slider-range="-1.57, 1.57"
data-slider-step=".01" data-slider-highlight="true" value=".1" />
<label>
Seconds per Rotation
</label>
<input type="text" id="globe-spr" data-slider="true" data-slider-range="1, 120"
data-slider-step="1" data-slider-highlight="true" value="28" />
<label>
Intro Duration (ms)
</label>
<input type="text" id="globe-id" data-slider="true" data-slider-range="500,5000"
data-slider-step="100" data-slider-highlight="true" value="2000" />
<label>
Max Pins
</label>
<input type="text" id="globe-mp" data-slider="true" data-slider-range="10,1000"
data-slider-step="10" data-slider-highlight="true" value="500" />
<label>
Max Markers
</label>
<input type="text" id="globe-mm" data-slider="true" data-slider-range="1,10"
data-slider-step="1" data-slider-highlight="true" value="4" />
<label>
Satellite Altitude
</label>
<input type="text" id="globe-sa" data-slider="true" data-slider-range="1.0,3.0"
data-slider-step=".01" data-slider-highlight="true" value="1.3" />
<label>
Satellite Intensity
</label>
<input type="text" id="globe-si" data-slider="true" data-slider-range="3,12"
data-slider-step="1" data-slider-highlight="true" value="8" />
<label>
Load Dummy Data
</label>
<div class="switch">
<input type="checkbox" id="globe-dd" value="1" checked>
</div>
</div>
<div id="apply-button" class="button">Reload</div>
</div>
</div>
<div class="header" id="header-top">
<div class="header-left-section">CENTRAL SYSTEM DATA ... <span class="alt-1">LAUNCH ENCOM
GLOBALIZATION</span></div>
<div class="header-right-section">OIA | 012</div>
</div>
<div class="header" id="header-bottom">
<div class="header-left-section">TOUCHPOINT KEYBOARD ... <span class="alt-1">INTERACTION
SEQUENCING</span></div>
<div class="header-right-section">SYS | O12</div>
</div>
<div id="thumbprint">
<img src="/resources/thumbprint.png" />
</div>
<!-- probably should remove these and have them created in the script-->
<div class="header-animator" id="header-animator-inside"></div>
<div class="header-animator" id="header-animator-outside"></div>
</div>
<div id="file-picker-container"
style="display: none; flex-direction: column; align-items: center; gap: 20px; z-index: 10;">
<div
style="font-size: 24px; font-weight: bold; letter-spacing: 5px; color: #fff; text-shadow: 0 0 10px #fff;">
MESHTASTIC LOG MAPPER</div>
<p style="color: #aaa; text-align: center; font-size: 14px; margin: 0;">Select a raw .txt debug log file to
parse offline.</p>
<div style="display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;">
<input type="file" id="log-file-input" accept=".txt"
style="background: #252830; color: white; padding: 10px 14px; border-radius: 8px; border: 1px solid #444; cursor: pointer; outline: none;">
<button id="btn-install" class="pwa-install-btn" style="display:none;">📲 Install Meshlog App</button>
</div>
<div class="landing-maps-card">
<div class="landing-maps-title">My Maps 📍</div>
<div id="landing-recent-maps" class="recent-maps-list"></div>
</div>
<div class="landing-maps-card community-maps-card">
<div class="landing-maps-title community-maps-title">Latest Community Maps 🌐</div>
<div id="landing-community-maps" class="recent-maps-list"></div>
</div>
</div>
<div id="loading-spinner-container" style="display: flex; flex-direction: column; align-items: center;">
<div class="mesh-loader">
<svg viewBox="0 0 100 100" width="100" height="100">
<g class="mesh-links">
<line x1="50" y1="10" x2="84.6" y2="30" />
<line x1="50" y1="10" x2="84.6" y2="70" />
<line x1="50" y1="10" x2="50" y2="90" />
<line x1="50" y1="10" x2="15.4" y2="70" />
<line x1="50" y1="10" x2="15.4" y2="30" />
<line x1="84.6" y1="30" x2="84.6" y2="70" />
<line x1="84.6" y1="30" x2="50" y2="90" />
<line x1="84.6" y1="30" x2="15.4" y2="70" />
<line x1="84.6" y1="30" x2="15.4" y2="30" />
<line x1="84.6" y1="70" x2="50" y2="90" />
<line x1="84.6" y1="70" x2="15.4" y2="70" />
<line x1="84.6" y1="70" x2="15.4" y2="30" />
<line x1="50" y1="90" x2="15.4" y2="70" />
<line x1="50" y1="90" x2="15.4" y2="30" />
<line x1="15.4" y1="70" x2="15.4" y2="30" />
</g>
<g class="mesh-nodes">
<circle cx="50" cy="10" r="5" />
<circle cx="84.6" cy="30" r="5" />
<circle cx="84.6" cy="70" r="5" />
<circle cx="50" cy="90" r="5" />
<circle cx="15.4" cy="70" r="5" />
<circle cx="15.4" cy="30" r="5" />
</g>
<g class="mesh-packets">
<circle r="1.5" fill="#e91e63">
<animateMotion dur="1.1s" repeatCount="indefinite" path="M50 10 L84.6 70 L15.4 70 Z" />
</circle>
<circle r="1.5" fill="#4caf50">
<animateMotion dur="1.3s" repeatCount="indefinite" path="M84.6 30 L50 90 L15.4 30 Z" />
</circle>
<circle r="1.5" fill="#ffeb3b">
<animateMotion dur="0.8s" repeatCount="indefinite" path="M50 10 L50 90 Z" />
</circle>
<circle r="1.5" fill="#00bcd4">
<animateMotion dur="0.9s" repeatCount="indefinite" path="M84.6 30 L15.4 70 Z" />
</circle>
<circle r="1.5" fill="#e91e63">
<animateMotion dur="1.0s" repeatCount="indefinite" path="M84.6 70 L15.4 30 Z" />
</circle>
<circle r="1.5" fill="#4caf50">
<animateMotion dur="1.5s" repeatCount="indefinite"
path="M50 10 L84.6 30 L84.6 70 L50 90 L15.4 70 L15.4 30 Z" />
</circle>
</g>
</svg>
</div>
<div
style="font-size: 24px; font-weight: bold; letter-spacing: 5px; color: #fff; text-shadow: 0 0 10px #fff; margin-top: 15px;">
MESHTASTIC</div>
<div id="loading-text">CHECKING CACHE...</div>
<div class="loading-bar-container">
<div class="loading-bar"></div>
</div>
<div id="cf-turnstile-widget" style="margin-top: 20px; min-height: 65px;"></div>
</div>
</div>
<div id="main-content">
<div id="view-controls">
<datalist id="node-datalist"></datalist>
<button id="btn-map" class="active">Geo Map</button>
<button id="btn-net">Logical Network</button>
<button id="btn-longest-links">Longest Links</button>
<button id="btn-traceroutes">Traceroutes</button>
<button id="btn-upload">Upload Log</button>
<button id="btn-settings">⚙️ Settings</button>
<button id="btn-share" style="display:none;">🔗 Share Map</button>
<input type="file" id="dashboard-upload-input" accept=".txt" style="display: none;">
</div>
<button id="nav-toggle" class="mobile-only">☰</button>
<div id="views">
<div id="map">
<details class="geo-info-details">
<summary class="geo-info-summary">ℹ️ MAP HELP</summary>
<div class="geo-info-panel">
<h4>Geo Map Guide</h4>
<div class="geo-help-section">
<strong>Node Marker Roles:</strong>
<div class="legend-item">
<div class="legend-shape legend-square legend-gold"></div> Router / Repeater (Gold
Square)
</div>
<div class="legend-item">
<div class="legend-shape legend-square legend-amber"></div> Router Late (Amber Square)
</div>
<div class="legend-item">
<div class="legend-shape legend-circle legend-cyan"></div> Client Base (Cyan Ring)
</div>
<div class="legend-item">
<div class="legend-shape legend-circle legend-dashed"></div> Client Mute (Dashed Circle)
</div>
<div class="legend-item">
<div class="legend-shape legend-circle legend-green"></div> Standard Client (Circle)
</div>
</div>
<div class="geo-help-section">
<strong>Signal Quality (SNR):</strong>
<div class="legend-item">
<div class="legend-color" style="background: #4caf50;"></div> > -5 dB (Excellent)
</div>
<div class="legend-item">
<div class="legend-color" style="background: #ffc107;"></div> -15 to -5 dB (Fair)
</div>
<div class="legend-item">
<div class="legend-color" style="background: #f44336;"></div> ≤ -15 dB (Poor)
</div>
</div>
<div class="geo-help-section">
<strong>Transport Badges:</strong>
<div><span class="transport-badge transport-badge-gw">GW 🌐</span> Explicit Internet Gateway
</div>
<div><span class="transport-badge transport-badge-rf">RF 📻</span> LoRa Radio Direct</div>
<div><span class="transport-badge transport-badge-mqtt">MQTT 🌐</span> Internet Gateway
</div>
<div><span class="transport-badge transport-badge-hybrid">RF + MQTT 🌐📻</span> Dual /
Hybrid Transport</div>
</div>
<div class="geo-help-section geo-help-tips">
<strong>Controls:</strong>
<p>• Click any node to open analytics, battery & telemetry history.</p>
<p>• Filter nodes by ID, Hop count, or Age using bottom controls.</p>
</div>
</div>
</details>
</div>
<div id="d3-container">
<div id="d3-tooltip"></div>
<details class="geo-info-details">
<summary class="geo-info-summary">ℹ️ GRAPH HELP</summary>
<div class="geo-info-panel">
<h4>Network Graph Guide</h4>
<div class="geo-help-section">
<strong>Node Marker Shapes:</strong>
<div class="legend-item">
<div class="legend-shape d3-legend-gateway"></div> Gateway Node (Purple Border)
</div>
<div class="legend-item">
<div class="legend-shape d3-legend-router"></div> Router Node (Gold Border)
</div>
<div class="legend-item">
<div class="legend-shape d3-legend-router-late"></div> Router Late (Amber Border)
</div>
<div class="legend-item">
<div class="legend-shape d3-legend-client-base"></div> Client Base (Cyan)
</div>
<div class="legend-item">
<div class="legend-shape d3-legend-client-mute"></div> Client Mute (Dashed Border)
</div>
<div class="legend-item">
<div class="legend-shape d3-legend-standard"></div> Standard Node (White Border)
</div>
</div>
<div class="geo-help-section">
<strong>Graph Elements:</strong>
<p>• Node Size = Traffic Volume</p>
<p>• Link Thickness = Signal Strength (SNR)</p>
<p>• Drag nodes to reorganize network topology.</p>
</div>
</div>
</details>
</div>
<div id="sidebar">
<div class="sidebar-header">
<h2>Longest Links (RF)</h2>
<span id="longest-links-count" class="badge badge-primary">0</span>
</div>
<div class="summary-cards">
<div class="summary-card">
<div class="card-metric" id="total-rf-links">-</div>
<div class="card-label">Total RF Links</div>
</div>
<div class="summary-card">
<div class="card-metric text-warning" id="longest-direct-link">-</div>
<div class="card-label">Longest Direct</div>
</div>
</div>
<div class="table-container">
<table class="malla-table">
<thead>
<tr>
<th>#</th>
<th>Nodes</th>
<th>Distance</th>
<th>SNR</th>
</tr>
</thead>
<tbody id="longest-links-table-body">
<!-- Populated by JS -->
</tbody>
</table>
</div>
</div>
<div id="traceroutes-view" style="display: none;">
<div class="sidebar-header">
<h2>Traceroutes 📡</h2>
<span id="traceroutes-count" class="badge badge-primary">0</span>
</div>
<div id="traceroutes-grid" class="traceroutes-grid">
<!-- Populated by JS as 3x3 cards matching the Android dialog images -->
</div>
</div>
</div>
<div id="terminal-container">
<div id="terminal-header" style="position: relative;">
<div id="terminal-header-bar" class="term-header-bar">
<!-- Title & Search (Priority) -->
<div class="term-header-search-group">
<span class="term-prompt">>_</span>
<input type="search" id="node-filter" list="node-datalist" placeholder="Search Node ID..."
class="term-input term-input-large">
</div>
<!-- Dropdown Filters -->
<div class="term-header-filter-group">
<select id="port-filter" class="term-select">
<option value="">All Ports</option>
<option value="POSITION_APP">Position</option>
<option value="TELEMETRY_APP">Telemetry</option>
<option value="NODEINFO_APP">NodeInfo</option>
<option value="TEXT_MESSAGE_APP">Text Msg</option>
<option value="ROUTING_APP">Routing</option>
<option value="ADMIN_APP">Admin</option>
<option value="WAYPOINT_APP">Waypoint</option>
<option value="MAP_REPORT_APP">Map Report</option>
</select>
<select id="hop-filter" title="Max Hops" class="term-select">
<option value="">Any Hops</option>
<option value="1">1 Hop</option>
<option value="2">2 Hops</option>
<option value="3">3 Hops</option>
<option value="4">4 Hops</option>
</select>
</div>
<!-- Actions -->
<div class="term-action-group">
<button id="pause-sim-btn" class="term-btn">Pause</button>
<select id="speed-control" class="term-select">
<option value="0.25">0.25x</option>
<option value="0.5">0.5x</option>
<option value="0.75">0.75x</option>
<option value="1" selected>1.0x</option>
<option value="2">2.0x</option>
<option value="5">5.0x</option>
<option value="10">10.0x</option>
</select>
<button id="clear-term-btn" class="term-btn" title="Clear terminal">Clear</button>
<button class="term-toggle term-btn" title="Toggle terminal">▾</button>
</div>
</div>
</div>
<div id="terminal-output"></div>
</div>
</div>
<!-- Centered Toast -->
<div id="centered-toast"
style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.85); color: #fff; padding: 15px 25px; border-radius: 8px; z-index: 1000000; font-size: 16px; font-weight: bold; border: 1px solid #ff5252; box-shadow: 0 4px 15px rgba(0,0,0,0.5); pointer-events: none; white-space: nowrap;">
</div>
<script type="module" src="./main.js"></script>
<!-- Deep Packet Inspection Modal -->
<div id="dpi-modal" class="modal-overlay">
<div class="modal-content">
<div class="modal-header">
<h3>Deep Packet Inspection</h3>
<div style="display:flex; gap:10px;">
<button id="copy-dpi-btn"
style="background:#4caf50; color:#fff; border:none; padding:4px 10px; border-radius:4px; cursor:pointer;">Copy</button>
<button id="close-modal">×</button>
</div>
</div>
<div class="modal-body">
<pre><code id="dpi-payload"></code></pre>
</div>
</div>
</div>
<!-- Node Analytics Sliding Panel -->
<aside id="node-analytics-panel">
<button id="close-panel">×</button>
<div class="panel-header" style="margin-bottom: 24px; padding-right: 64px;">
<div style="display: flex; flex-direction: column; gap: 6px;">
<div style="display: flex; align-items: center; gap: 8px; flex-wrap: wrap;">
<h2 id="panel-node-name"
style="margin: 0; color: #4caf50; font-size: 18px; word-break: break-word;">Node Name</h2>
<span id="panel-node-status" class="badge bg-secondary" style="font-size: 11px;">Unknown</span>
</div>
<div id="panel-node-id" style="color: #888; font-family: monospace; font-size: 12px;"></div>
</div>
</div>
<div class="panel-body">
<div class="summary-cards" style="margin-bottom: 24px;">
<div class="summary-card">
<div class="card-metric" id="panel-traffic" style="color: #0d6efd;">0</div>
<div class="card-label">Packets</div>
</div>
<div class="summary-card">
<div class="card-metric" id="panel-hw-model"
style="font-size: 1.1rem; padding-top: 5px; color: #ececec;">-</div>
<div class="card-label">Hardware</div>
</div>
</div>
<h3 style="margin-top: 0; font-size: 14px; color: #aaa; margin-bottom: 12px;"><i class="bi bi-graph-up"></i>
Telemetry History</h3>
<div class="table-container" style="padding: 16px; margin-bottom: 24px; position: relative; height: 250px;">
<canvas id="telemetry-chart"></canvas>
</div>
<h3 style="margin-top: 0; font-size: 14px; color: #aaa; margin-bottom: 12px;"><i class="bi bi-list-ul"></i>
Recent Packets</h3>
<div class="table-container" style="padding: 12px;">
<div id="panel-recent-packets" style="font-size: 12px; color: #ccc;"></div>
</div>
</div>
</aside>
<!-- Native Settings Dialog -->
<dialog id="settings-modal"
style="background: #222; color: #fff; border: 1px solid #444; border-radius: 16px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.5), 0 10px 25px rgba(0,0,0,0.5); width: 320px; max-width: 90vw; max-height: 85vh; overflow-y: auto;">
<h3 style="margin-top: 0; border-bottom: 1px solid #444; padding-bottom: 10px;">App Settings</h3>
<div style="margin-bottom: 15px; padding: 4px 0; background: transparent; border: none;">
<div style="font-size: 12px; color: #4caf50; font-weight: bold; margin-bottom: 8px;">My Maps📍</div>
<div id="recent-maps" style="display: flex; gap: 8px; flex-wrap: wrap;"></div>
</div>
<div style="margin-bottom: 15px; padding: 4px 0; background: transparent; border: none;">
<div style="font-size: 12px; color: #00bcd4; font-weight: bold; margin-bottom: 8px;">Latest Community Maps
🌐</div>
<div id="recent-community-maps" style="display: flex; gap: 8px; flex-wrap: wrap;"></div>
</div>
<div style="margin-bottom: 15px;">
<label style="display: block; font-size: 12px; color: #aaa; margin-bottom: 8px;">Quick Actions</label>
<div style="display: flex; gap: 8px;">
<button id="btn-modal-tutorial"
style="flex: 1; background: #e91e63; border: none; color: white; padding: 10px 16px; min-height: 40px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 13px;">Tutorial
</button>
<button id="btn-modal-home" onclick="window.goHome()"
style="flex: 1; background: #9c27b0; border: none; color: white; padding: 10px 16px; min-height: 40px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 13px;">HOME
🌐</button>
</div>
</div>
<div style="margin-bottom: 15px;">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px;">
<label style="font-size: 12px; color: #aaa;">Network Node Spread</label>
<button id="btn-reset-spread"
style="background: transparent; border: 1px solid #555; color: #aaa; padding: 8px 12px; min-height: 40px; border-radius: 4px; cursor: pointer; font-size: 11px;">Reset</button>
</div>
<input type="range" id="setting-d3-spread" min="-1000" max="-50" value="-1000"
style="width: 100%; accent-color: #00bcd4;">
</div>
<div style="margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between;">
<label style="font-size: 12px; color: #aaa;">Disable Auto-Tours</label>
<input type="checkbox" id="setting-disable-tours"
style="width: 16px; height: 16px; cursor: pointer; accent-color: #00bcd4; margin: 0;">
</div>
<div style="text-align: center; font-size: 11px; color: #888; margin-bottom: 15px;">
<span>(made with ❤️ by NXDOMAIN)</span><br>
<span id="build-timestamp" style="font-size: 9px; opacity: 0.6;"></span>
</div>
<div style="text-align: right; border-top: 1px solid #444; padding-top: 15px;">
<button id="btn-settings-close"
style="background: #4caf50; border: none; color: white; padding: 10px 16px; min-height: 40px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px;">Save
& Close</button>
</div>
</dialog>
</body>
</html>