1$(document).ready(function () { 2 $(document).on("click", "div.section-detail-list__info", function (e) { 3 var _this = $(this); 4 5 e.preventDefault(); 6 7 var arSectionsIDs = []; 8 if (!$(_this).hasClass("all-sections")) { 9 _this.toggleClass("section-detail-list__item--active colored_theme_bg colored_theme_bg_hovered_hover"); 10 $(".section-detail-list__info.all-sections").removeClass("section-detail-list__item--active colored_theme_bg"); 11 12 $(".section-detail-list__info.section-detail-list__item--active").each(function () { 13 var secId = $(this).attr("data-section_id"); 14 if (secId) { 15 arSectionsIDs.push(secId); 16 } 17 }); 18 19 if (!arSectionsIDs.length) { 20 $(".section-detail-list__info.all-sections").addClass("section-detail-list__item--active colored_theme_bg"); 21 } 22 } else { 23 $(".section-detail-list__info.section-detail-list__item--active").each(function () { 24 $(this).removeClass("section-detail-list__item--active colored_theme_bg colored_theme_bg_hovered_hover"); 25 _this.addClass("section-detail-list__item--active colored_theme_bg"); 26 }); 27 } 28 29 var strSectionIds = JSON.stringify(arSectionsIDs); 30 $(".content_linked_goods").attr("data-sections-ids", encodeURIComponent(strSectionIds)); 31 32 $.ajax({ 33 url: window.location.href, //_this.attr('href'), 34 type: "GET", 35 data: { 36 ajax_get: "Y", 37 ajax_get_sections: "Y", 38 ajax_section_id: strSectionIds, 39 ajax_section_reset: _this.attr("data-section_reset"), 40 }, 41 success: function (html) { 42 $(".js-load-block").html(html); 43 44 if (_this.hasClass("section-detail-list__item--active")) { 45 _this.attr("data-section_reset", "true"); 46 } else { 47 _this.attr("data-section_reset", "false"); 48 } 49 50 var eventdata = { action: "jsLoadBlock" }; 51 BX.onCustomEvent("onCompleteAction", [eventdata, _this]); 52 }, 53 }); 54 }); 55 56 $(".section-detail-list__item--js-more").on("click", function () { 57 var $this = $(this), 58 block = $this.find("> span"), 59 dataOpened = $this.data("opened"), 60 thisText = block.text(); 61 (dataText = block.data("text")), 62 (item = $this.closest(".section-detail-list").find(".section-detail-list__item-more")); 63 64 if (dataOpened != "Y") { 65 item.removeClass("hidden"); 66 $this.addClass("opened").data("opened", "Y"); 67 } else { 68 item.addClass("hidden"); 69 $this.removeClass("opened").data("opened", "N"); 70 } 71 72 block.data("text", thisText).text(dataText); 73 }); 74});
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.