-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
414 lines (393 loc) · 13.2 KB
/
Copy pathindex.html
File metadata and controls
414 lines (393 loc) · 13.2 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<!doctype html>
<html lang="en">
<head>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-ZBK015Q0G0"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-ZBK015Q0G0");
</script>
<!-- Primary Meta Tags -->
<meta name="title" content="IOIT ACM Event Planner" />
<meta
name="description"
content="This project is an IOIT ACM Event Planner, a web application for visually scheduling and managing events across multiple days on an interactive timeline. Users can add, edit, and delete events, customize their details (like time, color, location & notes), and view them in both a timeline and a list format. It also supports data export/import and is designed to be responsive."
/>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:title" content="IOIT ACM Event Planner" />
<meta
property="og:description"
content="Visually plan, schedule, and manage events using an interactive timeline interface built for IOIT ACM. Fully responsive and supports event data export/import."
/>
<meta property="og:image" content="./acm.png" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="IOIT ACM Event Planner" />
<meta
name="twitter:description"
content="Web app for scheduling events with visual timelines. Supports edit, export/import, and more. Built for IOIT ACM."
/>
<meta name="twitter:image" content="./acm.png" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IOIT ACM Event Planner</title>
<link rel="stylesheet" href="./index.css" />
<script>
(function () {
try {
const settings =
JSON.parse(localStorage.getItem("eventPlannerSettings")) || {};
const theme = settings.theme;
if (theme && theme.name === "custom" && theme.colors) {
Object.keys(theme.colors).forEach((key) => {
document.documentElement.style.setProperty(
key,
theme.colors[key],
);
});
} else if (theme && theme.name && theme.name !== "default") {
document.documentElement.setAttribute("data-theme", theme.name);
}
} catch (e) {}
})();
</script>
</head>
<body>
<header>
<div class="logo-title">
<div class="acm-logo">
<img src="./acm.png" alt="ACM Logo" />
</div>
<h1>IOIT ACM Event Planner</h1>
</div>
<div class="header-actions">
<div class="data-management-controls">
<button id="manage-projects-btn" title="Manage Projects">
Projects
</button>
<button id="export-data-btn" title="Export Data">Export</button>
<button id="import-data-btn" title="Import Data">Import</button>
<button id="clear-all-data-btn" title="Clear All Data">Clear</button>
<input
type="file"
id="import-file-input"
accept=".json"
style="display: none"
/>
</div>
<button id="add-event-btn" class="icon-btn" title="Add New Event">
+
</button>
<a
href="./settings.html"
id="settings-btn"
class="icon-btn"
title="Settings"
>
<img
src="./icons/settings.svg"
alt="Settings"
style="width: 18px; height: 18px"
/>
</a>
<button id="mobile-menu-btn" class="icon-btn" title="Menu">☰</button>
</div>
</header>
<nav id="mobile-sidebar">
<div class="data-management-controls">
<button id="manage-projects-btn-mobile" title="Manage Projects">
Projects
</button>
<button id="export-data-btn-mobile" title="Export Data">Export</button>
<button id="import-data-btn-mobile" title="Import Data">Import</button>
<button id="clear-all-data-btn-mobile" title="Clear All Data">
Clear All
</button>
</div>
</nav>
<div id="sidebar-overlay"></div>
<main>
<div id="project-title-container">
<h2 id="current-project-title-display">Untitled Project</h2>
<button
id="edit-project-title-btn"
title="Edit Project Title"
class="border-none outline-none ring-0 focus:outline-none focus:ring-0 bg-transparent p-0"
>
<img
src="./icons/rename.svg"
alt="Edit Project Title"
style="width: 1.5em; height: 1.5em; vertical-align: middle"
/>
</button>
</div>
<div class="controls-panel">
<div id="day-tabs-container" class="day-selector"></div>
<div class="zoom-controls">
<div class="zoom-controls-mobile">
<button id="zoom-out-btn" title="Zoom Out">-</button>
<p>Zoom</p>
<button id="zoom-in-btn" title="Zoom In">+</button>
</div>
<button id="fit-timeline-btn" title="Fit Timeline to View">
Fit
</button>
<button id="change-scope-btn" title="Change Project Scope">
Scope
</button>
</div>
</div>
<div id="timeline-container-wrapper">
<div id="timeline-container">
<div id="time-ruler"></div>
<div id="timeline-events"></div>
</div>
</div>
<div id="event-list-panel">
<div class="event-list-header">
<button id="clear-day-btn" title="Clear Events for this Day">
Clear Day
</button>
<h2 id="current-day-list-title">Events for Day 1</h2>
</div>
<ul id="event-list"></ul>
</div>
</main>
<footer>
<span>
Made with ❤️ by
<a
href="https://adimail.github.io/"
target="_blank"
rel="noopener noreferrer"
>Aditya Godse</a
>
</span>
<span>
<a
href="https://github.com/IOIT-ACM/planner"
target="_blank"
rel="noopener noreferrer"
>GitHub</a
>
</span>
</footer>
<dialog id="event-dialog">
<form id="event-form">
<h2 id="dialog-title">Add Event</h2>
<input type="hidden" id="event-id" />
<div>
<label for="event-title-input">Title:</label>
<input type="text" id="event-title-input" required />
</div>
<div>
<label id="event-day-label">Day:</label>
<div id="event-day-radio-group" class="event-day-radio-group"></div>
</div>
<div id="time-inputs-container">
<div
style="
display: flex;
gap: 10px;
width: 100%;
justify-content: space-between;
"
>
<div style="flex: 1">
<label for="event-start-time">Start Time:</label>
<input
type="time"
id="event-start-time"
required
style="width: 100%"
/>
</div>
<div style="flex: 1">
<label for="event-end-time">End Time:</label>
<input
type="time"
id="event-end-time"
required
style="width: 100%"
/>
</div>
</div>
</div>
<div id="day-inputs-container" class="hidden">
<div
style="
display: flex;
gap: 10px;
width: 100%;
justify-content: space-between;
"
>
<div style="flex: 1">
<label for="event-start-day">Start Day:</label>
<input
type="number"
id="event-start-day"
required
style="width: 100%"
min="1"
/>
</div>
<div style="flex: 1">
<label for="event-end-day">End Day:</label>
<input
type="number"
id="event-end-day"
required
style="width: 100%"
min="1"
/>
</div>
</div>
</div>
<div id="month-inputs-container" class="hidden">
<div
style="
display: flex;
gap: 10px;
width: 100%;
justify-content: space-between;
"
>
<div style="flex: 1">
<label for="event-start-month">Start Month:</label>
<select
id="event-start-month"
required
style="width: 100%"
></select>
</div>
<div style="flex: 1">
<label for="event-end-month">End Month:</label>
<select
id="event-end-month"
required
style="width: 100%"
></select>
</div>
</div>
</div>
<div>
<label for="event-color">Color:</label>
<input type="color" id="event-color" value="#3498db" />
</div>
<div>
<label for="event-location">Location:</label>
<input type="text" id="event-location" />
</div>
<div>
<label for="event-notes">Notes:</label>
<textarea id="event-notes"></textarea>
</div>
<div class="dialog-buttons">
<button type="submit" id="save-event-btn">Save</button>
<button type="button" id="duplicate-event-btn" style="display: none">
Duplicate
</button>
<button type="button" id="delete-event-btn" style="display: none">
Delete
</button>
<button type="button" id="cancel-event-btn">Cancel</button>
</div>
</form>
</dialog>
<div id="timeline-tooltip" class="hidden"></div>
<dialog id="custom-dialog">
<h2 id="custom-dialog-title"></h2>
<p id="custom-dialog-message"></p>
<div class="dialog-buttons" id="custom-dialog-buttons"></div>
</dialog>
<dialog id="projects-dialog">
<h2>Manage Projects</h2>
<div
id="projects-dialog-scope-tabs"
class="day-selector"
style="margin-bottom: 15px; padding-bottom: 0"
></div>
<h3>Saved Projects</h3>
<ul id="saved-projects-list"></ul>
<p id="no-saved-projects" class="hidden">No projects saved yet.</p>
<div class="dialog-buttons">
<button
type="button"
id="new-project-btn"
class="dialog-link-btn"
style="margin-right: auto"
>
New Project
</button>
<a href="./load.html" id="link-to-load-html" class="dialog-link-btn"
>Load from URL</a
>
<button id="load-selected-project-btn" disabled>Load Selected</button>
<button type="button" id="cancel-projects-dialog-btn">Close</button>
</div>
</dialog>
<dialog id="edit-project-title-dialog">
<h2>Edit Project Title</h2>
<form id="edit-project-title-form">
<div>
<label for="edit-project-title-input-main">Project Title:</label>
<input type="text" id="edit-project-title-input-main" required />
</div>
<div class="dialog-buttons">
<button type="submit" id="save-edited-project-title-btn">Save</button>
<button type="button" id="cancel-edit-project-title-btn">
Cancel
</button>
</div>
</form>
</dialog>
<dialog id="new-project-prompt-dialog">
<h2 id="new-project-prompt-title-text">Create New Project</h2>
<form id="new-project-prompt-form">
<div>
<label for="new-project-prompt-input">Project Title:</label>
<input type="text" id="new-project-prompt-input" required />
</div>
<div class="dialog-buttons">
<button type="submit" id="confirm-new-project-prompt-btn">
Create
</button>
<button type="button" id="cancel-new-project-prompt-btn">
Cancel
</button>
</div>
</form>
</dialog>
<dialog id="scope-dialog">
<h2>Change Project Scope</h2>
<form id="scope-form">
<p>
Changing the scope will switch your workspace. You will see projects
saved with the selected scope.
</p>
<div>
<label>Scope Type:</label>
<div id="scope-radio-group" class="event-day-radio-group"></div>
</div>
<div class="dialog-buttons">
<button type="submit" id="save-scope-btn">Change</button>
<button type="button" id="cancel-scope-btn">Cancel</button>
</div>
</form>
</dialog>
<script src="./js/utils.js"></script>
<script src="./js/ui.js"></script>
<script src="./js/history.js"></script>
<script src="./js/main.js"></script>
<script src="./js/shortcuts.js"></script>
<script src="./js/index.js"></script>
</body>
</html>