From: Anthony Talarico Date: Wed, 3 Aug 2016 19:40:57 +0000 (-0400) Subject: removing sticky header changes due to header being broken X-Git-Tag: v1.0.0^2~31 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c67ef6b4100b4fd1d307190a5c19f464f88201f0;p=WP-Themes%2Fpetoskey.git removing sticky header changes due to header being broken --- diff --git a/js/app.js b/js/app.js index 4e4b110..03e3aa3 100644 --- a/js/app.js +++ b/js/app.js @@ -50,19 +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"); -// } - console.log(scrollTop); - }); +// 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 690bd36..0a1fcba 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -41,19 +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"); -// } - console.log(scrollTop); - }); +// 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"); +//// } +// }); });