-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (81 loc) · 3.7 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS TODO PROJECT</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<h1>TODO APP</h1>
<div class="container">
<div class="row">
<div class="col-md-6" style="margin-top: 60px; border: 1px solid #302f2f ; padding: 10px ">
<form id="todoForm" name="todoForm" class="form">
<div class="form-group">
<label for="taskTitle">Title:</label>
<input type="text" class="form-control" id="taskTitle" required>
</div>
<div class="form-group">
<label for="description">Description:</label>
<input type="text" class="form-control" id="description" required>
</div>
<div class="form-group">
<label for="date">Date:</label>
<input type="date" class="form-control" id="date" required>
</div>
<div class="form-group">
<label for="priority">Priority:</label>
<select class="form-control" id="priority" required>
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
</div>
<div class="form-group">
<label for="category">Category:</label>
<select class="form-control" id="category" required>
<option value="personal">Personal</option>
<option value="office">Office</option>
<option value="school">School</option>
</select>
</div>
<button type="button" class="button" onclick="addTask()">Add Task</button>
</form>
</div>
<div class="col-md-6">
<h2>To Do Task</h2>
<div class="form-group">
<label for="showCategory">Category:</label>
<select class="form-control" id="showCategory" name="showCategory">
<option value="all">All</option>
<option value="personal">Personal</option>
<option value="office">Office</option>
<option value="school">School</option>
</select>
<input type="text" class="form-control" placeholder="Search..." id="searchInput">
</div>
<table id="taskTable" class="table">
<thead>
<tr>
<th>SN</th>
<th>Title</th>
<th>Description</th>
<th>Date</th>
<th>Priority</th>
<th>Completed</th>
<th>Edit</th>
<th>Action</th>
</tr>
</thead>
<tbody id="todo-list">
<!-- Tasks will be dynamically added here -->
</tbody>
</table>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>