-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (101 loc) · 4.03 KB
/
index.html
File metadata and controls
102 lines (101 loc) · 4.03 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
<!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/icon?family=Material+Icons" rel="stylesheet">
<title>Task Management</title>
<link rel="stylesheet" href="style.css">
<script>
(function () {
const LOCAL_STORAGE_THEME = 'LightTheme';
const savedTheme = localStorage.getItem(LOCAL_STORAGE_THEME);
if (savedTheme === 'dark_mode') {
document.documentElement.classList.add('light-mode');
} else {
document.documentElement.classList.add('dark-mode');
}
})();
</script>
</head>
<body>
<span class="material-icons" onclick="toggleMode()"></span>
<div class="window">
<div class="container">
<h1>Task Management</h1>
<!-- Task Form -->
<form id="taskForm">
<h2>Add New Task</h2>
<div class="form-group">
<label for="taskName">Task Name:</label>
<input maxlength="24" type="text" id="taskName" placeholder="Enter task name" required>
</div>
<div class="form-group">
<label for="taskDescription">Description:</label>
<textarea id="taskDescription" placeholder="Enter task description" maxlength="528"></textarea>
</div>
<div class="form-group">
<label for="taskPriority">Priority:</label>
<select id="taskPriority">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
</div>
<div class="form-group">
<label for="dueDate">Due Date:</label>
<input type="date" id="dueDate">
</div>
<button type="submit">Add Task</button>
</form>
</div>
<!-- Task Table -->
<div hidden class="task-container">
<h2>Task List</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th class = "description">Description</th>
<th>Priority</th>
<th class = "due-date">Due Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="taskList">
<!-- Tasks will be dynamically added here -->
</tbody>
</table>
</div>
<div class="calendar">
<h1>Calander</h1>
<div class="calendar-header">
<button id="prev">❮</button>
<h2><span id="current-date"></h2>
<button id="next">❯</button>
</div>
<div class="calendar-body" id="calendar">
<div class="week-Days">
<div class="week-End">Sun</div>
<div>Mon</div>
<div>Tus</div>
<div>Wen</div>
<div>Thr</div>
<div>Fri</div>
<div class="week-End">Sat</div>
</div>
<div class="grid-container">
<!-- Days will be displayed as boxes -->
</div>
</div>
</div>
<div class="overlay" id="overlay">
<div class="content" id="content">
<!-- View will be dynamically added here -->
</div>
</div>
<button class="overlay-no-btn" onclick="closeOverlay()">close</button>
</div>
<script src="script.js"></script>
</body>
</html>