]>
Commit | Line | Data |
---|---|---|
9e79bdbb SW |
1 | function createTask(description: string) { |
2 | const task = document.createElement("div"); | |
3 | task.appendChild(document.createTextNode(description)); | |
4 | task.setAttribute("tabindex", "0"); | |
5 | return task; | |
7dcd9167 | 6 | } |
974848d3 | 7 | |
9e79bdbb SW |
8 | function addTask(description: string) { |
9 | document.body.appendChild(createTask(description)); | |
974848d3 SW |
10 | } |
11 | ||
12 | function browserCreateTask(form: any) { | |
13 | addTask(form.taskName.value); | |
14 | form.taskName.value = ""; | |
15 | return false; | |
16 | } |