day 1 exercise updates

This commit is contained in:
Micah Godbolt
2019-02-26 23:46:32 -08:00
parent 119fb5785d
commit c1b142a684
9 changed files with 115 additions and 51 deletions

View File

@@ -46,16 +46,6 @@
return document.querySelector('.textfield').value;
}
function addTodo() {
const todo = document.querySelector('.todo');
const newTodo = todo.cloneNode(true);
newTodo.querySelector('.title').innerText = getTodoText();
todo.parentElement.insertBefore(newTodo, todo);
clearInput('.textfield');
// updateRemaining();
}
function filter(filterName, button) {
document.querySelector('.selected').classList.remove('selected');
button.classList.add('selected');