diff --git a/templates/index.html.php b/templates/index.html.php index 55f6543..d9afe5b 100644 --- a/templates/index.html.php +++ b/templates/index.html.php @@ -15,8 +15,9 @@
- + + (Tester avec le PDF de démo)
@@ -50,10 +51,15 @@ })); document.getElementById('input_pdf_upload').files = dataTransfer.files; document.getElementById('input_pdf_upload').dispatchEvent(new Event("change")); + + history.replaceState({}, "Signature de PDF", "/"); } if(window.location.hash) { uploadFromUrl(window.location.hash.replace(/^\#/, '')); } + window.addEventListener('hashchange', function() { + uploadFromUrl(window.location.hash.replace(/^\#/, '')); + })