Browse Source

Merge pull request #72 from pbca26/master

reduce repetitive code #1
master
Satinder Grewal 8 years ago
committed by GitHub
parent
commit
94c5a7b632
  1. 5
      assets/scripts/atomicexplorer.js
  2. 88
      assets/scripts/dashboard.js
  3. 15
      assets/scripts/dashboard/DashboardDEX.js
  4. 391
      assets/scripts/dashboard/DashboardEDEX.js
  5. 55
      assets/scripts/iguana_api.js
  6. 15
      assets/scripts/iguana_api/IguanaDEX.js
  7. 12
      assets/scripts/iguana_api/IguanaEDEX.js
  8. 61
      assets/scripts/iguana_api/IguanaJumblr.js
  9. 15
      assets/scripts/kmd_wallet/KMDAddress.js
  10. 5
      assets/scripts/kmd_wallet/KMDInit.js
  11. 10
      assets/scripts/kmd_wallet/KMDTransaction.js
  12. 10
      assets/scripts/kmd_wallet/KMDTransactionInfo.js
  13. 98
      assets/scripts/kmd_wallet_dashboard.js
  14. 206
      assets/scripts/sidebar.js
  15. 7
      assets/scripts/templates/nprogressBar.js
  16. 1
      index.html

5
assets/scripts/atomicexplorer.js

@ -17,10 +17,7 @@ var AtomicExplorer = function() {
$('#atomic_explorer_getcoinpeers_btn').click(function() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
console.log('button pushed in atomic explorer');

88
assets/scripts/dashboard.js

@ -354,10 +354,7 @@ var Dashboard = function() {
submitHandler: function(form) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -724,7 +721,7 @@ var Dashboard = function() {
coinlogo = 'SHARK';
coinname = 'SHARK';
break;
case 'BOTS':
case 'BOTS':
coinlogo = 'BOTS';
coinname = 'BOTS';
break;
@ -749,7 +746,7 @@ var Dashboard = function() {
coinname = 'SpaceMesh';
break;
case 'USD':
coinlogo = 'USD';
coinlogo = 'usd';
coinname = 'US Dollar';
break;
case 'RON':
@ -878,19 +875,20 @@ var Dashboard = function() {
break;
}
walletDivContent += '<!-- Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->' +
'<div class="list-group-item col-xlg-6 col-lg-12 wallet-widgets-info" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '">' +
'<div class="widget widget-shadow">' +
'<div class="widget-content text-center bg-white padding-20 edexcoin-logo" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-edexcoinmodecode="' + modecode + '" data-edexcoinname="' + coinname + '">' +
'<a class="avatar margin-bottom-5" href="javascript:void(0)" id="edexcoin-logo">' +
'<img class="img-responsive" src="assets/images/cryptologo/' + coinlogo + '.png" alt="' + coinname + '"/>' +
'<span class="badge up badge-' + modecolor + '" id="basfull" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + modetip + '">' + modecode + '</span>' +
'</a>' +
'<div class="coin-name">' + coinname + '</div>' +
'</div>' +
'</div>' +
'</div>' +
'<!-- End Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->';
walletDivContent +=
'<!-- Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->' +
'<div class="list-group-item col-xlg-6 col-lg-12 wallet-widgets-info" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '">' +
'<div class="widget widget-shadow">' +
'<div class="widget-content text-center bg-white padding-20 edexcoin-logo" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-edexcoinmodecode="' + modecode + '" data-edexcoinname="' + coinname + '">' +
'<a class="avatar margin-bottom-5" href="javascript:void(0)" id="edexcoin-logo">' +
'<img class="img-responsive" src="assets/images/cryptologo/' + coinlogo + '.png" alt="' + coinname + '"/>' +
'<span class="badge up badge-' + modecolor + '" id="basfull" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + modetip + '">' + modecode + '</span>' +
'</a>' +
'<div class="coin-name">' + coinname + '</div>' +
'</div>' +
'</div>' +
'</div>' +
'<!-- End Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->';
$('.wallet-widgets-row').html(walletDivContent);
$('.scrollbar-dynamic').scrollbar(); // Make sure widget-body has scrollbar for transactions history
@ -943,54 +941,7 @@ var Dashboard = function() {
$('#addcoin_mdl_full_mode').prop('disabled', false);
}
if (tmp_coin_val == 'SUPERNET' ||
tmp_coin_val == 'REVS' ||
tmp_coin_val == 'WIRELESS' ||
tmp_coin_val == 'DEX' ||
tmp_coin_val == 'PANGEA' ||
tmp_coin_val == 'JUMBLR' ||
tmp_coin_val == 'BET' ||
tmp_coin_val == 'CRYPTO' ||
tmp_coin_val == 'HODL' ||
tmp_coin_val == 'SHARK' ||
tmp_coin_val == 'BOTS' ||
tmp_coin_val == 'MGW' ||
tmp_coin_val == 'MVP' ||
tmp_coin_val == 'KV' ||
tmp_coin_val == 'CEAL' ||
tmp_coin_val == 'MESH' ||
tmp_coin_val == 'USD' ||
tmp_coin_val == 'RON' ||
tmp_coin_val == 'EUR' ||
tmp_coin_val == 'JPY' ||
tmp_coin_val == 'GBP' ||
tmp_coin_val == 'AUD' ||
tmp_coin_val == 'CAD' ||
tmp_coin_val == 'CHF' ||
tmp_coin_val == 'NZD' ||
tmp_coin_val == 'CNY' ||
tmp_coin_val == 'RUB' ||
tmp_coin_val == 'MXN' ||
tmp_coin_val == 'BRL' ||
tmp_coin_val == 'INR' ||
tmp_coin_val == 'HKD' ||
tmp_coin_val == 'TRY' ||
tmp_coin_val == 'ZAR' ||
tmp_coin_val == 'PLN' ||
tmp_coin_val == 'NOK' ||
tmp_coin_val == 'SEK' ||
tmp_coin_val == 'DKK' ||
tmp_coin_val == 'CZK' ||
tmp_coin_val == 'HUF' ||
tmp_coin_val == 'ILS' ||
tmp_coin_val == 'KRW' ||
tmp_coin_val == 'MYR' ||
tmp_coin_val == 'PHP' ||
tmp_coin_val == 'SGD' ||
tmp_coin_val == 'THB' ||
tmp_coin_val == 'BGN' ||
tmp_coin_val == 'IDR' ||
tmp_coin_val == 'HRK') {
if (checkAC(tmp_coin_val)) {
$('#addcoin_mdl_native_mode').prop('disabled', false);
$('#addcoin_mdl_basilisk_mode')
.prop('disabled', false)
@ -1246,7 +1197,8 @@ var Dashboard = function() {
//console.log('Get Rates (every 60 seconds)');
}
}, 60000);*/
}
},
handleWalletWidgets: handleWalletWidgets
};
}();

15
assets/scripts/dashboard/DashboardDEX.js

@ -7,10 +7,7 @@ function getDEXCoinBalance(coin) {
function getDEXGetBalance(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
return new Promise((resolve) => {
@ -84,10 +81,7 @@ function getDEXGetBalance(coin) {
function getDEXGetBalance_cache(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -172,10 +166,7 @@ function getDEXGetBalance_cache(coin) {
function getDEXGetBalance2(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

391
assets/scripts/dashboard/DashboardEDEX.js

@ -2,10 +2,7 @@ function EdexfillTxHistory(coin) {
$('#edexcoin_txhistory').data('panel-api').load();
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -67,383 +64,13 @@ function EdexfillTxHistory(coin) {
}
function refreshEDEXCoinWalletList() {
var walletDivContent = '',
AddColumnDiv = 0;
$.each([
'native',
'basilisk',
'full'
],function( index, value ) {
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'),
ajax_data = {
'userpass': tmpIguanaRPCAuth,
'agent': 'InstantDEX',
'method': 'allcoins'
};
$.ajax({
type: 'POST',
data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:' + config.iguanaPort,
success: function(data, textStatus, jqXHR) {
var AllcoinsDataOutput = JSON.parse(data);
$.each(AllcoinsDataOutput[value], function(index) {
var coinlogo = '',
coinname = '',
modecode = '',
modetip = '',
modecolor = '';
switch (value) {
case 'native':
modecode = 'Native';
modetip = 'Native';
modecolor = 'primary';
break;
case 'basilisk':
modecode = 'Basilisk';
modetip = 'Basilisk';
modecolor = 'info';
break;
case 'full':
modecode = 'Full';
modetip = 'Full';
modecolor = 'success';
break;
case 'virtual':
modecode = 'Virtual';
modetip = 'Virtual';
modecolor = 'danger';
break;
case 'notarychains':
modecode = 'Notarychains';
modetip = 'Notarychains';
modecolor = 'dark';
break;
}
switch (AllcoinsDataOutput[value][index]) {
case 'BTC':
coinlogo = 'bitcoin';
coinname = 'Bitcoin';
break;
case 'BTCD':
coinlogo = 'bitcoindark';
coinname = 'BitcoinDark';
break;
case 'LTC':
coinlogo = 'litecoin';
coinname = 'Litecoin';
break;
case 'VPN':
coinlogo = 'vpncoin';
coinname = 'VPNcoin';
break;
case 'SYS':
coinlogo = 'syscoin';
coinname = 'Syscoin';
break;
case 'ZEC':
coinlogo = 'zcash';
coinname = 'Zcash';
break;
case 'NMC':
coinlogo = 'namecoin';
coinname = 'Namecoin';
break;
case 'DEX':
coinlogo = 'dex';
coinname = 'DEX';
break;
case 'DOGE':
coinlogo = 'dogecoin';
coinname = 'Dogecoin';
break;
case 'DGB':
coinlogo = 'digibyte';
coinname = 'Digibyte';
break;
case 'MZC':
coinlogo = 'mazacoin';
coinname = 'Mazacoin';
break;
case 'UNO':
coinlogo = 'unobtanium';
coinname = 'Unobtanium';
break;
case 'ZET':
coinlogo = 'zetacoin';
coinname = 'Zetacoin';
break;
case 'KMD':
coinlogo = 'komodo';
coinname = 'Komodo';
break;
case 'BTM':
coinlogo = 'bitmark';
coinname = 'Bitmark';
break;
case 'CARB':
coinlogo = 'carboncoin';
coinname = 'Carboncoin';
break;
case 'ANC':
coinlogo = 'anoncoin';
coinname = 'AnonCoin';
break;
case 'FRK':
coinlogo = 'franko';
coinname = 'Franko';
break;
case 'SUPERNET':
coinlogo = 'SUPERNET';
coinname = 'SUPERNET';
break;
case 'REVS':
coinlogo = 'REVS';
coinname = 'REVS';
break;
case 'WIRELESS':
coinlogo = 'WIRELESS';
coinname = 'WIRELESS';
break;
case 'DEX':
coinlogo = 'DEX';
coinname = 'DEX';
break;
case 'PANGEA':
coinlogo = 'PANGEA';
coinname = 'PANGEA';
break;
case 'JUMBLR':
coinlogo = 'JUMBLR';
coinname = 'JUMBLR';
break;
case 'BET':
coinlogo = 'BET';
coinname = 'BET';
break;
case 'CRYPTO':
coinlogo = 'CRYPTO';
coinname = 'CRYPTO';
break;
case 'HODL':
coinlogo = 'HODL';
coinname = 'HODL';
break;
case 'SHARK':
coinlogo = 'SHARK';
coinname = 'SHARK';
break;
case 'BOTS':
coinlogo = 'BOTS';
coinname = 'BOTS';
break;
case 'MGW':
coinlogo = 'MGW';
coinname = 'MGW';
break;
case 'MVP':
coinlogo = 'MVP';
coinname = 'MVP';
break;
case 'KV':
coinlogo = 'KV';
coinname = 'KV';
break;
case 'CEAL':
coinlogo = 'CEAL';
coinname = 'CEAL';
break;
case 'MESH':
coinlogo = 'MESH';
coinname = 'MESH';
break;
case 'USD':
coinlogo = 'USD';
coinname = 'USD';
break;
case 'RON':
coinlogo = 'RON';
coinname = 'RON';
break;
case 'EUR':
coinlogo = 'EUR';
coinname = 'Euro';
break;
case 'JPY':
coinlogo = 'JPY';
coinname = 'Japanese Yen';
break;
case 'GBP':
coinlogo = 'GBP';
coinname = 'British Pound';
break;
case 'AUD':
coinlogo = 'AUD';
coinname = 'Australian Dollar';
break;
case 'CAD':
coinlogo = 'CAD';
coinname = 'Canadian Dollar';
break;
case 'CHF':
coinlogo = 'CHF';
coinname = 'Swiss Franc';
break;
case 'NZD':
coinlogo = 'NZD';
coinname = 'New Zealand Dollar';
break;
case 'CNY':
coinlogo = 'CNY';
coinname = 'Chinese Yuan';
break;
case 'RUB':
coinlogo = 'RUB';
coinname = 'Russian Ruble';
break;
case 'MXN':
coinlogo = 'MXN';
coinname = 'Mexican peso';
break;
case 'BRL':
coinlogo = 'BRL';
coinname = 'Brazilian Real';
break;
case 'INR':
coinlogo = 'INR';
coinname = 'Indian Rupee';
break;
case 'HKD':
coinlogo = 'HKD';
coinname = 'Hong Kong Dollar';
break;
case 'TRY':
coinlogo = 'TRY';
coinname = 'Turkish Lira';
break;
case 'ZAR':
coinlogo = 'ZAR';
coinname = 'South African Rand';
break;
case 'PLN':
coinlogo = 'PLN';
coinname = 'Polish Zloty';
break;
case 'NOK':
coinlogo = 'NOK';
coinname = 'Norwegian Krone';
break;
case 'SEK':
coinlogo = 'SEK';
coinname = 'Swedish Krona';
break;
case 'DKK':
coinlogo = 'DKK';
coinname = 'Danish Krone';
break;
case 'CZK':
coinlogo = 'CZK';
coinname = 'Czech Koruna';
break;
case 'HUF':
coinlogo = 'HUF';
coinname = 'Hungarian Forint';
break;
case 'ILS':
coinlogo = 'ILS';
coinname = 'Israeli Shekel';
break;
case 'KRW':
coinlogo = 'KRW';
coinname = 'Korean Won';
break;
case 'MYR':
coinlogo = 'MYR';
coinname = 'Malaysian Ringgit';
break;
case 'PHP':
coinlogo = 'PHP';
coinname = 'Philippine Peso';
break;
case 'SGD':
coinlogo = 'SGD';
coinname = 'Singapore Dollar';
break;
case 'THB':
coinlogo = 'THB';
coinname = 'Thai Baht';
break;
case 'BGN':
coinlogo = 'BGN';
coinname = 'Bulgarian Lev';
break;
case 'IDR':
coinlogo = 'IDR';
coinname = 'Indonesian Rupiah';
break;
case 'HRK':
coinlogo = 'HRK';
coinname = 'Croatian Kuna';
break;
}
walletDivContent +=
'<!-- Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->' +
'<div class="list-group-item col-xlg-6 col-lg-12 wallet-widgets-info" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '">' +
'<div class="widget widget-shadow">' +
'<div class="widget-content text-center bg-white padding-20">' +
'<a class="avatar margin-bottom-5 edexcoin-logo" href="javascript:void(0)" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-edexcoinmodecode="' + modecode + '" data-edexcoinname="' + coinname + '" id="edexcoin-logo">' +
'<img class="img-responsive" src="assets/images/cryptologo/' + coinlogo + '.png" alt="' + coinname + '"/>' +
'<span class="badge up badge-' + modecolor + '" id="basfull" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + modetip + '">' + modecode + '</span>' +
'</a>' +
'<div class="coin-name">' + coinname + '</div>' +
'</div>' +
'</div>' +
'</div>' +
'<!-- End Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->';
$('.wallet-widgets-row').html(walletDivContent);
//getCoinBalance(AllcoinsDataOutput[value][index]);
//getCoinBalance_altfn('KMD');
//getCoinBalance('KMD');
/*if ( modecode == 'Basilisk' ) {
$('span[data-edexcoincode="' + AllcoinsDataOutput[value][index] + '"][id="edexcoin-balance"]').parent().hide();
//getBasiliskCoinBalance(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.
edexCoinBtnAction();
});
},
error: function(xhr, textStatus, error) {
console.log('failed starting BitcoinDark.');
console.log(xhr.statusText);
if ( xhr.readyState == 0 ) {
Iguana_ServiceUnavailable();
}
console.log(textStatus);
console.log(error);
if (xhr.readyState == '0' ) {
toastr.error(_lang[defaultLang].TOASTR.IGUANA_CONN_ERR, _lang[defaultLang].TOASTR.ACCOUNT_NOTIFICATION);
}
}
});
});
Dashboard.handleWalletWidgets();
}
function EdexGetTxList(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -678,10 +305,7 @@ function EdexGetTxList(coin) {
function EdexGetTxList_cache(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -714,7 +338,7 @@ function EdexGetTxList_cache(coin) {
tmp_amount = '<span class="label label-dark">' + _lang[defaultLang].DASHBOARD.UNKNOWN + '</span>';
}
var tmp_addr = null
var tmp_addr = null;
if (!('paid' in result_data[index])) {
tmp_addr = '<i class="icon fa-bullseye"></i> <span class="label label-dark">' + _lang[defaultLang].DASHBOARD.ZADDR_NOT_LISTED + '!</span>';
}
@ -985,10 +609,7 @@ function clearEdexSendFieldData() {
function EdexListAllAddr(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

55
assets/scripts/iguana_api.js

@ -203,4 +203,59 @@ function Iguana_utxorawtx(data) {
resolve(result);
});
});
}
function checkAC(coinVal) {
if (coinVal == 'SUPERNET' ||
coinVal == 'REVS' ||
coinVal == 'WIRELESS' ||
coinVal == 'DEX' ||
coinVal == 'PANGEA' ||
coinVal == 'JUMBLR' ||
coinVal == 'BET' ||
coinVal == 'CRYPTO' ||
coinVal == 'HODL' ||
coinVal == 'SHARK' ||
coinVal == 'BOTS' ||
coinVal == 'MGW' ||
coinVal == 'MVP' ||
coinVal == 'KV' ||
coinVal == 'CEAL' ||
coinVal == 'MESH' ||
coinVal == 'USD' ||
coinVal == 'RON' ||
coinVal == 'EUR' ||
coinVal == 'JPY' ||
coinVal == 'GBP' ||
coinVal == 'AUD' ||
coinVal == 'CAD' ||
coinVal == 'CHF' ||
coinVal == 'NZD' ||
coinVal == 'CNY' ||
coinVal == 'RUB' ||
coinVal == 'MXN' ||
coinVal == 'BRL' ||
coinVal == 'INR' ||
coinVal == 'HKD' ||
coinVal == 'TRY' ||
coinVal == 'ZAR' ||
coinVal == 'PLN' ||
coinVal == 'NOK' ||
coinVal == 'SEK' ||
coinVal == 'DKK' ||
coinVal == 'CZK' ||
coinVal == 'HUF' ||
coinVal == 'ILS' ||
coinVal == 'KRW' ||
coinVal == 'MYR' ||
coinVal == 'PHP' ||
coinVal == 'SGD' ||
coinVal == 'THB' ||
coinVal == 'BGN' ||
coinVal == 'IDR' ||
coinVal == 'HRK') {
return true;
} else {
return false;
}
}

15
assets/scripts/iguana_api/IguanaDEX.js

@ -405,10 +405,7 @@ function Iguana_DEXsendrawtx(data) {
function EDEX_DEXlistunspent(coin, addr) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -448,10 +445,7 @@ function EDEX_DEXlistunspent(coin, addr) {
function EDEX_DEXnotarychains() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -490,10 +484,7 @@ function EDEX_DEXnotarychains() {
function EDEX_DEXgetinfoAll() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

12
assets/scripts/iguana_api/IguanaEDEX.js

@ -1,10 +1,7 @@
function EDEXlistunspent(coin, addr) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -133,10 +130,7 @@ function clearEdexSendFieldData() {
function EDEXMainAddr(coin) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -701,7 +695,7 @@ function EDEXgetaddrbyaccount(coin) {
'account': '*'
},
tmp_addr_label = '<span class="label label-default">' +
'<i class="icon fa-eye"></i> ' + _lang[defaultLang].IAPP.PUBLIC_SM +
'<i class="icon fa-eye"></i> ' + _lang[defaultLang].IAPI.PUBLIC_SM +
'</span>';
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode');

61
assets/scripts/iguana_api/IguanaJumblr.js

@ -1,42 +1,37 @@
function Generic_Iguana_Jumblr(ajax_data, resolve) {
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth');
ajax_data.userpass = tmpIguanaRPCAuth;
$.ajax({
data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
})
.done(function(data) {
resolve(data);
});
}
function Iguana_Jumblr_SetPassphrase(data) {
return new Promise((resolve) => {
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'),
ajax_data = {
'userpass': tmpIguanaRPCAuth,
'agent': 'jumblr',
'method': 'setpassphrase',
'passphrase': data.passphrase
};
var ajax_data = {
'agent': 'jumblr',
'method': 'setpassphrase',
'passphrase': data.passphrase
};
$.ajax({
data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
})
.done(function(data) {
resolve(data);
});
return new Promise((resolve) => {
Generic_Iguana_Jumblr(ajax_data, resolve);
});
}
function Iguana_Jumblr_Status() {
return new Promise((resolve) => {
var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'),
ajax_data = {
'userpass': tmpIguanaRPCAuth,
'agent': 'jumblr',
'method': 'status'
};
var ajax_data = {
'agent': 'jumblr',
'method': 'status'
};
$.ajax({
data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:' + config.iguanaPort,
type: 'POST',
dataType: 'json'
})
.done(function(data) {
resolve(data);
});
return new Promise((resolve) => {
Generic_Iguana_Jumblr(ajax_data, resolve);
});
}

15
assets/scripts/kmd_wallet/KMDAddress.js

@ -103,10 +103,7 @@ function KMDListaddrZ() {
function KMDListAddresses(pubpriv) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -173,10 +170,7 @@ function KMDListAddresses(pubpriv) {
function KMDGetNewAddresses(pubpriv) {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -239,10 +233,7 @@ function KMDGetNewAddresses(pubpriv) {
function KMDListAllAddr() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

5
assets/scripts/kmd_wallet/KMDInit.js

@ -11,10 +11,7 @@ function checkTimestamp(dateToCheck) {
function RunKMDInitFunctions() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

10
assets/scripts/kmd_wallet/KMDTransaction.js

@ -1,10 +1,7 @@
function KMDGetPublicTransactions() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -94,10 +91,7 @@ function KMDGetPublicTransactions() {
function KMDGetProtectedTransactions() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

10
assets/scripts/kmd_wallet/KMDTransactionInfo.js

@ -1,10 +1,7 @@
function KMDlistunspentT() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
@ -179,10 +176,7 @@ function KMDGetOPIDInfo(opid) {
function KMDListAllOPIDs() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();

98
assets/scripts/kmd_wallet_dashboard.js

@ -39,54 +39,7 @@ function getHeaderActionMenuButtonCoinCode() {
if ( extcoin == 'KMD') { action_menu_button_code = 'kmd'; };
if ( extcoin == 'ZEC') { action_menu_button_code = 'zec'; };
if (extcoin == 'SUPERNET' ||
extcoin == 'REVS' ||
extcoin == 'DEX' ||
extcoin == 'PANGEA' ||
extcoin == 'JUMBLR' ||
extcoin == 'BET' ||
extcoin == 'CRYPTO' ||
extcoin == 'HODL' ||
extcoin == 'SHARK' ||
extcoin == 'BOTS' ||
extcoin == 'MGW' ||
extcoin == 'MVP' ||
extcoin == 'WIRELESS' ||
extcoin == 'KV' ||
extcoin == 'CEAL' ||
extcoin == 'MESH' ||
extcoin == 'USD' ||
extcoin == 'RON' ||
extcoin == 'EUR' ||
extcoin == 'JPY' ||
extcoin == 'GBP' ||
extcoin == 'AUD' ||
extcoin == 'CAD' ||
extcoin == 'CHF' ||
extcoin == 'NZD' ||
extcoin == 'CNY' ||
extcoin == 'RUB' ||
extcoin == 'MXN' ||
extcoin == 'BRL' ||
extcoin == 'INR' ||
extcoin == 'HKD' ||
extcoin == 'TRY' ||
extcoin == 'ZAR' ||
extcoin == 'PLN' ||
extcoin == 'NOK' ||
extcoin == 'SEK' ||
extcoin == 'DKK' ||
extcoin == 'CZK' ||
extcoin == 'HUF' ||
extcoin == 'ILS' ||
extcoin == 'KRW' ||
extcoin == 'MYR' ||
extcoin == 'PHP' ||
extcoin == 'SGD' ||
extcoin == 'THB' ||
extcoin == 'BGN' ||
extcoin == 'IDR' ||
extcoin == 'HRK') { action_menu_button_code = 'acpax'; };
if (checkAC(extcoin)) { action_menu_button_code = 'acpax'; };
return action_menu_button_code;
}
@ -100,54 +53,7 @@ function getPassthruAgent() {
if ( extcoin == 'KMD') { passthru_agent = 'komodo'; };
if ( extcoin == 'ZEC') { passthru_agent = 'zcash'; };
if (extcoin == 'SUPERNET' ||
extcoin == 'REVS' ||
extcoin == 'DEX' ||
extcoin == 'PANGEA' ||
extcoin == 'JUMBLR' ||
extcoin == 'BET' ||
extcoin == 'CRYPTO' ||
extcoin == 'HODL' ||
extcoin == 'SHARK' ||
extcoin == 'BOTS' ||
extcoin == 'MGW' ||
extcoin == 'MVP' ||
extcoin == 'WIRELESS' ||
extcoin == 'KV' ||
extcoin == 'CEAL' ||
extcoin == 'MESH' ||
extcoin == 'USD' ||
extcoin == 'RON' ||
extcoin == 'EUR' ||
extcoin == 'JPY' ||
extcoin == 'GBP' ||
extcoin == 'AUD' ||
extcoin == 'CAD' ||
extcoin == 'CHF' ||
extcoin == 'NZD' ||
extcoin == 'CNY' ||
extcoin == 'RUB' ||
extcoin == 'MXN' ||
extcoin == 'BRL' ||
extcoin == 'INR' ||
extcoin == 'HKD' ||
extcoin == 'TRY' ||
extcoin == 'ZAR' ||
extcoin == 'PLN' ||
extcoin == 'NOK' ||
extcoin == 'SEK' ||
extcoin == 'DKK' ||
extcoin == 'CZK' ||
extcoin == 'HUF' ||
extcoin == 'ILS' ||
extcoin == 'KRW' ||
extcoin == 'MYR' ||
extcoin == 'PHP' ||
extcoin == 'SGD' ||
extcoin == 'THB' ||
extcoin == 'BGN' ||
extcoin == 'IDR' ||
extcoin == 'HRK') { passthru_agent = 'iguana'; };
if (checkAC(extcoin)) { passthru_agent = 'iguana'; };
return passthru_agent;
}

206
assets/scripts/sidebar.js

@ -209,10 +209,7 @@ $('#nav-komodo-wallet').on('click', function() {
$('#nav-zcash-wallet').on('click', function() {
NProgress.done(true);
NProgress.configure({
template: '<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>' +
'<div class="spinner" role="spinner">' +
'<div class="spinner-icon"></div>' +
'</div>'
template: templates.nprogressBar
});
NProgress.start();
$(
@ -433,249 +430,156 @@ function assetchain_pax_menu_actions(coin) {
CommonSidebarActionsSet02();
removeDashboardStyle();
function renderAssetGFX(imgSrcName, imgBgName, _coin) {
$('.header-easydex-section')
.html('<img src="assets/images/native/' + imgSrcName + '_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + _coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/' + imgBgName + '_transparent_header_bg.png")');
}
switch (coin) {
case 'SUPERNET':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'REVS':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
$('#easydex-header-div').css();
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'WIRELESS':
$('.header-easydex-section')
.html('<img src="assets/images/native/wireless_header_title_logo.png"> <span style="font-size: 35px; vertical-align:middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/wireless_transparent_header_bg.png")');
renderAssetGFX('wireless', 'wireless', coin);
break;
case 'PANGEA':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'DEX':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'JUMBLR':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
$('#easydex-header-div').css();
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'BET':
$('.header-easydex-section')
.html('<img src="assets/images/native/wireless_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/wireless_transparent_header_bg.png")');
renderAssetGFX('wireless', 'wireless', coin);
break;
case 'CRYPTO':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'HODL':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
$('#easydex-header-div').css();
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'SHARK':
$('.header-easydex-section')
.html('<img src="assets/images/native/wireless_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/wireless_transparent_header_bg.png")');
renderAssetGFX('wireless', 'wireless', coin);
break;
case 'BOTS':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'MGW':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
$('#easydex-header-div').css();
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'MVP':
$('.header-easydex-section').html('<img src="assets/images/native/mvp_header_title_logo.png">');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/mvp_transparent_header_bg.png")');
renderAssetGFX('mpv', 'mpv', coin);
break;
case 'KV':
$('.header-easydex-section')
.html('<img src="assets/images/native/supernet_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")');
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'CEAL':
$('.header-easydex-section')
.html('<img src="assets/images/native/ceal_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/ceal_transparent_header_bg.png")');
$('#easydex-header-div').css();
renderAssetGFX('ceal', 'ceal', coin);
break;
case 'MESH':
$('.header-easydex-section').html('<img src="assets/images/native/mesh_header_title_logo.png">');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/mesh_transparent_header_bg.png")');
renderAssetGFX('mesh', 'mesh', coin);
break;
case 'USD':
$('.header-easydex-section')
.html('<img src="assets/images/native/usd_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">US Dollar</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/usd_transparent_header_bg.png")');
renderAssetGFX('usd', 'usd', 'US Dollar');
break;
case 'RON':
$('.header-easydex-section')
.html('<img src="assets/images/native/ron_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Romanian Leu</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/ron_transparent_header_bg.png")');
renderAssetGFX('ron', 'ron', 'Romanian Leu');
break;
case 'EUR':
$('.header-easydex-section')
.html('<img src="assets/images/native/eur_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Euro</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/eur_transparent_header_bg.png")');
renderAssetGFX('eur', 'eur', 'Euro');
break;
case 'JPY':
$('.header-easydex-section')
.html('<img src="assets/images/native/jpy_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Japanese Yen</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/jpy_transparent_header_bg.png")');
renderAssetGFX('jpy', 'jpy', 'Japanese Yen');
break;
case 'GBP':
$('.header-easydex-section')
.html('<img src="assets/images/native/gbp_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">British Pound</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/gbp_transparent_header_bg.png")');
renderAssetGFX('gbp', 'gbp', 'British Pound');
break;
case 'AUD':
$('.header-easydex-section')
.html('<img src="assets/images/native/aud_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Australian Dollar</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/aud_transparent_header_bg.png")');
renderAssetGFX('aud', 'aud', 'Australian Dollar');
break;
case 'CAD':
$('.header-easydex-section')
.html('<img src="assets/images/native/cad_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Canadian Dollar</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/cad_transparent_header_bg.png")');
renderAssetGFX('cad', 'cad', 'Canadian Dollar');
break;
case 'CHF':
$('.header-easydex-section')
.html('<img src="assets/images/native/chf_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Swiss Franc</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/chf_transparent_header_bg.png")');
renderAssetGFX('chf', 'chf', 'Swiss Franc');
break;
case 'NZD':
$('.header-easydex-section')
.html('<img src="assets/images/native/nzd_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">New Zealand Dollar</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/nzd_transparent_header_bg.png")');
renderAssetGFX('nzd', 'nzd', 'New Zealand Dollar');
break;
case 'CNY':
$('.header-easydex-section')
.html('<img src="assets/images/native/cny_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Chinese Yuan</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/cny_transparent_header_bg.png")');
renderAssetGFX('cny', 'cny', 'Chinese Yuan');
break;
case 'RUB':
$('.header-easydex-section')
.html('<img src="assets/images/native/rub_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Russian Ruble</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/rub_transparent_header_bg.png")');
renderAssetGFX('rub', 'rub', 'Russian Ruble');
break;
case 'MXN':
$('.header-easydex-section')
.html('<img src="assets/images/native/mxn_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Mexican peso</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/mxn_transparent_header_bg.png")');
renderAssetGFX('mxn', 'mxn', 'Mexican Peso');
break;
case 'BRL':
$('.header-easydex-section')
.html('<img src="assets/images/native/brl_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Brazilian Real</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/brl_transparent_header_bg.png")');
renderAssetGFX('brl', 'brl', 'Brazilian Real');
break;
case 'INR':
$('.header-easydex-section')
.html('<img src="assets/images/native/inr_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Indian Rupee</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/inr_transparent_header_bg.png")');
renderAssetGFX('inr', 'inr', 'Indian Rupee');
break;
case 'HKD':
$('.header-easydex-section')
.html('<img src="assets/images/native/hkd_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Hong Kong Dollar</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/hkd_transparent_header_bg.png")');
renderAssetGFX('hkd', 'hkd', 'Hong Kong Dollar');
break;
case 'TRY':
$('.header-easydex-section')
.html('<img src="assets/images/native/try_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Turkish Lira</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/try_transparent_header_bg.png")');
renderAssetGFX('try', 'try', 'Turkish Lira');
break;
case 'ZAR':
$('.header-easydex-section')
.html('<img src="assets/images/native/zar_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">South African Rand</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/zar_transparent_header_bg.png")');
renderAssetGFX('zar', 'zar', 'South African Rand');
break;
case 'PLN':
$('.header-easydex-section')
.html('<img src="assets/images/native/pln_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Polish Zloty</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/pln_transparent_header_bg.png")');
renderAssetGFX('pln', 'pln', 'Polish Zloty');
break;
case 'NOK':
$('.header-easydex-section')
.html('<img src="assets/images/native/nok_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Norwegian Krone</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/nok_transparent_header_bg.png")');
renderAssetGFX('nok', 'nok', 'Norwegian Krone');
break;
case 'SEK':
$('.header-easydex-section')
.html('<img src="assets/images/native/sek_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Swedish Krona</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/sek_transparent_header_bg.png")');
renderAssetGFX('sek', 'sek', 'Swedish Krona');
break;
case 'DKK':
$('.header-easydex-section')
.html('<img src="assets/images/native/dkk_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Danish Krone</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/dkk_transparent_header_bg.png")');
renderAssetGFX('dkk', 'dkk', 'Danish Krone');
break;
case 'CZK':
$('.header-easydex-section')
.html('<img src="assets/images/native/czk_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Czech Koruna</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/czk_transparent_header_bg.png")');
renderAssetGFX('czk', 'czk', 'Czech Koruna');
break;
case 'HUF':
$('.header-easydex-section')
.html('<img src="assets/images/native/huf_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Hungarian Forint</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/huf_transparent_header_bg.png")');
renderAssetGFX('huf', 'huf', 'Hungarian Forint');
break;
case 'ILS':
$('.header-easydex-section')
.html('<img src="assets/images/native/ils_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Israeli Shekel</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/ils_transparent_header_bg.png")');
renderAssetGFX('ils', 'ils', 'Israeli Shekel');
break;
case 'KRW':
$('.header-easydex-section')
.html('<img src="assets/images/native/krw_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Korean Won</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/krw_transparent_header_bg.png")');
renderAssetGFX('krw', 'krw', 'Korean Won');
break;
case 'MYR':
$('.header-easydex-section')
.html('<img src="assets/images/native/myr_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Malaysian Ringgit</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/myr_transparent_header_bg.png")');
renderAssetGFX('myr', 'myr', 'Malaysian Ringgit');
break;
case 'PHP':
$('.header-easydex-section')
.html('<img src="assets/images/native/php_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Philippine Peso</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/php_transparent_header_bg.png")');
renderAssetGFX('php', 'php', 'Philippine Peso');
break;
case 'SGD':
$('.header-easydex-section')
.html('<img src="assets/images/native/sgd_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Singapore Dollar</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/sgd_transparent_header_bg.png")');
renderAssetGFX('sgd', 'sgd', 'Philippine Peso');
break;
case 'THB':
$('.header-easydex-section')
.html('<img src="assets/images/native/thb_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Thai Baht</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/thb_transparent_header_bg.png")');
renderAssetGFX('thb', 'thb', 'Thai Baht');
break;
case 'BGN':
$('.header-easydex-section')
.html('<img src="assets/images/native/bgn_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Bulgarian Lev</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/bgn_transparent_header_bg.png")');
renderAssetGFX('bgn', 'bgn', 'Bulgarian Lev');
break;
case 'IDR':
$('.header-easydex-section')
.html('<img src="assets/images/native/idr_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Indonesian Rupiah</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/idr_transparent_header_bg.png")');
renderAssetGFX('idr', 'idr', 'Indonesian Rupiah');
break;
case 'HRK':
$('.header-easydex-section')
.html('<img src="assets/images/native/hrk_header_title_logo.png"> <span style="font-size: 35px; vertical-align: middle">Croatian Kuna</span>');
$('#easydex-header-div').css('background-image', 'url("assets/images/bg/hrk_transparent_header_bg.png")');
renderAssetGFX('hrk', 'hrk', 'Croatian Kuna');
break;
default:
$('.header-easydex-section').html('<span style="font-size: 35px; vertical-align: middle">' + coin + '</span>');

7
assets/scripts/templates/nprogressBar.js

@ -0,0 +1,7 @@
templates.nprogressBar =
`
<div class="bar nprogress-bar-header nprogress-bar-info" role="bar"></div>
<div class="spinner" role="spinner">
<div class="spinner-icon"></div>
</div>
`;

1
index.html

@ -72,6 +72,7 @@
const templates = {};
</script>
<script src="assets/scripts/templates/addCoinOptions.js"></script>
<script src="assets/scripts/templates/nprogressBar.js"></script>
<script src="assets/scripts/templates/refreshBasiliskConnectionsModal.js"></script>
<script src="assets/scripts/templates/addCoinModal.js"></script>
<script src="assets/scripts/templates/ieFix.js"></script>

Loading…
Cancel
Save