From cafa3b89576ca4b52c20d2d1faf3db1ecfb296bf Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Tue, 27 Aug 2024 13:11:59 +0200 Subject: [PATCH] little more from the mvc chapter --- MVC/MVC_quizz.html | 32 ++++++++++++ MVC/intro.html | 52 ++++++++++--------- .../adjektivhistorie.html | 7 ++- oppgaver/uke4/adjektichistorie/script.js | 21 ++++++++ oppgaver/uke4/adjektichistorie/style.css | 0 team/oppgave1/uke4/index.html | 2 +- 6 files changed, 87 insertions(+), 27 deletions(-) create mode 100644 MVC/MVC_quizz.html rename oppgaver/uke4/{ => adjektichistorie}/adjektivhistorie.html (64%) create mode 100644 oppgaver/uke4/adjektichistorie/script.js create mode 100644 oppgaver/uke4/adjektichistorie/style.css diff --git a/MVC/MVC_quizz.html b/MVC/MVC_quizz.html new file mode 100644 index 0000000..d888798 --- /dev/null +++ b/MVC/MVC_quizz.html @@ -0,0 +1,32 @@ + + + + + + Model View Controller + + + +
+ + + \ No newline at end of file diff --git a/MVC/intro.html b/MVC/intro.html index c2d6128..c6f1bfe 100644 --- a/MVC/intro.html +++ b/MVC/intro.html @@ -8,55 +8,57 @@ -
-
Hei jeg heter
-
...her kommer et navn
-
-
-
Jeg bor i
-
..her kommer et sted
+
+ + diff --git a/oppgaver/uke4/adjektivhistorie.html b/oppgaver/uke4/adjektichistorie/adjektivhistorie.html similarity index 64% rename from oppgaver/uke4/adjektivhistorie.html rename to oppgaver/uke4/adjektichistorie/adjektivhistorie.html index d01f779..0a1f318 100644 --- a/oppgaver/uke4/adjektivhistorie.html +++ b/oppgaver/uke4/adjektichistorie/adjektivhistorie.html @@ -1,11 +1,16 @@ + Document + + - +
+ + \ No newline at end of file diff --git a/oppgaver/uke4/adjektichistorie/script.js b/oppgaver/uke4/adjektichistorie/script.js new file mode 100644 index 0000000..7dae2d3 --- /dev/null +++ b/oppgaver/uke4/adjektichistorie/script.js @@ -0,0 +1,21 @@ +// Model Variabler +let sentence = "" +let words = ["Green", "Red", "Cat", "Man", "Started", "Jumped", "Pool", "Wall"]; + +// View +// HTML, onclick CSS +updateView(); +function updateView() { + document.getElementById('app').innerHTML = 'Dette er ____'; + document.getElementById('app').innerHTML = /*HTML*/ ` + + + + + `; +}; + +// Controller endrer modellen +function insertWords() { + +} \ No newline at end of file diff --git a/oppgaver/uke4/adjektichistorie/style.css b/oppgaver/uke4/adjektichistorie/style.css new file mode 100644 index 0000000..e69de29 diff --git a/team/oppgave1/uke4/index.html b/team/oppgave1/uke4/index.html index bf6fdf7..1a2a8e0 100644 --- a/team/oppgave1/uke4/index.html +++ b/team/oppgave1/uke4/index.html @@ -7,6 +7,6 @@
Thus spake the Master Programmer:
- "After three days without programming, life becomes meaningless."
+ "After three days without programming, life becomes meaningless." - The Tao of Programming
\ No newline at end of file