diff --git a/index.html b/index.html index 35b93bf..92625f4 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,6 @@ CodePen - todo list - diff --git a/script.js b/script.js index 54b1902..f54685c 100644 --- a/script.js +++ b/script.js @@ -22,6 +22,6 @@ function addTask() { todoList.addEventListener("click", (event) => { if (event.target.className === "delete-button") { - event.target.parentElement.remove(confirm("Are you sure you want to delete this item?")); + event.target.parentElement.remove(); } }); \ No newline at end of file diff --git a/todo-list-main/todo-list-main/README.md b/todo-list-main/todo-list-main/README.md deleted file mode 100644 index 47d3802..0000000 --- a/todo-list-main/todo-list-main/README.md +++ /dev/null @@ -1,69 +0,0 @@ -

Simple Todo List App 📝

- -this repo is made for GDSC PHCET x HACKTOBERFEST - -![GDSC PHCET](https://github.com/GDSC-PHCET/todo-list/assets/46837876/977b90ea-1d26-4c51-91db-f71c604f38ad) - -A basic web application for managing your to-do list. This project includes a clean and minimalistic user interface for adding, checking off, and deleting tasks. - -

Features ✨

- -- ✅ Add new tasks to your to-do list. -- ✅ Mark tasks as completed by checking the checkbox. -- 🗑️ Delete tasks you no longer need. - -

Technologies Used

- -- HTML -- CSS -- Javascript - -

How to Contribute

- -Contributing to open-source projects is a great way to learn and give back to the community. Here are the steps to contribute to this project: - -1. **Fork the Repository:** Click the "Fork" button at the top right corner of this repository's page. This will create a copy of the project in your GitHub account. - -2. **Clone the Repository:** Open your terminal and run the following command to clone the repository to your local machine. Replace `` with your GitHub username. - -```bash -https://github.com/GDSC-PHCET/todo-list.git -``` - -3. **Create a New Branch:** In your terminal, create a new branch for your changes. - -```bash -cd todo-list -git checkout -b newbranch -``` -4. **Make Changes:** Make the necessary changes or contributions to the project. - -5. **Check Status:** To check the status of your changes, use the appropriate command for your version control system. -```bash -git status -``` -6. **Add Changes:** Add your changes to the staging area. -```bash -git add . -``` -or -```bash -git add path\filename -``` -7. **Commit Changes:** Commit your changes with a descriptive commit message. -```bash -git commit -m "Commit message" -``` -8. **Push Changes:** Push your changes to your forked repository on GitHub. -```bash -git push origin newbranch -``` -9. **Create a Pull Request:** Go to your forked repository on GitHub and create a new pull request. Choose the appropriate branches and describe your changes. - -10. **Updating Your Branch:** To keep your branch up to date with the latest changes from the original repository, use the appropriate command for your version control system. -```bash -git pull origin main -``` - - -
Great work! You've made a valuable contribution to our project. Your efforts are much appreciated. Keep up the good work! 🙌
diff --git a/todo-list-main/todo-list-main/index.html b/todo-list-main/todo-list-main/index.html deleted file mode 100644 index 80e6045..0000000 --- a/todo-list-main/todo-list-main/index.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - CodePen - todo list - - - - - - - Simple To-Do List - - - - -
- - -
-
-

Simple To-Do List

- - - -
- - - - - - - diff --git a/todo-list-main/todo-list-main/script.js b/todo-list-main/todo-list-main/script.js deleted file mode 100644 index 232727e..0000000 --- a/todo-list-main/todo-list-main/script.js +++ /dev/null @@ -1,32 +0,0 @@ -const todoList = document.getElementById("todo-list"); -const newTaskInput = document.getElementById("new-task"); -const addButton = document.getElementById("add-button"); - -addButton.addEventListener("click", addTask); - -function addTask() { - const taskText = newTaskInput.value; - if (taskText.trim() !== "") { - const listItem = document.createElement("li"); - listItem.className = "todo-item"; - listItem.innerHTML = ` - - ${taskText} - - `; - todoList.appendChild(listItem); - - newTaskInput.value = ""; - } -} - -todoList.addEventListener("click", (event) => { - if (event.target.className === "delete-button") { - event.target.parentElement.remove(); - } -}); - -// function myFunction() { -// var element = document.body; -// element.classList.toggle("dark-mode"); -// } \ No newline at end of file diff --git a/todo-list-main/todo-list-main/style.css b/todo-list-main/todo-list-main/style.css deleted file mode 100644 index c68d2d4..0000000 --- a/todo-list-main/todo-list-main/style.css +++ /dev/null @@ -1,73 +0,0 @@ -body { - font-family: Arial, sans-serif; -} - -#app { - max-width: 400px; - margin: 0 auto; -} - -h1 { - text-align: center; -} - -.todo-list { - list-style: none; - padding: 0; -} - -.todo-item { - display: flex; - justify-content: space-between; - align-items: center; - border: 1px solid #ccc; - margin: 5px 0; - padding: 10px; -} - -.todo-item input[type="checkbox"] { - margin-right: 10px; -} - -#add-button { - display: block; - margin: 20px auto; - padding: 10px 20px; - background-color: #007bff; - color: #fff; - border: none; - cursor: pointer; -} - -#add-button:hover { - background-color: #0056b3; -} - -.ToDoSearchBar{ - width: 375px; - padding: 10px; - margin: 5px 0; -} - -body { - padding: 25px; - background-color: white; - color: rgb(4, 7, 62); - font-size: 25px; -} - -.dark-mode { - background-color: black; - color: white; -} - -button { - background-color: #007bff; /* Green */ - border: none; - color: white; - padding: 15px 32px; - text-align: center; - text-decoration: none; - display: inline-block; - font-size: 16px; - } \ No newline at end of file