-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·193 lines (176 loc) · 9.64 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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>SCCS Class Planner</title>
<meta name="description" content="SCCS Class Planner for Swarthmore College">
<!-- TODO: check https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="img/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="node_modules/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="css/main.css">
<link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet">
<!--Facebook-->
<meta property="og:image:width" content="279">
<meta property="og:image:height" content="279">
<meta property="og:description" content="My Swarthmore course schedule, proudly (or, at least, dutifully) planned with the SCCS Course Planner">
<meta property="og:title" content="SCCS Course Planner">
<meta property="og:url" content="https://schedule.sccs.swarthmore.edu">
<meta property="og:image" content="https://schedule.sccs.swarthmore.edu/img/og-image.jpg">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<div id="container">
<header>
<div class="headFoot" id="header">
<h1>
<a href="https://www.sccs.swarthmore.edu/">SCCS</a> Class Planner
</h1>
<i>Spring 2019</i>
<div class="help-tip">
<p>
<b><u>How to use:</u></b><br>
- Use the search bar at the bottom to find your classes. Add every section with the left checkbox<br>
- Use the right column to highlight different combinations of the sections<br>
- When you find a schedule which works, you can export your classes to your Google Calendar - either all of them or only the highlighted ones<br>
P.S. You can share your classes with others simply by giving them the URL<br><br>
This service is still in beta, please double check all schedules by hand, just in case (if there are any errors, <a href="mailto:[email protected]">email us</a>)
</p>
</div>
</div>
</header>
<main>
<div id="body">
<div id="calContainer">
<div id="calendarTd">
<div class="leftCol">
<div id="calendar"></div>
</div>
</div>
</div>
<button id="toggleCal" onclick="toggleCal()">Toggle Calendar </button>
<div class="shadow" id="class_and_clear">
<div class="large_inline" id="rightCol_par">
<!--Also change in js-->
<div id="rightCol">Search for classes below to plan your schedule</div>
</div>
<div id="clearAll_par"></div>
</div>
<br> <br>
<div>
<div class="thirds">
<div id="waitingForGoogle">
<i>Loading Google API's...</i>
</div>
<div id="authorizedButtons">
<div id="notAuthorized" style="display: none">
<button id="authorize-button" onclick="handleAuthClick()">Login to Export to GCal</button>
</div>
<div id="isAuthorized" style="display: none">
<button id="export-button" class="sharp" onclick="getReadyForExport()">Export Events to GCal</button>
<!--<button class="dull" id="signout-button" onclick="handleSignoutClick()">Sign Out</button>-->
<button class="likeLink" id="signout-button" onclick="handleSignoutClick()">Sign Out</button>
</div>
</div>
</div>
<br>
<hr>
<div id="sayHi"></div>
</div>
<div id="hacker-list">
<div class = "middleCol">
<!-- Grey out ones which dont fit
<div id="onlyFit_Cont">
<label><input id="onlyFit" type="checkbox"> Only Show Classes Which Fit</label>
</div>
-->
<div>
<input name="search" class="search searchMargin" id="search" placeholder="Find Classes!" />
<label class="visuallyhidden" for="search">Search for Classes</label>
</div>
<div class="shadow hideClass" id="classTable">
<!-- Sort is confusing and clutters
<button class="sort" data-sort="ref">Sort by Reference</button>
<button class="sort" data-sort="subj">Sort by Subject</button>
-->
<table id="classResultsTable" class="fullWidth">
<thead>
<tr>
<th class="narrowest"></th>
<th class="narrowest">Ref</th>
<th class="narrow" >Class</th>
<th class="narrowest">Sec</th>
<th class="wide">Title</th>
<th class="narrowest">Cred</th>
<th class="narrowest">Dist</th>
<th class="narrowest">Lim</th>
<th class="narrow" >Instruct</th>
<th class="narrowest">Days</th>
<th class="narrow" >Time</th>
<th class="narrow" >Rm</th>
</tr>
</thead>
<tbody class="list"></tbody>
</table>
</div>
</div>
</div>
</div>
</main>
<footer class="headFoot" id="footer">
<h2 class="headFoot">
Please email <a href="mailto:[email protected]">[email protected]</a> with any questions, concerns, or if there is inaccurate information
</h2>
</div>
</footer>
<!--Micromodal for google calendar export -->
<div class="modal micromodal-slide" id="modal-export" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="modal-1-title">
<header class="modal__header">
<h2 class="modal__title" id="modal-1-title">
Successfully Exported!
</h2>
<button class="modal__close" aria-label="Close modal" data-micromodal-close></button>
</header>
<main class="modal__content" id="modal-1-content">
<div id="export_text">
</div>
</main>
<footer class="modal__footer">
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
</div>
<script src="js/vendor/modernizr-3.5.0.min.js"></script>
<script src="js/vendor/micromodal.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script src="node_modules/moment/min/moment.min.js"></script>
<script src="node_modules/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="js/list.js"></script>
<script src="js/main.js"></script>
<script src="https://apis.google.com/js/api.js"
onload="this.onload=function(){};handleClientLoad()"
onreadystatechange="if (this.readyState === 'complete') this.onload()">
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-90553706-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-90553706-1');
</script>
</body>
</html>