aboutsummaryrefslogtreecommitdiff
path: root/bip39-standalone.html
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-12-15 11:51:24 +1100
committerIan Coleman <coleman.ian@gmail.com>2016-12-15 11:51:24 +1100
commit52da415f0385a6a89070498d14259aed980f989b (patch)
tree3636c46782edaa09fe962bef6079c7109052cbdd /bip39-standalone.html
parent8a93952c1ed5d7f6f9e496a2f81f684fa6ef9c79 (diff)
downloadBIP39-52da415f0385a6a89070498d14259aed980f989b.tar.gz
BIP39-52da415f0385a6a89070498d14259aed980f989b.tar.zst
BIP39-52da415f0385a6a89070498d14259aed980f989b.zip
Warnings and QR changes compiled into standalone.
Diffstat (limited to 'bip39-standalone.html')
-rw-r--r--bip39-standalone.html55
1 files changed, 44 insertions, 11 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 0fd48c4..0f7d7d0 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -96,8 +96,15 @@
96 .qr-image { 96 .qr-image {
97 margin: 5px; 97 margin: 5px;
98 } 98 }
99 .qr-hint { 99 .qr-hint,
100 .qr-warning {
100 padding: 2px; 101 padding: 2px;
102 max-width: 150px;
103 }
104 .more-info {
105 cursor: help;
106 border-bottom: 1px dashed #000;
107 text-decoration: none;
101 } 108 }
102 </style> 109 </style>
103 </head> 110 </head>
@@ -169,7 +176,7 @@
169 <div class="row"> 176 <div class="row">
170 <label class="col-sm-3 control-label" data-translate>Word Count</label> 177 <label class="col-sm-3 control-label" data-translate>Word Count</label>
171 <div class="word-count col-sm-3 form-control-static"></div> 178 <div class="word-count col-sm-3 form-control-static"></div>
172 <label class="col-sm-3 control-label" data-translate>Total Bits</label> 179 <label class="col-sm-3 control-label" data-translate><span class="more-info" data-translate-title title="Total bits of entropy may be less than indicated if any entropy event uses a weak source.">Total Bits</span></label>
173 <div class="bits col-sm-3 form-control-static"></div> 180 <div class="bits col-sm-3 form-control-static"></div>
174 </div> 181 </div>
175 <label class="col-sm-3 control-label" data-translate>Filtered Entropy</label> 182 <label class="col-sm-3 control-label" data-translate>Filtered Entropy</label>
@@ -526,6 +533,12 @@
526 <p> 533 <p>
527 <a href="https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target="_blank" data-translate>You are not a good source of entropy.</a> 534 <a href="https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target="_blank" data-translate>You are not a good source of entropy.</a>
528 </p> 535 </p>
536 <h3 data-translate>License</h3>
537 <p>
538 <span data-translate-html>Please refer to <a href="https://github.com/iancoleman/bip39/blob/master/LICENSE" target="_blank">the software license</a> for more detail.
539 </span>
540 </p>
541 <p data-translate>The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.</p>
529 </div> 542 </div>
530 </div> 543 </div>
531 544
@@ -614,9 +627,12 @@
614 </div> 627 </div>
615 628
616 <div class="qr-container hidden"> 629 <div class="qr-container hidden">
617 <div class="qr-hint bg-primary" data-translate>Click field to hide QR</div> 630 <div class="qr-hint bg-primary hidden" data-translate>Click field to hide QR</div>
618 <div class="qr-hint bg-primary hidden" data-translate>Click field to show QR</div> 631 <div class="qr-hint bg-primary" data-translate>Click field to show QR</div>
619 <div class="qr-image"></div> 632 <div class="qr-hider hidden">
633 <div class="qr-image"></div>
634 <div class="qr-warning bg-primary" data-translate>Caution: Scanner may keep history</div>
635 </div>
620 </div> 636 </div>
621 637
622 <div class="feedback-container"> 638 <div class="feedback-container">
@@ -14702,7 +14718,8 @@ sjcl.hash.sha256.prototype = {
14702// 14718//
14703// <div data-translate>Test</div> 14719// <div data-translate>Test</div>
14704// <div data-translate-html><em>keep em tag</em></div> 14720// <div data-translate-html><em>keep em tag</em></div>
14705// <input data-translate-placeholder placeholder="Example text"> 14721// <input data-translate-placeholder placeholder="Example placeholder">
14722// <span data-translate-title title="Example title"></span>
14706// 14723//
14707// Obtain all the phrases to be translated via js debug console: 14724// Obtain all the phrases to be translated via js debug console:
14708// 14725//
@@ -14717,7 +14734,8 @@ sjcl.hash.sha256.prototype = {
14717// Translate.loadForeignPhrases("es", { 14734// Translate.loadForeignPhrases("es", {
14718// "Test": "Test in Spanish", 14735// "Test": "Test in Spanish",
14719// "<em>keep em tag</em>": "<em>keep em tag in Spanish</em>", 14736// "<em>keep em tag</em>": "<em>keep em tag in Spanish</em>",
14720// "Example text": "Example text in Spanish" 14737// "Example placeholder": "Example placeholder in Spanish"
14738// "Example title": "Example title in Spanish"
14721// }); 14739// });
14722// 14740//
14723// In your UI put a listener for clicking on the Spanish button: 14741// In your UI put a listener for clicking on the Spanish button:
@@ -14768,10 +14786,21 @@ Translate = new (function() {
14768 }, 14786 },
14769 } 14787 }
14770 14788
14789 var title = {
14790 selector: "[data-translate-title]",
14791 getKey: function() {
14792 return this.getAttribute("title").trim().replace(/\s+/g, " ");
14793 },
14794 setPhrase: function(p) {
14795 this.setAttribute("title", p);
14796 },
14797 }
14798
14771 // Get elements to be translated 14799 // Get elements to be translated
14772 var allEls = getEls(text) 14800 var allEls = getEls(text)
14773 .concat(getEls(html)) 14801 .concat(getEls(html))
14774 .concat(getEls(placeholder)); 14802 .concat(getEls(placeholder))
14803 .concat(getEls(title));
14775 14804
14776 // Provides access to phrases from a non-default language. 14805 // Provides access to phrases from a non-default language.
14777 // See phrases_en.js for example usage. 14806 // See phrases_en.js for example usage.
@@ -18624,7 +18653,7 @@ window.Entropy = new (function() {
18624 var showAddress = true; 18653 var showAddress = true;
18625 var showPubKey = true; 18654 var showPubKey = true;
18626 var showPrivKey = true; 18655 var showPrivKey = true;
18627 var showQr = true; 18656 var showQr = false;
18628 18657
18629 var entropyChangeTimeoutEvent = null; 18658 var entropyChangeTimeoutEvent = null;
18630 var phraseChangeTimeoutEvent = null; 18659 var phraseChangeTimeoutEvent = null;
@@ -18678,6 +18707,7 @@ window.Entropy = new (function() {
18678 DOM.privateKeyToggle = $(".private-key-toggle"); 18707 DOM.privateKeyToggle = $(".private-key-toggle");
18679 DOM.languages = $(".languages a"); 18708 DOM.languages = $(".languages a");
18680 DOM.qrContainer = $(".qr-container"); 18709 DOM.qrContainer = $(".qr-container");
18710 DOM.qrHider = DOM.qrContainer.find(".qr-hider");
18681 DOM.qrImage = DOM.qrContainer.find(".qr-image"); 18711 DOM.qrImage = DOM.qrContainer.find(".qr-image");
18682 DOM.qrHint = DOM.qrContainer.find(".qr-hint"); 18712 DOM.qrHint = DOM.qrContainer.find(".qr-hint");
18683 DOM.showQrEls = $("[data-show-qr]"); 18713 DOM.showQrEls = $("[data-show-qr]");
@@ -19557,7 +19587,10 @@ window.Entropy = new (function() {
19557 var size = 130; 19587 var size = 130;
19558 DOM.qrImage.qrcode({width: size, height: size, text: content}); 19588 DOM.qrImage.qrcode({width: size, height: size, text: content});
19559 if (!showQr) { 19589 if (!showQr) {
19560 DOM.qrImage.addClass("hidden"); 19590 DOM.qrHider.addClass("hidden");
19591 }
19592 else {
19593 DOM.qrHider.removeClass("hidden");
19561 } 19594 }
19562 DOM.qrContainer.removeClass("hidden"); 19595 DOM.qrContainer.removeClass("hidden");
19563 } 19596 }
@@ -19570,7 +19603,7 @@ window.Entropy = new (function() {
19570 19603
19571 function toggleQr() { 19604 function toggleQr() {
19572 showQr = !showQr; 19605 showQr = !showQr;
19573 DOM.qrImage.toggleClass("hidden"); 19606 DOM.qrHider.toggleClass("hidden");
19574 DOM.qrHint.toggleClass("hidden"); 19607 DOM.qrHint.toggleClass("hidden");
19575 } 19608 }
19576 19609