music: change bg text function scope

This commit is contained in:
Agahnim 2026-05-13 14:22:54 +02:00
parent 4d0fb4a138
commit 5263b4af90

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>