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');