-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (30 loc) · 1.16 KB
/
index.html
File metadata and controls
36 lines (30 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>To-Do List</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="header">
<h1 class="header-text">To-Do List</h1>
<button class="add-btn" onclick="toggleForm()" type="button">+</button>
</div>
<form class="form-container" id="form" onsubmit="submitTask(event)" style="display: none;">
<input type="hidden" id="editIndex" value="" />
<input type="text" id="title" placeholder="Task Title" />
<textarea id="description" placeholder="Task Description"></textarea>
<select id="priority">
<option value="High">High</option>
<option value="Medium">Medium</option>
<option value="Low">Low</option>
</select>
<input type="text" id="subtasks" placeholder="Comma-separated To-Do Tasks" />
<input type="date" id="dueDate" />
<button type="submit">Save Task</button>
</form>
<div class="card-container" id="taskContainer"></div>
<script src="scripts.js"></script>
</body>
</html>