-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
116 lines (110 loc) · 4.87 KB
/
index.html
File metadata and controls
116 lines (110 loc) · 4.87 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Todo</title>
<link rel="shortcut icon" href="./fav.png" type="image/png">
<link rel="stylesheet" href="/style/style.css">
</head>
<body>
<nav>
<div style="margin: auto !important;">
<h1>Task Manager</h1>
</div>
</nav>
<div class="body">
<section class="form">
<form onsubmit="handleAdd(event)">
<h1 style="color: #bfe0ec;">Add Task</h1>
<label style="color: #57C5B6; font-weight: bold;" for="">Title</label>
<input id="name" class="input" type="text">
<label style="color: #57C5B6; font-weight: bold;" for="">Description</label>
<textarea id="title" class="input" cols="30" rows="5"></textarea>
<label style="color: #57C5B6; font-weight: bold;" for="">Category</label>
<select name="" id="category">
<option value="0">----Select----</option>
<option value="Work">Work</option>
<option value="Professional">Professional</option>
</select>
<label style="color: #57C5B6; font-weight: bold;" for="">Date</label>
<input id="date" type="date">
<div>
<button class="addBtn"> Add </button>
</div>
</form>
</section>
<div id="overlay">
<div id="modal" class="modal">
<div class="modal_content">
<h1>Update Todo</h1>
<form onsubmit="handleSubmit2(event)">
<input id="id" style="display: none;" type="text">
<label for="">Title</label>
<input id="name2" class="input" type="text">
<label for="">Description</label>
<textarea id="title2" class="input" cols="30" rows="5"></textarea>
<select name="" id="category2">
<option value="0">----Select----</option>
<option value="Work">Work</option>
<option value="Professional">Professional</option>
</select>
<label for="">Date</label>
<input id="date2" type="date">
<div>
<button onclick="handleUpdate()" id="confirm"> Update </button>
<button onclick="handleModal()" id="danger"> Cancel </button>
</div>
</form>
</div>
</div>
</div>
<section id="todos" style="display: none;">
<div id="feature">
<div>
<input onblur="handleSearch()" id="query" placeholder="Search" type="text">
<button onclick="handleSearch()" class="addBtn">Search</button>
</div>
<div>
<select onchange="sortDate()" name="" id="date_cat">
<option disabled selected>Deadlines</option>
<option value="0">Default</option>
<option value="asc">Upcoming</option>
<option value="desc">Furthest</option>
</select>
<select onchange="handleFilter()" name="" id="cat">
<option selected disabled value="0">Sort by Category</option>
<option value="default">Default</option>
<option value="Work">Work</option>
<option value="Professional">Professional</option>
</select>
</div>
</div>
<section class="table_container">
<table>
<thead>
<tr>
<th style="width: 5%;"></th>
<th style="width: 10%;">No</th>
<!-- <th style="width: 0.1%;"></th> -->
<th style="width: 20%;">Title</th>
<th style="width: 20%;">Description</th>
<th style="width: 10%;">Category</th>
<th style="width: 10%;">Date</th>
<th style="width: 20%;"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
</section>
</div>
<footer>
<div>
<p style="color:white;font-weight: bold;">Created by Harshit Jindal</a></p>
</div>
</footer>
<script src="./js/index.js" type="text/javascript"></script>
</body>
</html>