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

Function formatPortsCell

web/scripts/ragnar_modern.js:4313–4322  ·  view source on GitHub ↗
(ports)

Source from the content-addressed store, hash-verified

4311 if (!name) return;
4312 fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' },
4313 body: JSON.stringify({ action: 'load', name }) })
4314 .then(r => r.json()).then(d => {
4315 if (d.error) { if (st) st.textContent = '⚠ ' + d.error; return; }
4316 if (st) st.textContent = 'loaded “' + name + '”';
4317 wifiHeatmapLoad();
4318 }).catch(() => { if (st) st.textContent = 'load failed'; });
4319}
4320
4321function wifiSurveyDelete() {
4322 const name = document.getElementById('wifi-hm-survey').value;
4323 const st = document.getElementById('wifi-hm-survey-status');
4324 if (!name) return;
4325 fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' },

Callers 1

renderHostRowFunction · 0.70

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected