This commit is contained in:
Dylanomz
2025-02-13 11:48:05 +01:00
6 changed files with 71 additions and 8 deletions

View File

@@ -1,10 +1,4 @@
// Functie om de productcategorie te tonen
function goToMainPage() {
document.getElementById('welcome-page').style.display = 'none';
document.getElementById('main-page').style.display = 'block';
}
function showCategory(category) {
const productDisplay = document.getElementById('product-display');
productDisplay.innerHTML = ''; // Maak het display leeg voordat we nieuwe items toevoegen
@@ -62,7 +56,9 @@ function showCategory(category) {
} else if (category === 'Soepen') {
items = [
{ title: "Tomatensoep", imageSrc: "media/soep.jpg", price: 2.50 },
{ title: "Kippensoep", imageSrc: "media/soep.jpg", price: 2.80 },
{ title: "Kippensoep", imageSrc: "https://static.ah.nl/static/recepten/img_RAM_PRD121479_1224x900_JPG.jpg", price: 2.80 },
{ title: "Erwtensoep", imageSrc: "https://www.24kitchen.nl/files/styles/media_text_wide/public/2022-09/erwtensoep%20%282%29.webp?itok=5FwzHgSE", price: 2.50 },
{ title: "Groentesoep (met gehaktballetjes)", imageSrc: "https://www.maggi.nl/sites/default/files/styles/home_stage_1500_700/public/srh_recipes/a55f0226c938b6bc40878dad5306271b.jpg?h=02cb7f90&itok=AmnkjPc3", price: 2.80 },
];
} else if (category === 'Salades') {
items = [