fixes
All checks were successful
ClarkeIS Build / Build-Docker-Image (push) Successful in 40s

This commit is contained in:
2025-07-28 20:43:13 -04:00
parent 5522c8a133
commit 881ea4053c
3 changed files with 75 additions and 19 deletions

View File

@@ -1,3 +1,5 @@
function frame(e) {
for (let el of document.querySelectorAll("body > div")) {
if (el.style.display != "none") {
@@ -18,7 +20,7 @@ function takepicture() {
video.classList.add("unbounded");
document.getElementById("endcamera").style.display = "";
ctx.canvas.classList.remove("offscreen");
document.getElementById("camview").classList.add("took")
document.getElementById("precanvas").classList.add("took")
// si c'est portrait, nous doivons le tourner à landscape (parce que le canvas ont besoin d'un photo landscape pour marcher bien)
// [un peu plus tard] pourquoi a-moi apprendré le français? c'est horrible
if (box.height > box.width) {
@@ -125,7 +127,7 @@ window.app = {
});
//ctx.drawImage(image, 0, 320, 720, image.height / image.width * 720);
const dataURI = await pdfDoc.saveAsBase64({ dataUri: true });
iframe.src = dataURI;
iframe.src = dataURI + "#toolbar=0&navpanes=0";
})()
},
exit() {