re adding sticky header after finding out the ad rotate is broken due to ad blocker...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 Aug 2016 19:49:35 +0000 (15:49 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 Aug 2016 19:49:35 +0000 (15:49 -0400)
js/app.js
js/custom/pageSetup.js

index 03e3aa3..c3108d6 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -50,18 +50,18 @@ $(document).ready(function () {
             this.title = $(this.element).find('img').attr('alt');
         }
     });
-//    var body = $("body");
-//    var sticky = $(".sticky");
-//    $(window).on("scroll", function () {
-//        var scrollTop = $(window).scrollTop();
-//        if(scrollTop > 0){
-//            $(sticky).addClass("fixed");
-//            $(body).addClass("f-topbar-fixed");
-//        } 
-////        if(scrollTop == 0){
-////            $(sticky).removeClass("fixed");
-////            $(body).removeClass("f-topbar-fixed");
-////        }
-//    });
+    var body = $("body");
+    var sticky = $(".sticky");
+    $(window).on("scroll", function () {
+        var scrollTop = $(window).scrollTop();
+        if(scrollTop > 0){
+            $(sticky).addClass("fixed");
+            $(body).addClass("f-topbar-fixed");
+        } 
+//        if(scrollTop == 0){
+//            $(sticky).removeClass("fixed");
+//            $(body).removeClass("f-topbar-fixed");
+//        }
+    });
     
 });
index 0a1fcba..398a7b7 100644 (file)
@@ -41,18 +41,18 @@ $(document).ready(function () {
             this.title = $(this.element).find('img').attr('alt');
         }
     });
-//    var body = $("body");
-//    var sticky = $(".sticky");
-//    $(window).on("scroll", function () {
-//        var scrollTop = $(window).scrollTop();
-//        if(scrollTop > 0){
-//            $(sticky).addClass("fixed");
-//            $(body).addClass("f-topbar-fixed");
-//        } 
-////        if(scrollTop == 0){
-////            $(sticky).removeClass("fixed");
-////            $(body).removeClass("f-topbar-fixed");
-////        }
-//    });
+    var body = $("body");
+    var sticky = $(".sticky");
+    $(window).on("scroll", function () {
+        var scrollTop = $(window).scrollTop();
+        if(scrollTop > 0){
+            $(sticky).addClass("fixed");
+            $(body).addClass("f-topbar-fixed");
+        } 
+//        if(scrollTop == 0){
+//            $(sticky).removeClass("fixed");
+//            $(body).removeClass("f-topbar-fixed");
+//        }
+    });
     
 });