-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathload.html
More file actions
186 lines (179 loc) · 5.75 KB
/
Copy pathload.html
File metadata and controls
186 lines (179 loc) · 5.75 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
<!doctype html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<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" />
<style>
main.load-page {
max-width: 600px;
margin: 20px auto;
padding: 20px;
background-color: var(--sys-color-3);
border-radius: 8px;
/* flex-grow: 1; /* Already handled by 'main' selector in index.css */
}
.load-container {
display: flex;
flex-direction: column;
gap: 15px;
}
.load-container label {
font-weight: 500;
display: block;
margin-bottom: 5px;
}
.load-container input[type="url"] {
width: calc(100% - 16px);
padding: 8px;
border: 1px solid var(--sys-color-5);
border-radius: 4px;
font-size: 0.9em;
box-sizing: border-box;
}
.load-container button {
padding: 10px 15px;
background-color: var(--sys-color-4);
color: var(--sys-color-1);
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition:
background-color 0.2s ease,
color 0.2s ease;
}
.load-container button:hover {
background-color: var(--sys-color-5);
color: var(--sys-color-3);
}
.error-message {
color: var(--sys-color-5-dark);
background-color: #fdd;
border: 1px solid var(--sys-color-5-dark);
padding: 10px;
border-radius: 4px;
margin-top: 10px;
word-break: break-word;
}
.load-container a {
color: var(--sys-color-2);
text-decoration: none;
}
.load-container a:hover {
color: var(--sys-color-5);
text-decoration: underline;
}
</style>
<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 - Load Data</h1>
</div>
</header>
<main class="load-page">
<div class="load-container">
<h2>Load Planner Data from URL</h2>
<p>
Enter the URL of a JSON endpoint. The JSON data should be in the
format: <code>{"events": [...], "maxDays": N}</code>.
</p>
<div>
<label for="url-input">URL Endpoint:</label>
<input
type="url"
id="url-input"
placeholder="https://example.com/data.json"
/>
</div>
<button id="load-data-btn">Load Data</button>
<div id="error-message-container" class="hidden error-message"></div>
<p><a href="./index.html">Back to Planner</a></p>
</div>
</main>
<div id="loading-overlay" class="hidden">
<div class="loading-spinner"></div>
<p>Loading the plan..</p>
<a href="./index.html">Back to Planner</a>
</div>
<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>
<script src="./js/load.js"></script>
</body>
</html>