mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
56 lines
1.5 KiB
JavaScript
56 lines
1.5 KiB
JavaScript
var CloudCmd, Util, DOM;
|
|
(function(CloudCmd, Util, DOM){
|
|
'use strict';
|
|
|
|
CloudCmd.Help = HelpProto;
|
|
|
|
function HelpProto(CallBack){
|
|
var Key = CloudCmd.Key,
|
|
Images = DOM.Images,
|
|
RESTful = DOM.RESTful,
|
|
Help = this;
|
|
|
|
function init() {
|
|
Images.showLoad({
|
|
top:true
|
|
});
|
|
|
|
Util.loadOnLoad([
|
|
CloudCmd.View,
|
|
Help.show,
|
|
]);
|
|
}
|
|
|
|
this.show = function() {
|
|
Images.showLoad({
|
|
top:true
|
|
});
|
|
|
|
DOM.ajax({
|
|
url : '/HELP.md',
|
|
success : function (data) {
|
|
RESTful.markdown(data, function(result) {
|
|
var div = DOM.anyload({
|
|
name : 'div',
|
|
className : 'help',
|
|
inner : result
|
|
});
|
|
|
|
Images.hideLoad();
|
|
|
|
CloudCmd.View.show(div);
|
|
});
|
|
},
|
|
|
|
error : Images.showError
|
|
});
|
|
};
|
|
|
|
this.hide = function() {
|
|
CloudCmd.View.hide();
|
|
};
|
|
|
|
init();
|
|
}
|
|
|
|
})(CloudCmd, Util, DOM);
|