diff --git a/src/index.html b/src/index.html index 205ccd5..02cfdf8 100644 --- a/src/index.html +++ b/src/index.html @@ -261,12 +261,13 @@ Algorithm: SHA256(passphrase)
+
- Bitcoin Address: + Public Address:
diff --git a/src/ninja.brainwallet.js b/src/ninja.brainwallet.js index 8fd71a4..a69e21b 100644 --- a/src/ninja.brainwallet.js +++ b/src/ninja.brainwallet.js @@ -12,6 +12,8 @@ ninja.wallets.brainwallet = { minPassphraseLength: 15, view: function () { + document.getElementById("brainerror").innerHTML = ""; + var key = document.getElementById("brainpassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space document.getElementById("brainpassphrase").value = key; var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space @@ -33,12 +35,12 @@ ninja.wallets.brainwallet = { document.getElementById("brainkeyarea").style.visibility = "visible"; } else { - alert(ninja.translator.get("brainalertpassphrasetooshort") + ninja.translator.get("brainalertpassphrasewarning")); + document.getElementById("brainerror").innerHTML = ninja.translator.get("brainalertpassphrasetooshort"); ninja.wallets.brainwallet.clear(); } } else { - alert(ninja.translator.get("brainalertpassphrasedoesnotmatch")); + document.getElementById("brainerror").innerHTML = ninja.translator.get("brainalertpassphrasedoesnotmatch"); ninja.wallets.brainwallet.clear(); } },