From 16f2c55723ff418bea65b7a2c8615bf5be286c23 Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 12 Jan 2016 13:08:02 +0530 Subject: [PATCH] add importScreen --- static/js/importScreen.js | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 static/js/importScreen.js diff --git a/static/js/importScreen.js b/static/js/importScreen.js new file mode 100644 index 0000000..59f4273 --- /dev/null +++ b/static/js/importScreen.js @@ -0,0 +1,47 @@ +'use strict'; + +oml.ui.importScreen = function() { + + var that = Ox.Element() + .attr({id: 'importScreen'}) + .css({ + position: 'absolute', + left: 0, + top: 0, + right: 0, + bottom: 0, + backgroundColor: 'rgba(0, 0, 0, 0.5)', + zIndex: 1000 + }) + .on({ + click: function() { + that.remove(); + }, + dragleave: function() { + that.remove(); + } + }); + + 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._('Import Books')) + .appendTo(that); + + return that; + +}; \ No newline at end of file