mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
[metadat] Loading modal to fetch pdf
This commit is contained in:
parent
b4f1d6592d
commit
cc978d731e
2 changed files with 14 additions and 0 deletions
|
|
@ -273,7 +273,10 @@ async function pageMetadata(url) {
|
|||
if(url && url.match(/^cache:\/\//)) {
|
||||
await loadFileFromCache(url.replace(/^cache:\/\//, ''));
|
||||
} else if (url) {
|
||||
const modalLoading = new bootstrap.Modal('#modalLoading')
|
||||
modalLoading.show();
|
||||
await loadFileFromUrl(url);
|
||||
modalLoading.hide();
|
||||
}
|
||||
|
||||
if(!document.getElementById('input_pdf_upload').files.length) {
|
||||
|
|
|
|||
|
|
@ -83,6 +83,17 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal" id="modalLoading" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1">
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered">
|
||||
<div class="modal-content bg-transparent border-0">
|
||||
<div class="modal-body text-center my-5 text-white fs-4">
|
||||
<p class="monospace">Récupération du fichier en cours ...</p>
|
||||
<div class="spinner-border" role="status"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span id="is_mobile" class="d-md-none"></span>
|
||||
<script src="<?php echo $REVERSE_PROXY_URL; ?>/vendor/bootstrap.bundle.min.js?5.3.3"></script>
|
||||
<script src="<?php echo $REVERSE_PROXY_URL; ?>/vendor/pdf.mjs?4.6.82-legacy" type="module"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue