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

Function installNetTool

web/scripts/ragnar_modern.js:1626–1643  ·  view source on GitHub ↗
(tool, btn, reloadFn)

Source from the content-addressed store, hash-verified

1624 } else tip.classList.add('hidden');
1625 }
1626 if ((ap ? ap.bssid : null) !== _wifiState.hoverBssid) {
1627 _wifiState.hoverBssid = ap ? ap.bssid : null;
1628 if (_wifiState.view !== 'waterfall' && _wifiState.data) _wifiDrawSpectrum();
1629 }
1630 });
1631 canvas.addEventListener('mouseleave', () => {
1632 if (tip) tip.classList.add('hidden');
1633 if (readout) { readout.textContent = ''; readout.style.visibility = 'hidden'; }
1634 if (_wifiState.hoverBssid) {
1635 _wifiState.hoverBssid = null;
1636 if (_wifiState.view !== 'waterfall' && _wifiState.data) _wifiDrawSpectrum();
1637 }
1638 });
1639 canvas.addEventListener('click', (e) => {
1640 const p = at(e);
1641 const hit = _wifiHitTest(canvas, p.x, p.y);
1642 if (hit) wifiSelectAp(hit.bssid);
1643 else if (_wifiState.selected) { _wifiState.selected = null; wifiRender(); }
1644 });
1645}
1646

Callers

nothing calls this directly

Calls 3

_ndBusyFunction · 0.85
postAPIFunction · 0.70
addConsoleMessageFunction · 0.70

Tested by

no test coverage detected