(entries)
| 19266 | } |
| 19267 | } |
| 19268 | |
| 19269 | function 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 | |
| 19279 | function 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 | }; |
no test coverage detected