From: Anthony Talarico Date: Thu, 14 Jan 2016 21:55:45 +0000 (-0500) Subject: removing content based on page location X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=72a71fd2880c6a16736d09a8232115596853d668;p=WP-Themes%2Fmichsci.git removing content based on page location --- 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