mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Improve display of proofs
This commit is contained in:
parent
469dc6e6df
commit
4ec1ecda5b
1 changed files with 11 additions and 1 deletions
|
@ -159,9 +159,19 @@ async function verifyProofs(opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate feedback
|
// Generate feedback
|
||||||
|
feedback += `<p>`;
|
||||||
for (var i = 0; i < verifications.length; i++) {
|
for (var i = 0; i < verifications.length; i++) {
|
||||||
feedback += `${verifications[i].type}: <a href="${verifications[i].url}">${verifications[i].display}</a>: ${verifications[i].isVerified}<br>`;
|
// feedback += `${verifications[i].type}: <a href="${verifications[i].url}">${verifications[i].display}</a>: ${verifications[i].isVerified}<br>`;
|
||||||
|
feedback += `${verifications[i].type}: `;
|
||||||
|
feedback += `<a class="proofDisplay" href="${verifications[i].url}">${verifications[i].display}</a>`;
|
||||||
|
if (verifications[i].isVerified) {
|
||||||
|
feedback += `<a class="proofUrl proofUrl--verified" href="${verifications[i].proofUrl}">verified ✔</a>`;
|
||||||
|
} else {
|
||||||
|
feedback += `<a class="proofUrl" href="${verifications[i].proofUrl}">proof</a>`;
|
||||||
}
|
}
|
||||||
|
feedback += `<br>`;
|
||||||
|
}
|
||||||
|
feedback += `</p>`;
|
||||||
|
|
||||||
// Display feedback
|
// Display feedback
|
||||||
elRes.innerHTML = feedback;
|
elRes.innerHTML = feedback;
|
||||||
|
|
Loading…
Reference in a new issue