started mvc chapter

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-26 14:39:39 +02:00
parent ec72ed57b9
commit ed7c48e877
3 changed files with 15 additions and 4 deletions

View file

@ -29,12 +29,12 @@
<script>
// Model
let fistName;
let firstName;
let place;
let food;
// View
function setFields() {
document.getElementById("namediv").innerHTML = fistName;
document.getElementById("namediv").innerHTML = firstName;
document.getElementById("placediv").innerHTML = place;
document.getElementById("fooddiv").innerHTML = food;

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>

View file

@ -6,7 +6,7 @@
<title>Document</title>
</head>
<body>
Thus spake the Master Programmer:
"After three days without programming, life becomes meaningless."
<div>Thus spake the Master Programmer:<br>
"After three days without programming, life becomes meaningless."</div>
</body>
</html>