Team oppgave og litt unit-testing
This commit is contained in:
parent
fe625a2b6d
commit
29e6711d13
12 changed files with 526 additions and 47 deletions
0
oppgaver/uke6/8ball/controller.js
Normal file
0
oppgaver/uke6/8ball/controller.js
Normal file
16
oppgaver/uke6/8ball/index.html
Normal file
16
oppgaver/uke6/8ball/index.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Magic 8-ball</title>
|
||||
<style rel="stylesheet" href="style.css"></style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<script src="model.js"></script>
|
||||
<script src="view.js"></script>
|
||||
<script src="controller.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
2
oppgaver/uke6/8ball/model.js
Normal file
2
oppgaver/uke6/8ball/model.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
const eightBall = [];
|
||||
var app = document.getElementById('app')
|
0
oppgaver/uke6/8ball/style.css
Normal file
0
oppgaver/uke6/8ball/style.css
Normal file
7
oppgaver/uke6/8ball/view.js
Normal file
7
oppgaver/uke6/8ball/view.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
updateView();
|
||||
function updateView(){
|
||||
let html = /*HTML*/ `
|
||||
<div id="ball">8-ball</div>
|
||||
`;
|
||||
app.innerHTML = html;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue