Browse Source

added border to loading window

all-modes
Petr Balashov 8 years ago
parent
commit
b841175af2
  1. 13
      gui/loading.css
  2. 12
      gui/loading.js
  3. 4
      main.js

13
gui/loading.css

@ -1,5 +1,7 @@
body { body {
overflow: hidden !important; overflow: hidden !important;
border: solid 1px #ccc;
height: 300px;
} }
.text-center { .text-center {
@ -7,13 +9,8 @@ body {
} }
.loader-block { .loader-block {
/*
background-image: url('loading.gif');
background-repeat: no-repeat;
background-position: center;
*/
height: 240px; height: 240px;
width: 400px; width: 100%;
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
@ -23,5 +20,9 @@ body {
} }
.pulse-loader { .pulse-loader {
position: absolute;
top: 20px;
left: -100px;
margin: 80px 50px; margin: 80px 50px;
width: 400px !important;
} }

12
gui/loading.js

@ -22,7 +22,8 @@ function Iguana_activehandle(callback) {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText) AjaxOutputData = JSON.parse(AjaxOutputData.responseText)
//console.log(AjaxOutputData); //console.log(AjaxOutputData);
resolve(AjaxOutputData); resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) { })
.fail(function(xhr, textStatus, error) {
// handle request failures // handle request failures
console.log(xhr.statusText); console.log(xhr.statusText);
if ( xhr.readyState == 0 ) { if ( xhr.readyState == 0 ) {
@ -75,7 +76,8 @@ function GetAppConf() { // get iguana app conf
console.log('== App Conf Data OutPut =='); console.log('== App Conf Data OutPut ==');
console.log(_data); console.log(_data);
data = _data; data = _data;
}).fail(function(xhr, textStatus, error) { })
.fail(function(xhr, textStatus, error) {
// handle request failures // handle request failures
console.log(xhr.statusText); console.log(xhr.statusText);
if ( xhr.readyState == 0 ) { if ( xhr.readyState == 0 ) {
@ -98,7 +100,8 @@ function EDEX_DEXnotarychains() {
AjaxOutputData = JSON.parse(AjaxOutputData.responseText); AjaxOutputData = JSON.parse(AjaxOutputData.responseText);
//console.log(AjaxOutputData); //console.log(AjaxOutputData);
resolve(AjaxOutputData); resolve(AjaxOutputData);
}).fail(function(xhr, textStatus, error) { })
.fail(function(xhr, textStatus, error) {
// handle request failures // handle request failures
console.log(xhr.statusText); console.log(xhr.statusText);
if ( xhr.readyState == 0 ) { if ( xhr.readyState == 0 ) {
@ -159,7 +162,8 @@ function EDEX_DEXgetinfoAll(skip, minNotaries) {
window.createWindow('open'); window.createWindow('open');
window.hide(); window.hide();
} }
}).fail(function(xhr, textStatus, error) { })
.fail(function(xhr, textStatus, error) {
// handle request failures // handle request failures
console.log(xhr.statusText); console.log(xhr.statusText);
if ( xhr.readyState == 0 ) { if ( xhr.readyState == 0 ) {

4
main.js

@ -1,5 +1,5 @@
//main proc for EasyDEX GUI // main proc for EasyDEX GUI
//this app spawns iguana in background in nontech-mode // this app spawns iguana in background in nontech-mode
const electron = require('electron'), const electron = require('electron'),
app = electron.app, app = electron.app,

Loading…
Cancel
Save