From 766d396461f43e2af20cc7a51b9e5693f5c1b19d Mon Sep 17 00:00:00 2001 From: WhyKorp <117651228+whykorp@users.noreply.github.com> Date: Mon, 11 Mar 2024 06:46:10 +0100 Subject: [PATCH] Update scripttodo.js --- ruty/js/scripttodo.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ruty/js/scripttodo.js b/ruty/js/scripttodo.js index 5eeaaa9..8efeaa3 100644 --- a/ruty/js/scripttodo.js +++ b/ruty/js/scripttodo.js @@ -39,14 +39,6 @@ document.addEventListener("DOMContentLoaded", function() { addTodoButton.addEventListener("click", function() { const todoText = newTodoInput.value.trim(); if (todoText !== "") { - const todoItem = document.createElement("li"); - const todoCheckbox = document.createElement("input"); - todoCheckbox.type = "checkbox"; - const todoSpan = document.createElement("span"); - todoSpan.textContent = todoText; - todoItem.appendChild(todoCheckbox); - todoItem.appendChild(todoSpan); - todoList.appendChild(todoItem); addTodoToList(todoText); saveTodoList(); newTodoInput.value = "";