-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.js
34 lines (32 loc) · 1.18 KB
/
load.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
(function () {
var osPrefix = 'http://clients.openspending.org/data.gov.uk/openspendingjs/';
yepnope({
load: [
'http://clients.openspending.org/data.gov.uk/style.css',
osPrefix+'lib/vendor/jquery.js',
osPrefix+'lib/vendor/base64.js',
osPrefix+'lib/vendor/accounting.min.js',
osPrefix+'lib/vendor/underscore.js',
osPrefix+'lib/vendor/handlebars.js',
osPrefix+'lib/vendor/bootstrap.js',
osPrefix+'lib/boot.js',
osPrefix+'lib/utils/utils.js',
osPrefix+'lib/vendor/datatables/js/jquery.dataTables.js',
osPrefix+'lib/vendor/datatables/dataTables.bootstrap.js',
osPrefix+'app/data_table/openspending.data_table.js',
osPrefix+'app/faceter/openspending.faceter.js',
osPrefix+'app/browser/openspending.browser.js'
],
complete: function() {
OpenSpending.scriptRoot = osPrefix;
OpenSpending.localeGroupSeparator = ",";
OpenSpending.localeDecimalSeparator = ".";
var b = new OpenSpending.Browser(
document.getElementById('openspending_browser'),
"ukgov-25k-spending",
{'source': 'http://openspending.org'}
);
b.init();
}
});
}());