-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (34 loc) · 1.12 KB
/
index.html
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>
<head>
<meta charset="utf-8">
<title>TodoList</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>TodoList</h1>
<form onSubmit = "submitTodo(); return false">
<input type="text" id="new-todo" placeholder="What needs to be done?">
</form>
<ul id="todolist">
<li class="todo">
<input id="todo-1" type="checkbox" value="1" onChange = "toggleDone.bind(this)()">
<label for="todo-1">Sweep the floor</label>
</li>
<li class="todo completed">
<input id="todo-2" type="checkbox" value="1" checked = "checked" onChange = "toggleDone.bind(this)()">
<label for="todo-2">Dust the vases</label>
</li>
</ul>
<div class="footer">
Todo: <span id="todo-count">1</span> •
Done: <span id="completed-count">0</span> •
Total: <span id="total-count">1</span>
<!-- Clean up To Do's which are done -->
<a href = "#" onClick = "cleanUpDoneTodos(); return false"> Clean To Do's </a>
</div>
</div>
<script src = "script.js"> </script>
</body>
</html>