-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
433 lines (433 loc) · 17.5 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, width=device-width"/>
<title>Check PCR</title>
<link rel="stylesheet" type="text/css" href="/build/style.css" />
<link rel="manifest" href="/androidmanifest.json">
<!-- Set the navbar color -->
<meta name="theme-color" content="#43A047">
<meta name="msapplication-navbutton-color" content="#43A047">
<meta name="apple-mobile-web-app-status-bar-style" content="#43A047">
<!-- The wonderful long list of favicons -->
<link rel="shortcut icon" type="image/x-icon" href="/icon/favicon.ico" />
<link rel="icon" href="/icon/icon_16.png" sizes="16x16">
<link rel="icon" href="/icon/icon_32.png" sizes="32x32">
<link rel="icon" href="/icon/icon_192.png" sizes="192x192">
<link rel="apple-touch-icon-precomposed" href="/icon/icon_152.png">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/icon/icon_120.png">
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="msapplication-TileImage" content="/favicon-144.png">
</head>
<body data-view="0">
<script src="build/preload-bundle.js"></script>
<nav>
<div class="nav">
<a id="collapseButton" class="material-icons">menu</a>
<a id="backButton" class="material-icons">arrow_back</a>
<span id="brand">Check PCR</span>
<a id="lightButton" class="material-icons waves" title="Toggle dark theme"></a>
<a id="infoButton" class="material-icons waves" title="Show info pane"></a>
<a id="cvButton" class="material-icons waves" title="Show Completed Assignments"></a>
</div>
<ul class="tabs" id="navTabs">
<li>Calendar</li>
<li>List</li>
</ul>
</nav>
<div id="sideNav">
<div id="initials"></div>
<span id="user"></span>
<ul>
<li class="nohover disabled"><i class="material-icons">hourglass_empty</i>More to come soon...</li>
<li id="switchViews"><a><i class="material-icons">view_week</i></a></li>
<li id="logout"><a><i class="material-icons">power_settings_new</i>Log out</a></li>
</ul>
<hr />
<ul>
<li id="newsB"><a><i class="material-icons">view_headline</i>News</a></li>
<li><a href="https://github.com/19RyanA/CheckPCR/wiki"><i class="material-icons">flight_land</i>Upcoming features</a></li>
<!--<li><a href="https://github.com/19RyanA/CheckPCR/blob/master/README.md"><i class="material-icons">help</i>Help</a></li>-->
</ul>
<hr />
<ul>
<li><a href="http://goo.gl/forms/qvLkxDti7h"><i class="material-icons">feedback</i>Suggest a feature</a></li>
<li><a href="http://goo.gl/forms/qSMXsxC8Xi" target="_blank"><i class="material-icons">bug_report</i>Report a bug</a></li>
<li><a href="https://github.com/19RyanA/CheckPCR/issues/new"><i class="svg-icons" style="background-image: url(images/github.svg); background-size: 22px 22px"></i>Create an issue</a></li>
</ul>
<hr />
<ul>
<li id="settingsB"><a><i class="material-icons">settings</i>Settings</a></li>
</ul>
</div>
<div id="sideBackground"></div>
<main>
<section id="calnav" class="datenav">
<a class="material-icons datenavbefore" id="calbefore" title="Show assignments for the previous date range">navigate_before</a>
<div class="navdates">
<span id="calprevdate" class="navprevdate">Last Month</span>
<span id="calnowdate" class="navnowdate">This Month</span>
<span id="calnextdate" class="navnextdate">Next Month</span>
</div>
<a class="material-icons datenavnext" id="calnext" title="Show assignments for the following date range">navigate_next</a>
</section>
<section id="listnav" class="datenav">
<a class="material-icons datenavbefore" id="listbefore" title="Show assignments for the previous day">navigate_before</a>
<div class="navdates">
<span id="listprevdate" class="navprevdate">Yesterday</span>
<span id="listnowdate" class="navnowdate">Now</span>
<span id="listnextdate" class="navnextdate">Tomorrow</span>
</div>
<a class="material-icons datenavnext" id="listnext" title="Show assignments for the following day">navigate_next</a>
</section>
<section id="dates">
<div>Sun</div>
<div>Mon</div>
<div>Tues</div>
<div>Wed</div>
<div>Thu</div>
<div>Fri</div>
<div>Sat</div>
</section>
</main>
<span id="lastUpdate"></span>
<a id="new" class="material-icons infoChange">add</a>
<div id="info" data-view="0">
<div id="extra">
<i class="material-icons">keyboard_arrow_up</i>
Scroll up to view the navbar
</div>
<ul class="tabs" id="infoTabs">
<li>Tests</li>
<li>Activity</li>
<li class="ifTasks">Tasks</li>
</ul>
<div id="infoContent">
<div id="infoTests"></div><div id="infoActivity">
<div id="activitySelectOverview">
Showing <span id="selectNum">0</span> type<span id="selectNumS">s</span>
<a id="filterActivity" class="material-icons waves"></a>
</div>
<div id="activitySelectControl">
<input type="checkbox" id="addSelect">
<label for="addSelect">Additions</label>
<input type="checkbox" id="editSelect">
<label for="editSelect">Modifications</label>
<input type="checkbox" id="deleteSelect">
<label for="deleteSelect">Deletions</label>
</div>
</div><div id="infoTasks" class="ifTasks">
<input id="showDoneTasks" type="checkbox" />
<label for="showDoneTasks">Show completed tasks</label>
<div id="infoTasksInner"></div>
<button id="newTask" class="waves">New task</button>
</div>
</div>
</div>
<div id="empty"><span>No more assignments for today!</span></div>
<div id="background"></div>
<div id="progress">
<div class="indeterminate"></div>
</div>
<form id="login">
<h1>Please log in to continue</h1>
<div class="content">
<div id="loginIncorrect">
Incorrect Username or Password
</div>
<div class="input-field">
<input id="username" type="text" autocomplete="off" tabindex="1">
<label for="username">Username</label>
</div>
<div class="input-field">
<input id="password" type="password" autocomplete="off" tabindex="2">
<label for="password">Password</label>
</div>
<input type="checkbox" id="remember" tabindex="3">
<label for="remember">Remember me</label>
</div>
<input type="submit" value="OK" tabindex="4">
</form>
<div id="loginBackground"></div>
<div id="update">
<h1>A new update has been detected.</h1>
<div id="updateVersions"><code id="pastUpdateVersion">??.??.??</code> → <code id="newUpdateVersion">??.??.??</code></div>
<div class="content">
If you have already installed it, please ignore this message.<br>
Otherwise, navigate to where you installed CheckPCR in a terminal and type <code>git pull</code> if you installed it using git.
If you installed it by downloading the zip file from <a href="https://github.com/19RyanA/CheckPCR">GitHub</a>, then do that again.
<h2>New features</h2>
<div id="updateFeatures"></div>
</div>
<button id="updateIgnore">IGNORE</button>
<button id="updateDelay">REMIND LATER</button>
</div>
<div id="updateBackground"></div>
<div id="news">
<h1>There's been news!</h1>
<div id="newsContent" class="content"></div>
<button id="newsOk">OK</button>
</div>
<div id="newsBackground"></div>
<div id="error">
<h1>Whoops. That wasn't supposed to happen!</h1>
<div class="content">
<h2>
Something went wrong parsing your assignments from PCR.
</h2>
<p>
The most likely cause of this is that you aren't on month or week view.
</p>
<p>
However, if you are doing everything properly, then you've just dicovered a bug! Yay!
</p>
<p>
If you were just messing around with the source code or would like to repeatedly see this amazing dialog and never want Check PCR to function again for you, don't send a bug report.<br>
Otherwise, I recommend you do so that this bug can be fixed / squashed / exterminated.
</p>
<p>
You can either do this through a GitHub or Google forms.<br>
If you have a GitHub account, I'd prefer that you use GitHub, but the Google form is fine too.
</p>
<p>
If you are submitting the issue via GitHub, please include the following information along with a description of what caused this dialog to appear:
</p>
<pre id="errorContent"></pre>
</div>
<a id="errorGitHub" href="https://github.com/19RyanA/CheckPCR/issues/new" target="_blank">SUBMIT (GITHUB)</a>
<a id="errorGoogle" href="https://docs.google.com/a/students.harker.org/forms/d/1sa2gUtYFPdKT5YENXIEYauyRPucqsQCVaQAPeF3bZ4Q/viewform" target="_blank">SUBMIT (G. FORMS)</a>
<button id="errorNo">CLOSE</button>
</div>
<div id="errorBackground"></div>
<form id="newDialog">
<div id="newInner">
<input id="newText" type="text" placeholder="Description of new assignment" required autocomplete="off" />
<a id="newCancel" class="material-icons">close</a>
<button id="newDone" class="material-icons" type="submit">send</button>
</div>
<div id="newTips">
<div id="tipby" class="tip">
<i class="material-icons">alarm</i>
<span class="typed"></span>
<div class="tipInner">
<span class="explanation">Set a due date</span>
<span class="others"></span>
</div>
</div>
<div id="tipfor" class="tip">
<i class="material-icons">class</i>
<span class="typed"></span>
<div class="tipInner">
<span class="explanation">Assign for a class</span>
<span class="others"></span>
</div>
</div>
<div id="tipstarting" class="tip">
<i class="material-icons">schedule</i>
<span class="typed"></span>
<div class="tipInner">
<span class="explanation">Set a starting date</span>
<span class="others"></span>
</div>
</div>
</div>
</form>
<div id="newBackground"></div>
<div id="settings">
<ul>
<li id="versionText" class="nohover">
Version <code id="version">??.??.??</code> (newest is <code id="newversion">??.??.??</code>)
</li>
<li class="two">
Refresh on window focus
<span>Refresh when switching from another window</span>
<div class="switch control">
<label>
<input type="checkbox" name="refreshOnFocus" class="settingsControl" checked>
<span class="lever"></span>
</label>
</div>
</li>
<li class="two">
Refresh rate
<span>How often the page refreshes on its own</span>
<select class="control browser-default settingsControl" name="refreshRate">
<option value="-1">Never</option>
<option value="10">10 Minutes</option>
<option value="30">30 Minutes</option>
<option value="60">1 Hour</option>
<option value="120">2 Hours</option>
</select>
</li>
<li class="two">
View transitions
<span>Animate assignments when switching views</span>
<div class="switch control">
<label>
<input type="checkbox" name="viewTrans" class="settingsControl" checked>
<span class="lever"></span>
</label>
</div>
</li>
<li class="two">
Assignment spanning (Calendar View)
<span>If assignments span over multiple days or only one</span>
<select class="control browser-default settingsControl" name="assignmentSpan">
<option value="multiple">Span over multiple days</option>
<option value="start">Span only start date</option>
<option value="end">Span only end date</option>
</select>
</li>
<li class="two">
Test preparation (List View)
<span>Number of days in advance to show assessments</span>
<input type="number" min="0" max="99" class="control settingsControl" name="earlyTest" />
</li>
<li class="two expand">
Separate Tasks
<span>Show tasks in a pane alongside Activity</span>
<span id="sepTasksRefresh" style="display: none">Please refresh the page to see these changes.</span>
<div class="switch control">
<label>
<input type="checkbox" name="sepTasks" class="settingsControl" checked>
<span class="lever"></span>
</label>
</div>
</li>
<li class="two">
Task Class Color
<span>Make Tasks show up in their own color</span>
<div class="switch control">
<label>
<input type="checkbox" name="sepTaskClass" class="settingsControl" checked />
<span class="lever"></span>
</label>
</div>
</li>
<li class="two">
Projects in Test Pane
<span>Show Projects the upcoming tests pane</span>
<div class="switch control">
<label>
<input type="checkbox" name="projectsInTestPane" class="settingsControl" checked />
<span class="lever"></span>
</label>
</div>
</li>
<li class="two">
Hide assignments
<span>When assignments disappear from List View</span>
<select class="control browser-default settingsControl" name="hideAssignments">
<option value="ms">After MS ends</option>
<option value="us">After US ends</option>
<option value="day">After 12:00 AM</option>
</select>
</li>
<li id="colorSettings">
Assignment colors
<div class="settingsContent">
<p>
<input class="with-gap" name="colorType" type="radio" id="assignmentType" value="assignment" checked />
<label for="assignmentType">By assignment type</label>
</p>
<p>
<input class="with-gap" name="colorType" type="radio" id="classType" value="class" checked />
<label for="classType">By class</label>
</p>
<div id="assignmentColors" class="colors">
<div data-control="homework">Homework<span></span></div><div data-control="classwork">Classwork<span></span></div><div data-control="longterm">Projects<span></span></div><div data-control="test">Tests<span></span></div>
</div>
<div id="classColors" class="colors"></div>
</div>
</li>
<li class="infin">
Update Schoology classes
<span>Go to <a href="https://schoology.harker.org/iapi/course/active" target="_blank">https://schoology.harker.org/iapi/course/active</a>, log in if you need to, and copy + paste everything here.</span>
<span id="schoologyDataError" style="display: none"></span>
<span id="schoologyDataRefresh" style="display: none">Please refresh the page to see these changes.</span>
<textarea placeholder="Paste the data here." id="schoologyData" name="schoologyDataRaw"></textarea>
</li>
<li class="two">
Blank PCR
<span>What do you do with PCR?</span>
<select class="control browser-default settingsControl" name="titleAction">
<option value="Yoink">Yoink</option>
<option value="Yeet">Yeet</option>
<option value="Dab">Dab</option>
<option value="Eat">Eat</option>
<option value="Subscribe to">Subscribe to</option>
<option value="Check">Check</option>
</select>
</li>
<li class="two">
Holiday theming
<span>Show holiday-ish things in the background</span>
<div class="switch control">
<label>
<input type="checkbox" name="holidayThemes" class="settingsControl" checked>
<span class="lever"></span>
</label>
</div>
</li>
<!--<li class="infin">
Parse
<span>To sync your completed and editted assignments between devices, you can use the Check PCR's database hosted on Parse, which stores encrypted versions of your completed and edited assignments.</span>
<div id="parsebuttons" style="display: none">
<p>
<span>To do so, you need to either create an account for Check PCR or log in using one you already created.
The account is just so everyone has a unique, private identifier for storing data. Since everything sent to Parse gets encrypted using AES, you'll also need to enter an encoding passphrase to encode your data with.
Unlike your username and password, this can be as random as you want as it will be displayed on this page once you log in.</span>
</p>
<p>
<span>You'll need to reenter your username and password if you have multiple devices, so try to remember them :)</span>
</p>
<div class="input-field">
<input id="parseusername" type="text" autocomplete="off">
<label for="parseusername">Username</label>
</div>
<div class="input-field">
<input id="parsepassword" type="password" autocomplete="off">
<label for="parsepassword">Password</label>
</div>
<div class="input-field">
<input id="parsekey" type="text" autocomplete="off">
<label for="parsekey">Encoding passphrase</label>
</div>
<button id="parsenew">New account</button>
<button id="parselogin">Log in</button>
</div>
<div id="parsemanage" style="display: none">
<span>If you ever need to, you override everything stored in Parse with the data stored locally on your device by clicking the button below.</span>
<button id="parseover">Replace data</button>
<span>All your data is encrypted in the cloud using the passphrase below. You'll need to copy this across your devices so that they can decrypt the data.</span>
<input type="text" id="parseenc" readonly />
</div>
</li>-->
<li class="two">
Use Google Analytics
<span>Feel free to opt out. It just counts how many people use this.</span>
<div class="switch control">
<label>
<input type="checkbox" name="enableAnalytics" class="settingsControl" checked>
<span class="lever"></span>
</label>
</div>
</li>
<li class="nohover" id="credits">
Made with <i class="material-icons">code</i> by Ryan Adolf
</li>
</ul>
</div>
<div id="dragTarget"></div>
<script src="/vendor/headroom.min.js"></script>
<script src="/vendor/hammer.min.js"></script>
<script src="/vendor/diff_match_patch/diff_match_patch.js"></script>
<script src="/vendor/chrono.min.js"></script>
<script src="/vendor/tinycolor-min.js"></script>
<script src="/vendor/web-animations.min.js"></script>
<!-- <script src="/vendor/parse-1.6.12.min.js"></script> -->
<script src="/vendor/sjcl.js"></script>
<script src="/build/app-bundle.js"></script>
</body>
</html>