This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user