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