From 58270467c7ef481f36b27899024221da27c0d290 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sun, 27 Apr 2025 09:21:05 -0400 Subject: [PATCH] fluxwidget: use ascii chars for counts >= 10 --- fluxwidget/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fluxwidget/script.js b/fluxwidget/script.js index a30a214..55bce78 100644 --- a/fluxwidget/script.js +++ b/fluxwidget/script.js @@ -23,9 +23,10 @@ window.onload = async function run() { const img = document.createElement("img") const num = document.createElement("b") img.src = `data:${icon.data}` - num.textContent = count + if (count < 10) { num.textContent = count } + else { num.textContent = String.fromCharCode(count + 55) } container.appendChild(img) container.appendChild(num) link.appendChild(container) } -} \ No newline at end of file +}