From 72a71fd2880c6a16736d09a8232115596853d668 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 14 Jan 2016 16:55:45 -0500 Subject: [PATCH] removing content based on page location --- js/app.js | 11 +++++++++++ js/custom/upcp.js | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/js/app.js b/js/app.js index 40028ef..392812b 100644 --- a/js/app.js +++ b/js/app.js @@ -244,4 +244,15 @@ $(document).ready(function () { createCookieSubcat("subcat", "subcat"); }); + + if ((window.location.href.indexOf("/?michsci_category") >= 0) || (window.location.href.indexOf("/?pagename") >= 0) ){ + var $bottomText = $("#catelog-content").nextAll(); + var $bottomText2 = $("#categoriesGridView").nextAll(); + var $bottomText3 = $("#main-content").nextAll(); + $bottomText.hide(); + $bottomText2.hide(); + $bottomText3.hide(); + + } + }); \ No newline at end of file diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 349e89e..6aae07c 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -224,4 +224,15 @@ $(document).ready(function () { createCookieSubcat("subcat", "subcat"); }); + + if ((window.location.href.indexOf("/?michsci_category") >= 0) || (window.location.href.indexOf("/?pagename") >= 0) ){ + var $bottomText = $("#catelog-content").nextAll(); + var $bottomText2 = $("#categoriesGridView").nextAll(); + var $bottomText3 = $("#main-content").nextAll(); + $bottomText.hide(); + $bottomText2.hide(); + $bottomText3.hide(); + + } + }); \ No newline at end of file -- 2.17.1