Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
remove append to details output
Browse files Browse the repository at this point in the history
  • Loading branch information
coinables committed Jan 8, 2018
1 parent 1d85974 commit cbdd440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ <h2>Details</h2>
var redeemScriptHash = bitcoin.crypto.hash160(redeemScript);
var scriptPubKey = bitcoin.script.scriptHash.output.encode(redeemScriptHash);
var newaddy = bitcoin.address.fromOutputScript(scriptPubKey, NETWORK);
$("#detailsOutput").append("<p>WIF: "+ wif + "<div id='detailsPK'></div></p><div id='detailsAddr'>Address: "+newaddy+"</div><br><div id='detailsAddrQr'></div><br><p></p><p>Public Key: "+pubKeyHex+"</p><p>Redeem Script: "+redeemScriptHex+"</p><br>");
$("#detailsOutput").html("<p>WIF: "+ wif + "<div id='detailsPK'></div></p><div id='detailsAddr'>Address: "+newaddy+"</div><br><div id='detailsAddrQr'></div><br><p></p><p>Public Key: "+pubKeyHex+"</p><p>Redeem Script: "+redeemScriptHex+"</p><br>");
new QRCode(document.getElementById("detailsPK"), {
text: wif,
width: 128,
Expand Down

0 comments on commit cbdd440

Please sign in to comment.