diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2016-11-10 21:12:21 +1100 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2016-11-10 21:12:21 +1100 |
commit | 439f0e252bb28e1b3a86935f48bff8cf87875494 (patch) | |
tree | 78852da3e670d4adc51af12d206e053960a214ff | |
parent | 2dd6e8a969a61c01758bf8cd260b0ad9d696b86c (diff) | |
download | BIP39-439f0e252bb28e1b3a86935f48bff8cf87875494.tar.gz BIP39-439f0e252bb28e1b3a86935f48bff8cf87875494.tar.zst BIP39-439f0e252bb28e1b3a86935f48bff8cf87875494.zip |
Entropy types are clearly indicated in UI
-rw-r--r-- | src/index.html | 13 | ||||
-rw-r--r-- | tests.js | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/index.html b/src/index.html index fcc29d4..7fc895f 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -97,7 +97,7 @@ | |||
97 | <div class="entropy-container hidden"> | 97 | <div class="entropy-container hidden"> |
98 | <div class="form-group"> | 98 | <div class="form-group"> |
99 | <label for="entropy" class="col-sm-2 control-label">Entropy</label> | 99 | <label for="entropy" class="col-sm-2 control-label">Entropy</label> |
100 | <div class="col-sm-10"> | 100 | <div class="col-sm-6"> |
101 | <input id="entropy" class="entropy form-control" placeholder="Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards"> | 101 | <input id="entropy" class="entropy form-control" placeholder="Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards"> |
102 | <span class="help-block"> | 102 | <span class="help-block"> |
103 | <div class="text-danger"> | 103 | <div class="text-danger"> |
@@ -107,6 +107,17 @@ | |||
107 | </div> | 107 | </div> |
108 | </span> | 108 | </span> |
109 | </div> | 109 | </div> |
110 | <div class="col-sm-4"> | ||
111 | <p>Valid entropy values include:</p> | ||
112 | <ul> | ||
113 | <li>Binary: [0-1] eg 101010011</li> | ||
114 | <li>Base 6: [0-5] eg 123434014</li> | ||
115 | <li>Dice: [1-6] eg 62535634</li> | ||
116 | <li>Base 10: [0-9] eg 90834528</li> | ||
117 | <li>Hex: [0-9A-F] eg 4187a8bfd9</li> | ||
118 | <li>Card: [A2-9TJQK][CDHS] eg AHQS9DTC</li> | ||
119 | </ul> | ||
120 | </div> | ||
110 | </div> | 121 | </div> |
111 | <div class="entropy-feedback"> | 122 | <div class="entropy-feedback"> |
112 | <div class="form-group"> | 123 | <div class="form-group"> |
@@ -2304,6 +2304,7 @@ page.open(url, function(status) { | |||
2304 | "dice", | 2304 | "dice", |
2305 | "base 10", | 2305 | "base 10", |
2306 | "hexadecimal", | 2306 | "hexadecimal", |
2307 | "cards", | ||
2307 | ]; | 2308 | ]; |
2308 | for (var i=0; i<options.length; i++) { | 2309 | for (var i=0; i<options.length; i++) { |
2309 | var option = options[i]; | 2310 | var option = options[i]; |