forked from 0x2620/pandora
add embedPanel
This commit is contained in:
parent
da2c47bb58
commit
576d3cc291
1 changed files with 13 additions and 0 deletions
13
static/js/pandora/embedPanel.js
Normal file
13
static/js/pandora/embedPanel.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
pandora.ui.embedPanel = function() {
|
||||
var that = Ox.Element().html('Not implemented.');
|
||||
that.display = function() {
|
||||
// fixme: move animation into Ox.App
|
||||
var animate = $('.OxScreen').length == 0;
|
||||
Ox.Log('', 'ANIMATE?', animate)
|
||||
animate && pandora.$ui.body.css({opacity: 0});
|
||||
that.appendTo(pandora.$ui.body);
|
||||
animate && pandora.$ui.body.animate({opacity: 1}, 1000);
|
||||
return that;
|
||||
};
|
||||
return that;
|
||||
};
|
Loading…
Reference in a new issue