-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.html
70 lines (58 loc) · 1.14 KB
/
todo.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
<!DOCTYPE html>
<html>
<head>
<title>Todo example</title>
<style>
input[type="submit"].add-todo {
margin-left: 20px;
}
span.add-todo {
font-size: 20px;
}
input[type="text"].add-todo, input[type="text"].editing {
font-size: 20px;
margin-left: 40px;
}
ul.todo-list li {
list-style: none;
margin-left: 40px;
}
ul.todo-list li span{
font-size: 20px;
padding: 10px;
}
ul.todo-list li .edit{
padding-left: 30px;
font-size: 10px;
color: red;
}
ul.todo-list li .remove{
padding: 10px;
font-size: 10px;
color: red;
}
ul.todo-list li .save{
padding-left: 30px;
font-size: 10px;
color: green;
}
ul.todo-list li .cancel{
padding: 10px;
font-size: 10px;
color: red;
}
</style>
<script src="./jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="./todo-2.js"></script>
</head>
<body>
<div class="add-todo">
<span class="add-todo">Add a new todo item</span>
<input type="text" class="add-todo"/>
<input class="add-todo" type="submit" value="Add"/>
</div>
<h2>Here is your list of todo...</h2>
<ul class="todo-list">
</ul>
</body>
</html>