-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
274 lines (263 loc) · 9.88 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UW Schedule Generator</title>
<link rel="stylesheet" href="style.css" />
<link
rel="icon"
type="image/svg+xml"
href="./calendar-regular.svg"
sizes="any"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<meta property="og:title" content="UW .ics Generator" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://schedule.amoses.dev" />
<meta
property="og:description"
content="A little web tool that lets you export your UW-Madison schedule to apps like Google Calendar. Not affiliated with the University."
/>
<meta name="theme-color" content="#FF0000" />
<!-- Matomo -->
<script>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "//matomo.amoses.dev/";
_paq.push(["setTrackerUrl", u + "matomo.php"]);
_paq.push(["setSiteId", "1"]);
var d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script")[0];
g.async = true;
g.src = u + "matomo.js";
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body class="d-flex flex-column min-vh-100">
<nav class="navbar navbar-dark bg-dark">
<div class="container-fluid">
<div class="navbar-brand">
<i class="fa-solid fa-calendar"></i>
UW .ics Schedule Generator
</div>
<div class="ms-auto">
<a
class="btn btn-outline-light"
href="https://github.com/AndrewDTR/uw-cal-generator"
target="_blank"
>
<i class="fab fa-github"></i> GitHub
</a>
</div>
</div>
</nav>
<div class="container-fluid flex-grow-1 d-flex">
<div class="row flex-grow w-100">
<div class="col-md-6 border border-dark d-flex flex-column p-3">
<h1>Hello!</h1>
<h5>What is this site?</h5>
<p>
I, like many other students at
<a href="https://wisc.edu" target="_blank">UW-Madison</a>, put my
class schedule into apps like Google Calendar for convenience.
However, this can be pretty tedious, especially when dealing with
reoccuring events and school holidays. With this tool, all you have
to do is paste in your course schedule, and it'll give you a
formatted <code>.ical</code> file that you can import into the
calendar app of your choice.
</p>
<h5>How do I use this?</h5>
<div class="accordion pb-2" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header">
<button
class="accordion-button"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseOne"
aria-expanded="true"
aria-controls="collapseOne"
>
Text Tutorial
</button>
</h2>
<div
id="collapseOne"
class="accordion-collapse collapse show"
data-bs-parent="#accordionExample"
>
<div class="accordion-body">
<ol>
<li>
Go to
<a
href="https://mumaaenroll.services.wisc.edu/courses-schedule/"
target="_blank"
>UW's Course Schedule</a
>
page. (Link not working? Go to
<a href="https://my.wisc.edu/" target="_blank">MyUW</a>
→ "Course Schedule.")
</li>
<li>
Select the term you want to generate the schedule for in
the dropdown, then click <strong>Update</strong>.
</li>
<li>
Copy everything you see below the label "Courses." This
should include everything from the title of your first
class to the last piece of text on the page. See the video
below for any confusion.
</li>
<li>Paste the schedule into the box below.</li>
<li>
Make sure that all of your classes and their respective
times were parsed correctly. If everything looks good,
press the "download" button! Instructions for how to use
this <code>.ical</code> file are near the button. After
importing into your calendar software of choice, double
check it for accuracy!
</li>
</ol>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseTwo"
aria-expanded="false"
aria-controls="collapseTwo"
>
Video Tutorial
</button>
</h2>
<div
id="collapseTwo"
class="accordion-collapse collapse"
data-bs-parent="#accordionExample"
>
<div class="accordion-body">
<div class="embed-responsive embed-responsive-16by9">
<iframe
class="embed-responsive-item"
src="https://www.youtube.com/embed/3WSb63pkcpw?rel=0"
allowfullscreen
></iframe>
</div>
</div>
</div>
</div>
</div>
<h3 class="pt-2">Paste here:</h3>
<!-- <div class="btn-group">
<button class="btn btn-primary active" id="fall2024">
Fall 2024
</button>
<button class="btn btn-primary" id="spring2025">Spring 2025</button>
</div> -->
<div class="mb-3 pt-1">
<textarea
class="form-control"
placeholder="Raw course data paste"
id="classInput"
rows="3"
></textarea>
</div>
</div>
<div class="col-md-6 d-flex flex-column">
<div class="row">
<div
class="col-12 border border-dark p-3 results real-one"
style="flex-shrink: 0"
>
<h3 style="display: inline-block; margin-right: 10px">
Waiting for class data to be pasted...
</h3>
<div
class="spinner-border"
role="status"
style="display: inline-block; width: 1.5rem; height: 1.5rem"
>
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
<div class="row flex-grow-1">
<div
class="border border-dark align-items-center justify-content-center"
>
<div class="p-1 pt-2">
<h3 id="current-semester">
Current Semester Detected: Loading...
</h3>
<div id="breaks"></div>
</div>
<button
type="button"
disabled
id="download"
class="btn btn-primary mb-3 mt-2"
>
Download schedule
</button>
<div class="alert alert-warning" role="alert">
<strong>Instructions:</strong> After downloading the file, you
can import it into your calendar app of choice. For Google
Calendar, go to
<a
href="https://calendar.google.com/calendar/r/settings/export"
target="_blank"
>this link</a
>
and import the file. For Apple Calendar, follow the instructions
at
<a
href="https://support.apple.com/guide/calendar/import-or-export-calendars-icl1023/mac"
target="_blank"
>this link</a
>.
</div>
</div>
</div>
</div>
</div>
</div>
<footer
class="bg-dark text-white text-center d-flex justify-content-center align-items-center footer-height"
>
<div>
<div>UW .ics Schedule Generator © 2024</div>
<div class="small">
This site is not affiliated with or endorsed by the University of
Wisconsin-Madison. Double-check all calendar events for accuracy.
</div>
</div>
</footer>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script
src="https://kit.fontawesome.com/0bc349d89a.js"
crossorigin="anonymous"
></script>
<script type="module" src="./scripts/main.js"></script>
</body>
</html>