forked from RaphaelKing/array_and_hash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo-list.html
More file actions
39 lines (36 loc) · 1.09 KB
/
todo-list.html
File metadata and controls
39 lines (36 loc) · 1.09 KB
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
<html>
<script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
<script type="text/javascript">
var topic_arr = [];
var description_dict={}
function addTask(topic) {
topic_arr.push(topic);
}
addTask("studyforenglish");
addTask("stuyformath");
addTask("studyforphysics");
addTask("studyforhistory");
$(document).ready(function() {
var ul_body = $("<ul>");
ul_body.appendTo('body');
for(var i= 0; i < topic_arr.length;i++) {
var topic = topic_arr[i]
var li = $("<li>",
{
text: topic
});
li.appendTo(ul_body);
/*
var d = description_dict[topic];
var ul = $("<ul>");
ul.appendTo(li);
for(var j = 0; j < d.length; j++) {
li = $("<li>",
{
text*/
}
});
</script>
<body>
</body>
</html>