-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.original.html
More file actions
88 lines (80 loc) · 4.47 KB
/
index.original.html
File metadata and controls
88 lines (80 loc) · 4.47 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>MeshMapper</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="MeshMapper Wardrive — BLE companion">
<meta name="keywords" content="MeshCore,coverage,wardrive,cascadia,ottawamesh,ottawa,meshmapper">
<meta name="Original author" content="Kyle Reed">
<meta name="Modified by" content="MrAlders0n">
<link rel="manifest" href="content/wardrive.json">
<link rel="icon" href="content/wardrive-badge.png">
<link rel="stylesheet" href="content/tailwind.css">
<link rel="stylesheet" href="content/style.css">
<!-- AES-JS for AES-ECB decryption support (used for channel message encryption) -->
<script defer src="https://cdn.jsdelivr.net/npm/aes-js@3.1.2/index.min.js"></script>
<style>
/* Double-buffered iframe styles */
.coverage-frame {
width: 100%;
height: 400px;
border: 0;
position: absolute;
top: 0;
left: 0;
transition: opacity 0.15s ease-in-out;
}
.coverage-frame-active {
opacity: 1;
z-index: 1;
pointer-events: auto;
}
.coverage-frame-hidden {
opacity: 0;
z-index: 0;
pointer-events: none;
}
</style>
</head>
<body class="bg-slate-900 text-slate-100">
<main class="min-h-screen flex items-start justify-center px-3 pt-1 pb-3">
<div class="w-full max-w-xl space-y-2">
<!-- App Title -->
<header class="flex items-center justify-between gap-2">
<h1 class="flex items-center gap-2 text-lg sm:text-xl font-bold truncate min-w-0">
<img class="h-12 w-12 sm:h-14 sm:w-14 flex-shrink-0" src="content/wardrive.png" alt="MeshCore" />
<span class="truncate">MeshMapper</span>
</h1>
<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 px-2 py-0.5 rounded-full text-slate-400 flex-shrink-0">v1.0</span>
</header>
<!-- Connection Status Bar with Settings Panel -->
<div>
<!-- Connection Status Bar -->
<div id="connectionBar" class="bg-slate-800/80 border border-slate-700 rounded-t-xl rounded-b-none px-4 py-0.5 flex items-center justify-between">
<div class="flex items-center gap-2 text-sm">
<span id="statusIndicator" class="text-base text-red-400">●</span>
<span id="connectionStatus" class="font-medium text-red-300">Disconnected</span>
</div>
<div class="flex items-center gap-3">
<span id="noiseDisplay" class="text-sm text-slate-300"></span>
<button id="settingsGearBtn" class="p-0 text-slate-400 hover:text-slate-200 transition-colors" aria-label="Toggle settings">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
</button>
</div>
</div>
<!-- Settings Panel (extends from connection bar) -->
<section id="settingsPanel" class="bg-slate-800/80 border-x border-b border-slate-700 rounded-b-xl p-4 space-y-3">
<div class="flex items-center justify-between mb-2">
<h2 class="text-sm font-medium text-slate-300 uppercase tracking-wide">Settings</h2>
<button id="settingsCloseBtn" class="w-8 h-8 flex items-center justify-center rounded-full text-slate-400 hover:text-slate-200 hover:bg-slate-700/50 transition-all" aria-label="Close settings">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
<!-- Auto Ping Interval -->
[...TRUNCATED FOR BREVITY...]