Skip to content

Commit 7210f43

Browse files
restore the todolist filles to the original status
1 parent 384a4dd commit 7210f43

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

Sprint-3/todo-list/index.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ <h1>My ToDo List</h1>
3434
</div>
3535
</li>
3636
</template>
37-
<br>
38-
<br>
39-
<div id="completed-tasks">
40-
<h2>Completed Tasks</h2>
41-
<ul id="completed-list"> </ul>
42-
<button id = "delete-completed-btn">Delete Completed Tasks</button>
43-
</div
44-
>
4537

4638
</div>
4739
</body>

Sprint-3/todo-list/script.mjs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,4 @@ function createListItem(todo, index) {
7373
});
7474

7575
return li;
76-
}
77-
78-
const completedList= document.querySelector("#completed-list");
79-
const deleteCompletedTasks= document.querySelector("#delete-completed-btn");
80-
deleteCompletedTasks.addEventListener("click", ()=> {
81-
todos.deleteCompletedTasks();
82-
render();
83-
});
76+
}

0 commit comments

Comments
 (0)