-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
49 lines (35 loc) · 1.32 KB
/
index.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
(function (document, window) {
// don't remove ## marks, CLI uses them for updating this file
// #script_begin#
var scripts = [
"source/models/list.js",
"source/views/addPopup/addPopup.js",
"source/views/editPopup/editPopup.js",
"source/views/screen_1/screen_1.js",
"source/views/screen_2/screen_2.js",
"source/views/screen_2/tab_1/tab_1.js",
"source/views/screen_2/tab_2/tab_2.js",
"source/application/application.js"
];
// #script_end#
function onEndLoad() {
var core = window.RAD.core,
application = window.RAD.application,
coreOptions = {
defaultBackstack: false,
defaultAnimation: 'none',
animationTimeout: 3000,
debug: false,
templateSettings: {
evaluate : /<%([\s\S]+?)%>/g,
interpolate : /<%=([\s\S]+?)%>/g,
escape : /<%-([\s\S]+?)%>/g
}
};
//initialize core by new application object
core.initialize(application, coreOptions);
//start
application.start();
}
window.RAD.scriptLoader.loadScripts(scripts, onEndLoad);
}(document, window));