PageSourceSearch

https://www.eni-ecole.fr/wp-content/cache/min/1/wp-content/eni/mobile-menu/js/menu.js?ver=1790582324

js eni-ecole.fr collected 2026-10-04 06:49:41 UTC 2,434 bytes, 3 lines download raw bytes

1(function($){const MENU_BTN='.mobile_menu_bar_toggle';const MENU_NAV='.mobile_nav';const MENU='#top-menu';const MENU_ITEM_WITH_CHILDREN='.menu-item-has-children';const SUB_MENU='ul.sub-menu';const MOBILE_MQ=window.matchMedia('(max-width:1160px)');const CustomMobMenu={Menu:null,btnMenu:null,MenuNav:null,Body:null,init:function(){console.log("Initialisation du menu mobile personnalisé");this.Menu=$(MENU);this.btnMenu=$(MENU_BTN);this.MenuNav=$(MENU_NAV);this.Body=$('body');$(SUB_MENU).each(function(i){$(this).children('li').each(function(i){this.style.setProperty('--i',i)})})},toggleMenu:function(){this.Body
2this.MenuNav.toggleClass('closed').toggleClass('opened');if(this.MenuNav.hasClass('opened')){this.Body.addClass('menu-opened')}else{this.Body.removeClass('menu-opened')}},toggleSubmenu:function($menuItem){const $submenu=$menuItem.find(SUB_MENU).first();const isOpen=($menuItem.hasClass('forceClosed')?!1:$menuItem.filter('[class*="current_"]').length);const isRoot=$menuItem.parent().is(MENU);if(isOpen){$menuItem.removeClass('current_open').addClass('forceClosed')}else{const $MenusToclose=$menuItem.parent().parent().find('.current_menu_item, .current_page_item, .current_menu_parent, .current_page_ancestor, .current_menu_ancestor, .current_open');$MenusToclose.each(function(){$(this).removeClass('current_menu_item current_page_item current_menu_parent current_page_ancestor current_menu_ancestor current_open').addClass('forceClosed')});setTimeout(()=>{$(MENU)[0].scrollTo({top:$menuItem.position().top,left:0,behavior:"smooth"})},50);$menuItem.addClass('current_open').removeClass('forceClosed')}},openCurrentSection:function(){const $currentItem=this.Menu.find('.current_menu_item, .current_menu_parent, .current_menu_ancestor');if($currentItem.length){const $parentWithChildren=$currentItem.closest(MENU_ITEM_WITH_CHILDREN+' > a');if($parentWithChildren.length){const $submenu=$parentWithChildren.find(SUB_MENU).first();$submenu.show();$parentWithChildren.addClass('current_open')}}}};document.addEventListener('click',function(e){if(!MOBILE_MQ.matches)return;const btn_menu=e.target.closest(MENU_BTN);const menu_item=e.target.closest(MENU+' '+MENU_ITEM_WITH_CHILDREN+' > a');if(!menu_item&&!btn_menu)return;e.preventDefault();e.stopPropagation();if(btn_menu){CustomMobMenu.toggleMenu($(menu_item).parent())}
3if(menu_item){CustomMobMenu.toggleSubmenu($(menu_item).parent())}},!0);CustomMobMenu.init()})(jQuery)

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.