-
Notifications
You must be signed in to change notification settings - Fork 98
/
llab.js
executable file
·64 lines (45 loc) · 1.83 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
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
// 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.empty_topic_page_path = llab.llab_path + "html/empty-topic-page.html";
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';
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;