1(function($) { 2 $(function() { 3 $(document).on('click', '.thegem-menu-custom.thegem-menu-custom--clickable ul.nav-menu-custom a' ,function(e) { 4 var $link = $(this); 5 var $menuItem = $link.closest('li'); 6 var $subMenu = $('> ul', $menuItem); 7 8 if($subMenu.length) { 9 event.preventDefault(); 10 var $subMenus = $('> ul', $menuItem); 11 if($menuItem.hasClass('collapsed')) { 12 $subMenus.slideUp(); 13 $menuItem.removeClass('collapsed'); 14 } else { 15 if($menuItem.hasClass('clickable') && $('li.show-parent', $subMenus).length === 0) { 16 $subMenus.prepend('<li class="show-parent"><a href="' + $link.attr('href') + '">' + thegemCustomMenuOptions.showCurrentLabel + '<i class="indicator"></i></a></li>'); 17 } 18 $subMenu.slideDown(); 19 $menuItem.addClass('collapsed'); 20 } 21 } 22 }); 23 }); 24})(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.