mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
Adding footer id to autohide the OKD footer
This commit is contained in:
@@ -750,14 +750,14 @@
|
||||
<!-- hide footer after 3 seconds -->
|
||||
<script type="text/javascript">
|
||||
const hideFooter = () => {
|
||||
document.querySelector('footer#rh').style.display = "none";
|
||||
document.querySelector('footer').style.display = "none";
|
||||
};
|
||||
|
||||
window.addEventListener('scroll', function() {
|
||||
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
|
||||
setTimeout(hideFooter, 3000);
|
||||
} else {
|
||||
document.querySelector('footer#rh').style.display = "block";
|
||||
document.querySelector('footer').style.display = "block";
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user