PageSourceSearch

https://alcotector.ru/bitrix/components/aspro/tabs.allcorp3/templates/.default/script.min.js?16668634253265

js alcotector.ru collected 2026-10-02 17:23:39 UTC 3,265 bytes, 2 lines download raw bytes

1const ajaxRequest=function(method,url,obConfig){const objUrl=parseUrlQuery(),obData={ajax_get:"Y",AJAX_REQUEST:"Y",AJAX_POST:"Y",bitrix_include_areas:"N"},obDataExt=obConfig.data||{},methods=method||"GET";let add_url="";"object"==typeof objUrl&&objUrl&&"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(add_url="?clear_cache=Y");const obTransferData=Object.assign({},obData,obDataExt),formData=new FormData,arData=Object.keys(obTransferData);for(let i=0;i<arData.length;i++)formData.append(arData[i],obTransferData[arData[i]]);const xhr=new XMLHttpRequest;xhr.open(methods,url+add_url),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.send(formData),xhr.onload=function(){let responseObj=xhr.response;if(obConfig.context.classList.remove("loading-state"),200!=xhr.status)obConfig.context.innerHTML="Error "+xhr.status+": "+xhr.statusText;else{const obData=BX.processHTML(responseObj);obConfig.context.innerHTML=obData.HTML,setTimeout((function(){BX.ajax.processScripts(obData.SCRIPT)}),0)}},xhr.onerror=function(){obConfig.context.classList.remove("loading-state"),obConfig.context.innerHTML="Error"}},readyHandler=function(){const tabs=document.querySelector(".element-list .tab-nav");if(tabs){const tabsItem=tabs.querySelectorAll(".element-list .tab-nav__item"),jsParams=document.getElementById("js-request-data");tabs.addEventListener("click",(function(e){if(tabsItem.length){const item=e.target;if(item.classList.contains("tab-nav__item")&&!item.classList.contains("active")){const tabCode=item.dataset.code,tabsContent=document.querySelectorAll(".element-list .tab-content-block"),curTab=document.querySelector(".element-list .tab-content-block[data-code='"+tabCode+"']");for(let i=0;i<tabsItem.length;i++)tabsItem[i].classList.remove("active");item.classList.toggle("active");for(let i=0;i<tabsContent.length;i++)tabsContent[i].classList.remove("active");if(curTab.classList.toggle("active"),!item.classList.contains("clicked")){const obData={FILTER_HIT_PROP:tabCode,AJAX_PARAMS:jsParams.dataset.value,GLOBAL_FILTER:curTab.dataset.filter,TYPE_TEMPLATE:tabs.dataset.template};ajaxRequest("POST",arAllcorp3Options.SITE_DIR+"include/mainpage/comp_catalog_ajax.php",{data:obData,context:curTab}),item.classList.add("clicked")}}}}))}};document.addEventListener("DOMContentLoaded",readyHandler),window.tabsInitOnReady=function(){$(".element-list .tab-nav-wrapper").scrollTab({tabs_wrapper:".tab-nav",tab_item:"> .tab-nav__item",width_grow:3,outer_wrapper:".element-list .index-block__title-wrapper",onResize:function(options){const top_wrapper=options.outer_wrapper_node;let all_width=top_wrapper[0].getBoundingClientRect().width;if(top_wrapper.length){const tabs_wrapper=options.scrollTab;if(window.matchMedia("(max-width: 767px)").matches)return tabs_wrapper.css({"max-width":all_width}),!0;const title=top_wrapper.find(".index-block__part--left"),right_link=top_wrapper.find(".index-block__part--right");title.length&&(all_width-=title.outerWidth(!0)),right_link.length&&(all_width-=right_link.outerWidth(!0)),all_width-=Number.parseInt(tabs_wrapper.css("margin-left")),all_width-=Number.parseInt(tabs_wrapper.css("margin-right")),tabs_wrapper.css({"max-width":all_width,width:""})}options.width=all_width}})};
2//# sourceMappingURL=script.min.js.map

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.