1jQuery(document).ready(function($){ 2 "use strict"; 3 4 function prepare_gummenu(menus){ 5 6 $('.arrow', menus).each(function(f, index){ 7 8 $(index).on('click', function(e){ 9 e.preventDefault(); 10 var curmenu = $(this).closest('li'); 11 curmenu.siblings().removeClass('menu-open'); 12 curmenu.toggleClass('menu-open'); 13 }); 14 }); 15 16 } 17 18 19 if($('.gum-menu').length){ 20 $('.gum-menu').each(function(){ 21 22 var themenu = $(this), menuwrapper = themenu.closest('.nav-wrapper'), btn = menuwrapper.find('.toggle-gum-menu'); 23 24 prepare_gummenu(themenu); 25 26 btn.unbind('click').on('click', function(e){ 27 e.preventDefault(); 28 themenu.toggleClass('toggle-collapse'); 29 30 }); 31 32 }); 33 } 34 35});
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.