1jQuery(function($){ 2 $(document).ready(function(){ 3 4 $("<select />").appendTo("header nav"); 5 $("<option />", { 6 "selected": "selected", 7 "value" : "", 8 "text" : "Go To..." 9 }).appendTo("header nav select"); 10 11 $("header nav a").each(function() { 12 var el = $(this); 13 if(el.parents('.sub-menu').length >= 1) { 14 $('<option />', { 15 'value' : el.attr("href"), 16 'text' : '- ' + el.text() 17 }).appendTo("header nav select"); 18 } 19 else if(el.parents('.sub-menu .sub-menu').length >= 1) { 20 $('<option />', { 21 'value' : el.attr('href'), 22 'text' : '-- ' + el.text() 23 }).appendTo("header nav select"); 24 } 25 else { 26 $('<option />', { 27 'value' : el.attr('href'), 28 'text' : el.text() 29 }).appendTo("header nav select"); 30 } 31 }); 32 33 $("header nav select").change(function() { 34 window.location = $(this).find("option:selected").val(); 35 }); 36 37 }); 38});
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.