-
+
@@ -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);
});