forked from wissenbach/oaclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.js
More file actions
27 lines (23 loc) · 696 Bytes
/
bootstrap.js
File metadata and controls
27 lines (23 loc) · 696 Bytes
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
// load and execute script files
// in this order
function _oac_bootstrap(script_list) {
if (script_list.length < 1)
return;
var script = document.createElement('script');
script.type='text/javascript';
script.src = script_list.shift();
script.onload = function() {_oac_bootstrap(script_list)};
document.getElementsByTagName('head')[0].appendChild(script);
}
OAClient = {
baseURL : _oac_base
};
_oac_bootstrap([
// 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js',
'http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js',
_oac_base + 'protocol.js',
_oac_base + 'annotationtarget.js',
_oac_base + 'plaintext.js',
_oac_base + 'ui.js',
_oac_base + 'model.js',
]);