Todo List App
About this app
A simple and intuitive todo list app to help you stay organized and manage your tasks efficiently.
Todo List App Todo List Add Task
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Todo List App</title>
<meta name="description" content="A simple and intuitive todo list app to help you stay organized and manage your tasks efficiently.">
<meta name="keywords" content="todo, list, tasks, organizer, productivity">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Add task functionality
$("#add-task-btn").on("click", function() {
var task = $("#task-input").val();
if (task.trim() !== "") {
var taskItem = $("<li>").text(task);
var deleteBtn = $("<button>").addClass("delete-btn").html('<i class="fa fa-trash"></i>');
deleteBtn.on("click", function() {
$(this).parent().remove();
});
taskItem.append(deleteBtn);
$("#task-list").append(taskItem);
$("#task-input").val("");
}
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
h1 {
font-weight: bold;
text-align: center;
margin-bottom: 30px;
color: #333333;
}
.todo-list {
list-style-type: none;
padding: 0;
}
.todo-list li {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
background-color: #ffffff;
padding: 10px;
border-radius: 5px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
.delete-btn {
background-color: transparent;
border: none;
color: #ff4c4c;
cursor: pointer;
font-size: 18px;
}
.delete-btn:hover {
color: #ff0000;
}
.input-group {
margin-bottom: 20px;
}
.input-group input {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #dddddd;
font-size: 16px;
}
.add-btn {
background-color: #333333;
color: #ffffff;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
.add-btn:hover {
background-color: #222222;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Todo List</h1>
<div class="input-group">
<input id="task-input" type="text" placeholder="Enter a task">
<button id="add-task-btn" class="add-btn">Add Task</button>
</div>
<ul id="task-list" class="todo-list">
<!-- Tasks will be dynamically added here -->
</ul>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!