Update 2025-04-13_17:31:30

This commit is contained in:
root
2025-04-13 17:31:30 +02:00
parent 06fb52f574
commit 3013631fd7
19 changed files with 1043 additions and 130 deletions

21
static/color.js Normal file
View File

@ -0,0 +1,21 @@
export const COLORS = [
"red",
"blue",
"green",
"yellow",
"orange",
"purple",
"pink",
"cyan",
"red",
"black"
];
export function colorToClass(color) {
return `color-${color}`;
}
export function applyColor(element, color) {
element.classList.add(colorToClass(color));
}