Skip to content

Commit 82d50a3

Browse files
committed
Adding footer id to autohide the OKD footer
1 parent 60cccce commit 82d50a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_templates/_page_openshift.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,14 +750,14 @@
750750
<!-- hide footer after 3 seconds -->
751751
<script type="text/javascript">
752752
const hideFooter = () => {
753-
document.querySelector('footer#rh').style.display = "none";
753+
document.querySelector('footer').style.display = "none";
754754
};
755755

756756
window.addEventListener('scroll', function() {
757757
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
758758
setTimeout(hideFooter, 3000);
759759
} else {
760-
document.querySelector('footer#rh').style.display = "block";
760+
document.querySelector('footer').style.display = "block";
761761
}
762762
})
763763
</script>

0 commit comments

Comments
 (0)