-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
161 lines (155 loc) · 6.51 KB
/
Copy pathindex.html
File metadata and controls
161 lines (155 loc) · 6.51 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Task-Notes Manage System</title>
</head>
<body>
<div class="container">
<!-- Sidebar for navigation and time display -->
<div class="sidebar">
<div class="time">
<div id="current-time"></div> <!-- Display current time -->
<div id="current-date"></div> <!-- Display current date -->
</div>
<div class="nav-buttons">
<!-- Navigation buttons for different sections -->
<button id="todo-btn">Todo</button>
<button id="notes-btn">Notes</button>
<button id="calendar-btn">Calendar</button>
</div>
</div>
<div class="main">
<!-- Header with add and filter buttons -->
<div class="header">
<button id="add-btn">+ Add</button>
<button id="filter-btn">Filter</button>
</div>
<div class="content" id="content-area">
<!-- Table for task list -->
<table id="task-table">
<thead>
<tr>
<th>Head</th>
<th>Tag</th>
<th>Priority</th>
<th>Due date</th>
<th>Description</th>
</tr>
</thead>
<tbody id="task-list">
<!-- Task list will be dynamically populated here -->
</tbody>
</table>
<!-- Table for note list, initially hidden -->
<table id="note-table" style="display:none;">
<thead>
<tr>
<th>Head</th>
<th>Tag</th>
<th>Content</th>
</tr>
</thead>
<tbody id="note-list">
<!-- Note list will be dynamically populated here -->
</tbody>
</table>
<!-- Calendar section, initially hidden -->
<div id="calendar" style="display:none;">
<h2>Calendar</h2>
<button id="prev-month-btn">Last Month</button>
<button id="next-month-btn">Next Month</button>
<table id="calendar-table">
<thead>
<tr>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
</tr>
</thead>
<tbody id="calendar-body">
<!-- Calendar will be dynamically populated here -->
</tbody>
</table>
</div>
</div>
</div>
<div class="chat">
<div id="chat-box">
<!-- Chat messages will appear here -->
</div>
<input type="text" id="chat-input" placeholder="Input...">
<button id="clear-chat-btn">Clear Chat</button>
<div id="api-key-section">
<input type="password" id="api-key-input" placeholder="Enter API Key...">
<button id="save-api-key-btn">Save API Key</button>
</div>
</div>
</div>
<!-- Modal for adding tasks -->
<div id="add-task-modal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2 id="modal-title">Add</h2>
<label for="task-title">Head</label>
<input type="text" id="task-title" required>
<label for="task-tag">Tag</label>
<input type="text" id="task-tag">
<div id="priority-date-section">
<label for="task-priority">Priority</label>
<select id="task-priority">
<option value="High">High</option>
<option value="Medium">Medium</option>
<option value="Low">Low</option>
</select>
<label for="task-date">Due date</label>
<input type="date" id="task-date">
</div>
<label for="task-description">Description</label>
<textarea id="task-description"></textarea>
<button id="save-task-btn">Save</button>
</div>
</div>
<!-- Modal for filtering tasks and notes -->
<div id="filter-modal" class="modal">
<div class="modal-content">
<span class="close" id="close-filter-modal">×</span>
<h2 id="filter-modal-title">Filter</h2>
<div id="filter-todo" style="display: block;">
<label for="filter-priority">Priority:</label>
<select id="filter-priority">
<option value="">All</option>
<option value="High">High</option>
<option value="Medium">Medium</option>
<option value="Low">Low</option>
</select>
<label for="filter-date-start">Date start:</label>
<input type="date" id="filter-date-start">
<label for="filter-date-end">Date end:</label>
<input type="date" id="filter-date-end">
<label for="filter-tag-todo">Tag:</label>
<select id="filter-tag-todo">
<option value="">All</option>
<!-- Filter tags will be dynamically generated here -->
</select>
</div>
<div id="filter-notes" style="display: none;">
<label for="filter-tag">Tag:</label>
<select id="filter-tag">
<option value="">All</option>
<!-- Filter tags will be dynamically generated here -->
</select>
</div>
<button id="apply-filter-btn">Apply</button>
<button id="reset-filter-btn">Reset</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>