Fixing the tab disappearing when scrolling down.
authorLaury GvR <laury@gaslightmedia.com>
Thu, 5 Nov 2015 14:56:20 +0000 (09:56 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 5 Nov 2015 14:56:20 +0000 (09:56 -0500)
js/app.js
js/custom/sticky-footer.js

index af2f87f..6af487b 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -50,11 +50,11 @@ function get_footer_position() {
 
   if (top_of_footer < $(window).height()) {
       $("#connect").css('padding-bottom','53px');
-    return 'relative';
+    return 'fixed';
   }
   else if (bottom >= top_of_footer) {
       $("#connect").css('padding-bottom','53px');
-    return 'fixed';
+    return 'relative';
   }
   else if (bottom <= top_of_footer) {
       $("#connect").css('padding-bottom','0');
index eecad84..9faa954 100644 (file)
@@ -30,11 +30,11 @@ function get_footer_position() {
 
   if (top_of_footer < $(window).height()) {
       $("#connect").css('padding-bottom','53px');
-    return 'relative';
+    return 'fixed';
   }
   else if (bottom >= top_of_footer) {
       $("#connect").css('padding-bottom','53px');
-    return 'fixed';
+    return 'relative';
   }
   else if (bottom <= top_of_footer) {
       $("#connect").css('padding-bottom','0');