forked from karthik/almviz
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.js
29 lines (27 loc) · 769 Bytes
/
main.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
requirejs.config({
appDir: ".",
baseUrl: "js",
paths: {
'jquery': ['//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min'],
'bootstrap': ['//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min'],
'embed': ['http://alm-plos.local/embed']
},
shim: {
/* Set dependencies */
'bootstrap' : ['jquery']
}
});
require([
'jquery', 'bootstrap', 'embed'
],
function(){
loadCss();
return {};
});
function loadCss() {
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
link.href = "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css";
document.getElementsByTagName("head")[0].appendChild(link);
}