-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
183 lines (168 loc) · 8.22 KB
/
index.html
File metadata and controls
183 lines (168 loc) · 8.22 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Daily Routine & Notebook</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<div class="logo">Daily Routine & Notebook</div>
<div class="controls">
<button class="btn btn-primary" id="addTaskBtn">
<i class="fas fa-plus"></i> Add Task
</button>
<button class="btn" id="addDayBtn">
<i class="fas fa-calendar-plus"></i> Add Day
</button>
<button class="btn" id="addSectionBtn">
<i class="fas fa-bookmark"></i> Add Section
</button>
</div>
</div>
<div class="container">
<!-- Routine Section -->
<div class="routine-container">
<div class="view-controls">
<div class="date-navigation">
<button class="btn" id="prevDate"><i class="fas fa-chevron-left"></i></button>
<div class="current-date" id="currentDate">Monday, June 3, 2024</div>
<button class="btn" id="nextDate"><i class="fas fa-chevron-right"></i></button>
</div>
<div>
<button class="btn" id="dayViewBtn">Day View</button>
<button class="btn btn-primary" id="weekViewBtn">Week View</button>
</div>
</div>
<!-- Compact Schedule Grid (shown in Week View) -->
<div id="weekView" class="week-view" style="display: none;">
<div class="schedule-grid-compact" id="scheduleGrid">
<!-- Dynamic schedule content -->
</div>
<div class="legend">
<div class="legend-item">
<div class="legend-color lecture"></div>
<span>Lecture</span>
</div>
<div class="legend-item">
<div class="legend-color tutorial"></div>
<span>Tutorial</span>
</div>
<div class="legend-item">
<div class="legend-color lab"></div>
<span>Lab</span>
</div>
</div>
</div>
<!-- Day View -->
<div id="dayView" class="day-view" style="display: none;">
<!-- Daily tasks section -->
</div>
</div>
<!-- Notebook Section -->
<div class="notebook-container">
<div class="notebook-header">
<div class="notebook-title">My Notebook</div>
<button class="btn" id="toggleChecklist">
<i class="fas fa-check-square"></i> Toggle Checklist
</button>
</div>
<div class="bookmarks" id="bookmarks">
<!-- Navigation bookmarks -->
</div>
<div id="notebookSections">
<!-- Notebook content sections -->
</div>
</div>
</div>
<!-- Add Task Modal -->
<div class="modal" id="taskModal">
<div class="modal-content">
<div class="modal-header">Add New Task</div>
<form id="taskForm">
<div class="form-group">
<label class="form-label">Task Description</label>
<input type="text" class="form-input" id="taskText" placeholder="Enter task description" required>
</div>
<div class="form-group">
<label class="form-label">Start Time</label>
<input type="time" class="form-input" id="startTime" value="06:45" required>
</div>
<div class="form-group">
<label class="form-label">End Time</label>
<input type="time" class="form-input" id="endTime" value="07:30" required>
</div>
<div class="form-group">
<label class="form-label">Days</label>
<div class="day-checkboxes">
<label class="day-checkbox"><input type="checkbox" name="day" value="0" checked> Mon</label>
<label class="day-checkbox"><input type="checkbox" name="day" value="1" checked> Tue</label>
<label class="day-checkbox"><input type="checkbox" name="day" value="2" checked> Wed</label>
<label class="day-checkbox"><input type="checkbox" name="day" value="3" checked> Thu</label>
<label class="day-checkbox"><input type="checkbox" name="day" value="4" checked> Fri</label>
<label class="day-checkbox"><input type="checkbox" name="day" value="5"> Sat</label>
<label class="day-checkbox"><input type="checkbox" name="day" value="6"> Sun</label>
</div>
</div>
<div class="form-group">
<label class="form-label">Color</label>
<div class="color-options" id="colorOptions">
<!-- Color options will be generated by JavaScript -->
</div>
</div>
<div class="error-message" id="timeError">
<i class="fas fa-exclamation-circle"></i> End time must be after start time.
</div>
<div class="error-message" id="conflictError">
<i class="fas fa-exclamation-circle"></i> This task conflicts with existing tasks on selected days. Please choose a different time or days.
</div>
<div class="warning-message" id="conflictWarning">
<i class="fas fa-exclamation-triangle"></i> This task conflicts with existing tasks on the following days:
<div id="conflictDaysList" class="conflict-info"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn" id="cancelTask">Cancel</button>
<button type="submit" class="btn btn-primary">Add Task</button>
</div>
</form>
</div>
</div>
<!-- Add Section Modal -->
<div class="modal" id="sectionModal">
<div class="modal-content">
<div class="modal-header">Add Notebook Section</div>
<form id="sectionForm">
<div class="form-group">
<label class="form-label">Section Name</label>
<input type="text" class="form-input" id="sectionName" placeholder="Enter section name" required>
</div>
<div class="form-group">
<label class="form-label">Bookmark Color</label>
<div class="color-options" id="bookmarkColors">
<!-- Color options will be generated by JavaScript -->
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn" id="cancelSection">Cancel</button>
<button type="submit" class="btn btn-primary">Add Section</button>
</div>
</form>
</div>
</div>
<!-- Delete Confirmation Modal -->
<div class="confirmation-modal" id="deleteModal">
<div class="confirmation-content">
<div class="confirmation-text" id="deleteConfirmText">
Are you sure you want to delete this task?
</div>
<div class="confirmation-buttons">
<button class="btn" id="cancelDelete">Cancel</button>
<button class="btn btn-danger" id="confirmDelete">Delete</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>