removing content based on page location
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 21:55:45 +0000 (16:55 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 21:55:45 +0000 (16:55 -0500)
js/app.js
js/custom/upcp.js

index 40028ef..392812b 100644 (file)
--- 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
index 349e89e..6aae07c 100644 (file)
@@ -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