buttons für farbdarstellung hinzugefügt
This commit is contained in:
@@ -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');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user