diff --git a/pages/index.html b/pages/index.html index 2ab31e7..25fa342 100644 --- a/pages/index.html +++ b/pages/index.html @@ -4,20 +4,21 @@
-
- - +
+
+
+ +
+
+ +
+
- - -
- +
+
@@ -26,6 +27,7 @@ document.addEventListener('DOMContentLoaded', async function() { let username = getUsername(); let password = getUserPassword(); + document.getElementById("new-todo-text").focus(); // Make "Add" button to send document.getElementById("new-todo-submit").addEventListener("click", async (event) => { @@ -67,9 +69,9 @@ document.addEventListener('DOMContentLoaded', async function() { todos.push(item); let todoCompleteBtnID = "btn-complete-" + String(item.id); - todosDiv.innerHTML += "

" + item.text + - "

"; + todosDiv.innerHTML += "" + item.text + "" + + ""; completeButtonIDs.push(todoCompleteBtnID); });