+ indicators for future use

! check for error in syncing
- consoloe.log line
This commit is contained in:
Taegus
2018-12-31 09:51:43 +01:00
parent b70e0405ad
commit ab0a7356d2
4 changed files with 60 additions and 23 deletions

View File

@@ -0,0 +1,35 @@
.led-red {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #940;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #600 0 -1px 9px, #F00 0 2px 12px;
}
.led-yellow {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #A90;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #660 0 -1px 9px, #DD0 0 2px 12px;
}
.led-green {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #690;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #460 0 -1px 9px, #7D0 0 2px 12px;
}
.led-blue {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #4AB;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #006 0 -1px 9px, #06F 0 2px 14px;
}

View File

@@ -10,6 +10,7 @@
<link rel="stylesheet" href="./assets/styles/iziToast.min.css"> <link rel="stylesheet" href="./assets/styles/iziToast.min.css">
<link rel="stylesheet" href="./assets/styles/transactions.css"> <link rel="stylesheet" href="./assets/styles/transactions.css">
<link rel="stylesheet" href="./assets/styles/please-wait.css"> <link rel="stylesheet" href="./assets/styles/please-wait.css">
<link rel="stylesheet" href="./assets/styles/indicators.css">
<link rel="stylesheet" href="./assets/styles/all.min.css"> <link rel="stylesheet" href="./assets/styles/all.min.css">
<link rel="stylesheet" href="./assets/styles/spinner.css"> <link rel="stylesheet" href="./assets/styles/spinner.css">
<link rel="stylesheet" href="./assets/styles/buttons.css"> <link rel="stylesheet" href="./assets/styles/buttons.css">

View File

@@ -55,7 +55,6 @@ class MainGUI {
$("#btnGeneralConfirmYes").click(function() { $("#btnGeneralConfirmYes").click(function() {
$('#dlgGeneralConfirm').iziModal('close'); $('#dlgGeneralConfirm').iziModal('close');
console.log(true);
callback(true); callback(true);
}); });

View File

@@ -52,6 +52,7 @@ function StartSyncProcess() {
nodeSyncInterval = setInterval(function() nodeSyncInterval = setInterval(function()
{ {
web3Local.eth.getBlock("latest", function(error, localBlock) { web3Local.eth.getBlock("latest", function(error, localBlock) {
if (!error) {
if (localBlock.number > 0) { if (localBlock.number > 0) {
if (!EthoTransactions.getIsSyncing()) { if (!EthoTransactions.getIsSyncing()) {
SyncProgress.animate(1); SyncProgress.animate(1);
@@ -74,6 +75,7 @@ function StartSyncProcess() {
$(document).trigger("onSyncComplete"); $(document).trigger("onSyncComplete");
} }
} }
}
}); });
}, 10000); }, 10000);
} }