1$(function() { 2 //блок Ñ ÐºÑками 3 setTimeout(function () { 4 let acptCookie = $('.b-accept-cookie'); 5 6 if (acptCookie) { 7 acptCookie.addClass('active'); 8 } 9 }, 3000); 10 11 //пÑинимаем кÑки 12 $(document).on('click', '.js-accept-cookie', function () { 13 $.get('/ajax/accept_cookie.php'); 14 15 let acptCookie = $('.b-accept-cookie'); 16 17 if (acptCookie) { 18 acptCookie.removeClass('active'); 19 20 setTimeout(function () { 21 acptCookie.remove(); 22 }, 2000); 23 } 24 }); 25 26 //SCROLL_UP// 27 var top_show = 150, 28 delay = 500; 29 $("body").append($("<a />").addClass("scroll-up").attr({"href": "javascript:void(0)", "id": "scrollUp"}).append($("<i />").addClass("fa fa-angle-up"))); 30 $("#scrollUp").click(function(e) { 31 e.preventDefault(); 32 $("body, html").animate({scrollTop: 0}, delay); 33 return false; 34 }); 35 36 $(window).scroll(function () { 37 if($(this).scrollTop() > top_show) { 38 $("#scrollUp").fadeIn(); 39 } else { 40 $("#scrollUp").fadeOut(); 41 } 42 }); 43 44 //DISABLE_FORM_SUBMIT_ENTER// 45 $(".add2basket_form").on("keyup keypress", function(e) { 46 var keyCode = e.keyCode || e.which; 47 if(keyCode === 13) { 48 e.preventDefault(); 49 return false; 50 } 51 }); 52 53 //CALLBACK// 54 var callbackBtn = BX("callbackAnch"); 55 if(!!callbackBtn) 56 BX.bind(callbackBtn, "click", BX.delegate(function(){openFormCallback();}, this)); 57 58 var callbackBtn = BX("callbackAnch2"); 59 if(!!callbackBtn) 60 BX.bind(callbackBtn, "click", BX.delegate(function(){openFormCallback();}, this)); 61 62 //BTN_ANIMATION 63 setInterval( BX.delegate(function () { 64 openbtn(); 65 }, this), 5000); 66 67 //TOP_PANEL_CONTACTS// 68 $(".showcontacts").click(function() { 69 var clickitem = $(this); 70 if(clickitem.parent("li").hasClass("")) { 71 clickitem.parent("li").addClass("active"); 72 } else { 73 clickitem.parent("li").removeClass("active"); 74 } 75 if($(".showsection").parent("li").hasClass("active")) { 76 $(".showsection").parent("li").removeClass("active"); 77 $(".showsection").parent("li").find(".catalog-section-list").css({"display":"none"}); 78 } 79 if($(".showsubmenu").parent("li").hasClass("active")) { 80 $(".showsubmenu").parent("li").removeClass("active"); 81 $(".showsubmenu").parent("li").find("ul.submenu").css({"display":"none"}); 82 } 83 if($(".showsearch").parent("li").hasClass("active")) { 84 $(".showsearch").parent("li").removeClass("active"); 85 $(".header_2").css({"display":"none"}); 86 $(".title-search-result").css({"display":"none"}); 87 } 88 $(".header_4").slideToggle(); 89 }); 90 91 //TOP_PANEL_SEARCH// 92 $(".showsearch").click(function() { 93 var clickitem = $(this); 94 if(clickitem.parent("li").hasClass("")) { 95 clickitem.parent("li").addClass("active"); 96 } else { 97 clickitem.parent("li").removeClass("active"); 98 $(".title-search-result").css({"display":"none"}); 99 } 100 if($(".showsection").parent("li").hasClass("active")) { 101 $(".showsection").parent("li").removeClass("active"); 102 $(".showsection").parent("li").find(".catalog-section-list").css({"display":"none"}); 103 } 104 if($(".showsubmenu").parent("li").hasClass("active")) { 105 $(".showsubmenu").parent("li").removeClass("active"); 106 $(".showsubmenu").parent("li").find("ul.submenu").css({"display":"none"}); 107 } 108 if($(".showcontacts").parent("li").hasClass("active")) { 109 $(".showcontacts").parent("li").removeClass("active"); 110 $(".header_4").css({"display":"none"}); 111 } 112 $(".header_2").slideToggle(); 113 }); 114 115 //TABS_MAIN// 116 if($(".tabs__box.new .filtered-items").length < 1) 117 $(".tabs__tab.new, .tabs__box.new").remove(); 118 if($(".tabs__box.hit .filtered-items").length < 1) 119 $(".tabs__tab.hit, .tabs__box.hit").remove(); 120 if($(".tabs__box.discount .filtered-items").length < 1) 121 $(".tabs__tab.discount, .tabs__box.discount").remove(); 122 123 $(".tabs-main .tabs__tab").first().addClass("current"); 124 $(".tabs-main .tabs__box").first().css({"display":"block"}); 125 126 //ITEMS_HEIGHT// 127 var itemsTable = $(".filtered-items:visible .catalog-item-card"); 128 if(!!itemsTable && itemsTable.length > 0) { 129 $(window).resize(function() {
130 adjustItemHeight(itemsTable); 131 }); 132 adjustItemHeight(itemsTable); 133 } 134 135 //CHANGE_TAB// 136 $("body").on("click", ".tabs__tab:not(.current)", function() { 137 $(this).addClass("current").siblings().removeClass("current") 138 .parent().siblings(".tabs__box").eq($(this).index()).fadeIn(150).siblings(".tabs__box").hide(); 139 140 //ITEMS_HEIGHT// 141 var itemsTable = $(this).parent().siblings(".tabs__box").eq($(this).index()).find(".catalog-item-card"); 142 if(!!itemsTable && itemsTable.length > 0) { 143 $(window).resize(function() { 144 adjustItemHeight(itemsTable); 145 }); 146 adjustItemHeight(itemsTable); 147 } 148 }); 149 150 //DELAY// 151 var currPage = window.location.pathname; 152 var delayIndex = window.location.search; 153 if((currPage == "/personal/cart/") && (document.getElementById("id-shelve-list")) && (delayIndex == "?delay=Y")) { 154 $("#id-shelve-list").show(); 155 $("#id-cart-list").hide(); 156 } else { 157 $("#id-shelve-list").hide(); 158 $("#id-cart-list").show(); 159 } 160 161 //CUSTOM_FORMS// 162 $(".custom-forms").customForms({}); 163 164 165//CATALOG_MENU_HIDDEN// 166 var flag=1; 167 $("#catalog_wrap_btn").click(function() { 168 169 $("#catalog_wrap").slideToggle("slow"); 170 if(flag==0){ 171 flag=1; 172 $("#catalog_wrap_btn .showfilter .fa-angle-down").css({"display":"block"}); 173 $("#catalog_wrap_btn .showfilter .fa-angle-up").css({"display":"none"}); 174 } 175 else{ 176 flag=0; 177 $("#catalog_wrap_btn .showfilter .fa-angle-down").css({"display":"none"}); 178 $("#catalog_wrap_btn .showfilter .fa-angle-up").css({"display":"block"}); 179 } 180 }); 181 182});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.