This commit is contained in:
kitkatpotato16
2025-02-21 10:00:27 +01:00
parent 21a8debc14
commit 7feac66a6d

View File

@@ -4,7 +4,7 @@ function showCategory(category) {
productDisplay.innerHTML = ''; // Maak het display leeg voordat we nieuwe items toevoegen productDisplay.innerHTML = ''; // Maak het display leeg voordat we nieuwe items toevoegen
let items = []; let items = [];
}
// Afhankelijk van de gekozen categorie, voeg je de juiste producten toe // Afhankelijk van de gekozen categorie, voeg je de juiste producten toe
if (category === 'Broodjes') { if (category === 'Broodjes') {
items = [ items = [
@@ -103,6 +103,7 @@ function showCategory(category) {
{ title: "Hervul baar bekers", imageSrc:"https://th.bing.com/th/id/OIP.7V3t9HqIG_ss_IfEn6vgIwHaFl?w=238&h=180&c=7&pcl=1b1a19&r=0&o=5&pid=1.7", price: 1.00}, { title: "Hervul baar bekers", imageSrc:"https://th.bing.com/th/id/OIP.7V3t9HqIG_ss_IfEn6vgIwHaFl?w=238&h=180&c=7&pcl=1b1a19&r=0&o=5&pid=1.7", price: 1.00},
{ title: "Rietjes", imageSrc: "https://th.bing.com/th/id/OIP.hiraJOON9-g_L44k0RRJ2QHaHa?w=186&h=190&c=7&pcl=1b1a19&r=0&o=5&pid=1.7", price: 0.15}, { title: "Rietjes", imageSrc: "https://th.bing.com/th/id/OIP.hiraJOON9-g_L44k0RRJ2QHaHa?w=186&h=190&c=7&pcl=1b1a19&r=0&o=5&pid=1.7", price: 0.15},
]; ];
}
// Voeg de items toe aan de weergave // Voeg de items toe aan de weergave
items.forEach(item => { items.forEach(item => {
const productBox = document.createElement('div'); const productBox = document.createElement('div');