]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Wallet tabs removed, added text to BIP32 tab
authorIan Coleman <coleman.ian@gmail.com>
Sun, 16 Aug 2015 09:31:35 +0000 (19:31 +1000)
committerIan Coleman <coleman.ian@gmail.com>
Sun, 16 Aug 2015 09:31:35 +0000 (19:31 +1000)
src/index.html
src/js/index.js

index 8ad93c20f998ca8e6d5177ef75b40dd1924dee7d..426e7a6d0561e2bcab329680037a3ea31d7e495e 100644 (file)
                 border-bottom-left-radius: 20px 20px;
                 border-bottom-right-radius: 20px 20px;
             }
+            .no-border {
+                border: 0;
+                box-shadow: inset 0 1px 1px rgba(0,0,0,.0);
+                -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.0);
+            }
         </style>
     </head>
     <body>
                 <div class="col-md-12">
                     <h2>Derivation Path</h2>
                     <ul class="derivation-type nav nav-tabs" role="tablist">
-                        <li id="hive-tab" class="active">
-                            <a href="#hive" role="tab" data-toggle="tab">Hive Wallet</a>
-                        </li>
-                        <li id="mycelium-tab">
-                            <a href="#mycelium" role="tab" data-toggle="tab">Mycelium Wallet</a>
-                        </li>
-                        <li id="bip44-tab">
+                        <li id="bip44-tab" class="active">
                             <a href="#bip44" role="tab" data-toggle="tab">BIP44</a>
                         </li>
                         <li id="bip32-tab">
                         </li>
                     </ul>
                     <div class="derivation-type tab-content">
-                        <div id="hive" class="tab-pane active">
-                            <form class="form-horizontal" role="form">
-                                <br>
-                                <div class="col-sm-2"></div>
-                                <div class="col-sm-10">
-                                    <p>For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a></p>
-                                </div>
-                                <div class="form-group">
-                                    <label for="hive-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
-                                    <div class="col-sm-10">
-                                        <input id="hive-path" type="text" class="path form-control" value="m/0'/0" readonly="readonly">
-                                    </div>
-                                </div>
-                            </form>
-                        </div>
-                        <div id="mycelium" class="tab-pane">
-                            <form class="form-horizontal" role="form">
-                                <br>
-                                <div class="col-sm-2"></div>
-                                <div class="col-sm-10">
-                                    <p>For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a></p>
-                                </div>
-                                <div class="form-group">
-                                    <label for="mycelium-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
-                                    <div class="col-sm-10">
-                                        <input id="mycelium-path" type="text" class="path form-control" value="m/44'/0'/0'/0" readonly="readonly">
-                                    </div>
-                                </div>
-                            </form>
-                        </div>
-                        <div id="bip44" class="tab-pane">
+                        <div id="bip44" class="tab-pane active">
                             <form class="form-horizontal" role="form">
                                 <br>
                                 <div class="col-sm-2"></div>
                                         <input id="bip32-path" type="text" class="path form-control" value="m/0">
                                     </div>
                                 </div>
+                                <div class="form-group">
+                                    <label class="col-sm-2 control-label">Hive Wallet</label>
+                                    <div class="col-sm-10">
+                                        <p class="form-control no-border">
+                                        Use path <code>m/0'/0</code>.
+                                        For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a>
+                                        </p>
+                                    </div>
+                                </div>
+                                <div class="form-group">
+                                    <label for="mycelium-path" class="col-sm-2 control-label">Mycelium Wallet</label>
+                                    <div class="col-sm-10">
+                                        <p class="form-control no-border">
+                                        Use path <code>m/44'/0'/0'/0</code>.
+                                        For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a>
+                                        </p>
+                                    </div>
+                                </div>
                             </form>
                         </div>
                     </div>
index c8ab28467195b71d7fd2e36c6015635e6c341094..866ad2460c3378d203749024368c8346f8193af4 100644 (file)
@@ -40,7 +40,6 @@
     DOM.indexToggle = $(".index-toggle");
     DOM.addressToggle = $(".address-toggle");
     DOM.privateKeyToggle = $(".private-key-toggle");
-    DOM.myceliumPath = $("#mycelium-path");
 
     var derivationPath = $(".tab-pane.active .path").val();
 
             onSelect: function() {
                 network = bitcoin.networks.bitcoin;
                 DOM.bip44coin.val(0);
-                DOM.myceliumPath.val("m/44'/0'/0'/0");
             },
         },
         {
             onSelect: function() {
                 network = bitcoin.networks.testnet;
                 DOM.bip44coin.val(1);
-                DOM.myceliumPath.val("m/44'/1'/0'/0");
             },
         },
         {