From 470b9e4c879a8adf3d2aa7ce83e8b79a25c34323 Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 12 Jan 2016 13:07:46 +0530 Subject: [PATCH] add closedScreen --- static/js/closedScreen.js | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 static/js/closedScreen.js diff --git a/static/js/closedScreen.js b/static/js/closedScreen.js new file mode 100644 index 0000000..ed349d5 --- /dev/null +++ b/static/js/closedScreen.js @@ -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; + +}; \ No newline at end of file