PageSourceSearch

https://plusland.ru/bitrix/templates/aspro-premier/components/bitrix/menu/header/script.min.js?17718581142334

js plusland.ru collected 2026-10-04 23:57:35 UTC 2,334 bytes, 1 lines download raw bytes

1BX.Aspro.Utils.readyDOM((()=>{$(document).on("click",".header-menu__wide-submenu-item-inner .toggle_block",(function(e){e.preventDefault();var n=$(this),t=n.closest(".header-menu__wide-submenu-item-inner").find("> .submenu-wrapper");n.hasClass("clicked")||(n.addClass("clicked"),t.slideToggle(150,(function(){n.removeClass("clicked")})),n.closest(".header-menu__wide-submenu-item-inner").toggleClass("opened"))})),BX.bindDelegate(document,"click",{class:"header-menu__link--only-catalog"},(function(e){e.preventDefault();const n=this,t=n.querySelector("use"),l=t.getAttribute("xlink:href");n.classList.contains("opened")?(n.classList.remove("opened"),t.setAttribute("xlink:href",l.replace("#close","#burger"))):(n.classList.add("opened"),t.setAttribute("xlink:href",l.replace("#burger","#close")),onlyCatalogMenuOpen($(n))),onlyCatalogMenuClose(n)})),BX.bindDelegate(document,"click",{tag:"body"},(function(e){const n=document.querySelector(".header-menu__link--only-catalog.opened"),t=e.target.closest(".header-menu__wrapper");n&&!t&&onlyCatalogMenuClose()})),onlyCatalogMenuClose=function(e=null){let n=document.querySelectorAll(".header-menu__link--only-catalog.opened");!n.length||1===n.length&&n[0]===e||n.forEach((n=>{if(n!==e){const e=n.querySelector("use"),t=e.getAttribute("xlink:href");n.classList.remove("opened"),e.setAttribute("xlink:href",t.replace("#close","#burger"))}}))},onlyCatalogMenuOpen=function(e){var n=e.siblings("[data-nlo]");if(n.length&&!n.hasClass("nlo-loadings")){n.addClass("nlo-loadings");var t=$(".header-menu__link--only-catalog ~ .header-menu__dropdown-menu");if(t.length)n.replaceWith(t.clone()),e.parent().find(".aim-init").removeClass("aim-init"),BX.Aspro.Utils.isFunction("InitMenuNavigationAim")&&InitMenuNavigationAim();else{var l=e.find(".header-menu__title");l.addClass("loadings"),$.ajax({data:{nlo:n.attr("data-nlo")},error:function(){n.removeClass("nlo-loadings")},complete:function(e,t){if("success"===t||404==e.status){var o=BX.processHTML($.trim(e.responseText));BX.ajax.processScripts(o.SCRIPT),n.replaceWith(o.HTML),BX.Aspro.Utils.isFunction("InitMenuNavigationAim")&&InitMenuNavigationAim()}l.removeClass("loadings")}
1})}}},BX.addCustomEvent("onAjaxChangeWidgetValue",(function(e){e&&"PAGE_WIDTH"===e.NAME&&BX.Aspro.Utils.isFunction("CheckTopMenuDotted")&&CheckTopMenuDotted()}))}));

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.