1window.addEventListener("DOMContentLoaded", function () { 2 const $megaMenuWrapper = document.querySelectorAll(".menu-block, .menu-only"); 3 4 if ($megaMenuWrapper.length) { 5 for (let i = 0; i < $megaMenuWrapper.length; i++) { 6 $megaMenuWrapper[i].addEventListener( 7 "mouseover", 8 function () { 9 // calculate menu items position 10 $megaMenuWrapper[i].querySelector(".mega-menu").classList.add("visible"); 11 CheckTopVisibleMenu(); 12 InitMenuNavigationAim(); 13 14 // init banner 15 const $bannerMenu = $megaMenuWrapper[i].querySelectorAll(".owl-carousel-hover"); 16 if ($bannerMenu.length) { 17 $bannerMenu.forEach(($el) => { 18 $el.classList.remove("owl-carousel-hover"); 19 $el.classList.add("swiper"); 20 21 setTimeout(function () { 22 initSwiperSlider(); 23 $el.classList.remove("loader_circle"); 24 }, 1); 25 }); 26 } 27 }, 28 { 29 once: true, 30 } 31 ); 32 } 33 } 34});
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.