forked from junginny/todo-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.html
83 lines (81 loc) · 2.26 KB
/
list.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<title>To Do App</title>
<!-- styles -->
<link rel="stylesheet" type="text/css" href="style.css" />
<!-- fonts -->
<link
href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Slab"
rel="stylesheet"
/>
<!-- javascript -->
<script src="main.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
<header>
<h1>My To Do Lists</h1>
<nav>
<a href="index.html">main</a> -
<a href="index.html">settings</a>
</nav>
</header>
<div id="todo-lists">
<div class="list">
<h2 class="list-title">Groceries</h2>
<ol id="grocery-list">
<li>
<label for="check-eggs">Eggs</label>
<input
id="check-eggs"
type="checkbox"
class="complete-item"
onclick="completeListItem(this)"
/>
<button
class="delete-item"
onclick="deleteListItem(this.parentNode)"
>
X
</button>
</li>
<li>
<label for="check-milk">Milk</label>
<input
id="check-milk"
type="checkbox"
class="complete-item"
onclick="completeListItem(this)"
/>
<button
class="delete-item"
onclick="deleteListItem(this.parentNode)"
>
X
</button>
</li>
<li>
<label for="check-cereal">Cereal</label>
<input
id="check-cereal"
type="checkbox"
class="complete-item"
onclick="completeListItem(this)"
/>
<button
class="delete-item"
onclick="deleteListItem(this.parentNode)"
>
X
</button>
</li>
</ol>
</div>
<label for="new-list-item">New Item:</label>
<input id="new-list-item" type="text" />
<button onclick="addListItem()">Add Item</button>
</div>
</div>
</body>
</html>