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

Function renderLogEntries

web/scripts/ragnar_modern.js:19268–19289  ·  view source on GitHub ↗
(entries)

Source from the content-addressed store, hash-verified

19266 }
19267}
19268
19269function updateElement(id, value) {
19270 const element = document.getElementById(id);
19271 if (element) {
19272 const str = String(value ?? '');
19273 if (element.textContent !== str) {
19274 element.textContent = str;
19275 }
19276 }
19277}
19278
19279function scaleStatNumber(elementId, value, options = {}) {
19280 const element = document.getElementById(elementId);
19281 if (!element) {
19282 return;
19283 }
19284
19285 const config = {
19286 mediumDigits: 3,
19287 largeDigits: 4,
19288 baseClass: 'text-3xl',
19289 mediumClass: 'text-2xl',
19290 smallClass: 'text-xl',
19291 ...options
19292 };

Callers 2

fetchScanLogsFunction · 0.70
renderInlineScanLogsFunction · 0.70

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected