mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Add direct link to QR code
This commit is contained in:
parent
41059ca76b
commit
fac00bbbb8
3 changed files with 5 additions and 1 deletions
|
@ -1055,6 +1055,7 @@ if (elUtilQR) {
|
|||
if (elInput.value) {
|
||||
elInput.value = decodeURIComponent(elInput.value);
|
||||
qrcode.makeCode(`${elInput.value}`);
|
||||
document.body.querySelector("#qrcode--altLink").href = elInput.value;
|
||||
} else {
|
||||
qrcode.clear();
|
||||
}
|
||||
|
|
|
@ -271,7 +271,9 @@ a.proofUrl.proofUrl--verified, a.proofQR {
|
|||
color: #499539;
|
||||
}
|
||||
|
||||
#qrcode img {
|
||||
#qrcode {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
max-width: 100%;
|
||||
margin: 32px auto 16px;
|
||||
}
|
||||
|
|
|
@ -6,4 +6,5 @@
|
|||
<input type="txt" name="input" id="input" class="full-width" readonly placeholder="Fingerprint" value="<?=$this->escape($input)?>">
|
||||
</form>
|
||||
<div id="qrcode"></div>
|
||||
<a id="qrcode--altLink" href="#">Press this link to directly open the URI</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue