1$(document).ready(function () { 2 $("#navToggle").click(function () { 3 $("#responsiveNav").slideToggle("fast"); 4 return false; 5 }); 6 $("html").click(function () { 7 $("#responsiveNav").hide(); 8 }); 9 $("#customSearchButton").click(function () { 10 var params = $("#customSearchForm").serialize(); 11 var $sel = $("#customSearchCity"); 12 var city = ($sel.find(":selected").text()); 13 if (city != "All") { 14 city = city.substring(0, city.indexOf(",")); 15 params += "&city=" + city; 16 } 17 if ($("#kwds").val() != "") { 18 location.href = "/results-general?" + params; 19 } else { 20 location.href = "/results-date?" + params; 21 } 22 return false; 23 }); 24 $("#sdate").datepicker({ 25 minDate: 0, 26 onSelect: function (selected) { 27 $("#edate").datepicker("option", "minDate", selected) 28 } 29 }); 30 $("#edate").datepicker({ 31 minDate: 0, 32 onSelect: function (selected) { 33 $("#sdate").datepicker("option", "maxDate", selected) 34 } 35 }); 36 var myDate = new Date(); 37 $("#sdate").datepicker('setDate', myDate); 38 myDate.setDate(myDate.getDate() + 7); 39 $("#edate").datepicker('setDate', myDate); 40 $("#customSearchLink").click(function () { 41 $("#customSearchPanel").slideToggle(); 42 $(this).find("i").toggleClass("fa fa-search-plus").toggleClass("fa fa-search-minus"); 43 return false; 44 }); 45 46 47 $("#searchForm").submit(function (e) { 48 if ($(this).find("input").val().trim().length < 2) { 49 e.preventDefault() 50 } 51 }); 52});
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.