diff --git a/assets/img/qrcode.png b/assets/img/qrcode.png
new file mode 100644
index 0000000..f3ff58b
Binary files /dev/null and b/assets/img/qrcode.png differ
diff --git a/assets/img/qrcode_green.png b/assets/img/qrcode_green.png
new file mode 100644
index 0000000..be487b6
Binary files /dev/null and b/assets/img/qrcode_green.png differ
diff --git a/assets/scripts.js b/assets/scripts.js
index 13e4aac..a2e5f3e 100644
--- a/assets/scripts.js
+++ b/assets/scripts.js
@@ -193,6 +193,8 @@ async function verifyProofs(opts) {
async function displayProfile(opts) {
let keyData, keyLink, feedback = "", notation, isVerified, verifications = [];
+ let icon_qr = '';
+
try {
keyData = await fetchKeys(opts);
} catch (e) {
@@ -267,15 +269,18 @@ async function displayProfile(opts) {
}
feedback += `
`;
feedback += `
fingerprint
`;
- feedback += `
`;
- feedback += `
`;
-
+ feedback += `${keyData.fingerprint}`;
if (opts.mode == "hkp") {
- feedback += `
`;
- feedback += `
qrcode
`;
- feedback += `
`;
- feedback += `
`;
+ feedback += `
${icon_qr}`;
}
+ feedback += `
`;
+
+ // if (opts.mode == "hkp") {
+ // feedback += ``;
+ // feedback += `
qrcode
`;
+ // feedback += `
`;
+ // feedback += `
`;
+ // }
if (keyData.notations.length > 0) {
feedback += ``;
@@ -339,7 +344,7 @@ async function displayProfile(opts) {
feedback += `
unverified`;
}
if (verifications[i].isVerified && verifications[i].qr) {
- feedback += `
QR`;
+ feedback += `
${icon_qr}`;
}
feedback += `
`;
feedback += ``;
@@ -1052,10 +1057,10 @@ if (elUtilQR) {
const elInput = document.body.querySelector("#input");
- if (elInput.value) {
- elInput.value = decodeURIComponent(elInput.value);
- qrcode.makeCode(`${elInput.value}`);
- document.body.querySelector("#qrcode--altLink").href = elInput.value;
+ if (elInput.innerText) {
+ elInput.innerText = decodeURIComponent(elInput.innerText);
+ qrcode.makeCode(`${elInput.innerText}`);
+ document.body.querySelector("#qrcode--altLink").href = elInput.innerText;
} else {
qrcode.clear();
}
diff --git a/assets/styles.css b/assets/styles.css
index ff645d3..082a825 100644
--- a/assets/styles.css
+++ b/assets/styles.css
@@ -166,8 +166,8 @@ input[type="submit"][disabled="true"] {
select {
margin: 0 0 16px 0;
}
-.green {
- color: green;
+.green, a.proofUrl.proofUrl--verified {
+ color: #499539;
}
.red {
color: red;
@@ -267,8 +267,13 @@ select {
a.proofUrl {
color: #777;
}
-a.proofUrl.proofUrl--verified, a.proofQR {
- color: #499539;
+a.proofQR {
+ line-height: 0;
+ background-color: #499539;
+ border-radius: 2px;
+}
+a.proofQR:hover {
+ background-color: #6abb5a;
}
#qrcode {
diff --git a/views/util/qr.php b/views/util/qr.php
index 4bf66eb..8b5a2af 100644
--- a/views/util/qr.php
+++ b/views/util/qr.php
@@ -3,7 +3,9 @@