add closedScreen

This commit is contained in:
rlx 2016-01-12 13:07:46 +05:30
parent cf6d6acc5f
commit 470b9e4c87
1 changed files with 41 additions and 0 deletions

41
static/js/closedScreen.js Normal file
View File

@ -0,0 +1,41 @@
'use strict';
oml.ui.closedScreen = function() {
var that = Ox.Element()
.attr({id: 'closedScreen'})
.css({
position: 'absolute',
left: 0,
top: 0,
right: 0,
bottom: 0,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
zIndex: 1000
});
if (oml.isRelaunching) {
Ox.Element()
.css({
position: 'absolute',
left: 0,
top: 0,
right: 0,
bottom: 0,
width: 128,
height: 16,
padding: '8px 0',
borderRadius: 8,
margin: 'auto',
background: 'rgba(255, 255, 255, 0.9)',
fontSize: 13,
color: 'rgb(0, 0, 0)',
textAlign: 'center'
})
.text(Ox._('Relaunching...'))
.appendTo(that);
}
return that;
};