danutibe07 / To-Do-List

The To-Do app will allow users to create and manage a list of tasks or activities that they need to complete throughout the day or week. The app will have a simple and intuitive interface that users can quickly navigate to add new tasks, view their current tasks, and mark completed tasks as done.
https://danutibe07.github.io/To-Do-List/dist
MIT License
3 stars 0 forks source link

To Do list: list structure #6

Open danutibe07 opened 1 year ago

danutibe07 commented 1 year ago

♻️ Changes Required 👏 Great implementation of the Todo List

danutibe07 commented 1 year ago

TheresGonnaBeSomeChangesAroundHereColinJostGIF

I should have made this a function to enable reusing it without writing all this again

// removing tasks toDoList.addEventListener('click', (e) => { if (e.target.closest('.btn-ellipsis')) { const ellipsisBtn = e.target.closest('.btn-ellipsis'); const trashBtn = ellipsisBtn.closest('.ellipsis').nextElementSibling; ellipsisBtn.classList.add('hidden'); trashBtn.classList.remove('hidden'); } else if (e.target.closest('.btn-trash')) { const trashBtn = e.target.closest('.btn-trash'); removeTask(trashBtn.dataset.index); } });