mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Lien vers un pdf de démo
This commit is contained in:
parent
e9efe13eab
commit
1f502c052d
@ -15,8 +15,9 @@
|
|||||||
<div class="col-lg-3 mx-auto">
|
<div class="col-lg-3 mx-auto">
|
||||||
<form id="form_pdf_upload" action="/upload" method="POST" class="row g-3" enctype="multipart/form-data">
|
<form id="form_pdf_upload" action="/upload" method="POST" class="row g-3" enctype="multipart/form-data">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<label for="formFileLg" class="form-label">Choisir un PDF</label>
|
<label for="input_pdf_upload" class="form-label">Choisir un PDF</label>
|
||||||
<input id="input_pdf_upload" class="form-control form-control-lg" name="pdf" type="file">
|
<input id="input_pdf_upload" class="form-control form-control-lg" name="pdf" type="file">
|
||||||
|
<a class="btn btn-sm btn-link opacity-75" href="/#https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document.pdf">(Tester avec le PDF de démo)</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="d-grid gap-2">
|
<div class="d-grid gap-2">
|
||||||
@ -50,10 +51,15 @@
|
|||||||
}));
|
}));
|
||||||
document.getElementById('input_pdf_upload').files = dataTransfer.files;
|
document.getElementById('input_pdf_upload').files = dataTransfer.files;
|
||||||
document.getElementById('input_pdf_upload').dispatchEvent(new Event("change"));
|
document.getElementById('input_pdf_upload').dispatchEvent(new Event("change"));
|
||||||
|
|
||||||
|
history.replaceState({}, "Signature de PDF", "/");
|
||||||
}
|
}
|
||||||
if(window.location.hash) {
|
if(window.location.hash) {
|
||||||
uploadFromUrl(window.location.hash.replace(/^\#/, ''));
|
uploadFromUrl(window.location.hash.replace(/^\#/, ''));
|
||||||
}
|
}
|
||||||
|
window.addEventListener('hashchange', function() {
|
||||||
|
uploadFromUrl(window.location.hash.replace(/^\#/, ''));
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user