-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·38 lines (30 loc) · 1 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
(function (document, window) {
'use strict';
var scripts = [
"libs/iscroll-lite.js",
"source/application/application.js",
"source/models/item.js",
"source/models/itemsList.js",
"source/popup/popup.js",
"source/service/service.js",
"source/views/home_page/home_page.js",
"source/views/results_page/results_page.js",
"source/views/detail_page/detail_page.js",
"source/views/faves_page/faves_page.js"
];
function onEndLoad() {
var core = window.RAD.core,
application = window.RAD.application,
coreOptions = {
defaultBackstack: false,
defaultAnimation: 'slide',
animationTimeout: 3000,
debug: false
};
//initialize core by new application object
core.initialize(application, coreOptions);
//start
application.start();
}
window.RAD.scriptLoader.loadScripts(scripts, onEndLoad);
}(document, window));