diff --git a/assets/images/jumblr_header_title_logo.png b/assets/images/jumblr_header_title_logo.png index 44ce1a7..1b6ad0e 100644 Binary files a/assets/images/jumblr_header_title_logo.png and b/assets/images/jumblr_header_title_logo.png differ diff --git a/assets/scripts/jumblr.js b/assets/scripts/jumblr.js index eeee318..8142b39 100644 --- a/assets/scripts/jumblr.js +++ b/assets/scripts/jumblr.js @@ -7,11 +7,13 @@ var Jumblr = function() { } else { Jumblr_DisplayAddresses(); Jumblr_DisplayStatus(); + Jumblr_ShowHideAlert(); } $('#jumblr_actions_header').click(function(){ Jumblr_DisplayAddresses(); Jumblr_DisplayStatus(); + Jumblr_ShowHideAlert() }) }; @@ -23,6 +25,17 @@ var Jumblr = function() { }; }(); +function Jumblr_ShowHideAlert() { + Jumblr_LookforNativeKomodo().then(function(result){ + //console.log(result) + if (result === 'isnative') { + $('#jumblr_no_native_kmd_alert').hide() + } else { + $('#jumblr_no_native_kmd_alert').show() + } + }) +} + function Jumblr_DisplayAddresses() { var jumblr_session_data = JSON.parse(JSON.parse(sessionStorage.getItem('IguanaActiveAccount'))); //console.log(jumblr_session_data); @@ -49,6 +62,42 @@ function Jumblr_DisplayStatus() { }) } +function Jumblr_LookforNativeKomodo() { + return new Promise((resolve) => { + var tmpIguanaRPCAuth = 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'), + ajax_data = { + 'userpass': tmpIguanaRPCAuth, + 'agent': 'InstantDEX', + 'method': 'allcoins' + }, + AjaxOutputData = IguanaAJAX('http://127.0.0.1:7778', ajax_data).done(function(data) { + AjaxOutputData = JSON.parse(AjaxOutputData.responseText); + if (AjaxOutputData['native'].length !== 0 ) { + $.each(AjaxOutputData.native, function( index, value ) { + //console.log(index) + //console.log(value) + if (value !== 'KMD') { + console.log('Native KMD not found') + resolve('notfound'); + } else { + console.log('Native KMD found') + resolve('isnative'); + } + }); + } else { + resolve('notnative'); + } + }).fail(function(xhr, textStatus, error) { + // handle request failures + console.log(xhr.statusText); + if ( xhr.readyState == 0 ) { + } + console.log(textStatus); + console.log(error); + }) + }); +} + jQuery(document).ready(function() { Jumblr.init(); }); \ No newline at end of file diff --git a/assets/scripts/sidebar.js b/assets/scripts/sidebar.js index d4f4746..c7ba15c 100644 --- a/assets/scripts/sidebar.js +++ b/assets/scripts/sidebar.js @@ -60,6 +60,7 @@ $('#nav-easydex').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').show(); + $('#section-jumblr').hide(); $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-about-iguana').hide(); @@ -102,7 +103,7 @@ $('#nav-jumblr').on('click', function() { $('#nav-iguana-wallet-settings').removeClass( 'active open' ).addClass( '' ); $('#nav-about-iguana').removeClass( 'active open' ).addClass( '' ); $('.page-header-bordered h1').text('Jumblr') - $(".header-easydex-section").text('Secure, Native and Decentralised Coin Shuffling'); + //$(".header-easydex-section").text('Secure, Native and Decentralised Coin Shuffling'); $.each($('.nav-top-menu'), function(index, value) { $(value).removeClass('active'); }); $(this.parentElement).addClass('active') removeKMDWalletStyle(); @@ -356,7 +357,7 @@ function removeZECWalletStyle() { } function applyJumblrStyle() { - $('.header-easydex-section').html(''); + $('.header-easydex-section').html('
Secure, Native and Decentralised Coin Shuffling'); $('.page-title').hide(); $('#easydex-header-div').css('background-image', 'url("assets/images/bg/jumblr_transparent_header_bg.png")'); $('#easydex-header-div').css('background-repeat', 'no-repeat'); diff --git a/index.html b/index.html index 4e8eb3d..e06eb90 100755 --- a/index.html +++ b/index.html @@ -1237,7 +1237,29 @@
+ +
+ +
+ +
+ +
+
+

This screen does not auto refresh. You will need to hit Refresh button on top right corner of the screen to get latest Jumblr data.

+
+

Jumblr Addresses