-
Notifications
You must be signed in to change notification settings - Fork 0
/
fileList.js
29 lines (28 loc) · 1005 Bytes
/
fileList.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
var gs = '../globalscripts/'
//Load up the css style files first, which includes the loading styles.
, cssList = [
[gs, 'gstyles', 'css', 'c']
, ['', 'styles', 'css', 'c']
]
, fileList = [
//first add the scripts that are common to my projects
//there is no problem with CORS cos tis the same origin :)
//Later, once most of the bugs are fixed, and features done,
//just lob everything in to one file for ease of downloading.
[gs, 'gevents', 'js']
, [gs, 'settings', 'js']
, [gs, 'gtexts', 'js']
, [gs, 'inputs', 'js']
, [gs, 'storage', 'js']
, [gs, 'initialize', 'js']
//now add the scripts that are just for this app
, ['', 'events', 'js']
, ['', 'main', 'js']
, ['', 'texts', 'js']
]
//now load the actual loader file from the globalscripts:
var a = document.createElement('script');
a.src = gs + 'loader.js';
document.head.appendChild(a);
//This loader file will then load all of the files in the list above,
//then call Init(); once all flies have loaded.