deguapp/frontend/js/home.js

6 lines
145 B
JavaScript
Raw Normal View History

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