JS – Another To Do App

There is something about these todo apps. Probably the reason that I put so much attention on them is that they are the easiest to be built and you may always try something new on them. This is probably the fifth ToDo app, that I am doing, if I follow the chronology from this article. So, what is new in this one? Pretty much nothing, I just wanted to remember some stuff in JS. And I did it. Anyway, it is really different from the old ones, probably the simplest one, without an option to put some tasks in it.

This is how it looks like:

todo1

todo2

What is the interesting thing about it? It has two functions – setup and change_lists. The setup adds the function change_list to the click event for each list item in the todo list. The click event pays attention in which list the task is and sends it to the other one (check the if-else). We also have a CSS, which is used only for the tasks, which are in the “Done” list. Pretty much that is really all about it. 🙂

Here comes the code:

The code in GitHub is here.

Enjoy it! 😀

Tagged with: