mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-28 10:44:11 +00:00
fix: sort help tooltip — set title via JS so newlines render
HTML entities like don't work inside JS template literals (inserted as literal text). Setting .title via JS with actual \n newlines works correctly in browser tooltips.
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@
|
||||
<script src="hop-resolver.js?v=1774126708"></script>
|
||||
<script src="app.js?v=1774126708"></script>
|
||||
<script src="home.js?v=1774042199"></script>
|
||||
<script src="packets.js?v=1774138336"></script>
|
||||
<script src="packets.js?v=1774138383"></script>
|
||||
<script src="map.js?v=1774126708" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="channels.js?v=1774331200" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="nodes.js?v=1774126708" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
|
||||
+3
-1
@@ -449,7 +449,7 @@
|
||||
<option value="chrono-asc">Sort: Time ↑ (earliest)</option>
|
||||
<option value="chrono-desc">Sort: Time ↓ (latest)</option>
|
||||
</select>
|
||||
<span class="sort-help" title="Sort controls how observations within a packet group are ordered, and which observation's data (observer, path) appears in the header row. Observer — Groups by observer station, earliest first. Path ↑ — Shortest paths first. Path ↓ — Longest paths first. Time ↑ — Earliest observation first. Time ↓ — Most recent first.">ⓘ</span>
|
||||
<span class="sort-help" id="sortHelpIcon">ⓘ</span>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
<div class="col-toggle-wrap">
|
||||
@@ -503,6 +503,8 @@
|
||||
// Observation sort dropdown
|
||||
const obsSortSel = document.getElementById('fObsSort');
|
||||
obsSortSel.value = obsSortMode;
|
||||
const sortHelpEl = document.getElementById('sortHelpIcon');
|
||||
if (sortHelpEl) sortHelpEl.title = "Sort controls how observations are ordered within packet groups and which observation appears in the header row.\n\nObserver — Groups by observer station, earliest first.\nPath \u2191 — Shortest paths first.\nPath \u2193 — Longest paths first.\nTime \u2191 — Earliest observation first.\nTime \u2193 — Most recent first.";
|
||||
obsSortSel.addEventListener('change', async function () {
|
||||
obsSortMode = this.value;
|
||||
localStorage.setItem('meshcore-obs-sort', obsSortMode);
|
||||
|
||||
Reference in New Issue
Block a user