🚨 remove unused stuff
All checks were successful
Javascript Linter / Javascript-Lint (push) Successful in 10s
Python formatting PEP8 / Pyhton-PEP8 (push) Successful in 12s
CSS Linter / CSS-Lint (push) Successful in 20s

This commit is contained in:
Finn Christiansen 2023-06-01 21:24:04 +02:00
parent 02a1ef7db8
commit f5d8f1d6e3

View file

@ -1,9 +1,7 @@
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll("a.color").forEach(button => { document.querySelectorAll("a.color").forEach(button => {
button.addEventListener("click", event => { button.addEventListener("click", () => {
console.log("button");
console.log(button.dataset.color);
fetch("/color/" + button.dataset.color, {method: "POST"}); fetch("/color/" + button.dataset.color, {method: "POST"});
}); });
}); });