startit/MVC/navn og epost/index.html

22 lines
632 B
HTML
Raw Normal View History

2024-09-25 10:45:56 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="model.js"></script>
</head>
<body onload="updateView()">
<div id="app"></div>
<script>
function updateView(){
const page = model.app.page;
if (page === 'search') updateViewSearch();
else if (page === 'delete') updateViewDelete();
else if (page === 'edit') updateViewEdit();
else if (page === 'createNew') updateViewCreateNew();
}
</script>
</body>
</html>