1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="16x16" href="/fav/default/ico16.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Svenlaa two-do</title>
<meta name="description" content="simple cookie-based todo list on Svenlaa">
<link rel="stylesheet" href="/style/twodo.css">
<script src="/script/twodo.js" defer></script>
</head>
<body>
<header id="topBar">
<button id="logo" onclick="window.location='/'" aria-label="logo">
<img src="/fav/default/ico72.png" alt="logo">
</button>
<span id="productName">two-do</span>
<button id="newBut" onclick="addNew()" aria-label="add item">
<img src="/img/icon/common-file-add.png" alt="add item">
</button>
<button id="delBut" onclick="delItems()" aria-label="delete items">
<img src="/img/icon/bin-2.png" alt="delete items">
</button>
</header>
<ul id="list"></ul>
<div id="inputBar">
<input id="itemInput" type="text" placeholder="Start Typing..." autofocus>
<button id="sendInput" onclick="confirmItem(true)" aria-label="SEND">
<img src="/img/icon/check-1.png" alt="SEND">
</button>
<button id="cancelInput" onclick="confirmItem(false)" aria-label="CANCEL">
<img src="/img/icon/close.png" alt="CANCEL">
</button>
</div>
</body>
</html>