This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/footer.php
2018-03-21 18:19:20 +00:00

24 lines
541 B
PHP

<?php
/**
* The template for displaying the footer
*
* @package WordPress
* @subpackage Omphaloskepsis
* @since Omphaloskepsis 1.0
*/
?>
<script type="text/javascript">
// Displays and hides the top header bar on page scroll.
jQuery(document).ready(function($) {
$(window).on("scroll", function() {
var fromTop = $(window).scrollTop();
$('body > header').toggleClass("show", (fromTop > 200));
});
});
</script>
<?php wp_footer(); ?>
</body>
</html>