Fixing the tab disappearing when scrolling down. attempt 3!
authorLaury GvR <laury@gaslightmedia.com>
Thu, 5 Nov 2015 15:00:46 +0000 (10:00 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 5 Nov 2015 15:00:46 +0000 (10:00 -0500)
js/app.js
js/custom/sticky-footer.js

index 6af487b..c5a3aa8 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -39,8 +39,8 @@ function get_footer_position() {
       $("#connect").css('padding-bottom','53px');
     return 'relative';
   }
-  var footer = $("footer");
-  var height_of_footer = footer.height();
+  var footer = $("#copyright");
+  var height_of_footer = footer.height() + -50;
   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;
index 9faa954..1b0907f 100644 (file)
@@ -19,8 +19,8 @@ function get_footer_position() {
       $("#connect").css('padding-bottom','53px');
     return 'relative';
   }
-  var footer = $("footer");
-  var height_of_footer = footer.height();
+  var footer = $("#copyright");
+  var height_of_footer = footer.height() + -50;
   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;