-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
executable file
·281 lines (247 loc) · 14.9 KB
/
popup.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
275
276
277
278
279
280
281
<!DOCTYPE html>
<html data-theme="light">
<head>
<meta charset="UTF-8">
<!--Import UIKit-->
<link rel="stylesheet" href="res/css/uikit.min.css">
<!--Customized stylesheet-->
<link rel="stylesheet" href="res/css/default.css">
<!--Import font from Google-->
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<!--Import UIKit Javascript-->
<script type="text/javascript" async src="res/js/uikit.min.js"></script>
<script type="text/javascript" src="res/js/uikit-icons.min.js"></script>
<!--Import custom icons-->
<script type="text/javascript" src="res/js/icons.js"></script>
<!--Import custom JS-->
<script type="text/javascript" defer src="res/js/popup.js"></script>
<script type="text/javascript" defer src="res/js/schedule.js"></script>
<script type="text/javascript" defer src="res/js/calendar.js"></script>
<script type="text/javascript" defer src="res/js/explore.js"></script>
<script type="text/javascript" defer src="res/js/notifications.js"></script>
<script type="text/javascript" defer src="res/js/resources.js"></script>
</head>
<body>
<div id="main-container">
<div id="app-sidebar">
<button title="Explore" class="sidebar selected"><span uk-icon="icon: fa-compass"></span></button>
<button title="Schedule" class="sidebar"><span uk-icon="icon: fa-clock"></span></button>
<button title="Calendar" class="sidebar"><span uk-icon="icon: fa-calendar-alt"></span></button>
<button title="Notifications" class="sidebar"><span uk-icon="icon: fa-bell"></span></button>
<button title="Resources" class="sidebar"><span uk-icon="icon: fa-bookmark"></span></button>
<button title="More" class="sidebar"><span uk-icon="icon: fa-cog"></span></button>
</div>
<div id="app-content">
<div id="app-container">
<!--Explore Tab-->
<div id="tab-0" class="">
<h3 class="main-header">Explore</h3>
<!--Schedule Cards-->
<div id="schedule-cards">
<!--Yesterday Card-->
<div class="card left explore-card">
<div id="explore-0" class="card-container uk-position-relative uk-position-center ">
<h6 class="small-text left text-card">...</h6>
<h6 class="small-text right text-card">...</h6>
<h4 class="small-header" style="text-align:center"></h4>
<h6 class="small-text footer" style="text-align:center">...</h6>
</div>
</div>
<!--Today Card-->
<div class="card left explore-card">
<div id="explore-1" class="card-container uk-position-relative uk-position-center ">
<h6 class="small-text left text-card">...</h6>
<h6 class="small-text right text-card">...</h6>
<h4 class="small-header" style="text-align:center"></h4>
<h6 class="small-text footer" style="text-align:center">...</h6>
</div>
</div>
<!--Tomorrow Card-->
<div class="card left explore-card">
<div id="explore-2" class="card-container uk-position-relative uk-position-center">
<h6 class="small-text left text-card">...</h6>
<h6 class="small-text right text-card">...</h6>
<h4 class="small-header" style="text-align:center"></h4>
<h6 class="small-text footer" style="text-align:center">...</h6>
</div>
</div>
</div>
<div id="expanded-schedule-cards" class="hidden">
<!--Yesterday Card-->
<div id="explore-3" class="card left explore-card">
<div class="card-container uk-position-relative uk-position-center ">
<h6 class="small-text left text-card">...</h6>
<h6 class="small-text right text-card">...</h6>
<h4 class="small-header" style="text-align:center"></h4>
<h6 class="small-text footer" style="text-align:center">...</h6>
</div>
</div>
<!--Today Card-->
<div class="card left explore-card">
<div id="explore-4" class="card-container uk-position-relative uk-position-center ">
<h6 class="small-text left text-card">...</h6>
<h6 class="small-text right text-card">...</h6>
<h4 class="small-header" style="text-align:center"></h4>
<h6 class="small-text footer" style="text-align:center">...</h6>
</div>
</div>
<!--Tomorrow Card-->
<div class="card left explore-card">
<div id="explore-5" class="card-container uk-position-relative uk-position-center ">
<h6 class="small-text left text-card">...</h6>
<h6 class="small-text right text-card">...</h6>
<h4 class="small-header" style="text-align:center"></h4>
<h6 class="small-text footer" style="text-align:center">...</h6>
</div>
</div>
</div>
<div style="text-align:center">
<button id="expand-schedule" title="Expand" class="primary"><span
uk-icon="icon: fa-chevron-down"></span></button>
</div>
<h4 class="main-header">Bulletin</h4>
<div style="overflow-y: scroll; width: 379px; height: 80px"id="bulletin-container">
</div>
<h6 style="padding-top:5px" id="house-lead" class="uk-float-right main-header"> Oxford +100 pts.</h6>
<h4 style="padding-bottom: 5px" class="main-header">Houses</h4>
<div id="social-media-feeds">
<div class="uk-position-relative uk-visible-toggle" tabindex="-1"
uk-slideshow="animation: push; autoplay: false; autoplay-interval: 3000; pause-on-hover: true">
<ul style="border-radius: 8px; height: 470px" class="uk-slideshow-items">
<li>
<div class="house-bg">
<table id="house-table" style="width:100%; text-align: left; padding: 15px">
</table>
</div>
</li>
</ul>
<div class="uk-light">
<a class="uk-position-center-left uk-position-small uk-hidden-hover" href="#"
uk-slidenav-previous uk-slideshow-item="previous"></a>
<a class="uk-position-center-right uk-position-small uk-hidden-hover" href="#"
uk-slidenav-next uk-slideshow-item="next"></a>
</div>
</div>
</div>
</div>
<div id="house-tab" class="hidden internal-tab">
<h3 id="house-tab-name" class="main-header"></h3>
<div class="uk-text-center">
<img id="house-tab-img"/><br>
<h5 id="house-tab-point-label" class="uk-margin-small-top main-header"></h5>
</div>
<div style="width: calc(100% - 15px); height: 100%; margin-bottom: 15px;" class="card">
<table class="highlighted" style="width: 100%;">
<tbody id="points-table">
</tbody>
</table>
</div>
</div>
<div id="bulletin-tab" class="hidden internal-tab">
<h3 id="bulletin-tab-name" class="main-header"></h3>
<div class="uk-text-center">
<img id="bulletin-tab-img"/><br>
<p id="bulletin-tab-text"></p>
</div>
</div>
<!--Schedule Tab-->
<div id="tab-1" class="hidden">
<h3 class="main-header">Schedule</h3>
<div class="left" name="col-1">
<div style="width: 130px; height:auto;" class="card no-hover">
<div class="card-container uk-position-relative uk-position-left">
<h6 id="schedule-dotw" class="medium-text lighter" style="text-align:center">...</h6>
<span>
<button class="default" id="schedule-prev" style="float:left"
disabled>«</button>
<button class="default" id="schedule-next" style="float:right"
disabled>»</button>
</span>
<h6 id="schedule-d" class="small-header" style="text-align:center">...</h6>
</div>
</div>
<div style="width: 130px; height:auto;" class="card no-hover">
<div class="card-container uk-position-relative uk-position-left">
<h6 id="schedule-day" class="medium-text" style="text-align:left">...</h6>
<h4 id="schedule-rotation" class="small-header" style="text-align:left">----</h4>
</div>
</div>
<div style="width: 130px; height:auto; margin-top: 5px; position: relative;"
class="card no-hover">
<div class="card-container uk-position-relative uk-position-left">
<h6 class="medium-text " style="text-align:left">Events</h6>
<table class="highlighted">
<tbody style="width: 100%" id="schedule-events">
</tbody>
</table>
</div>
</div>
</div>
<div style="width: 215px; height:auto;" class="card left no-hover">
<div class="card-container uk-position-relative uk-position-left">
<h6 id="schedule-label" class="medium-text" style="text-align:left">...</h6>
<table class="highlighted" style="width: 100%; height:100%;">
<tbody id="schedule-table">
</tbody>
</table>
</div>
</div>
</div>
<div id="tab-2" class="hidden">
<h3 class="main-header">Calendar</h3>
<div style="text-align:center;">
<p id="calendar-upd" style="color: var(--default-inv)" class="uk-margin-remove">
...
</p>
</div>
<div style="width: calc(100% - 15px); height: 100%; margin-bottom: 15px;" class="card">
<table class="highlighted" style="width: 100%;">
<tbody id="calendar-table">
</tbody>
</table>
<button title="mySTMC Calendar" class="primary float">
<a style="color:white !important;" target="_blank"
href="https://calendar.google.com/calendar/embed?src=my.stmc.bc.ca_13skf60vphiuf5fnv51njmv8vc%40group.calendar.google.com&ctz=America%2FVancouver"><span
uk-icon="icon: fa-calendar-alt"></span></a>
</button>
</div>
</div>
<div id="tab-3" class="hidden">
<h3 class="main-header center">Notifications</h3>
<div id="notification-body" style="padding-bottom: 50px">
</div>
</div>
<div id="tab-4" class="hidden">
<h3 class="main-header">Resources</h3>
<div id="resources-container"></div>
<button title="mySTMC Help Page" class="primary float">
<a style="color:white !important;" target="_blank"
href="http://my.stmc.bc.ca/help_page.html"><span
uk-icon="icon: fa-question-circle"></span></a>
</button>
<br>
</div>
<div id="tab-5" class="hidden">
<h3 class="main-header">Settings</h3>
<div class="uk-text-center">
<br>
<img width="64px" src="res/imgs/icons/icon_128.png"></img>
<h5 class="main-header">STMC App for Chrome v1.2.1</h5>
<h6 class="main-header">9/13/2021</h6>
<h5>Developed and coded by Eric Zhang ('22)</h5>
<h5>House crests designed by Charlotte Cho ('21)</h5>
<h5>Calendar API by Philip Stachura ('19)</h5>
<br>
<h6>Special thanks to STMC staff:<br>Mr. Garland, Ms. Lauang, Mr. Olson</h6>
<a target="_blank" href="https://github.com/ezzhang8/STMC-Extension">View source on Github</a>
<br>
<button class="default" style="padding:5px; margin: 20px" id="more-toggle">Change Theme</button>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>