@ -248,152 +248,12 @@ var Dashboard = function() {
walletDivContent += '</div>' ;
walletDivContent += '<!-- End Wallet Widget ' + AllcoinsDataOutput [ value ] [ index ] + ' -->' ;
/ * w a l l e t D i v C o n t e n t + = ' < ! - - B e g i n ' + A l l c o i n s D a t a O u t p u t [ v a l u e ] [ i n d e x ] + ' w a l l e t w i d g e t - - > ' ;
walletDivContent += '<div class="col-md-6 col-xs-12 masonry-item">' ;
walletDivContent += '<div class="widget widget-shadow">' ;
walletDivContent += '<div class="widget-header wallet-widget-header padding-15 clearfix">' ;
walletDivContent += '<div class="row no-space">' ;
walletDivContent += '<div class="col-xs-7">' ;
walletDivContent += '<a class="avatar avatar-lg pull-left margin-right-20 img-bordered" href="javascript:void(0)" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" data-modecode="' + modecode + '" id="currency-logo" onclick="SwitchBasicliskFull($(this).data())">' ;
walletDivContent += '<img src="assets/images/cryptologo/' + coinlogo + '.png" alt="">' ;
walletDivContent += '<span class="badge up badge-' + modecolor + '" id="basfull" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + modetip + '">' + modecode + '</span>' ;
walletDivContent += '</a>' ;
walletDivContent += '<div>' ;
walletDivContent += '<div class="font-size-20 hidden-xs" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-name">' + coinname + '</div>' ;
walletDivContent += '<div class="form-material hidden-md hidden-xs">' ; * /
/ * w a l l e t D i v C o n t e n t + = ' < s e l e c t c l a s s = " f o r m - c o n t r o l f o n t - s i z e - 1 2 " d a t a - c u r r e n c y = " ' + A l l c o i n s D a t a O u t p u t [ v a l u e ] [ i n d e x ] + ' " i d = " c u r r e n c y - a d d r " s t y l e = " w i d t h : 2 3 5 p x ; " > ' ;
walletDivContent += '</select>' ; * /
/ * w a l l e t D i v C o n t e n t + = ' < d i v c l a s s = " f o n t - s i z e - 1 2 " d a t a - c u r r e n c y = " ' + A l l c o i n s D a t a O u t p u t [ v a l u e ] [ i n d e x ] + ' " i d = " c u r r e n c y - a d d r " > < / d i v > ' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="font-size-12 hidden-xs"></div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="col-xs-5">' ;
walletDivContent += '<div class="row no-space text-center">' ;
walletDivContent += '<div class="col-md-6 col-xs-12">' ;
walletDivContent += '<div class="counter" data-toggle="tooltip" data-placement="top" data-original-title="Balance">' ;
walletDivContent += '<div class="counter-icon"><i class="icon">' + AllcoinsDataOutput [ value ] [ index ] + '</i></div>' ;
walletDivContent += '<span class="counter-number" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-balance">0</span>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ; * /
/ * w a l l e t D i v C o n t e n t + = ' < d i v c l a s s = " c o l - m d - 4 c o l - x s - 6 " > ' ;
walletDivContent += '<div class="counter" data-toggle="tooltip" data-placement="top" data-original-title="Unconfirmed">' ;
walletDivContent += '<div class="counter-icon"><i class="icon fa-spinner"></i></div>' ;
walletDivContent += '<span class="counter-number" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-unconfirmed">0</span>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ; * /
/ * w a l l e t D i v C o n t e n t + = ' < d i v c l a s s = " c o l - m d - 6 h i d d e n - x s h i d d e n - s m " > ' ;
walletDivContent += '<div class="counter" data-toggle="tooltip" data-placement="top" data-original-title="No. of Transactions">' ;
walletDivContent += '<div class="counter-icon"><i class="icon fa-book"></i></div>' ;
walletDivContent += '<span class="counter-number" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-nooftransactions">0</span>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="widget-content history-body hidden-sm hidden-xs">' ;
walletDivContent += '<div class="height-200 scrollbar-dynamic" id="tblscroll">' ;
walletDivContent += '<div data-role="container">' ;
walletDivContent += '<div data-role="content">' ;
walletDivContent += '<table class="table font-size-12" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-tbl">' ;
walletDivContent += '<tbody>' ;
walletDivContent += '</tbody>' ;
walletDivContent += '</table>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="widget-footer text-center">' ;
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: 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 data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="additional-progress-bars">' ;
walletDivContent += '<div class="progress progress-sm">' ;
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: 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: 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><!-- END additional-progress-bars -->' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="btn-group btn-group-justified">' ;
walletDivContent += '<div class="btn-group" role="group">' ;
walletDivContent += '<button type="button" class="btn btn-xs bg-blue-grey-200 grey-800 waves-effect waves-light" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-send" onclick="sendCurrency($(this).data())" data-target="#SendCoinModelStep1" data-toggle="modal">' ;
walletDivContent += '<i class="icon wb-upload" aria-hidden="true"></i>' ;
walletDivContent += '<br>' ;
walletDivContent += '<span class="text-uppercase hidden-xs">Send</span>' ;
walletDivContent += '</button>' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="btn-group" role="group">' ;
walletDivContent += '<button type="button" class="btn btn-xs bg-blue-grey-100 grey-800 waves-effect waves-light" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-receive" onclick="ReceiveCurrency($(this).data())" data-target="#ReceiveCoinModel" data-toggle="modal">' ;
walletDivContent += '<i class="icon wb-download " aria-hidden="true"></i>' ;
walletDivContent += '<br>' ;
walletDivContent += '<span class="text-uppercase hidden-xs">Receive</span>' ;
walletDivContent += '</button>' ;
walletDivContent += '</div>' ;
walletDivContent += '<div class="btn-group" role="group">' ;
walletDivContent += '<button type="button" class="btn btn-xs bg-blue-grey-300 grey-800 waves-effect waves-light" data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '" id="currency-trade">' ;
walletDivContent += '<i class="icon wb-graph-up" aria-hidden="true"></i>' ;
walletDivContent += '<br>' ;
walletDivContent += '<span class="text-uppercase hidden-xs">Trade</span>' ;
walletDivContent += '</button>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '</div>' ;
walletDivContent += '<!-- End' + AllcoinsDataOutput [ value ] [ index ] + 'wallet widget -->' ; * /
$ ( '.wallet-widgets-row' ) . html ( walletDivContent ) ;
getCoinBalance ( AllcoinsDataOutput [ value ] [ index ] ) ;
$ ( '.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);
edexCoinBtnAction ( ) ;
//console.log('http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?coin=' + AllcoinsDataOutput[value][index] + '&account=*');
//List coin addresses as drop down menu
/ * v a r g e t a d d r l i s t = { " a g e n t " : " S u p e r N E T " , " m e t h o d " : " a c t i v e h a n d l e " } ;
$ . ajax ( {
type : 'POST' ,
data : JSON . stringify ( getaddrlist ) ,
url : 'http://127.0.0.1:7778' ,
//dataType: 'text',
success : function ( data , textStatus , jqXHR ) {
var addrlistData = JSON . parse ( data ) ;
//console.log('== Address List Data OutPut ==');
//console.log(addrlistData);
$ ( 'div[data-currency="' + AllcoinsDataOutput [ value ] [ index ] + '"][id="currency-addr"]' ) . text ( addrlistData [ AllcoinsDataOutput [ value ] [ index ] ] )
//console.log(data);
//console.log(data[0]);
} ,
error : function ( xhr , textStatus , error ) {
console . log ( 'failed getting Coin History.' ) ;
console . log ( xhr . statusText ) ;
if ( xhr . readyState == 0 ) {
Iguana_ServiceUnavailable ( ) ;
}
console . log ( textStatus ) ;
console . log ( error ) ;
}
} ) ; * /
} ) ;
} ,
error : function ( xhr , textStatus , error ) {