Some layout fiddling...
This commit is contained in:
10
js/index.js
10
js/index.js
@@ -28,19 +28,19 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
// Draw images
|
||||
ispcLogo.onload = () => {
|
||||
ctx.drawImage(ispcLogo, 25, 10, 200, 75)
|
||||
ctx.drawImage(ispcLogo, 25, 30, 200, 75)
|
||||
}
|
||||
|
||||
qrImg.src = qr.toDataURL();
|
||||
qrImg.onload = () => {
|
||||
ctx.drawImage(qrImg, 25, 90, 200, 200)
|
||||
ctx.drawImage(qrImg, 25, 110, 200, 200)
|
||||
}
|
||||
// Draw instrument ID as text
|
||||
ctx.font = '48px sans-serif';
|
||||
ctx.fillText(idInstr, 45, 330);
|
||||
ctx.fillText(idInstr, 45, 350);
|
||||
|
||||
erihsLogo.onload = () => {
|
||||
ctx.drawImage(erihsLogo, 25, 355, 200, 41)
|
||||
ctx.drawImage(erihsLogo, 25, 375, 200, 41)
|
||||
}
|
||||
download.classList.remove('disabled');
|
||||
});
|
||||
@@ -56,4 +56,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
downloadLink.click();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user