mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-05-26 00:44:02 +00:00
Remove dead code: svgLine(), .vcr-clock, .vcr-lcd-time display:none rules
closes #29
This commit is contained in:
+1
-9
@@ -6,14 +6,6 @@
|
||||
function esc(s) { return s ? String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"') : ''; }
|
||||
|
||||
// --- SVG helpers ---
|
||||
function svgLine(points, color, w, h, pad, maxX, maxY) {
|
||||
return points.map((v, i) => {
|
||||
const x = pad + i * ((w - pad * 2) / Math.max(points.length - 1, 1));
|
||||
const y = h - pad - (v / Math.max(maxY, 1)) * (h - pad * 2);
|
||||
return `${x},${y}`;
|
||||
}).join(' ');
|
||||
}
|
||||
|
||||
function sparkSvg(data, color, w = 120, h = 32) {
|
||||
if (!data.length) return '';
|
||||
const max = Math.max(...data, 1);
|
||||
@@ -117,7 +109,7 @@
|
||||
renderTab('overview');
|
||||
} catch (e) {
|
||||
document.getElementById('analyticsContent').innerHTML =
|
||||
`<div class="text-muted" style="padding:40px">Failed to load: ${e.message}</div>`;
|
||||
`<div class="text-muted" role="alert" aria-live="polite" style="padding:40px">Failed to load: ${e.message}</div>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -485,9 +485,6 @@
|
||||
50% { opacity: 0.3; }
|
||||
}
|
||||
|
||||
.vcr-clock {
|
||||
display: none; /* replaced by LCD panel */
|
||||
}
|
||||
.vcr-lcd {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -514,9 +511,6 @@
|
||||
text-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
|
||||
font-weight: 700;
|
||||
}
|
||||
.vcr-lcd-time {
|
||||
display: none; /* replaced by canvas */
|
||||
}
|
||||
.vcr-lcd-canvas {
|
||||
width: 130px;
|
||||
height: 28px;
|
||||
|
||||
Reference in New Issue
Block a user