From 7feac66a6df9b53deea85480847511e031aaabf6 Mon Sep 17 00:00:00 2001 From: kitkatpotato16 <523488@vistacollege.nl> Date: Fri, 21 Feb 2025 10:00:27 +0100 Subject: [PATCH] sdfgh --- website/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/script.js b/website/script.js index b3f4fa2..fc203fe 100644 --- a/website/script.js +++ b/website/script.js @@ -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') { 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: "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 items.forEach(item => { const productBox = document.createElement('div');