From: Anthony Talarico Date: Wed, 3 Aug 2016 19:49:35 +0000 (-0400) Subject: re adding sticky header after finding out the ad rotate is broken due to ad blocker... X-Git-Tag: v1.0.0^2~30 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=5925f4e7c72c58399efe6703f6e8eeac8c1f09c2;p=WP-Themes%2Fpetoskey.git re adding sticky header after finding out the ad rotate is broken due to ad blocker being installed --- diff --git a/js/app.js b/js/app.js index 03e3aa3..c3108d6 100644 --- 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"); +// } + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 0a1fcba..398a7b7 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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"); +// } + }); });