From a1eed2dcc9ebee9483ca32d3b64cd43cd626b377 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Fri, 6 Sep 2024 14:34:17 +0200 Subject: [PATCH] =?UTF-8?q?lurt=20=C3=A5=20trykke=20ctl+s=20f=C3=B8r=20pus?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MVC/kalender.html | 42 ++++++++++++++++++++++++++++++++++ MVC/løkker.html | 2 +- oppgaver/uke5/array1.html | 6 ++--- oppgaver/uke5/array2.html | 9 +++++--- prosjekt/plan.txt | 2 +- react_test/tutorial/index.html | 6 +++-- 6 files changed, 57 insertions(+), 10 deletions(-) diff --git a/MVC/kalender.html b/MVC/kalender.html index e69de29..51d1691 100644 --- a/MVC/kalender.html +++ b/MVC/kalender.html @@ -0,0 +1,42 @@ + + + + + + + Document + + + +
+ + + + \ No newline at end of file diff --git a/MVC/løkker.html b/MVC/løkker.html index d432cb4..a7ab2ef 100644 --- a/MVC/løkker.html +++ b/MVC/løkker.html @@ -21,7 +21,7 @@ let lishtml = ''; for (let i = 1; i <= maxNumber; i++) { lishtml += /*HTML*/ ` -
  • ${maxNumber} x ${i} = ${i * 10}
  • +
  • ${maxNumber} x ${i} = ${i * maxNumber}
  • `; } diff --git a/oppgaver/uke5/array1.html b/oppgaver/uke5/array1.html index eb5a4ea..5471133 100644 --- a/oppgaver/uke5/array1.html +++ b/oppgaver/uke5/array1.html @@ -10,7 +10,7 @@ diff --git a/oppgaver/uke5/array2.html b/oppgaver/uke5/array2.html index e8132c9..c0babc2 100644 --- a/oppgaver/uke5/array2.html +++ b/oppgaver/uke5/array2.html @@ -13,6 +13,7 @@ let htmlCart = ''; const goods = ['TV', 'Computer', 'Gaming Consol', 'Coffee']; let shoppingCart = []; + let item; let app = document.getElementById('app'); let tv = 0; let computer = 0; @@ -22,7 +23,6 @@ // View updateView(); function updateView(){ - let item; for (let i = 0; i < goods.length; i++){ item = goods[i]; html += /*HTML*/ ` @@ -65,9 +65,12 @@
  • Gaming antall = ${gaming}
  • Kaffe antall = ${coffee}
  • + `; - - app.innerHTML += htmlCart; + app.innerHTML = htmlCart; + } + function shopMore(){ + location.reload(); } diff --git a/prosjekt/plan.txt b/prosjekt/plan.txt index f2ea8e9..da9b071 100644 --- a/prosjekt/plan.txt +++ b/prosjekt/plan.txt @@ -6,6 +6,6 @@ nøkkeltek: * incus * libvirt -agent - clustering - go/rust eller guile +agent - clustering - guile frontend/web og cli - go middleware - bash nix guile diff --git a/react_test/tutorial/index.html b/react_test/tutorial/index.html index 956e1c4..7d7be7c 100644 --- a/react_test/tutorial/index.html +++ b/react_test/tutorial/index.html @@ -11,10 +11,12 @@ return (

    Develop. Preview. Ship.

    ) } function HomePage() { - return
    ; + return
    +
    +
    ; } const root = ReactDOM.createRoot(domNode); - root.render(
    ); + root.render(); \ No newline at end of file