]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Entropy types are clearly indicated in UI
authorIan Coleman <coleman.ian@gmail.com>
Thu, 10 Nov 2016 10:12:21 +0000 (21:12 +1100)
committerIan Coleman <coleman.ian@gmail.com>
Thu, 10 Nov 2016 10:12:21 +0000 (21:12 +1100)
src/index.html
tests.js

index fcc29d4dc304b61ff307cd784434eae7d3d1dd0b..7fc895fdeabcd2c9ce1393c856601c3c117e7f43 100644 (file)
@@ -97,7 +97,7 @@
                         <div class="entropy-container hidden">
                             <div class="form-group">
                                 <label for="entropy" class="col-sm-2 control-label">Entropy</label>
-                                <div class="col-sm-10">
+                                <div class="col-sm-6">
                                     <input id="entropy" class="entropy form-control" placeholder="Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards">
                                     <span class="help-block">
                                         <div class="text-danger">
                                         </div>
                                    </span>
                                 </div>
+                                <div class="col-sm-4">
+                                    <p>Valid entropy values include:</p>
+                                    <ul>
+                                        <li>Binary: [0-1] eg 101010011</li>
+                                        <li>Base 6: [0-5] eg 123434014</li>
+                                        <li>Dice: [1-6] eg 62535634</li>
+                                        <li>Base 10: [0-9] eg 90834528</li>
+                                        <li>Hex: [0-9A-F] eg 4187a8bfd9</li>
+                                        <li>Card: [A2-9TJQK][CDHS] eg AHQS9DTC</li>
+                                    </ul>
+                                </div>
                             </div>
                             <div class="entropy-feedback">
                                 <div class="form-group">
index fed627898774f7e63c073c18f5347549892303bb..f672cbd86ad374dc68b2044d15d3231305850cb4 100644 (file)
--- a/tests.js
+++ b/tests.js
@@ -2304,6 +2304,7 @@ page.open(url, function(status) {
         "dice",
         "base 10",
         "hexadecimal",
+        "cards",
     ];
     for (var i=0; i<options.length; i++) {
         var option = options[i];