1window.customSearchResult="" 2 3$(document).ready(function () { 4 let functionSeatch=function(event){ 5 console.log(event); 6 console.log(event.target.value); 7 $.ajax({ 8 // The URL for the request 9 url: "/local/modules/manticoreBX/service/shopRedirecHtml.php", 10 11 // The data to send (will be converted to a query string) 12 data: { 13 search: event.target.value 14 }, 15 dataType:"html", 16 // Whether this is a POST or GET request 17 type: "GET", 18 19 // The type of data we expect back 20 21 }) 22 // Code to run if the request succeeds (is done); 23 // The response is passed to the function 24 .done(function( data ) { 25 window.customSearchResult=data; 26 if(data) 27 { 28 //$(".") 29 ///$(".digi-products-scroll-handler,.digi-main__results").prepend(customSearchResult) 30 } 31 }) 32 // Code to run if the request fails; the raw request and 33 // status codes are passed to the function 34 .fail(function( xhr, status, errorThrown ) { 35 36 }) 37 // Code to run regardless of success or failure; 38 .always(function( xhr, status ) { 39 40 }); 41 42 } 43 $(document).on("keyup","input.tx_search.required.speech-input.digi-instant-search.jc-ignore,.digi-search-form__input",functionSeatch) 44 $(document).on("change","input.tx_search.required.speech-input.digi-instant-search.jc-ignore,.digi-search-form__input",functionSeatch) 45 // setInterval(function () { 46 // $(document).on("keyup","input.tx_search.required.speech-input.digi-instant-search.jc-ignore,.digi-search-form__input",functionSeatch) 47 // },1000) 48})
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.