Refactor private key input message
This commit is contained in:
parent
7c1e70c50d
commit
a29077ece1
16
index.html
16
index.html
@ -221,9 +221,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<small class="form-text">
|
||||
Enter a private key in WIF format for any supported blockchain
|
||||
(DOGE, BTC, FLO, LTC). All equivalent blockchain addresses will
|
||||
be recovered.
|
||||
Enter a private key (DOGE, BTC, FLO, LTC).
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -1141,7 +1139,6 @@
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function translateAddress() {
|
||||
const wif = document.getElementById("translateWIF").value.trim();
|
||||
if (!wif) {
|
||||
@ -1177,11 +1174,15 @@
|
||||
|
||||
for (const chain of ["DOGE", "FLO", "BTC", "LTC"]) {
|
||||
if (result[chain]) {
|
||||
|
||||
const badgeClass = chain === "DOGE" ? "PRIMARY" : "SECONDARY";
|
||||
const badgeStyle = chain === "DOGE" ? "primary" : "secondary";
|
||||
|
||||
formattedResult += `
|
||||
<div class="blockchain-section">
|
||||
<div class="blockchain-header">
|
||||
<h4><i class="fas fa-coins"></i> ${chain}</h4>
|
||||
<div class="blockchain-badge">PRIMARY</div>
|
||||
<div class="blockchain-badge ${badgeStyle}">${badgeClass}</div>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<label><i class="fas fa-map-marker-alt"></i> ${chain} Address</label>
|
||||
@ -1205,9 +1206,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("translateResult").innerHTML =
|
||||
formattedResult;
|
||||
|
||||
document.getElementById("translateResult").innerHTML = formattedResult;
|
||||
storedTranslateResults.recoverTranslate = formattedResult;
|
||||
notify("Addresses recovered successfully!", "success");
|
||||
} catch (err) {
|
||||
@ -1237,7 +1236,6 @@
|
||||
setButtonLoading("recoverBtn", false);
|
||||
}
|
||||
}
|
||||
|
||||
function translateDirectAddress() {
|
||||
const address = document
|
||||
.getElementById("addressToTranslate")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user