vinlotteri oppgave
This commit is contained in:
parent
340fd0f151
commit
63fcc0c68d
6 changed files with 137 additions and 1 deletions
27
emne2/Vinlotterix/index.html
Normal file
27
emne2/Vinlotterix/index.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vin LotteriX</title>
|
||||
<script src="model.js"></script>
|
||||
<script src="view.js"></script>
|
||||
<script src="controller.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script>
|
||||
updateView();
|
||||
function updateView() {
|
||||
const page = model.app.page;
|
||||
if (page === 'home') updateViewHome();
|
||||
else if (page === 'rules') updateViewRules();
|
||||
else if (page === 'list') updateViewList();
|
||||
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue