MG Store Locations
Choose your store to shop:
To proceed click OK, otherwise click CANCEL
"); } $("div.change-location__cartItems").html(_cartList.join("")); $("div#change-location__popup-notification").dialog("open"); } } function setLocation($this) { $.post('/mainsite/store1/Store/SetCurrentLocation', { locationCode: $this.options[$this.selectedIndex].value }, StoreSetCurrentLocationOnComplete); } function StoreSetCurrentLocationOnComplete(e) { var currentURL = window.location; if (currentURL.pathname.search("CategoryHome") > 0 || currentURL.pathname.search("PromotionList") > 0) { window.location = currentURL.origin + currentURL.pathname; } else { window.location.reload(); } } function clearShoppingCartItems($this) { $.post('/mainsite/store1/ShoppingCart/ClearShoppingCart', function () { setLocation($this); }); }

Filter

"); } } else { $("div#AttributeFilterVertical > ul > li.clearFilters").remove(); } }, clearFilter: function () { $("div#AttributeFilterVertical > ul > li.clearFilters").live('click', function () { $("div#AttributeFilterVertical > ul > li > div.filterItemsWrapper > ul > li > input[type='checkbox']").removeAttr("checked"); $("div#AttributeFilterVertical > ul > li > div.title > span.counter").text(""); $(this).remove(); attributeFilter.loadProducts(); }); }, loadCategories: function () { //using setTimeout will limit the user from sending request to server while they are still selecting multiple filters clearInterval(attributeFilter.timerCategory); attributeFilter.timerCategory = setTimeout(function () { //$.get("", function (result) { console.log("load category"); //}); }, attributeFilter.intervalCategory); }, loadProducts: function () { console.log("loadProducts - Start"); var filteredItemValue = []; var filteredItemName = []; $('.filterItemsWrapper input:checkbox').each(function () { if (this.checked) { var attributeValue = encodeURIComponent($('label[for=' + $(this).attr("id") + ']').text()); if (attributeValue != "") { filteredItemValue.push(attributeValue); var hiddenAttributeField = "input[id$=group_" + $(this).attr("id") + "]"; var attributeGroup = $(hiddenAttributeField).val(); filteredItemName.push(attributeGroup); console.log(attributeValue + ' - ' + attributeGroup); } } }); var currentURL = window.location.href.split('?')[0]; var queryArgs = '?'; if (filteredItemValue.length > 0) { for (ctr = 0; ctr

Products

Shopping Cart



No items in your cart.

Advertisements



Advertisement

Net Wire Fence Products


 | Page:1234 | Next >>
 | Page:1234 | Next >>
To proceed click OK, otherwise click CANCEL
"); } $("div.product-list__cartItems").html(_cartList.join("")); $("div#product-list__popup-notification").dialog("open"); } function clearShoppingCartItems(locationCode, productId) { $.post('/mainsite/store1/ShoppingCart/ClearShoppingCart', function () { changeLocation(locationCode, productId); }); } function changeLocation(locationCode, productId) { var param = []; param.push("locationCode=" + locationCode); $.post('/mainsite/store1/Store/SetCurrentLocation', param.join("&"), function (result) { if (result == "Location is set!") { window.location = '/MainSite/Store1/' + 'StoreProducts/ProductDetail/' + productId; } }); } CID = '2672'; checkInStockPgState(); }); $('#toggleProducts').click(function () { var currentText = $(this).val(); if (currentText == "Show All Products") { $(this).val("Show Only In Stock").css({ 'background-color': 'gray' }); $('div.product-list__out-of-stock').parent().parent().show(); deleteInStockPgState(); } else { $(this).val("Show All Products").css({ 'background-color': '#b20217' }); $('div.product-list__out-of-stock').parent().parent().hide(); saveInStockPgState(); } return false; }); function saveInStockPgState() { var Pages = $.cookie('InStockPg'); if (Pages != null) { var arrPages = Pages.split(','); found = false; for (i = 0, Cnt = arrPages.length; i

Promotions


Advertisements


").append(""); _slider.$navs = _slider.$wrapper.find("div.nav"); } var noOfDisplay = 0; if (settings.displayItems == "auto") { noOfDisplay = _slider.getDisplayCapacity(); _slider.setWindowResizeEvent(); } else { _slider._currentDisplay = noOfDisplay = parseInt(settings.displayItems) || 1; } //adjust no. of display when actual items is greater than computed no of display items if (noOfDisplay > _slider.$items.length) { _slider._currentDisplay = noOfDisplay = _slider.$items.length; } _slider.setItemLayout(_slider.$itemWrapper.outerWidth(true), noOfDisplay); //initalize events _slider.navClick(); _slider.mouseEvent(); //start auto animate _slider.autoAnimate.start(); } }, getDisplayCapacity: function () { var _wrapperWidth = _slider.$itemWrapper.outerWidth(true); var _noOfDisplay = 1; var _minWidth = parseInt(settings.minWidth) || 1; if (_minWidth > 1) { _noOfDisplay = Math.floor((_wrapperWidth / _minWidth)); //adjust no. of display when actual items is greater than computed no of display items _noOfDisplay = (_noOfDisplay > _slider.$items.length ? _slider.$items.length : _noOfDisplay); _slider._currentDisplay = _noOfDisplay; } if (settings.maxItems != "auto") { var _max = parseInt(settings.maxItems) || 1; _noOfDisplay = (_noOfDisplay > _max) ? _max : _noOfDisplay; } return _noOfDisplay; }, setWindowResizeEvent: function () { $(window).resize(function () { _slider.setItemLayout(_slider.$itemWrapper.outerWidth(true), _slider.getDisplayCapacity()); }); }, setItemLayout: function (_wrapperWidth, noOfDisplay) { var _itemWidth = Math.ceil(_wrapperWidth / noOfDisplay); _slider.$items.css("width", (_itemWidth / _wrapperWidth) * 100 + "%"); }, navClick: function () { _slider.$navs.click(function () { var $this = $(this); if ($this.parent().data("animate") == undefined && _slider.$itemWrapper.children().length > 1) { $this.parent().data("animate", "true"); _slider.autoAnimate.stop(); var _direction = "right"; var _w = _slider.$itemWrapper.children().first().outerWidth(true); if ($this.hasClass("prev")) { _direction = "left"; _slider.$itemWrapper.prepend(_slider.$itemWrapper.children().last()); _slider.$itemWrapper.children().css('left', '-' + _w + 'px'); } if (_slider._currentDisplay == _slider.$itemWrapper.children().length) { _slider.$itemWrapper.append(_slider.$itemWrapper.children().first().clone().addClass("clone")); } var itr = 0; _slider.$itemWrapper.children().stop(true, true).animate({ left: (_direction == "right" ? '-=' : '+=') + _w }, "slow", function () { itr = itr + 1; if (_direction == "right") { if (_slider.$itemWrapper.children().length == itr) { _slider.$itemWrapper.append(_slider.$itemWrapper.children().first()); } } if (_slider.$itemWrapper.children().length == itr) { _slider.$itemWrapper.find(".clone").remove(); _slider.$itemWrapper.children().css('left', '0'); } $this.parent().removeData("animate"); _slider.autoAnimate.start(); }); } }); }, mouseEvent: function () { _slider.$itemWrapper.mouseover(function () { _slider.autoAnimate.stop(); }).mouseout(function () { _slider.autoAnimate.start(); }); }, autoAnimate: { start: function () { if (settings.autoSlide && _slider.$itemWrapper.children().length > 1) { _slider.autoAnimate.stop(); _slider._timer = setInterval(function () { if (settings.autoSlideDirection == "left") { _slider.$wrapper.find("div.next").click(); } else { _slider.$wrapper.find("div.prev").click(); } }, settings.autoSlideSpeed); } }, stop: function () { clearInterval(_slider._timer); _slider._timer = null; } } }; _slider.init(); // allow jQuery chaining return this; }; } (jQuery)); $('div#Carousel').slider({ autoSlideDirection: "left", autoSlideSpeed: 2500, displayItems: "auto", maxItems: 5, minWidth: "134", autoSlide: true });
MG Building Materials. © All Rights Reserved.