MCPcopy Create free account
hub / github.com/cppla/ServerStatus / $

Function $

web/js/app.js:23–23  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

21};
22
23const $ = (id) => document.getElementById(id);
24const esc = (v) => String(v ?? '').replace(/[&<>"']/g, ch => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[ch]));
25const clamp = (v, min, max) => Math.max(min, Math.min(max, v));
26const num = (v) => typeof v === 'number' && Number.isFinite(v) ? v : 0;

Callers 15

fetchDataFunction · 0.85
renderFunction · 0.85
renderOverviewFunction · 0.85
renderOsOptionsFunction · 0.85
renderServersFunction · 0.85
renderServersCardsFunction · 0.85
renderMonitorsFunction · 0.85
renderMonitorsCardsFunction · 0.85
renderSSLFunction · 0.85
renderSSLCardsFunction · 0.85
openDetailFunction · 0.85
refreshDetailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected