daily push
This commit is contained in:
parent
7ee0c5f323
commit
84430fe3ff
6 changed files with 128 additions and 1 deletions
42
oppgaver/uke3/returnValue.html
Normal file
42
oppgaver/uke3/returnValue.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!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>
|
||||
<div id="app">
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('app').innerHTML = createDateSelector();
|
||||
function createDateSelector(){
|
||||
return /*HTML*/`
|
||||
<div class="vertical">
|
||||
</div>
|
||||
`;
|
||||
};
|
||||
function createNumberSelector(label, day, moth, year){
|
||||
return /*HTML*/`
|
||||
<div class="horizontal">
|
||||
<label>${label}</label>
|
||||
<div class="horizontal border">
|
||||
<div class="number">${number}</div>
|
||||
${createUpDownButton()}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
function createUpDownButton(){
|
||||
return /*HTML*/ `
|
||||
<div class="vertical">
|
||||
<button>UP</button>
|
||||
<button>DOWN</button>
|
||||
`;
|
||||
};
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue