MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / row

Function row

web/scripts/ragnar_modern.js:2050–2054  ·  view source on GitHub ↗
(label, value)

Source from the content-addressed store, hash-verified

2048 ctx.fillText(`● LIVE RF · ${s.band} GHz · HackRF`, padL + 2, padT + 10);
2049}
2050
2051function _wifiGenBadge(std) {
2052 const map = { 'Wi-Fi 7': '#22d3ee', 'Wi-Fi 6E': '#34d399', 'Wi-Fi 6': '#34d399',
2053 'Wi-Fi 5': '#60a5fa', 'Wi-Fi 4': '#94a3b8', 'legacy': '#f87171' };
2054 if (!std) return '';
2055 const c = map[std] || '#94a3b8';
2056 return `<span class="text-[9px] px-1 rounded ml-1 align-middle" style="background:${c}22;color:${c};border:1px solid ${c}66">${std.replace('Wi-Fi ', 'Wi‑Fi ')}</span>`;
2057}

Callers 1

loadNetworkIdentityFunction · 0.70

Calls 2

pushMethod · 0.80
escapeHtmlFunction · 0.70

Tested by

no test coverage detected