diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2015-08-16 19:31:35 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2015-08-16 19:31:35 +1000 |
commit | 55a9e51a1be52211cf25aa1878e6118c16874d9a (patch) | |
tree | b0e4130692daa56bb102ef0ea7b5c93156961152 /src | |
parent | e3a9508cc0bcd22cde34036e4d4524e9fa8c731d (diff) | |
download | BIP39-55a9e51a1be52211cf25aa1878e6118c16874d9a.tar.gz BIP39-55a9e51a1be52211cf25aa1878e6118c16874d9a.tar.zst BIP39-55a9e51a1be52211cf25aa1878e6118c16874d9a.zip |
Wallet tabs removed, added text to BIP32 tab
Diffstat (limited to 'src')
-rw-r--r-- | src/index.html | 63 | ||||
-rw-r--r-- | src/js/index.js | 3 |
2 files changed, 25 insertions, 41 deletions
diff --git a/src/index.html b/src/index.html index 8ad93c2..426e7a6 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -35,6 +35,11 @@ | |||
35 | border-bottom-left-radius: 20px 20px; | 35 | border-bottom-left-radius: 20px 20px; |
36 | border-bottom-right-radius: 20px 20px; | 36 | border-bottom-right-radius: 20px 20px; |
37 | } | 37 | } |
38 | .no-border { | ||
39 | border: 0; | ||
40 | box-shadow: inset 0 1px 1px rgba(0,0,0,.0); | ||
41 | -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.0); | ||
42 | } | ||
38 | </style> | 43 | </style> |
39 | </head> | 44 | </head> |
40 | <body> | 45 | <body> |
@@ -98,13 +103,7 @@ | |||
98 | <div class="col-md-12"> | 103 | <div class="col-md-12"> |
99 | <h2>Derivation Path</h2> | 104 | <h2>Derivation Path</h2> |
100 | <ul class="derivation-type nav nav-tabs" role="tablist"> | 105 | <ul class="derivation-type nav nav-tabs" role="tablist"> |
101 | <li id="hive-tab" class="active"> | 106 | <li id="bip44-tab" class="active"> |
102 | <a href="#hive" role="tab" data-toggle="tab">Hive Wallet</a> | ||
103 | </li> | ||
104 | <li id="mycelium-tab"> | ||
105 | <a href="#mycelium" role="tab" data-toggle="tab">Mycelium Wallet</a> | ||
106 | </li> | ||
107 | <li id="bip44-tab"> | ||
108 | <a href="#bip44" role="tab" data-toggle="tab">BIP44</a> | 107 | <a href="#bip44" role="tab" data-toggle="tab">BIP44</a> |
109 | </li> | 108 | </li> |
110 | <li id="bip32-tab"> | 109 | <li id="bip32-tab"> |
@@ -112,37 +111,7 @@ | |||
112 | </li> | 111 | </li> |
113 | </ul> | 112 | </ul> |
114 | <div class="derivation-type tab-content"> | 113 | <div class="derivation-type tab-content"> |
115 | <div id="hive" class="tab-pane active"> | 114 | <div id="bip44" class="tab-pane active"> |
116 | <form class="form-horizontal" role="form"> | ||
117 | <br> | ||
118 | <div class="col-sm-2"></div> | ||
119 | <div class="col-sm-10"> | ||
120 | <p>For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a></p> | ||
121 | </div> | ||
122 | <div class="form-group"> | ||
123 | <label for="hive-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | ||
124 | <div class="col-sm-10"> | ||
125 | <input id="hive-path" type="text" class="path form-control" value="m/0'/0" readonly="readonly"> | ||
126 | </div> | ||
127 | </div> | ||
128 | </form> | ||
129 | </div> | ||
130 | <div id="mycelium" class="tab-pane"> | ||
131 | <form class="form-horizontal" role="form"> | ||
132 | <br> | ||
133 | <div class="col-sm-2"></div> | ||
134 | <div class="col-sm-10"> | ||
135 | <p>For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a></p> | ||
136 | </div> | ||
137 | <div class="form-group"> | ||
138 | <label for="mycelium-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | ||
139 | <div class="col-sm-10"> | ||
140 | <input id="mycelium-path" type="text" class="path form-control" value="m/44'/0'/0'/0" readonly="readonly"> | ||
141 | </div> | ||
142 | </div> | ||
143 | </form> | ||
144 | </div> | ||
145 | <div id="bip44" class="tab-pane"> | ||
146 | <form class="form-horizontal" role="form"> | 115 | <form class="form-horizontal" role="form"> |
147 | <br> | 116 | <br> |
148 | <div class="col-sm-2"></div> | 117 | <div class="col-sm-2"></div> |
@@ -202,6 +171,24 @@ | |||
202 | <input id="bip32-path" type="text" class="path form-control" value="m/0"> | 171 | <input id="bip32-path" type="text" class="path form-control" value="m/0"> |
203 | </div> | 172 | </div> |
204 | </div> | 173 | </div> |
174 | <div class="form-group"> | ||
175 | <label class="col-sm-2 control-label">Hive Wallet</label> | ||
176 | <div class="col-sm-10"> | ||
177 | <p class="form-control no-border"> | ||
178 | Use path <code>m/0'/0</code>. | ||
179 | For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a> | ||
180 | </p> | ||
181 | </div> | ||
182 | </div> | ||
183 | <div class="form-group"> | ||
184 | <label for="mycelium-path" class="col-sm-2 control-label">Mycelium Wallet</label> | ||
185 | <div class="col-sm-10"> | ||
186 | <p class="form-control no-border"> | ||
187 | Use path <code>m/44'/0'/0'/0</code>. | ||
188 | For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a> | ||
189 | </p> | ||
190 | </div> | ||
191 | </div> | ||
205 | </form> | 192 | </form> |
206 | </div> | 193 | </div> |
207 | </div> | 194 | </div> |
diff --git a/src/js/index.js b/src/js/index.js index c8ab284..866ad24 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -40,7 +40,6 @@ | |||
40 | DOM.indexToggle = $(".index-toggle"); | 40 | DOM.indexToggle = $(".index-toggle"); |
41 | DOM.addressToggle = $(".address-toggle"); | 41 | DOM.addressToggle = $(".address-toggle"); |
42 | DOM.privateKeyToggle = $(".private-key-toggle"); | 42 | DOM.privateKeyToggle = $(".private-key-toggle"); |
43 | DOM.myceliumPath = $("#mycelium-path"); | ||
44 | 43 | ||
45 | var derivationPath = $(".tab-pane.active .path").val(); | 44 | var derivationPath = $(".tab-pane.active .path").val(); |
46 | 45 | ||
@@ -401,7 +400,6 @@ | |||
401 | onSelect: function() { | 400 | onSelect: function() { |
402 | network = bitcoin.networks.bitcoin; | 401 | network = bitcoin.networks.bitcoin; |
403 | DOM.bip44coin.val(0); | 402 | DOM.bip44coin.val(0); |
404 | DOM.myceliumPath.val("m/44'/0'/0'/0"); | ||
405 | }, | 403 | }, |
406 | }, | 404 | }, |
407 | { | 405 | { |
@@ -409,7 +407,6 @@ | |||
409 | onSelect: function() { | 407 | onSelect: function() { |
410 | network = bitcoin.networks.testnet; | 408 | network = bitcoin.networks.testnet; |
411 | DOM.bip44coin.val(1); | 409 | DOM.bip44coin.val(1); |
412 | DOM.myceliumPath.val("m/44'/1'/0'/0"); | ||
413 | }, | 410 | }, |
414 | }, | 411 | }, |
415 | { | 412 | { |