Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
iberculturaviva
iberculturaviva-mapas
Commits
11b31367
Commit
11b31367
authored
Dec 13, 2021
by
Alex Felippe Chiozo
Browse files
evita problemas no Chrome com cabeçalhos/rodapés
parent
97cd5b57
Pipeline
#11994
failed with stages
in 3 minutes and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
themes/IberCulturaViva/assets/css/print-registration.css
themes/IberCulturaViva/assets/css/print-registration.css
+5
-4
themes/IberCulturaViva/assets/js/print-registration.js
themes/IberCulturaViva/assets/js/print-registration.js
+7
-8
No files found.
themes/IberCulturaViva/assets/css/print-registration.css
View file @
11b31367
...
...
@@ -40,6 +40,7 @@ a.btn, #registration-valuers--admin {
}
@media
print
{
/*
#main-header {
display: table-header-group;
}
...
...
@@ -47,7 +48,7 @@ a.btn, #registration-valuers--admin {
#main-section {
display: table-row-group;
}
*/
.header-content
{
min-height
:
4rem
;
}
...
...
@@ -60,15 +61,15 @@ a.btn, #registration-valuers--admin {
#editable-entity
,
.alert.warning
{
display
:
none
;
}
/*
#empty-footer {
display: table-footer-group;
height: 160px;
visibility: hidden;
}
*/
footer
{
position
:
fixed
;
/*
position: fixed;
*/
height
:
160px
;
bottom
:
0
;
padding
:
0
;
...
...
themes/IberCulturaViva/assets/js/print-registration.js
View file @
11b31367
$
(
function
()
{
// initialisation
const
$footer
=
$
(
"
footer
"
);
console
.
log
(
$footer
.
height
());
$footer
.
before
(
"
<div id=
\"
empty-footer
\"
>.</div>
"
);
// const $footer = $("footer");
// $footer.before("<div id=\"empty-footer\">.</div>");
$
(
"
#main-header
"
).
removeClass
(
"
sombra
"
);
// trigger the print window
setTimeout
(
function
()
{
$
(
window
).
resize
();
//
$(window).resize();
window
.
print
();
return
;
},
500
);
// adjust height of empty-footer
$
(
window
).
resize
(
function
()
{
$
(
"
#empty-footer
"
).
height
(
$footer
.
height
());
return
;
});
//
$(window).resize(function () {
//
$("#empty-footer").height($footer.height());
//
return;
//
});
// adjust header on scroll
$
(
window
).
scroll
(
function
()
{
$
(
"
#main-header
"
)[
0
].
style
.
top
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment