PageSourceSearch

https://vhdom.ru/bitrix/templates/aspro_max/js/speed.min.js?=1589922695

js vhdom.ru collected 2026-09-30 05:02:34 UTC 6,230 bytes, 1 lines download raw bytes

1var funcDefined=function(e){try{return"function"==typeof e||"function"==typeof window[e]}catch(e){return!1}};CheckTopMenuDotted=function(){var e=$("nav.mega-menu.sliced");if(!window.matchMedia("(max-width:991px)").matches)return e.length&&e.each(function(){if($(this).hasClass("initied"))return!1;var e=$(this).find("td.js-dropdown");if("none"==$(this).parents(".collapse").css("display"))return!1;for(var n=$(this).closest("div")[0].getBoundingClientRect().width,i=$(this).find("table")[0].getBoundingClientRect().width,t=!1;i>n&&(menuItemOldSave=$(this).find("td").not(".nosave").last(),menuItemOldSave.length);){e.show();var d=menuItemOldSave.attr("class");menuItemNewSave='<li class="menu-item '+(menuItemOldSave.hasClass("dropdown")?"dropdown-submenu ":"")+(menuItemOldSave.hasClass("active")?"active ":"")+'" data-hidewidth="'+i+'" '+(d?'data-class="'+d+'"':"")+">"+menuItemOldSave.find(".wrap").html()+"</li>",menuItemOldSave.remove(),e.find("> .wrap > .dropdown-menu").prepend(menuItemNewSave),i=$(this).find("table")[0].getBoundingClientRect().width,t=!0}if(!t)do{var o=e.find(".dropdown-menu").find("li").length;if(menuItemOldSave=e.find(".dropdown-menu").find("li").first(),!menuItemOldSave.length){e.hide();break}var a=menuItemOldSave.attr("data-hidewidth");if(a>n)break;d=menuItemOldSave.attr("data-class");if(menuItemNewSave='<td class="'+(d?d+" ":"")+'" data-hidewidth="'+n+'"><div class="wrap">'+menuItemOldSave.html()+"</div></td>",menuItemOldSave.remove(),$(menuItemNewSave).insertBefore($(this).find("td.js-dropdown")),!o){e.hide();break}i=$(this).find("table")[0].getBoundingClientRect().width}while(i<=n);$(this).find("td").css("visibility","visible"),$(this).find("td").removeClass("unvisible"),$(this).addClass("ovisible"),$(this).addClass("initied")}),!1},CheckTopMenuPadding=function(){if($(".logo_and_menu-row .right-icons .wrap_icon").length&&$(".logo_and_menu-row .menu-row").length&&!$(".subbottom.menu-row").length){var e=$(".menu-row .menu-only").position().left,n=0,i=0;$(".logo_and_menu-row .menu-row>div").each(function(t){if(!$(this).hasClass("menu-only")){var d=$(this).position().left,o=$(this).outerWidth()+1;d>e?i+=o:n+=o}}).promise().done(function(){$(".logo_and_menu-row .menu-only").css({"padding-left":n,"padding-right":i})})}},CheckTopMenuOncePadding=function(){if($(".menu-row.sliced .right-icons .wrap_icon").length){var e=$(".menu-row .menu-only").position().left,n=0,i=0;$(".menu-row.sliced .maxwidth-theme>div>div>div").each(function(t){if(!$(this).hasClass("menu-only")){var d=$(this).position().left,o=$(this).outerWidth()+1;d>e?i+=o:n+=o}}).promise().done(function(){$(".menu-row.sliced .menu-only").css({"padding-left":n,"padding-right":i})})}else if($(".logo_and_menu-row .mega-menu.sliced").length&&!$(".subbottom.menu-row").length){n=0;$(".logo_and_menu-row .maxwidth-theme>div>div>div").each(function(e){if(!$(this).hasClass("menu-row")){$(this).position().left;var i=$(this).outerWidth()+1;$(this).is(":visible")&&!$(this).hasClass("pull-right")&&$(this).height()||(i=0),n+=i}}).promise().done(function(){$(".logo_and_menu-row .logo-row .menu-row").css({"padding-left":n})})}},funcDefined("InitTopestMenuGummi")||(InitTopestMenuGummi=function(){if(!isOnceInited){function e(){var e=i.find(">li:not(.more)"),n=e.length;if(n)for(var t=0,d=0;d<n;++d){var s=e.eq(d),l=s.actual("outerWidth",{includeMargin:!0});a[d]=(t+=l)+(d!==n-1?o:0)}}function n(){var e=i.actual("innerWidth"),n=i.find(">li:not(.more),li.more>.dropdown>li"),o=n.length;if(o){for(var s=!1,l=o-1;l>=0;--l){var r=n.eq(l),u=r.parents(".more").length>0;if(!u&&a[l]>e){s||(s=!0,t.removeClass("hidden"));var m=r.clone();m.find(">a").addClass("dark_font"),m.prependTo(d),r.addClass("hidden cloned"),e=i.actual("innerWidth")}}for(l=0;l<o;++l){r=n.eq(l),u=r.parents(".more").length>0;if(u&&a[l]<=e){l===o-1&&(s=!1,t.addClass("hidden"));m=r.clone();m.find(">a").removeClass("dark_font"),m.insertBefore(t),r.addClass("cloned")}}i.find("li.cloned").remove()}}var i=$(".menu.topest");if(i.length){var t=i.find(">.more"),d=t.find(">.dropdown"),o=t.actual("outerWidth",{includeMargin:!0}),a=[];ignoreResize.push(!0),e(),n(),ignoreResize.pop(),BX.addCustomEvent("onWindowResize",function(e){try{ignoreResize.push(!0),n(),i.addClass("initied"),i.parent().addClass("initied")}catch(e){}finally{ignoreResize.pop()}})}}}),funcDefined("InitTopMenuGummi")||(InitTopMenuGummi=function(){function e(){var e=i.closest(".wrap_menu").find(".inc_menu .menu_top_block >li:not(.more)"),n=e.length;if(n)for(var t=0,d=0;d<n;++d){var o=e.eq(d),l=o.actual("outerWidth");s[d]=(t+=l)+(d!==n-1?a:0)}}function n(){var e=t.actual("innerWidth")-d.actual("innerWidth"),n=i.find(">
1li:not(.more):not(.catalog),li.more>.dropdown>li"),a=n.length;if(a){for(var r=!1,m=a-1;m>=0;--m){var h=n.eq(m),f=h.parents(".more").length>0;if(!f&&s[m]>e){r||(r=!0,o.removeClass("hidden"));var c=h.clone();c.find(">.dropdown").removeAttr("style").removeClass("toleft"),c.find(">a").addClass("dark_font").removeAttr("style"),c.prependTo(l),h.addClass("cloned")}}for(m=0;m<a;++m){h=n.eq(m),f=h.parents(".more").length>0;if(f&&s[m]<=e){m===a-1&&(r=!1,o.addClass("hidden"));c=h.clone();c.find(">a").removeClass("dark_font"),c.insertBefore(o),h.addClass("cloned")}}i.find("li.cloned").remove();var v=i.find(">li:not(.more):not(.catalog)").length,p=e-s[v-1],g=Math.floor(p/(v+(o.hasClass("hidden")?0:1))),w=u+g,C=Math.floor(w/2),_=w-C;i.find(">li:not(.catalog):visible>a").each(function(){$(this).css({"padding-left":C+"px"}),$(this).css({"padding-right":_+"px"})});var b=w+p-(v+(o.is(":visible")?1:0))*g,I=Math.floor(b/2),S=b-I;i.find(">li:visible").last().find(">a").css({"padding-left":I+"px"}),i.find(">li:visible").last().find(">a").css({"padding-right":S+"px"})}CheckTopMenuFullCatalogSubmenu()}var i=$(".menu_top_block");if($menuTopest.length){var t=i.parents(".wrap_menu"),d=t.find(".catalog_menu_ext"),o=i.find(">.more"),a=o.actual("outerWidth",{includeMargin:!0});o.addClass("hidden");var s=[],l=o.find(">.dropdown"),r=2*parseInt(o.find(">a").css("padding-left")),u=r;setTimeout(function(){ignoreResize.push(!0),e(),n(),ignoreResize.pop()},5e3),BX.addCustomEvent("onWindowResize",function(e){try{ignoreResize.push(!0),n()}catch(e){}finally{ignoreResize.pop()}})}});

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.