}
// createCookie("link", "null");
document.cookie = "catView=grid";
-
// don't display products on the main "products page"
if ((window.location.href.indexOf("products-2") >= 0)){
-// document.cookie = "test=null";
- if(document.cookie.indexOf("cool") >= 0){
+ if(document.cookie.indexOf("true") >= 0){
$("#gridView").css("display", "inherit");
$("#listView").css("display", "inherit");
} else {
$(".product").show();
}
if($("#tagBox :checkbox:checked").length === 0 && window.location.href.indexOf("products-3/") >= 0){
-// $("#categoriesGridView").show();
-// $("#categoriesListView").show();
+ $("#categoriesGridView").show();
+ $("#categoriesListView").show();
$("#categoriesGridView").hide();
$("#categoriesListView").hide();
$("#gridView").css("display", "inherit");
$(".top-bar").find(".menu-item").find(".sub-menu.dropdown").find(".menu-item").on("click", 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();
$bottomText.hide();
$bottomText2.hide();
$bottomText3.hide();
-
}
-
});
\ No newline at end of file
}
// createCookie("link", "null");
document.cookie = "catView=grid";
-
// don't display products on the main "products page"
if ((window.location.href.indexOf("products-2") >= 0)){
-// document.cookie = "test=null";
- if(document.cookie.indexOf("cool") >= 0){
+ if(document.cookie.indexOf("true") >= 0){
$("#gridView").css("display", "inherit");
$("#listView").css("display", "inherit");
} else {
$(".product").show();
}
if($("#tagBox :checkbox:checked").length === 0 && window.location.href.indexOf("products-3/") >= 0){
-// $("#categoriesGridView").show();
-// $("#categoriesListView").show();
+ $("#categoriesGridView").show();
+ $("#categoriesListView").show();
$("#categoriesGridView").hide();
$("#categoriesListView").hide();
$("#gridView").css("display", "inherit");
$(".top-bar").find(".menu-item").find(".sub-menu.dropdown").find(".menu-item").on("click", 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();
$bottomText.hide();
$bottomText2.hide();
$bottomText3.hide();
-
}
-
});
\ No newline at end of file