landings: clickable blue payload links under every QR (webextension)
Show the exact encoded URI (taler:// / https / payto://) as a blue monospace link under each QR so wallet webextensions and desktop can open it. Stop stripping :443 in the bank withdraw QR path. Shop pay and exchange withdraw-exchange included.
This commit is contained in:
parent
eb640da64e
commit
2fb060f79a
6 changed files with 134 additions and 15 deletions
|
|
@ -416,6 +416,9 @@ sudo apt-get install -y taler-wallet-cli</pre>
|
|||
<div class="qr-box">
|
||||
<div id="qr-exchange"></div>
|
||||
<div class="qr-label">Scan in wallet</div>
|
||||
<a class="meta-uri" id="qr-exchange-payload"
|
||||
href="taler://withdraw-exchange/exchange.hacktivism.ch/"
|
||||
style="display:block;margin:.45rem auto 0;max-width:22rem;font-size:.68rem;font-family:ui-monospace,Menlo,monospace;color:#0042b3;word-break:break-all;text-decoration:none;border-bottom:1px solid rgba(0,66,179,.35)">taler://withdraw-exchange/exchange.hacktivism.ch/</a>
|
||||
</div>
|
||||
<a class="cta teal" href="taler://withdraw-exchange/exchange.hacktivism.ch/">Open in wallet →</a>
|
||||
<p class="meta">taler://withdraw-exchange/exchange.hacktivism.ch/</p>
|
||||
|
|
@ -565,9 +568,12 @@ sudo apt-get install -y taler-wallet-cli</pre>
|
|||
if (foot) foot.innerHTML = 'Stats offline · <a href="https://bank.hacktivism.ch/intro/" style="color:#e8c878">bank.hacktivism.ch</a>';
|
||||
});
|
||||
var el = document.getElementById("qr-exchange");
|
||||
var exUri = "taler://withdraw-exchange/exchange.hacktivism.ch/";
|
||||
var exPay = document.getElementById("qr-exchange-payload");
|
||||
if (exPay) { exPay.href = exUri; exPay.textContent = exUri; }
|
||||
if (el && typeof QRCode !== "undefined") {
|
||||
new QRCode(el, {
|
||||
text: "taler://withdraw-exchange/exchange.hacktivism.ch/",
|
||||
text: exUri,
|
||||
width: 220, height: 220, correctLevel: QRCode.CorrectLevel.M
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue