Best Sellers New Arrival
src="includes/templates/123175406_201601/jscript/jquery.waypoints.min.js" type="text/javascript"> > function createSidebarPopup(){ var container = $(".sidebar").clone(true).removeClass("col-left").removeClass("col-xs-6").addClass("sidePopup"); var sorter = $(".sorter").find("select").first(); container.find("*[id|=amshopby]").each(function() { $(this).attr("id", $(this).attr("id") + "-popup"); }); container.find(".block-layered-nav").find(".block-content").prepend(sorter); container.find("#amshopby-price-btn").click(function(e) { $(".amshopby-price-find").not($(this)).trigger("click"); }); $("body").append(container); } var resized = false; $(document).ready(function(){ $("7 Item(s)").appendTo(".page-title-wrap"); $(".narrow-results-btn").click(function(){ var Popup = $(".sidePopup"); Popup.show(); var $body = $("body"); $body.css({ "overflow" : "hidden", "height" : "100%", }); $("html").css({ "overflow" : "hidden", "height" : "100%", }); sidePopupOverlay = "
"; $body.append(sidePopupOverlay); $(".sidePopupClose").click(function(){ var Popup = $(".sidePopup"); var overlay = $(".sidePopupOverlay"); Popup.hide(); overlay.remove() var $body = $("body"); $body.css({ "overflow" : "", "height" : "", }); $("html").attr("style", "").css({ "height" : "100%", }); return false; }); return false; }); $(".back2top").click(function(){ $("html, body").animate({scrollTop:0}, "fast"); return false; }); if (responsive_viewport < 768 && resized == false) { createSidebarPopup(); resized = true; } $(window).resize(function() { if (responsive_viewport < 768 && resized == false) { createSidebarPopup(); resized = true; } }); });