forked from bjc-edc/bjc-r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
llab.js
executable file
·78 lines (57 loc) · 2.31 KB
/
llab.js
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
if (typeof llab === 'undefined') {
llab = {};
llab.paths = {};
llab.paths.css_files = [];
llab.loaded = {};
}
/*
***********************
******** CONFIG *******
***********************
*/
// if the website isn't at the root of the server, add the path here.
// starting / means this is an absolute link, yo
llab.rootURL = "/bjc-r/";
// change if llab scripts are installed in a different path *within* rootURL.
llab.install_directory = "llab/";
// absolute path to llab files -- don't change this
llab.llab_path = llab.rootURL + llab.install_directory;
// reference your custom CSS files, from within llab install directory.
// Multiple CSS files is fine, include a separate push for each
// llab.paths.css_files.push('css/3.3.0/bootstrap.min.css');
// llab.paths.css_files.push('css/3.3.0/bootstrap-theme.min.css');
llab.paths.css_files.push('css/3.3.0/bootstrap-compiled.min.css');
llab.paths.css_files.push('css/default.css');
// In /bjc-r/css
// new CSS added for new mainpage only, by Mary 1/26/16
var url = window.location.pathname;
if (url.slice(url.search("/bjc-r/")) == "/bjc-r/" || url == "/") {
llab.paths.css_files.push('../css/bjc-mainpage.css');
} else {
llab.paths.css_files.push('../css/bjc.css');
}
// courses -- path to folder containing courses.
// a course 'name', when prepended with this, will be an absolute link
llab.courses_path = llab.rootURL + "course/";
// TOPICS (old style) stuff.
// place where you put (oldstyle) X.topic files, used when building menus on curriculum pages
llab.topics_path = llab.rootURL + "topic/";
// used when referring to a topic page -- you could change this location
llab.topic_launch_page = llab.llab_path + "html/topic.html";
llab.alt_topic_page = llab.rootURL + "topic/topic.html";
llab.empty_curriculum_page_path = llab.llab_path + "html/empty-curriculum-page.html";
// google analytics tokens
// llab.GACode = 'UA-47210910-3' -- CS10 Code;
llab.GACode = 'UA-57857730-3'
llab.GAurl = document.hostname;
// USER
llab.user = {};
//// Ug, this configuration needs to be done at end of load, after USER objects
//// are defined. Need a syntax for this. For now just doing it in user.js
// llab.user.user = new USER_NO_AUTH(); // simple user
/*
******************************
********* END CONFIG *********
******************************
*/
llab.loaded['config'] = true;