From fe625a2b6deaff597a774e81a98ef5be3a8a4cf6 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Wed, 11 Sep 2024 14:59:03 +0200 Subject: [PATCH] =?UTF-8?q?litt=20react=20og=20funksjoner=20p=C3=A5=20slut?= =?UTF-8?q?ten=20av=20dagen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MVC/farger.html | 55 +++++++++++++++++++++++-------------------------- MVC/farger.js | 4 ++-- 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/MVC/farger.html b/MVC/farger.html index ccd2ff1..631a718 100644 --- a/MVC/farger.html +++ b/MVC/farger.html @@ -1,42 +1,39 @@ + - Document + CRUD MVC + +
- +
- + \ No newline at end of file diff --git a/MVC/farger.js b/MVC/farger.js index 46f73ff..7f5ba41 100644 --- a/MVC/farger.js +++ b/MVC/farger.js @@ -34,9 +34,9 @@ function addColor() { addColorName = ''; updateView(); } -function createColorHtml() { +function createColorsHtml() { let colorsHtml = ''; - for (let i = 0; i < colors.lenght; i++) { + for (let i = 0; i < colors.length; i++) { let color = colors[i]; colorsHtml += /*HTML*/ `