});
});
-;
-// Set footer position on scroll
-$(window).on('scroll', function () {
- if ($(window).width() > 640) {
- setTimeout(function(){ // Slight delay to avoid a jumpy transition
- $('#sticky-topbar').css({'position' : get_footer_position});
- }, 200);
- }
-});
-
-// Set footer position on load
-$(function() {
- var position = get_footer_position();
- $('#sticky-topbar').css({'position' : position});
-});
-
-function get_footer_position() {
- if ($(window).width() < 640) {
- return 'relative';
- }
- var footer = $('#sticky-topbar');
- var height_of_footer = footer.height();
- var top_of_footer = footer.position().top;
- // Account for fixed header and padding on the sticky-footer container
- var fixed_header_height = $('.top-bar-container').height() - 20;
-
- var top = $(window).scrollTop();
- var bottom = top + $(window).height() - fixed_header_height;
-
- if (top_of_footer < $(window).height()) {
- return 'relative';
- }
- else if (bottom >= top_of_footer) {
- return 'relative';
- }
- else if (bottom <= top_of_footer) {
- return 'fixed';
- }
-
-// function remove_the_arrow() {
-// $('.sticky-footer-wrapper-class:after').css('border-width', '0');
-// }
-}
-
-
+++ /dev/null
-
-// Set footer position on scroll
-$(window).on('scroll', function () {
- if ($(window).width() > 640) {
- setTimeout(function(){ // Slight delay to avoid a jumpy transition
- $('#sticky-topbar').css({'position' : get_footer_position});
- }, 200);
- }
-});
-
-// Set footer position on load
-$(function() {
- var position = get_footer_position();
- $('#sticky-topbar').css({'position' : position});
-});
-
-function get_footer_position() {
- if ($(window).width() < 640) {
- return 'relative';
- }
- var footer = $('#sticky-topbar');
- var height_of_footer = footer.height();
- var top_of_footer = footer.position().top;
- // Account for fixed header and padding on the sticky-footer container
- var fixed_header_height = $('.top-bar-container').height() - 20;
-
- var top = $(window).scrollTop();
- var bottom = top + $(window).height() - fixed_header_height;
-
- if (top_of_footer < $(window).height()) {
- return 'relative';
- }
- else if (bottom >= top_of_footer) {
- return 'relative';
- }
- else if (bottom <= top_of_footer) {
- return 'fixed';
- }
-
-// function remove_the_arrow() {
-// $('.sticky-footer-wrapper-class:after').css('border-width', '0');
-// }
-}
-
-