From 1f418f9c8547c52f6394b681eb5ce02ee196b69a Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Thu, 13 Feb 2025 14:09:42 +0100 Subject: [PATCH] FIX --- website/index.html | 4 ++-- website/script.js | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/website/index.html b/website/index.html index c494fb6..f3b9190 100644 --- a/website/index.html +++ b/website/index.html @@ -5,7 +5,7 @@ Het hoofdmenu van de Mees - + @@ -66,7 +66,7 @@ - + diff --git a/website/script.js b/website/script.js index 9e3c9a0..6d5b472 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') { @@ -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 ""; } -