This commit is contained in:
vista-man
2025-02-13 14:09:42 +01:00
parent f70448a626
commit 1f418f9c85
2 changed files with 5 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ function showCategory(category) {
productDisplay.innerHTML = ''; // Maak het display leeg voordat we nieuwe items toevoegen
let items = [];
}
// Afhankelijk van de gekozen categorie, voeg je de juiste producten toe
if (category === 'Broodjes') {
@@ -76,9 +76,8 @@ function showCategory(category) {
items = [
{ title: "Ketchup", imageSrc: "https://www.ahealthylife.nl/wp-content/uploads/2021/06/Ketchup_voedingswaarde.jpg", price: 0.25 },
{ title: "Mayonaise", imageSrc: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTC4FVmHO_hK3mw43z0fuHv1OFUr-hhsfGe1A&s", price: 0.25 }
]
];
}
// Voeg de items toe aan de weergave
items.forEach(item => {
const productBox = document.createElement('div');
@@ -137,4 +136,3 @@ function getDescription(title) {
}
return "";
}