Skip to content

Commit 79c72b0

Browse files
committed
hide footer on page load
1 parent 1707bd5 commit 79c72b0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

_templates/_page_openshift.html.erb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -792,16 +792,12 @@
792792
<!-- hide footer after 3 seconds -->
793793
<script type="text/javascript">
794794
const hideFooter = () => {
795-
document.querySelector('footer').style.display = "none";
796-
};
797-
798-
window.addEventListener('scroll', function() {
799-
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
800-
setTimeout(hideFooter, 3000);
801-
} else {
802-
document.querySelector('footer').style.display = "block";
803-
}
804-
})
795+
document.querySelector('footer#rh').style.display = "none";
796+
};
797+
798+
window.addEventListener('load', function() {
799+
setTimeout(hideFooter, 3000);
800+
});
805801
</script>
806802
</body>
807803
</html>

0 commit comments

Comments
 (0)