music: change bg text function scope

This commit is contained in:
Agahnim 2026-05-13 14:22:54 +02:00
parent 77c75010b4
commit cf7c1814c2
Signed by: Agahnim
SSH key fingerprint: SHA256:Zj65PJnE0dRYye8Ltk/qDglynyXUxJngQ9qqx/VI+b4

View file

@ -5,8 +5,10 @@
</cute-container>
</music>
<script>
(function () {
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
const container = document.getElementById("bg-text");
if (!container) return;
const colWidth = 20;
const rowHeight = 24;
const cols = Math.ceil(window.innerWidth / colWidth);
@ -22,4 +24,5 @@
}
container.appendChild(col);
}
})();
</script>