|
|
@ -117,16 +117,16 @@ var Dashboard = function() { |
|
|
|
walletDivContent += '<div class="row no-space ">'; |
|
|
|
walletDivContent += '<div data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-progressbars" style="display: none;">'; |
|
|
|
walletDivContent += '<div class="progress progress-sm">'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-info progress-bar-striped active" style="width: 89.02%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-bundles">Bundles <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-bundles-percent">89.02%</span></div>'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-info progress-bar-striped active" style="width: 0%; font-size: 80%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-bundles">Bundles <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-bundles-percent">0%</span></div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '<div class="progress progress-sm">'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-warning progress-bar-striped active" style="width: 27%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-utxo">utxo <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-utxo-percent">27%</span></div>'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-warning progress-bar-striped active" style="width: 0%; font-size: 80%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-utxo">utxo <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-utxo-percent">0%</span></div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '<div class="progress progress-sm">'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-danger progress-bar-striped active" style="width: 43%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-balances">Balances <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-balances-percent">43%</span></div>'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-danger progress-bar-striped active" style="width: 0%; font-size: 80%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-balances">Balances <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-balances-percent">0%</span></div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '<div class="progress progress-sm">'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-success progress-bar-striped active" style="width: 76%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-validated">Validated <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-validated-percent">76%</span></div>'; |
|
|
|
walletDivContent += '<div class="progress-bar progress-bar-success progress-bar-striped active" style="width: 0%; font-size: 80%;" role="progressbar" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-validated">Validated <span data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-validated-percent">0%</span></div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
@ -540,7 +540,7 @@ function ShowCoinProgressBar(coin) { |
|
|
|
console.log(coin+' is less than 99% complete.'); |
|
|
|
$('div[data-currency="'+coin+'"][id="currency-progressbars"]').show(); |
|
|
|
$('div[data-currency="'+coin+'"][id="currency-bundles"]').width(parseFloat(CoinInfoData.bundles).toFixed(2)+'%'); |
|
|
|
$('span[data-currency="'+coin+'"][id="currency-bundles-percent"]').text(parseFloat(CoinInfoData.bundles).toFixed(2)+'%'); |
|
|
|
$('span[data-currency="'+coin+'"][id="currency-bundles-percent"]').text(parseFloat(CoinInfoData.bundles).toFixed(2)+'% - ('+CoinInfoData.blocks+'/'+CoinInfoData.longestchain+')'); |
|
|
|
$('div[data-currency="'+coin+'"][id="currency-utxo"]').width(parseFloat(CoinInfoData.utxo).toFixed(2)+'%'); |
|
|
|
$('span[data-currency="'+coin+'"][id="currency-utxo-percent"]').text(parseFloat(CoinInfoData.utxo).toFixed(2)+'%'); |
|
|
|
$('div[data-currency="'+coin+'"][id="currency-balances"]').width(parseFloat(CoinInfoData.balances).toFixed(2)+'%'); |
|
|
|