diff --git a/assets/images/cryptologo/namecoin.png b/assets/images/cryptologo/namecoin.png new file mode 100644 index 0000000..b0f1d2d Binary files /dev/null and b/assets/images/cryptologo/namecoin.png differ diff --git a/assets/images/cryptologo/syscoin.png b/assets/images/cryptologo/syscoin.png new file mode 100644 index 0000000..d0a4f66 Binary files /dev/null and b/assets/images/cryptologo/syscoin.png differ diff --git a/assets/images/cryptologo/vpncoin.png b/assets/images/cryptologo/vpncoin.png new file mode 100644 index 0000000..04d93f0 Binary files /dev/null and b/assets/images/cryptologo/vpncoin.png differ diff --git a/assets/images/cryptologo/zcash.png b/assets/images/cryptologo/zcash.png new file mode 100644 index 0000000..d2c5fb9 Binary files /dev/null and b/assets/images/cryptologo/zcash.png differ diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js index 8727658..e75cee5 100644 --- a/assets/scripts/dashboard.js +++ b/assets/scripts/dashboard.js @@ -19,131 +19,161 @@ var Dashboard = function() { var walletDivContent = ''; - $.ajax({ - type: 'GET', - url: 'http://127.0.0.1:7778/api/InstantDEX/allcoins', - dataType: 'text', - success: function(data, textStatus, jqXHR) { - var AllcoinsDataOutput = JSON.parse(data); - //console.log('== Data OutPut =='); - //console.log(AllcoinsDataOutput.basilisk); - - $.each(AllcoinsDataOutput.basilisk, function(index) { - - var coinlogo = ''; - var coinname = ''; - - if ( AllcoinsDataOutput.basilisk[index] == 'BTC' ) { - coinlogo = 'bitcoin'; - coinname = 'Bitcoin'; - } - if ( AllcoinsDataOutput.basilisk[index] == 'BTCD' ) { - coinlogo = 'bitcoindark'; - coinname = 'BitcoinDark'; - } - if ( AllcoinsDataOutput.basilisk[index] == 'LTC' ) { - coinlogo = 'litecoin'; - coinname = 'Litecoin'; - } - - //console.log(AllcoinsDataOutput.basilisk[index]); - walletDivContent += ''; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += ''; - walletDivContent += ''; - walletDivContent += 'B'; - walletDivContent += ''; - walletDivContent += '
'; - walletDivContent += ''; - walletDivContent += ''; - walletDivContent += ''; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
' + AllcoinsDataOutput.basilisk[index] + '
'; - walletDivContent += '6.584'; + $.each([ 'basilisk', 'full', 'virtual' ], function( index, value ) { + + $.ajax({ + type: 'GET', + url: 'http://127.0.0.1:7778/api/InstantDEX/allcoins', + dataType: 'text', + success: function(data, textStatus, jqXHR) { + var AllcoinsDataOutput = JSON.parse(data); + //console.log('== Data OutPut =='); + //console.log(value); + //console.log(AllcoinsDataOutput[value]); + + $.each(AllcoinsDataOutput[value], function(index) { + + var coinlogo = ''; + var coinname = ''; + var modecode = ''; + var modetip = ''; + var modecolor = ''; + + if ( value == 'basilisk' ) { modecode = 'B'; modetip = 'Basilisk'; modecolor = 'info'; } + if ( value == 'full' ) { modecode = 'F'; modetip = 'Full'; modecolor = 'success'; } + if ( value == 'virtual' ) { modecode = 'V'; modetip = 'Virtual'; modecolor = 'danger'; } + + if ( AllcoinsDataOutput[value][index] == 'BTC' ) { coinlogo = 'bitcoin'; coinname = 'Bitcoin'; } + if ( AllcoinsDataOutput[value][index] == 'BTCD' ) { coinlogo = 'bitcoindark'; coinname = 'BitcoinDark'; } + if ( AllcoinsDataOutput[value][index] == 'LTC' ) { coinlogo = 'litecoin'; coinname = 'Litecoin'; } + if ( AllcoinsDataOutput[value][index] == 'VPN' ) { coinlogo = 'vpncoin'; coinname = 'VPNcoin'; } + if ( AllcoinsDataOutput[value][index] == 'SYS' ) { coinlogo = 'syscoin'; coinname = 'Syscoin'; } + if ( AllcoinsDataOutput[value][index] == 'ZEC' ) { coinlogo = 'zcash'; coinname = 'Zcash'; } + if ( AllcoinsDataOutput[value][index] == 'NMC' ) { coinlogo = 'namecoin'; coinname = 'Namecoin'; } + + + //console.log(AllcoinsDataOutput[value][index]); + walletDivContent += ''; + walletDivContent += '
'; + walletDivContent += '
'; + walletDivContent += '
'; + walletDivContent += '
'; + walletDivContent += '
'; + walletDivContent += ''; + walletDivContent += ''; + walletDivContent += '' + modecode + ''; + walletDivContent += ''; + walletDivContent += '
'; + walletDivContent += ''; + walletDivContent += ''; + walletDivContent += ''; walletDivContent += '
'; walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += '3'; - walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += ''; walletDivContent += '
'; - walletDivContent += '
'; - walletDivContent += ''; - walletDivContent += ''; - - $('#wallet-widgets').html(walletDivContent); - $('.scrollbar-dynamic').scrollbar(); //Make sure widget-body has scrollbar for transactions history - $('[data-toggle="tooltip"]').tooltip(); //Make sure tooltips are working for wallet widgets and anywhere else in wallet. - //console.log(walletDivContent); - - //console.log('http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?coin=' + AllcoinsDataOutput.basilisk[index] + '&account=*'); - //$('select[data-currency="' + AllcoinsDataOutput.basilisk[index] + '"]').empty(); - $.getJSON( 'http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?coin=' + AllcoinsDataOutput.basilisk[index] + '&account=*', function( data ) { - var CoinAddrList = ''; - //console.log(data.result); - $.each(data.result, function(coin_index){ - //console.log(coin_index); - //console.log(data.result[index]); - //console.log(AllcoinsDataOutput.basilisk[index]); - CoinAddrList = ''; - - //console.log(CoinAddrList); - // Inject the whole content string into our existing HTML table - $('select[data-currency="' + AllcoinsDataOutput.basilisk[index] + '"]').append(CoinAddrList); + walletDivContent += ''; + + $('#wallet-widgets').html(walletDivContent); + $('.scrollbar-dynamic').scrollbar(); //Make sure widget-body has scrollbar for transactions history + $('[data-toggle="tooltip"]').tooltip(); //Make sure tooltips are working for wallet widgets and anywhere else in wallet. + //console.log(walletDivContent); + + //console.log('http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?coin=' + AllcoinsDataOutput[value][index] + '&account=*'); + //$('select[data-currency="' + AllcoinsDataOutput[value][index] + '"]').empty(); + //Get list of address per coin and pupulate that to wallet widget + $.getJSON( 'http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?coin=' + AllcoinsDataOutput[value][index] + '&account=*', function( data ) { + //var CoinAddrList = ''; + //console.log(data.result); + $.each(data.result, function(coin_index){ + //console.log(coin_index); + //console.log(data.result[index]); + //console.log(AllcoinsDataOutput[value][index]); + CoinAddrList = ''; + + //console.log(CoinAddrList); + // Inject the whole content string into our existing HTML table + $('select[data-currency="' + AllcoinsDataOutput[value][index] + '"]').append(CoinAddrList); + + }); + //console.log(data); + //console.log(data[0]);*/ + }); + var historyvalues = {"timeout":20000,"agent":"basilisk","method":"history","vals":{"coin":"LTC"}}; + + //Get coin history and pupulate balance and other info to wallet widget + $.ajax({ + type: 'POST', + data: historyvalues, + url: 'http://127.0.0.1:7778/api/basilisk/history', + dataType: 'text', + success: function(data, textStatus, jqXHR) { + var CoinHistoryData = JSON.parse(data); + console.log('== Data OutPut =='); + console.log(CoinHistoryData); + }, + error: function(xhr, textStatus, error) { + console.log('failed getting Coin History.'); + console.log(xhr.statusText); + console.log(textStatus); + console.log(error); + } }); - //console.log(data); - //console.log(data[0]);*/ + }); - }); - }, - error: function(xhr, textStatus, error) { - console.log('failed starting BitcoinDark.'); - console.log(xhr.statusText); - console.log(textStatus); - console.log(error); - //swal("Oops...", "Something went wrong!", "error"); - if (xhr.readyState == '0' ) { - toastr.error("Unable to connect to Iguana", "Account Notification") + }, + error: function(xhr, textStatus, error) { + console.log('failed starting BitcoinDark.'); + console.log(xhr.statusText); + console.log(textStatus); + console.log(error); + //swal("Oops...", "Something went wrong!", "error"); + if (xhr.readyState == '0' ) { + toastr.error("Unable to connect to Iguana", "Account Notification") + } } - } + }); }); } diff --git a/index.html b/index.html index 99b5ddf..d0a1287 100755 --- a/index.html +++ b/index.html @@ -35,7 +35,7 @@ - + @@ -263,21 +263,21 @@
-
+
-
+

EasyDEX

Page content goes here

-
+

About Iguana

Page content goes here