diff --git a/fonts/glyphicons-halflings-regular.eot b/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000..b93a495 Binary files /dev/null and b/fonts/glyphicons-halflings-regular.eot differ diff --git a/fonts/glyphicons-halflings-regular.svg b/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 0000000..94fb549 --- /dev/null +++ b/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,288 @@ + + + \ No newline at end of file diff --git a/fonts/glyphicons-halflings-regular.ttf b/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000..1413fc6 Binary files /dev/null and b/fonts/glyphicons-halflings-regular.ttf differ diff --git a/fonts/glyphicons-halflings-regular.woff b/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 0000000..9e61285 Binary files /dev/null and b/fonts/glyphicons-halflings-regular.woff differ diff --git a/fonts/glyphicons-halflings-regular.woff2 b/fonts/glyphicons-halflings-regular.woff2 new file mode 100644 index 0000000..64539b5 Binary files /dev/null and b/fonts/glyphicons-halflings-regular.woff2 differ diff --git a/index.js b/index.js index 344bf23..c5fc3fe 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,12 @@ $('#task-list').append('views/task-item.ejs', {title: $('#task').val()}); }); + $(document).on('click', '.remove-task', function(ev) { + var task = $(ev.currentTarget).parent(); + task.remove(); + }); + + //initial page setup $('.container').html('views/tasks.ejs', {}); })(jQuery) \ No newline at end of file diff --git a/views/task-item.ejs b/views/task-item.ejs index 47a3346..b2b8576 100644 --- a/views/task-item.ejs +++ b/views/task-item.ejs @@ -1 +1,5 @@ -