From c67ef6b4100b4fd1d307190a5c19f464f88201f0 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 3 Aug 2016 15:40:57 -0400 Subject: [PATCH] removing sticky header changes due to header being broken --- js/app.js | 27 +++++++++++++-------------- js/custom/pageSetup.js | 27 +++++++++++++-------------- 2 files changed, 26 insertions(+), 28 deletions(-) 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"); +//// } +// }); }); -- 2.17.1