PageSourceSearch

https://semena62.ru/bitrix/templates/aspro-premier/js/dotmenu.min.js?17401365496627

js semena62.ru collected 2026-10-05 00:03:51 UTC 6,627 bytes, 1 lines download raw bytes

1var funcDefined=function(e){return"function"==typeof e},readyDOM=function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)};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})}))}}
1,CheckTopMenuDotted=function(){var e=$("nav.mega-menu.sliced");if(!window.matchMedia("(max-width:991px)").matches)return e.length&&e.each((function(){var n=$(this).find(".header-menu__item--more-items");if("none"==$(this).parents(".collapse").css("display"))return!1;var i=$(this).parents("#headerfixed");if(i.length&&!i.hasClass("fixed"))return!1;var t=$(this).closest(".header-menu, .check-menu-dotted"),d=t.hasClass("dotted-flex-1");d&&t.addClass("flex-1");var o=t[0].getBoundingClientRect().width,a=$(this).find(".header-menu__wrapper > .header-menu__item"),s=0;a.each((function(e,n){s+=n.getBoundingClientRect().width}));var r=!1,l=[];for(menuItemNewSave="";s>o&&(menuItemOldSave=$(this).find(".header-menu__wrapper > .header-menu__item").not(".header-menu__item--more-items").last(),menuItemOldSave.length);){var m=menuItemOldSave.attr("class"),u=$("<li />").addClass(m+" header-menu__item--in-dotted").attr("data-hidewidth",s).html(menuItemOldSave.html());l.push(u),menuItemOldSave.remove(),n.css({display:"flex",opacity:1}),s=0,a.each((function(e,n){s+=n.getBoundingClientRect().width})),o=t[0].getBoundingClientRect().width,r=!0}if(l=l.reverse(),n.find("> .header-menu__dropdown-menu > ul").prepend(l),!r){do{if(menuItemOldSave=n.find("> .header-menu__dropdown-menu > ul > li").first(),!menuItemOldSave.length){n.hide();break}if(menuItemOldSave.attr("data-hidewidth")>o)break;menuItemOldSave.removeClass("header-menu__item--in-dotted"),menuItemOldSave.find(".aim-init").removeClass("aim-init");m=menuItemOldSave.attr("class");var h=$("<div />").addClass(m).html(menuItemOldSave.html());if(menuItemOldSave.remove(),$(h).insertBefore(n),!menuItemOldSave.length){n.hide();break}s=0,a.each((function(e,n){s+=n.getBoundingClientRect().width}))}while(s<=o)}n.is(":visible")?t.addClass("menu-dots-visible"):t.removeClass("menu-dots-visible"),e.closest(".header-menu").addClass("dotted-complete");var f=$(this).closest(".hide-dotted");f.length&&f.addClass("dotted-complete"),d&&(t.removeClass("flex-1"),t.addClass("no-shrinked"))})),!1},funcDefined("InitTopestMenuGummi")||(InitTopestMenuGummi=function(){if(!window.isOnceInited){function e(){var e=n.actual("innerWidth"),d=n.find(">li:not(.more),li.more>.dropdown>li"),a=d.length;if(a){for(var s=!1,r=a-1;r>=0;--r){if(!((l=d.eq(r)).parents(".more").length>0))if(o[r]>e)s||(s=!0,i.removeClass("hidden")),(m=l.clone()).find(">a").addClass("dark_font"),m.prependTo(t),l.addClass("hidden cloned"),e=n.actual("innerWidth")}for(r=0;r<a;++r){var l,m;if((l=d.eq(r)).parents(".more").length>0)if(o[r]<=e)r===a-1&&(s=!1,i.addClass("hidden")),(m=l.clone()).find(">a").removeClass("dark_font"),m.insertBefore(i),l.addClass("cloned")}n.find("li.cloned").remove()}}var n=$(".menu.topest");if(n.length)try{var i=n.find(">.more"),t=i.find(">.dropdown"),d=i.actual("outerWidth",{includeMargin:!0}),o=[];ignoreResize.push(!0),function(){var e=n.find(">li:not(.more)"),i=e.length;if(i)for(var t=0,a=0;a<i;++a){var s=e.eq(a).actual("outerWidth",{includeMargin:!0});o[a]=(t+=s)+(a!==i-1?d:0)}}(),e(),ignoreResize.pop(),BX.addCustomEvent("onWindowResize",(function(i){try{ignoreResize.push(!0),e(),n.addClass("initied"),n.parent().addClass("initied")}catch(e){}finally{ignoreResize.pop()}}))}catch(e){}}}),funcDefined("InitTopMenuGummi")||(InitTopMenuGummi=function(){function e(){var e=i.actual("innerWidth")-t.actual("innerWidth"),o=n.find(">li:not(.more):not(.catalog),li.more>.dropdown>li"),l=o.length;if(l){for(var m=!1,u=l-1;u>=0;--u){if(!((h=o.eq(u)).parents(".more").length>0))if(a[u]>e)m||(m=!0,d.removeClass("hidden")),(f=h.clone()).find(">.dropdown").removeAttr("style").removeClass("toleft"),f.find(">a").addClass("dark_font").removeAttr("style"),f.prependTo(s),h.addClass("cloned")}for(u=0;u<l;++u){var h,f;if((h=o.eq(u)).parents(".more").length>0)if(a[u]<=e)u===l-1&&(m=!1,d.addClass("hidden")),(f=h.clone()).find(">a").removeClass("dark_font"),f.insertBefore(d),h.addClass("cloned")}n.find("li.cloned").remove();var c=n.find(">li:not(.more):not(.catalog)").length,p=e-a[c-1],v=Math.floor(p/(c+(d.hasClass("hidden")?0:1))),g=r+v,w=Math.floor(g/2),_=g-w;n.find(">
1li:not(.catalog):visible>a").each((function(){$(this).css({"padding-left":w+"px"}),$(this).css({"padding-right":_+"px"})}));var C=g+p-(c+(d.is(":visible")?1:0))*v,I=Math.floor(C/2),y=C-I;n.find(">li:visible").last().find(">a").css({"padding-left":I+"px"}),n.find(">li:visible").last().find(">a").css({"padding-right":y+"px"})}}var n=$(".menu_top_block");if($menuTopest.length){var i=n.parents(".wrap_menu"),t=i.find(".catalog_menu_ext"),d=n.find(">.more"),o=d.actual("outerWidth",{includeMargin:!0});d.addClass("hidden");var a=[],s=d.find(">.dropdown"),r=2*parseInt(d.find(">a").css("padding-left"));setTimeout((function(){ignoreResize.push(!0),function(){var e=n.closest(".wrap_menu").find(".inc_menu .menu_top_block >li:not(.more)"),i=e.length;if(i)for(var t=0,d=0;d<i;++d){var s=e.eq(d).actual("outerWidth");a[d]=(t+=s)+(d!==i-1?o:0)}}(),e(),ignoreResize.pop()}),5e3),BX.addCustomEvent("onWindowResize",(function(n){try{ignoreResize.push(!0),e()}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.