Final versie!

This commit is contained in:
Atilla
2024-04-10 13:59:00 +02:00
parent c6143effc6
commit ac40b781e4
22 changed files with 702 additions and 688 deletions

View File

@@ -28,7 +28,7 @@ class PlantGrid {
// Methode om data te laden.
loadData() {
fetch('../script/plants.json') // Veronderstelt dat de JSON data is opgeslagen in 'plants.json'.
fetch('../script/plants.json')
.then(response => {
// Controleer of de netwerkrespons ok is.
if (!response.ok) {
@@ -89,7 +89,6 @@ class PlantGrid {
const article = document.createElement("article");
const img = article.appendChild(document.createElement("img"));
img.src = "../static/images/plus.png";
// img.src = "../images/plus.png";
img.id = "toevoegen";
img.alt = "Add";
article.id = "modalButton";