-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.html
More file actions
190 lines (181 loc) · 5.94 KB
/
Copy pathsettings.html
File metadata and controls
190 lines (181 loc) · 5.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Settings - IOIT ACM Event Planner</title>
<link rel="stylesheet" href="./index.css" />
<link rel="stylesheet" href="./settings.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) {
console.error('Error applying theme from localStorage', e);
}
})();
</script>
</head>
<body>
<header>
<div class="logo-title">
<div class="acm-logo">
<img src="./acm.png" alt="ACM Logo" />
</div>
<h1>
<a href="./index.html" style="color: inherit; text-decoration: none"
>IOIT ACM Event Planner</a
>
</h1>
</div>
<div class="header-actions">
<a
href="./index.html"
id="back-to-planner-btn"
class="icon-btn"
title="Back to Planner"
>
←
</a>
</div>
</header>
<main class="settings-page">
<h1>Application Settings</h1>
<section class="settings-section">
<h2>Color Theme</h2>
<p class="setting-description">
Choose a predefined theme or create your own. Your selection is saved
automatically.
</p>
<div id="theme-selector"></div>
<div id="custom-theme-creator" class="hidden">
<h3>Custom Theme Editor</h3>
<div id="custom-color-pickers" class="custom-color-pickers"></div>
<button id="apply-custom-theme-btn">Apply Custom Theme</button>
</div>
</section>
<section class="settings-section">
<h2>General</h2>
<div class="setting-item">
<label for="snap-duration-input"
>Timeline Snap Interval (minutes):</label
>
<input
type="number"
id="snap-duration-input"
min="1"
max="60"
step="1"
/>
<p class="setting-description">
The interval (e.g., 15 mins) that events snap to when moved or
resized on the timeline.
</p>
</div>
</section>
<section class="settings-section">
<h2>Project Management</h2>
<p>
You have created a total of
<strong id="project-count">0</strong> project(s).
</p>
<ul id="settings-project-list"></ul>
<p id="no-projects-message" class="hidden">No projects found.</p>
</section>
<section class="settings-section">
<h2>How to Use</h2>
<ul class="usage-list">
<li>
<strong>Create Events:</strong> Click the '+' button in the header
or click and drag directly on an empty area of the timeline.
</li>
<li>
<strong>Edit Events:</strong> Click on an event block on the
timeline or the edit icon in the event list below.
</li>
<li>
<strong>Manage Projects:</strong> Use the 'Projects' button to save,
load, and manage different event plans.
</li>
<li>
<strong>Save & Load:</strong> Your current project is saved
automatically. Use the 'Projects' dialog to switch between saved
projects.
</li>
<li>
<strong>Export & Import:</strong> Use the 'Export' button to save
your current project as a JSON file. Use 'Import' to load a project
from a file, or 'Load from URL' to load from a web link.
</li>
<li>
<strong>Undo & Redo:</strong> Use the undo
(<kbd>Ctrl</kbd>+<kbd>Z</kbd>) and redo (<kbd>Ctrl</kbd>+<kbd
>Y</kbd
>
or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd>) shortcuts to
revert or reapply recent changes to your events and timeline.
</li>
</ul>
</section>
<section class="settings-section danger-zone">
<h2>Danger Zone</h2>
<div class="setting-item">
<button id="reset-settings-btn" class="danger-btn">
Reset All Settings
</button>
<p class="setting-description">
Resets theme and other settings to their default values.
</p>
</div>
<div class="setting-item">
<button id="erase-data-btn" class="danger-btn">
Erase All Site Data
</button>
<p class="setting-description">
Permanently deletes ALL projects and settings from your browser.
This cannot be undone.
</p>
</div>
</section>
</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="custom-dialog">
<h2 id="custom-dialog-title"></h2>
<p id="custom-dialog-message"></p>
<div class="dialog-buttons" id="custom-dialog-buttons"></div>
</dialog>
<script src="./js/utils.js"></script>
<script src="./js/ui.js"></script>
<script src="./js/settings.js"></script>
</body>
</html>