SielBotWebsite/static/js/roledots.js
2026-09-29 09:13:28 +02:00

4 lines
215 B
JavaScript

/* Farben der Rollen-Punkte (die CSP erlaubt keine style-Attribute). */
document.querySelectorAll('.role-dot[data-color]').forEach((dot) => {
if (dot.dataset.color) dot.style.background = dot.dataset.color;
});