diff --git a/MVC/box.html b/MVC/box.html index dca6391..d759156 100644 --- a/MVC/box.html +++ b/MVC/box.html @@ -1,35 +1,41 @@ + MVC Skjemaer +
- +
+ \ No newline at end of file diff --git a/MVC/skjemaer.html b/MVC/skjemaer.html index ac0aac3..abd484e 100644 --- a/MVC/skjemaer.html +++ b/MVC/skjemaer.html @@ -19,16 +19,9 @@ let fontSize; let isDarkMode = false; - // view updateView() function updateView() { - // let extraWord = ''; - // if (number < 10){ - // extraWord = 'ikke'; - // } else { - // extraWord = ''; - // } document.getElementById('app').innerHTML = /*HTML*/ `

Hei ${aName ?? 'på deg!'}

Navn:
@@ -82,7 +75,7 @@ >
`; let bodyStyle = document.body.style; - bodyStyle.fontFamily = fontFamily ?? serif; + bodyStyle.fontFamily = fontFamily ?? 'serif'; if (isDarkMode){ bodyStyle.background = 'black'; bodyStyle.color = 'white'; @@ -90,7 +83,7 @@ bodyStyle.background = 'white'; bodyStyle.color = 'black'; }; - + bodyStyle.fontSize = fontSize; }