PageSourceSearch

https://sk-mv.ru/local/templates/new/components/bitrix/menu/big_menu/script.js

js sk-mv.ru collected 2026-10-02 19:35:52 UTC 5,714 bytes, 1 lines download raw bytes

1$(document).ready(function(){menuList();menuHeader()});$(window).resize(function(){menuResize()});let BIG_DESKTOP_BREAKPOINT=1200;var menuResizeFlag=false;var mouseCoords={x:0,y:0,set:function(e){if(e.pageX&&e.pageY){this.x=e.pageX;this.y=e.pageY}else if(e.clientX&&e.clientY){this.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;this.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}else{this.x=0;this.y=0}}};document.onmousemove=function(e){e=e||window.event;mouseCoords.set(e)};let menuList=function(){if($(window).width()<=991){$(".menuList__rfirst.active").removeClass("active")}let catalogTimer;$(".menuList__lfirst li").on("mouseenter",function(){if($(window).width()>991){var el=$(this),catalog=el.parents(".menuList"),dataId=el.attr("data-id"),innerMenu=catalog.find('.menuList__rfirst[data-id="'+dataId+'"]');clearTimeout(catalogTimer);if($(this).parent().find(".active").length){catalogTimer=setTimeout(()=>{mob={x:el.offset().left,width:el.width(),y:el.offset().top,height:el.height()};if(mouseCoords.x>=mob.x&&mouseCoords.x<=mob.x+mob.width&&mouseCoords.y>=mob.y&&mouseCoords.y<=mob.y+mob.height){el.addClass("active").siblings().removeClass("active");innerMenu.addClass("active").siblings().removeClass("active")}},300,innerMenu,dataId,el)}else{$(this).addClass("active");innerMenu.addClass("active").siblings().removeClass("active")}}});$(".menuList__rfirst-item .menuList__arr").click(function(){var returnBack=$(this).closest(".menuList__rfirst");var isActive=$(returnBack).hasClass("active");$(".menuList__rsecond").stop().slideUp(function(){$(this).removeAttr("style")});$(".menuList__rfirst").removeClass("active");if(!isActive){$(returnBack).find(".menuList__rsecond").stop().slideDown();$(returnBack).addClass("active")}});$(".menuList__lfirst-item  .menuList__arr").click(function(){var el=$(this).parent(),catalog=$(el).closest(".menuList"),dataId=$(el).attr("data-id"),innerMenu=$(catalog).find('.menuList__rfirst[data-id="'+dataId+'"]');el.addClass("active").siblings().removeClass("active");innerMenu.addClass("active").siblings().removeClass("active")});$(".menuList__rsecond-item .menuList__arr").click(function(){parent=$(this).closest(".menuList__rsecond-item");if($(parent).hasClass("active")){$(parent).removeClass("active");$(parent).find(".menuList__rsecond-item-list").stop().slideUp(function(){$(this).removeAttr("style")})}else{$(parent).addClass("active");$(parent).find(".menuList__rsecond-item-list").stop().slideDown()}});$(".menuList__back").click(function(){var el=$(this).closest(".menuList__rfirst"),catalog=$(el).closest(".menuList"),dataId=$(el).attr("data-id"),innerMenu=$(catalog).find('.menuList__lfirst-item[data-id="'+dataId+'"]');el.removeClass("active");innerMenu.removeClass("active")})};let menuHeader=function(){let dropdownTimerOpened;let dropdownTimerClosed;let isMenuOpened=false;let menu=$(".header__menu");let overlay=$(".siteOverlay");var id=$(".menuList__lfirst-item:first-child").attr("data-id");if($(window).width()>=991&&$(".menuList__rfirst[data-id='"+id+"']").length){$(".menuList__rfirst[data-id='"+id+"']").addClass("active");$(".menuList__lfirst-item[data-id='"+id+"']").addClass("active")}$(".header-fone-elem").on("mouseenter",function(evt){if($(window).width()>1230){let el=$(this),dropdown=el.children(".header-fone-block");clearInterval(dropdownTimerClosed);dropdown.fadeIn(600);el.addClass("active");$(".header-fone").height(dropdown.outerHeight())}});$(".header-fone-elem").on("mouseleave",function(){if($(window).width()>1230){let el=$(this),dropdown=el.children(".header-fone-block");dropdown.stop().fadeOut(200);el.removeClass("active");dropdownTimerClosed=setTimeout(()=>{$(".header-fone").height(0);isMenuOpened=false},100)}});$(".header-big-menu").click(function(){$(".menu").fadeIn()});$(".menu__close").click(function(){$(".menu").fadeOut()});$(".menuList__lfirst-item--search, .menuList__rfirst-item--search").click(function(){$(".menu").fadeOut();$(".search").fadeIn();$(".search__input").focus()});$(".header-tel__current-arr, .header-lang__current-arr").click(function(){if($(this).parent().hasClass("active")){$(this).parent().removeClass("active");let el=$(this).closest(".header-fone-elem"),dropdown=el.children(".header-fone-block");dropdown.stop().fadeOut(200,function(){dropdown.removeClass("active")});el.removeClass("active");dropdownTimerClosed=setTimeout(()=>{$(".header-fone").height(0);isMenuOpened=false},100)}else{if($(this).hasClass("header-tel__current-arr")&&$(".header-lang__current.active").length){$(".header-lang__current-arr").click()}if($(this).hasClass("header-lang__current-arr")&&$(".header-tel__current.active").length){$(".header-tel__current-arr").click()}$(this).parent().addClass("active");let el=$(this).closest(".header-fone-elem"),dropdown=el.children(".header-fone-block");clearInterval(dropdownTimerClosed);dropdown.fadeIn(600,function(){dropdown.addClass("active")});$(".header-fone").height(dropdown.outerHeight())}})};let menuResize=function(){if($(window).width()>=991&&menuResizeFlag==false){menuResizeFlag=true;$(".menuList__rsecond").stop().slideUp(function(){$(this).removeAttr("style")});$(".menuList__rfirst").removeClass("active");var id=$(".menuList__lfirst-item:first-child").attr("data-id");if($(".menuList__rfirst[data-id='"+id+"']").length){$(".menuList__rfirst[data-id='"+id+"']").addClass("active");$(".menuList__lfirst-item[data-id='"+id+"']").addClass("active")}}else if($(window).width()<991&&menuResizeFlag==true){$(".menuList__rfirst").removeClass("active mob");$(".menuList__lfirst-item").removeClass("active mob");menuResizeFlag=false}};

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.