1$(document).ready(function () { 2 /** 3 * Ðлик по Ð¼ÐµÐ½Ñ 4 */ 5 $(document).on("click", "#mobile-panel .category a", function () { 6 var childCategory = $(this).parent().children(".category"); 7 8 if (childCategory.length > 0) { 9 childCategory.addClass("active"); 10 11 $("#mobile-panel .js_nav_catalog").html("< Ðазад"); 12 13 $("#mobile-panel .mobile-catalog-menu").animate({ 14 "margin-left": 0 - (270 * ($(".category.active").length - 1)), 15 }, 200, function() { 16 // ÑÑÐ°Ð²Ð»Ñ Ð²ÑÑоÑÑ Ð°ÐºÑивного блока 17 $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height()); 18 }); 19 20 return false; 21 } 22 else { 23 return true; 24 } 25 }); 26 27 $(document).on("click", ".js_nav_catalog", function () { 28 // показÑÐ²Ð°Ñ ÐºÐ°Ñалог 29 if ($("#mobile-panel .item-slide-menu .category.active").length == 0) { 30 $("#mobile-panel .item-slide-menu > .category").addClass("active"); 31 // ÑÑÐ°Ð²Ð»Ñ Ð²ÑÑоÑÑ Ð°ÐºÑивного блока 32 $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height()); 33 } 34 else { 35 //ÑкÑÑÐ²Ð°Ñ Ð´Ð¾ кнопки 36 if ($("#mobile-panel .item-slide-menu .category.active").length == 1) { 37 $("#mobile-panel .item-slide-menu .category.active").last().removeClass("active"); 38 $("#mobile-panel .item-slide-menu").css("height",0); 39 $("#mobile-panel .js_nav_catalog").html('<i class="fa fa-shopping-cart" aria-hidden="true"></i> ÐаÑалог <i class="fa fa-chevron-down"></i>'); 40 41 // ÑÑÐ°Ð²Ð»Ñ Ð²ÑÑоÑÑ Ð°ÐºÑивного блока 42 $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height()); 43 } 44 else { 45 // ÑкÑÑÐ²Ð°Ñ 1 Ñаздел 46 $("#mobile-panel .mobile-catalog-menu").animate({ 47 "margin-left": 0 - (270 * ($(".category.active").length - 2)), 48 }, 200, function() { 49 $("#mobile-panel .item-slide-menu .category.active").last().removeClass("active"); 50 //ÑкÑÑÐ²Ð°Ñ Ð´Ð¾ кнопки 51 if ($("#mobile-panel .item-slide-menu .category.active").length == 1) { 52 $("#mobile-panel .js_nav_catalog").html('<i class="fa fa-shopping-cart" aria-hidden="true"></i> ÐаÑалог <i class="fa fa-chevron-right"></i>'); 53 } 54 // ÑÑÐ°Ð²Ð»Ñ Ð²ÑÑоÑÑ Ð°ÐºÑивного блока 55 $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height()); 56 }); 57 } 58 } 59 }); 60});
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.