diff options
author | iancoleman <coleman.ian@gmail.com> | 2014-10-13 10:45:13 +1100 |
---|---|---|
committer | iancoleman <coleman.ian@gmail.com> | 2014-10-13 10:45:13 +1100 |
commit | 64ed10ff75b1be2d2dc47e0aea44b42e7e304af2 (patch) | |
tree | 6d2736ae97df0a3573db5815783dc8a9c88b07ba /src | |
parent | d6cedc9405e5f5751c8635f59ed3ff6876460776 (diff) | |
parent | 5f231c99519e3de57f9a84f6807ecf7d4975d728 (diff) | |
download | BIP39-64ed10ff75b1be2d2dc47e0aea44b42e7e304af2.tar.gz BIP39-64ed10ff75b1be2d2dc47e0aea44b42e7e304af2.tar.zst BIP39-64ed10ff75b1be2d2dc47e0aea44b42e7e304af2.zip |
Merge pull request #3 from robjohnson189/coin_selection
Coin selection
Diffstat (limited to 'src')
-rw-r--r-- | src/index.html | 11 | ||||
-rw-r--r-- | src/js/index.js | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/index.html b/src/index.html index 837c735..5ff997b 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -205,6 +205,17 @@ | |||
205 | <div class="col-md-12"> | 205 | <div class="col-md-12"> |
206 | <h2>Derived Addresses</h2> | 206 | <h2>Derived Addresses</h2> |
207 | <p>Note these addreses are derived from the <strong>BIP32 Extended Key</strong></p> | 207 | <p>Note these addreses are derived from the <strong>BIP32 Extended Key</strong></p> |
208 | <div class="form-group"> | ||
209 | <label for="network-address-type" class="col-sm-2 control-label">Coin</label> | ||
210 | <div class="col-sm-10"> | ||
211 | <select id="network-address-type" class="network form-control"> | ||
212 | <option value="bitcoin">Bitcoin</option> | ||
213 | <option value="bitcoin-testnet">Bitcoin Testnet</option> | ||
214 | <option value="litecoin">Litecoin</option> | ||
215 | <option value="dogecoin">Dogecoin</option> | ||
216 | </select> | ||
217 | </div> | ||
218 | </div> | ||
208 | <table class="table table-striped"> | 219 | <table class="table table-striped"> |
209 | <thead> | 220 | <thead> |
210 | <th> | 221 | <th> |
diff --git a/src/js/index.js b/src/js/index.js index 09bcdd9..c610d29 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -16,6 +16,7 @@ | |||
16 | DOM.network = $(".network"); | 16 | DOM.network = $(".network"); |
17 | DOM.phraseNetwork = $("#network-phrase"); | 17 | DOM.phraseNetwork = $("#network-phrase"); |
18 | DOM.bip44Network = $("#network-bip44"); | 18 | DOM.bip44Network = $("#network-bip44"); |
19 | DOM.addressNetwork = $("#network-address-type"); | ||
19 | DOM.phrase = $(".phrase"); | 20 | DOM.phrase = $(".phrase"); |
20 | DOM.passphrase = $(".passphrase"); | 21 | DOM.passphrase = $(".passphrase"); |
21 | DOM.generate = $(".generate"); | 22 | DOM.generate = $(".generate"); |
@@ -89,10 +90,13 @@ | |||
89 | } | 90 | } |
90 | else if (n == "dogecoin") { | 91 | else if (n == "dogecoin") { |
91 | network = Bitcoin.networks.dogecoin; | 92 | network = Bitcoin.networks.dogecoin; |
92 | disableBip44Tab(); | 93 | //disableBip44Tab(); |
93 | } | 94 | } |
94 | DOM.phraseNetwork.val(n); | 95 | DOM.phraseNetwork.val(n); |
95 | DOM.bip44Network.val(n); | 96 | DOM.bip44Network.val(n); |
97 | if(e.target != DOM.addressNetwork.dom){ | ||
98 | DOM.addressNetwork.val(n); | ||
99 | } | ||
96 | delayedPhraseChanged(); | 100 | delayedPhraseChanged(); |
97 | } | 101 | } |
98 | 102 | ||