1jQuery(document).ready(function ($) { 2 const window_width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 3 4 if (window_width < 1200) { 5 const $ubermenu = $('.ubermenu.ubermenu-headermainmenu'); 6 const $submenus = get_submenus(); 7 8 $submenus.each(function (idx, item) { 9 $ubermenu.ubermenu('openSubmenu', $(`#${item.id}`)); 10 }); 11 12 function get_submenus() { 13 return $ubermenu.find('li.ubermenu-item-has-children.ubermenu-current-menu-item, li.ubermenu-item-has-children.ubermenu-current-menu-ancestor'); 14 } 15 } 16});
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.