https://www.cauleyferrari.com/wp-content/themes/aanWordpress/scripts/header_search.js?20260204210415
1let next_search = [], 2curr_page = 1, 3loadnext = false, 4orderby = '', 5goToPage = () => { 6 7 var loc = ''; 8 var new_hash = ''; 9 10 if (document.getElementById("stock") && $('#stock').val().length > 1 ) { 11 loc = all_page_name +'?stockno='+ $('#stock').val(); 12 location.href = loc; 13 return; 14 } 15 16 for(var n in searchFilter){ 17 if (n == 'type') 18 continue; 19 if (typeof(searchFilter[n]) == "object") { 20 new_hash += n +'=['+ encodeURIComponent(searchFilter[n][0]) +']&'; 21 } else if (typeof(searchFilter[n]) == "string" && searchFilter[n]!="") { 22 new_hash += n +'='+ encodeURIComponent(searchFilter[n]) +'&'; 23 } 24 } 25 26 var loc_tion = window.location.href; 27 if( new_hash.length > 1) 28 new_hash = "?"+ new_hash; 29 30 if ( searchFilter['type'] == "used" ) 31 loc = used_page_name; 32 else if( searchFilter['type'] == "new" ) 33 loc = new_page_name; 34 else if( searchFilter['type'] == "certified" ) 35 loc = certified_page_name; 36 else 37 loc = all_page_name; 38 39 location.href = loc + new_hash; 40}, 41clearSearch = () => { 42 searchFilter = []; 43 getSearchResults(); 44}, 45adjustSearchFields = () => { 46 for(var f=0; f<fields.length; f++){ 47 var cur_field = fields[f]; 48 49 // The following is added code to implement a slider for price using noUiSlider 50 if(slider_fields.includes(cur_field)){ 51 sliderDisplay(cur_field, searchFilter[cur_field], next_search[cur_field]); 52 } 53 54 // from - to foelds 55 else if(from_to_fields.includes(cur_field)){ 56 fromToDisplay(cur_field, searchFilter[cur_field], next_search[cur_field]); 57 } 58 // These fields are for standard option selects. 59 else if (typeof next_search[cur_field] !== typeof undefined && typeof next_search[cur_field] != null && Object.keys(next_search[cur_field]).length > 0) { 60 fillSearchFields(cur_field); 61 62 } else 63 $('#'+ cur_field).empty(); 64 } 65};
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.