From bf8d7072ec2e8044375c6987cd2dc790da698a26 Mon Sep 17 00:00:00 2001 From: kitkatpotato16 <523488@vistacollege.nl> Date: Fri, 21 Feb 2025 09:57:55 +0100 Subject: [PATCH 1/4] overige --- website/index.html | 1 + website/script.js | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/website/index.html b/website/index.html index cd4c535..4bfbe95 100644 --- a/website/index.html +++ b/website/index.html @@ -29,6 +29,7 @@ + diff --git a/website/script.js b/website/script.js index ad9cb88..824876e 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 = [ @@ -94,7 +94,12 @@ function showCategory(category) { { title: "Haribo Bananen", imageSrc: "media/bananas.png", price: 2.50 }, { title: "Haribo Goudberen", imageSrc: "media/Goudberen.png", price: 2.50 }, ]; - } + } else if (category === 'Overige') { + items = [ + { title: "Bestek", imageSrc: "https://www.kerst-feestwinkel.nl/img/large/zwart-plastic-verjaardag-bbq-bestek-24-delig/10038/913-1.jpg", price: 0.40}, + { 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'); 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 2/4] 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'); From a00e7c78a5f22b9e95cf4e6accc488aa1886f94d Mon Sep 17 00:00:00 2001 From: kitkatpotato16 <523488@vistacollege.nl> Date: Fri, 21 Feb 2025 10:02:17 +0100 Subject: [PATCH 3/4] sdf --- website/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/script.js b/website/script.js index fc203fe..9640c70 100644 --- a/website/script.js +++ b/website/script.js @@ -327,6 +327,7 @@ const translations = { "Toevoegen aan winkelmandje": "Add to cart", "Bestellen": "Order", "Totaal": "Total", + "Overige": "Other", "Op dit broodje zit kaas, veldsla, komkommer, tomaat, ei, ham en/of kip en bufkes saus.": "This sandwich contains cheese, lamb's lettuce, cucumber, tomato, egg, ham and/or chicken, and bufkes sauce.", "Doughnut brood met spek, ei en kaas": "Doughnut bread with bacon, egg, and cheese", "Een wit of bruin broodje met Gehakt, Ei, Sla en Joppiesaus": "A white or brown sandwich with minced meat, egg, lettuce, and Joppiesaus", @@ -368,6 +369,7 @@ const translations = { "Add to cart": "Toevoegen aan winkelmandje", "Order": "Bestellen", "Total": "Totaal", + "Other": "Overige", "This sandwich contains cheese, lamb's lettuce, cucumber, tomato, egg, ham and/or chicken, and bufkes sauce.": "Op dit broodje zit kaas, veldsla, komkommer, tomaat, ei, ham en/of kip en bufkes saus.", "Doughnut bread with bacon, egg, and cheese": "Doughnut brood met spek, ei en kaas", "A white or brown sandwich with minced meat, egg, lettuce, and Joppiesaus": "Een wit of bruin broodje met Gehakt, Ei, Sla en Joppiesaus", From c05bfd7f0f0ac32cdfe2f51e2a24e90788171bb4 Mon Sep 17 00:00:00 2001 From: kitkatpotato16 <523488@vistacollege.nl> Date: Fri, 21 Feb 2025 10:04:38 +0100 Subject: [PATCH 4/4] rtrtd --- website/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/index.html b/website/index.html index 4bfbe95..909257c 100644 --- a/website/index.html +++ b/website/index.html @@ -29,7 +29,7 @@ - +