Show footer in Full Page printview
This commit is contained in:
parent
cef7f1c3b9
commit
1cef6890e3
1 changed files with 14 additions and 0 deletions
|
|
@ -22,6 +22,20 @@
|
|||
{{ body }}
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const page_div = document.querySelector('.page-break');
|
||||
|
||||
page_div.style.display = 'flex';
|
||||
page_div.style.flexDirection = 'column';
|
||||
|
||||
const footer_html = document.getElementById('footer-html');
|
||||
footer_html.classList.add('hidden-pdf');
|
||||
footer_html.classList.remove('visible-pdf');
|
||||
footer_html.style.order = 1;
|
||||
footer_html.style.marginTop = '20px';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
{%- if comment -%}
|
||||
<!-- {{ comment }} -->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue