Skip to content

Commit 3ba491e

Browse files
committed
Update CS3216 script for 2018
1 parent e466aeb commit 3ba491e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

claims/module-claims/claim-cs3216.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@
2222
// CONFIGURE THE RELEVANT PROPERTIES IN THE CONFIG OBJECT
2323
// ***********************************************************
2424

25-
if (typeof STUDENT_ID == 'undefined') {
26-
STUDENT_ID = null;
27-
}
25+
STUDENT_ID = prompt('Your NUSSTU ID, such as e0012345');
2826

2927
var config = {
3028
// Your NUSSTU ID, such as a0012345
31-
student_id: STUDENT_ID,
29+
student_id: STUDENT_ID,
3230
// Module you are claiming hours for, such as CS1101S
3331
module: 'CS3216',
3432
// Format: YYYY/MM/DD
3533
// Note: Month is from 0-11, Date is from 1-31
3634
// This should be the semester's week 1. For AY15/16 Sem 1, it's Monday, Aug 10
37-
first_day_of_sem: new Date(2017, 7, 14),
35+
first_day_of_sem: new Date(2018, 7, 13),
3836
// In case you want to customize the duties field for each activity
3937
// Do not modify the keys
4038
duties: {
@@ -47,7 +45,7 @@ var config = {
4745
activities_list_fn: function () {
4846
var activities_list = [];
4947

50-
// 2017: 24 hours of assignment marking and 6 hours of course material preparation!
48+
// 2018: 24 hours of assignment marking and 6 hours of course material preparation!
5149

5250
for (var week = 4; week <= 10; week+=2) {
5351
activities_list.push({
@@ -85,7 +83,7 @@ var config = {
8583
if (!STUDENT_ID) { // Chrome does not allow window.prompt() to run on an inactive tab.
8684
alert('Please modify STUDENT_ID in the code, or run STUDENT_ID="a0123456" before pasting and running the code.');
8785
} else {
88-
var core_script = 'https://rawgit.com/nusmodifications/nus-scripts/master/claims/claim.js';
86+
var core_script = 'https://yyc.github.io/nus-scripts/claims/claim.js';
8987
var c = undefined;
9088
$.getScript(core_script)
9189
.done(function () {

0 commit comments

Comments
 (0)