
document.addEventListener("DOMContentLoaded", function () {
    document.querySelectorAll(".meal-cell").forEach(cell => {
        cell.addEventListener("click", function () {
            const name = this.getAttribute("data-name");
            const cook = this.getAttribute("data-cook");
            alert(`Måltid: ${name}\nLagas av: ${cook}`);
        });
    });
});
