Some layout fiddling...

This commit is contained in:
2023-08-29 09:19:36 +02:00
parent 3931e8f0d1
commit 41508af91e
4 changed files with 16 additions and 11 deletions

View File

@@ -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();
});
});
});
});