1jQuery( document ).ready(function() { 2 jQuery('.search-button, .search-close').click(function(e) { 3 e.preventDefault(); 4 jQuery( ".search_bar" ).toggle(); 5 jQuery(".product_search_box").focus(); 6 }); 7 8 jQuery("body").on('keyup', function (e) { 9 e.preventDefault(); 10 if (e.key === 'Enter' || e.keyCode === 13) { 11 if (jQuery('.product_search_box').val().length > 0) { 12 jQuery('#search-confirm').click(); 13 } 14 } 15 }); 16 17 jQuery('#search-confirm').click(function(e) { 18 e.preventDefault(); 19 let keyword = jQuery('.product_search_box').val(); 20 keyword = encodeURI(keyword); 21 window.location.href = "/search/" + keyword; 22 }); 23});
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.