Update to site
This commit is contained in:
parent
3345fa5897
commit
b0bdfe2fe9
244 changed files with 11618 additions and 12 deletions
24
source/_includes/custom/after_footer.html
Normal file
24
source/_includes/custom/after_footer.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% comment %}
|
||||
Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
|
||||
{% endcomment %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var stickyNavTop = $('nav').offset().top;
|
||||
|
||||
var stickyNav = function(){
|
||||
var scrollTop = $(window).scrollTop();
|
||||
|
||||
if (scrollTop > stickyNavTop) {
|
||||
$('nav').addClass('sticky');
|
||||
} else {
|
||||
$('nav').removeClass('sticky');
|
||||
}
|
||||
};
|
||||
|
||||
stickyNav();
|
||||
|
||||
$(window).scroll(function() {
|
||||
stickyNav();
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue