mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(edward) add
This commit is contained in:
parent
d66b159793
commit
3388c3dfcc
2 changed files with 4 additions and 18 deletions
|
|
@ -653,7 +653,7 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, Zip, MenuIO, Format;
|
|||
*/
|
||||
msg = DOM.load({
|
||||
name : 'div',
|
||||
className : 'msg',
|
||||
className : 'edward-msg',
|
||||
parent : Element,
|
||||
inner : text,
|
||||
func : alert
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ var join, Util, DOM;
|
|||
}
|
||||
|
||||
function loadFiles(callback) {
|
||||
var dir = '/modules/ace-builds/src-noconflict/',
|
||||
var css = '/css/edward.css',
|
||||
dir = '/modules/ace-builds/src-noconflict/',
|
||||
url = join([
|
||||
'theme-tomorrow_night_blue',
|
||||
'ext-language_tools',
|
||||
|
|
@ -32,24 +33,9 @@ var join, Util, DOM;
|
|||
}));
|
||||
|
||||
DOM.loadRemote('ace', function() {
|
||||
DOM.load.js(url, function() {
|
||||
DOM.load.parallel([url, css], function() {
|
||||
exec(callback);
|
||||
});
|
||||
|
||||
DOM.load.style({
|
||||
id : 'msg-css',
|
||||
inner : '#js-view .msg {' +
|
||||
'z-index' + ': 1;' +
|
||||
'background-color' + ': #7285B7;' +
|
||||
'color' + ': #D1F1A9;' +
|
||||
'position' + ': fixed;' +
|
||||
'left' + ': 40%;' +
|
||||
'top' + ': 25px;' +
|
||||
'padding' + ': 5px;' +
|
||||
'opacity' + ': 0.9;' +
|
||||
'transition' + ': ease 0.5s;' +
|
||||
'}'
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue