1//var root_directory2 = "http://localhost/_nieuwdesign/podiuminfo/html/"; 2var root_directory2 = "https://www.podiuminfo.nl/"; 3 4$(document).ready(function(){ 5 //For every element start with id: "dd_search_" run the getDropDownData() function on click. 6 $('select[id^=dd_search_]').on('hover click mousedown mouseup touchstart touchmove', function(e){ 7 getDropDownData($(this).attr('id')); 8 }); 9}); 10 11 12function getDropDownData(from) { 13 setTimeout(function () { 14 if ($("#" + from).hasClass('loaded')) { 15 //Do nothing when the data is already loaded. 16 } else { 17 $("#" + from).addClass('loaded'); 18 19 $.getJSON(root_directory2 + "ajx/getDropDownData.php", { 20 from: from 21 }, function(ret) { 22 var result = "<option></option>"; 23 $.each(ret['k'], function(index, value) { 24 result += "<option value="+value+">"+ret['v'][index]+"</option>"; 25 }); 26 27 $("#"+from).empty().append(result); 28 }); 29 } 30 31 }, 0); 32}
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.