feature(help) mv css to file

This commit is contained in:
coderaiser 2014-03-12 08:16:53 -04:00
parent 68757ec6fd
commit a05870e053
3 changed files with 22 additions and 25 deletions

12
css/help.css Normal file
View file

@ -0,0 +1,12 @@
.help {
white-space : normal;
margin : 25px;
}
.help li {
list-style-type : disc;
}
.help img {
max-width : 100%
}

View file

@ -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>

View file

@ -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
}
});
},