mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(help) mv css to file
This commit is contained in:
parent
68757ec6fd
commit
a05870e053
3 changed files with 22 additions and 25 deletions
12
css/help.css
Normal file
12
css/help.css
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.help {
|
||||
white-space : normal;
|
||||
margin : 25px;
|
||||
}
|
||||
|
||||
.help li {
|
||||
list-style-type : disc;
|
||||
}
|
||||
|
||||
.help img {
|
||||
max-width : 100%
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>{{ title }}</title>
|
||||
|
||||
<link rel=stylesheet href=/join/css/reset.css:css/style.css:css/icons.css>
|
||||
<link rel=stylesheet href=/join/css/reset.css:css/style.css:css/icons.css:css/help.css>
|
||||
|
||||
<noscript>
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -17,23 +17,10 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
this.show = function() {
|
||||
Images.showLoad({top:true});
|
||||
Images.showLoad({
|
||||
top:true
|
||||
});
|
||||
|
||||
DOM.cssSet({
|
||||
id : 'help-css',
|
||||
inner : '#help {' +
|
||||
'white-space' + ': normal;' +
|
||||
'margin' + ': 25px;' +
|
||||
'}' +
|
||||
|
||||
'#help li {' +
|
||||
'list-style-type' + ': disc;' +
|
||||
'}' +
|
||||
'img {' +
|
||||
'max-width: 100%' +
|
||||
'}'
|
||||
});
|
||||
|
||||
DOM.ajax({
|
||||
url : '/HELP.md',
|
||||
success : function (data) {
|
||||
|
|
@ -41,19 +28,17 @@ var CloudCmd, Util, DOM;
|
|||
method : 'put',
|
||||
url : '/api/v1/markdown',
|
||||
data : data,
|
||||
success : function(pResult) {
|
||||
|
||||
success : function(result) {
|
||||
var div = DOM.anyload({
|
||||
name : 'div',
|
||||
id : 'help',
|
||||
inner : pResult.toString()
|
||||
name : 'div',
|
||||
className : 'help',
|
||||
inner : result
|
||||
});
|
||||
|
||||
Images.hideLoad();
|
||||
|
||||
CloudCmd.View.show(div);
|
||||
},
|
||||
|
||||
error: Images.showError
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue