responsive
This commit is contained in:
@@ -298,6 +298,9 @@ document
|
||||
const iframe =
|
||||
document.getElementById("pdf_iframe");
|
||||
|
||||
const pdflink =
|
||||
document.getElementById("pdf_link");
|
||||
|
||||
|
||||
submitButton.disabled = true;
|
||||
loader.style.display = "block";
|
||||
@@ -325,6 +328,9 @@ document
|
||||
iframe.src = url;
|
||||
iframe.style.display = "block";
|
||||
|
||||
pdflink.href = url;
|
||||
pdflink.style.display = "block";
|
||||
|
||||
} catch (err) {
|
||||
|
||||
console.error(err);
|
||||
|
||||
+8
-4
@@ -170,9 +170,13 @@
|
||||
|
||||
|
||||
#pdf_iframe {
|
||||
width: 100%;
|
||||
height: calc(100vh - 220px);
|
||||
min-height: 500px;
|
||||
width: min(100%, 1400px);
|
||||
aspect-ratio: 297 / 210;
|
||||
border: 1px solid #ccc;
|
||||
margin-top: 1rem;
|
||||
margin: 1rem auto;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 2em;
|
||||
text-align: center
|
||||
}
|
||||
@@ -237,6 +237,8 @@ Générer PDF
|
||||
|
||||
|
||||
<div class="loader" style="margin: auto; display: none"></div>
|
||||
|
||||
<a id="pdf_link" target="_blank" style="display: none;margin-top: 2em;">Ouvrir dans une nouvelle fenêtre</a>
|
||||
<iframe id="pdf_iframe" style="display: none"></iframe>
|
||||
|
||||
</form>
|
||||
@@ -245,6 +247,7 @@ Générer PDF
|
||||
<script src="/static/builder.js"></script>
|
||||
|
||||
|
||||
<footer>Valentin Moguérou 2026 - Licence AGPL 3.0 - <a href="https://git.kaz.bzh/valentin/edt_maker_m1orsay" target="_blank">code source</a></footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user