responsive

This commit is contained in:
2026-08-05 18:38:10 +02:00
parent 7e467f9b1a
commit a3b8fc5567
3 changed files with 17 additions and 4 deletions
+6
View File
@@ -298,6 +298,9 @@ document
const iframe = const iframe =
document.getElementById("pdf_iframe"); document.getElementById("pdf_iframe");
const pdflink =
document.getElementById("pdf_link");
submitButton.disabled = true; submitButton.disabled = true;
loader.style.display = "block"; loader.style.display = "block";
@@ -325,6 +328,9 @@ document
iframe.src = url; iframe.src = url;
iframe.style.display = "block"; iframe.style.display = "block";
pdflink.href = url;
pdflink.style.display = "block";
} catch (err) { } catch (err) {
console.error(err); console.error(err);
+8 -4
View File
@@ -170,9 +170,13 @@
#pdf_iframe { #pdf_iframe {
width: 100%; width: min(100%, 1400px);
height: calc(100vh - 220px); aspect-ratio: 297 / 210;
min-height: 500px;
border: 1px solid #ccc; border: 1px solid #ccc;
margin-top: 1rem; margin: 1rem auto;
}
footer {
margin-top: 2em;
text-align: center
} }
+3
View File
@@ -237,6 +237,8 @@ Générer PDF
<div class="loader" style="margin: auto; display: none"></div> <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> <iframe id="pdf_iframe" style="display: none"></iframe>
</form> </form>
@@ -245,6 +247,7 @@ Générer PDF
<script src="/static/builder.js"></script> <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> </body>
</html> </html>