!function(){"use strict";function e(){$(this).parentsUntil("#ecapsToDo-list").toggleClass("todo-completed animated fadeIn")}$(function(){$("#add-todo-item").on("click",function(e){var t;e.preventDefault(),t=$("#new-todo-item").val(),$("#ecapsToDo-list").append("<li><label class='ckbox'><input type='checkbox' name='todo-item-done' class='todo-item-done' value='"+t+"' /><span></span></label>"+t+" <i class='todo-item-delete ti-close'></i></li>"),$("#new-todo-item").val("")}),$("#ecapsToDo-list").on("click",".todo-item-delete",function(e){!function(e,t){e.preventDefault(),$(t).parent().fadeOut("100",function(){$(t).parent().remove()})}(e,this)}),$(document).on("click",".todo-item-done",e)})}();