1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-01-10 21:16:32 +01:00

qr tweaks

This commit is contained in:
Matthias Kretschmann 2017-09-21 19:51:56 +02:00
parent 6ee9d86cff
commit 994cd8ed18
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -58,7 +58,7 @@ const krlcModals = (() => { // eslint-disable-line no-unused-vars
` `
}) })
// Generate QR code // Generate QR codes
const qrBtc = new QRious({ const qrBtc = new QRious({
element: document.getElementById('qr-btc'), element: document.getElementById('qr-btc'),
value: btcAddress value: btcAddress
@ -69,12 +69,14 @@ const krlcModals = (() => { // eslint-disable-line no-unused-vars
value: ethAddress value: ethAddress
}) })
qrBtc.backgroundAlpha = 0 const qrOptions = {
qrEth.backgroundAlpha = 0 backgroundAlpha: 0,
qrBtc.foreground = '#6b7f88' foreground: '#6b7f88',
qrEth.foreground = '#6b7f88' size: 160
qrBtc.size = 160 }
qrEth.size = 160
qrBtc.set(qrOptions)
qrEth.set(qrOptions)
// Clipboard button // Clipboard button
const clipboard = new Clipboard('.btn') const clipboard = new Clipboard('.btn')