1// loop through main navigation, define if there are any sub-levels and wrap into container with corresponding class name 2// the function is needed because mmenu doesn't provide this functionality, and we need it to style sub-levels differently, with their own color schemes 3function navigationSublevelWrap(list, subnavClass) { 4 list.each(function() { 5 var menuList = $(this), 6 depth = menuList.parents('ul').length; 7 8 if (depth > 0) { 9 menuList.wrap(function() { 10 return '<div class="' + subnavClass + depth + '"></div>'; 11 }); 12 } 13 }); 14}
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.