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