deguapp/frontend-plain/js/home.js
2023-12-13 19:10:39 +01:00

6 lines
145 B
JavaScript

qSA(".card-beer").forEach(el => {
el.addEventListener("click", (e) => {
window.location.href = "/beer/" + el.querySelector("img").id
})
});