-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscriptExample
More file actions
40 lines (36 loc) · 1.08 KB
/
Copy pathscriptExample
File metadata and controls
40 lines (36 loc) · 1.08 KB
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
//field
static MOODLE="http://moodle.mccallie.org"
HISTORY_SECTION=9
//script
Chemistry("http://moodle.mccallie.org/course/view.php?id=491")
{
RETURN=$(open($CHEMISTRY) | section(date($WEEK)) | section(rotation()) | open(hyperlink(regexic("^rotation"))) | section(rotation()))
}
English("http://moodle.mccallie.org/course/view.php?id=228")
{
RETURN=$(open($ENGLISH) | section(date($WEEK)) | open(hyperlink(*)) | section(rotation()))
}
History("http://moodle.mccallie.org/course/view.php?id=353")
{
SECTION=$(open($HISTORY) | section(regexic("^$HISTORY_SECTION")
Primary
{
DOCLINK=$($SECTION | hyperlink(regexic("Unit")))
RETURN=$(format.table($(drive.document($DOCLINK))) | section(date($WEEK)) | section(rotation()))
}
Forums
{
FORUMS=$($SECTIION | hyperlink(regex("/mod/forums")))
if($FORUMS[0]==0) exit
for(i=$FORUMS[0];i!=1;i--)
{
FORUMS[i]=$(hyperlink($FORUMS[i])
}
RETURN=FORUMS
}
}
Math("http://moodle.mccallie.org/course/view.php?id=268")
{
ACCEL=$(section(1) | open.xlsx(hyperlink(regexic("^ACCEL"))))
RETURN=$(section(date($WEEK)) | section(rotation()))
}