-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (47 loc) · 1.91 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>TodoList</title>
</head>
<body>
<div id="container">
<h1>My Tasks</h1>
<div class="task-input">
<input type="text" placeholder="Enter a new task">
<!-- Container for category selection and Add button -->
<div class="input-controls">
<select id="category">
<option value="" disabled selected hidden>Select category</option>
<option value="Work">Work</option>
<option value="Personal">Personal</option>
<option value="Shopping">Shopping</option>
<option value="Other">Other</option>
</select>
<button>Add</button>
</div>
</div>
<!-- Container for sorting and delete completed tasks -->
<div class="sort-delete-container">
<div class="sort-tasks">
<label for="sort">Sort:</label>
<select id="sort">
<option value="date">Date Created</option>
<option value="alphabetical">Alphabetical (A-Z)</option>
<option value="reverse-alphabetical">Alphabetical (Z-A)</option>
<option value="category">Category</option>
</select>
</div>
<button id="delete-completed">Delete Completed</button>
</div>
<!-- Container for dynamic task addition -->
<ul id="task-list">
<!-- Task items will be dynamically added here by JavaScript -->
</ul>
</div>
<script src="script.js"></script>
</body>
</html>