From bddd5d9f958b14522a5380931fa10ad84ac862b6 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Tue, 29 May 2018 08:47:23 +1000 Subject: [PATCH] Add BIP84 unavailable indicator to UI --- src/index.html | 136 ++++++++++++++++++++++++++---------------------- src/js/index.js | 6 +++ 2 files changed, 79 insertions(+), 63 deletions(-) diff --git a/src/index.html b/src/index.html index 916ec81..ea667ee 100644 --- a/src/index.html +++ b/src/index.html @@ -506,79 +506,89 @@

-
-
-

- For more info see the - BIP84 spec. -

-
-
- -
- + -
- +
+
- +

+ For more info see the + BIP84 spec. +

-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
- -
-

The account extended keys can be used for importing to most BIP84 compatible wallets.

+
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+

The account extended keys can be used for importing to most BIP84 compatible wallets.

+
-
-
- -
-

The BIP32 derivation path and extended keys are the basis for the derived addresses.

+
+ +
+ +
-
-
- -
- +
+ +
+ +
+
+
+ +
+

The BIP32 derivation path and extended keys are the basis for the derived addresses.

+
+
+
+ +
+ +
diff --git a/src/js/index.js b/src/js/index.js index afa743d..6cff8c4 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -77,6 +77,8 @@ DOM.bip49accountXprv = $("#bip49 .account-xprv"); DOM.bip49accountXpub = $("#bip49 .account-xpub"); DOM.bip49change = $("#bip49 .change"); + DOM.bip84unavailable = $("#bip84 .unavailable"); + DOM.bip84available = $("#bip84 .available"); DOM.bip84path = $("#bip84-path"); DOM.bip84purpose = $("#bip84 .purpose"); DOM.bip84coin = $("#bip84 .coin"); @@ -1415,6 +1417,8 @@ function showSegwitAvailable() { DOM.bip49unavailable.addClass("hidden"); DOM.bip49available.removeClass("hidden"); + DOM.bip84unavailable.addClass("hidden"); + DOM.bip84available.removeClass("hidden"); DOM.bip141unavailable.addClass("hidden"); DOM.bip141available.removeClass("hidden"); } @@ -1422,6 +1426,8 @@ function showSegwitUnavailable() { DOM.bip49available.addClass("hidden"); DOM.bip49unavailable.removeClass("hidden"); + DOM.bip84available.addClass("hidden"); + DOM.bip84unavailable.removeClass("hidden"); DOM.bip141available.addClass("hidden"); DOM.bip141unavailable.removeClass("hidden"); } -- 2.41.0