Skip to content

Instantly share code, notes, and snippets.

@abdulsattar
Created March 25, 2014 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abdulsattar/9758014 to your computer and use it in GitHub Desktop.
Save abdulsattar/9758014 to your computer and use it in GitHub Desktop.

Javascript event handler task

We decided to give you a small practice assignment about javascript event handlers. You need to create a very simple task manager:

  1. A list of tasks should be displayed.
  2. Every task should have a checkbox.
  3. The text of the task should be displayed in an input textbox.
  4. When you check the textbox, it must change the strike the task out. (See text-decoration: strike-through css property).
  5. When you click enter in a textbox, it must create a new task beneath the task currently being edited.
  6. When you press Ctrl+Enter, it must mark that task as completed. (Similar to checking the checkbox)
  7. When you press Ctrl+Backspace, delete the task.
  8. Highlight the task currently being edited.

You have till Friday to complete this assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment