-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (48 loc) · 1.71 KB
/
index.html
File metadata and controls
56 lines (48 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced TODO App</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="top-bar">
<h1>TODO App</h1>
<button id="darkToggle" onclick="toggleDarkMode()">🌙</button>
</div>
<div class="input-area">
<input type="text" id="taskName" placeholder="Enter task...">
<input type="date" id="taskDate">
<button onclick="addTask()">Add</button>
</div>
<div class="controls">
<input type="text" id="searchBar" placeholder="Search tasks..." oninput="loadTasks()">
<select id="filter" onchange="loadTasks()">
<option value="all">All</option>
<option value="pending">Pending</option>
<option value="completed">Completed</option>
</select>
<select id="sort" onchange="loadTasks()">
<option value="none">Sort</option>
<option value="oldest">Oldest → Newest</option>
<option value="newest">Newest → Oldest</option>
</select>
</div>
<table>
<thead>
<tr>
<th>#</th>
<th>Task</th>
<th>Date</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody id="taskTable"></tbody>
</table>
</div>
<script src="script.js"></script>
</body>
</html>