-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
39 lines (37 loc) · 2.32 KB
/
index.js
File metadata and controls
39 lines (37 loc) · 2.32 KB
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
$vm.module_list={
layout: ['--------','.../modules/frame/layout.html','2'],
home: ['--------','.../modules/frame/home.html','2'],
navigation: ['--------','.../modules/frame/navigation.html','2'],
document: ['20008360','.../modules/document/file.html','2'],
category: ['20008361','.../modules/classification/category.html','2'],
}
//--------------------------------------------------------
for(key in $vm.module_list){
$vm.module_list[key][2]=$vm.module_list[key][1];
$vm.module_list[key][1]=$vm.url($vm.module_list[key][1].replace('...','__BASE__/'+$vm.repository));
$vm.module_list[key][2]=$vm.module_list[key][2].replace('...','https://github.com/'+$vm.repository+'/blob/master');
}
//--------------------------------------------------------
var jsN=0;
var last=function(){
$('head').append("<style> *{ margin:0; } html,body { height:100%;} </style>");
setTimeout(function () {
$.ajaxSetup({ cache: true });
$.getScript('https://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/jquery-ui.min.js',function(){last_last();});
$.getScript('https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js',function(){last_last();});
$.getScript('https://sdk.amazonaws.com/js/aws-sdk-2.1.34.min.js',function(){last_last();});
$.getScript('https://cbs.wappsystem.com/system/third/handsontable.full.min.js',function(){last_last();});
$.getScript('https://cbs.wappsystem.com/system/third/ace/ace.js',function(){last_last();});
$.getScript('https://cbs.wappsystem.com/dev/vm.js?v=20160108',function(){last_last();});
$.getScript('https://www.google.com/jsapi',function(){
google.load('visualization', '1', {'packages':['corechart'],callback:function(){last_last();} } );
});
$('head').append("<link rel='stylesheet' media='screen' href='https://cbs.wappsystem.com/system/third/handsontable.full.min.css'>");
$('head').append("<link rel='stylesheet' href='https://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/themes/redmond/jquery-ui.css'>");
}, 300);
}
//--------------------------------------------------------
var last_last=function(){
jsN++; if(jsN===7) $vm.load_demo();
}
//--------------------------------------------------------