PageSourceSearch

https://cream.shop/bitrix/templates/aspro_max/js/speed.min.js?=1723785722

js cream.shop collected 2026-09-29 13:07:37 UTC 5,334 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(){let e=$(this);if(e.hasClass("initied"))return!1;var n=e.find("td.js-dropdown");if("none"==e.parents(".collapse").css("display"))return!1;var i=e.closest("div")[0],t=e.closest("div")[0].getBoundingClientRect().width,d=e.find("tr>.menu-item"),a=0,o=e.find("table");o.css("width","auto"),d.each((function(e,n){a+=n.getBoundingClientRect().width}));var s=!1;let r,l;for(;a>t&&(r=e.find("td").not(".nosave").last(),r.length);){n.show();var f=r.attr("class");l='<li class="menu-item '+(r.hasClass("dropdown")?"dropdown-submenu ":"")+(r.hasClass("active")?"active ":"")+'" data-hidewidth="'+a+'" '+(f?'data-class="'+f+'"':"")+">"+r.find(".wrap").html()+"</li>",r.remove(),n.find("> .wrap > .dropdown-menu").prepend(l),a=0,d.each((function(e,n){a+=n.getBoundingClientRect().width})),t=i.getBoundingClientRect().width,s=!0}if(!s)do{var c=n.find(".dropdown-menu").find("li").length;if(r=n.find(".dropdown-menu").find("li").first(),!r.length){n.hide();break}if(r.attr("data-hidewidth")>t)break;if(l='<td class="'+((f=r.attr("data-class"))?f+" ":"")+'" data-hidewidth="'+t+'"><div class="wrap">'+r.html()+"</div></td>",r.remove(),$(l).insertBefore(e.find("td.js-dropdown")),!c){n.hide();break}a=0,d.each((function(e,n){a+=n.getBoundingClientRect().width}))}while(a<=t);let h=o.find("td");h.css("visibility","visible"),h.removeClass("unvisible"),e.addClass("ovisible"),e.removeClass("unvisible"),o.css("width","")})),!1},funcDefined("InitTopestMenuGummi")||(InitTopestMenuGummi=function(){if(!window.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);if(s[0].getBoundingClientRect().width){var r=s[0].getBoundingClientRect().width+parseInt(s.css("margin-left"));o[d]=(t+=r)+(d!==n-1?a:0)}}}function n(){if(!window.matchMedia("(max-width:991px)").matches){var e=i.parent(),n="flex"===e.css("display"),s=e.closest(".header__top-item"),r=s.hasClass("dotted-flex-1");if(r&&s.addClass("flex1"),n){for(var l=0,f=i.siblings().filter("div"),c=0,h=f.length;c<h;++c)l+=f.eq(c)[0].getBoundingClientRect().width;var u=e[0].getBoundingClientRect().width-l}else{var p=parseInt(s.css("margin-left"))+parseInt(s.css("margin-right"));u=i[0].getBoundingClientRect().width-(a+p)}var m=i.find(">li:not(.more),li.more>.dropdown>li"),g=m.length;if(g){var v=!1;for(c=g-1;c>=0;--c){if(!((w=m.eq(c)).parents(".more").length>0))if(o[c]>u)v||(v=!0,t.removeClass("hidden")),(C=w.clone()).find(">a").addClass("dark_font"),C.prependTo(d),w.addClass("hidden cloned"),u=i[0].getBoundingClientRect().width-a}for(c=0;c<g;++c){var w,C;if((w=m.eq(c)).parents(".more").length>0)if(o[c]<=u)c===g-1&&(v=!1,t.addClass("hidden")),(C=w.clone()).find(">a").removeClass("dark_font"),C.insertBefore(t),w.addClass("cloned")}i.find("li.cloned").remove()}r&&s.removeClass("flex1")}}var i=$(".menu.topest");if(i.length)try{var t=i.find(">.more"),d=t.find(">.dropdown"),a=t[0].getBoundingClientRect().width+parseInt(t.css("margin-left")),o=[];ignoreResize.push(!0),e(),n(),ignoreResize.pop(),BX.addCustomEvent("onWindowResize",(function(t){try{ignoreResize.push(!0),e(),n(),i.addClass("initied"),i.parent().addClass("initied")}catch(e){}finally{ignoreResize.pop()}}))}catch(e){}}}),funcDefined("InitTopMenuGummi")||(InitTopMenuGummi=function(){function e(){var e=i.actual("innerWidth")-t.actual("innerWidth"),a=n.find(">li:not(.more):not(.catalog),li.more>.dropdown>li"),l=a.length;if(l){for(var f=!1,c=l-1;c>=0;--c){if(!((h=a.eq(c)).parents(".more").length>0))if(o[c]>e)f||(f=!0,d.removeClass("hidden")),(u=h.clone()).find(">.dropdown").removeAttr("style").removeClass("toleft"),u.find(">a").addClass("dark_font").removeAttr("style"),u.prependTo(s),h.addClass("cloned")}for(c=0;c<l;++c){var h,u;if((h=a.eq(c)).parents(".more").length>0)if(o[c]<=e)c===l-1&&(f=!1,d.addClass("hidden")),(u=h.clone()).find(">a").removeClass("dark_font"),u.insertBefore(d),h.addClass("cloned")}n.find("li.cloned").remove();var p=n.find(">
1li:not(.more):not(.catalog)").length,m=e-o[p-1],g=Math.floor(m/(p+(d.hasClass("hidden")?0:1))),v=r+g,w=Math.floor(v/2),C=v-w;n.find(">li:not(.catalog):visible>a").each((function(){$(this).css({"padding-left":w+"px"}),$(this).css({"padding-right":C+"px"})}));var R=v+m-(p+(d.is(":visible")?1:0))*g,b=Math.floor(R/2),B=R-b;n.find(">li:visible").last().find(">a").css({"padding-left":b+"px"}),n.find(">li:visible").last().find(">a").css({"padding-right":B+"px"})}CheckTopMenuFullCatalogSubmenu()}var n=$(".menu_top_block");if($menuTopest.length){var i=n.parents(".wrap_menu"),t=i.find(".catalog_menu_ext"),d=n.find(">.more"),a=d.actual("outerWidth",{includeMargin:!0});d.addClass("hidden");var o=[],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");o[d]=(t+=s)+(d!==i-1?a: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.