buttons für farbdarstellung hinzugefügt

This commit is contained in:
2026-05-21 23:04:53 +02:00
parent 352abcd61b
commit 677a71755e
3 changed files with 37 additions and 14 deletions
+18
View File
@@ -382,4 +382,22 @@ qualityButtons.forEach(button => {
});
});
// Farbbuttons aktivieren/deaktivieren
const colorButtons = document.querySelectorAll('.colorButtons');
colorButtons.forEach(button => {
button.addEventListener('click', () => {
colorButtons.forEach(btn => {
btn.classList.remove('active');
});
button.classList.add('active');
});
});