1var base_url = window.location.host+"/"; 2 3function getParameter(name) { 4 name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 5 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), 6 results = regex.exec(location.search); 7 return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); 8} 9 10 11function sendRequest(url, callback, dataParam) { 12 13 $.ajax({ 14 type: "POST", 15 url: url, 16 data: dataParam, 17 dataType: 'json', 18 success: function(data) { 19 callback(data); 20 }, 21 error: function(jqXHR, textStatus, errorThrown) { 22 console.log('jqXHR:'); 23 console.log(jqXHR); 24 console.log('textStatus:'); 25 console.log(textStatus); 26 console.log('errorThrown:'); 27 console.log(errorThrown); 28 alert(textStatus); 29 } 30 }); 31} 32 33 34function sendMultipartFormDataRequest(url, callback, form) { 35 $.ajax({ 36 type: "POST", 37 url: url, 38 data: form, 39 dataType: 'json', 40 enctype: 'multipart/form-data', 41 processData: false, 42 contentType: false, 43 cache: false, 44 success: function(data) { 45 callback(data); 46 }, 47 error: function(jqXHR, textStatus, errorThrown) { 48 console.log('jqXHR:'); 49 console.log(jqXHR); 50 console.log('textStatus:'); 51 console.log(textStatus); 52 console.log('errorThrown:'); 53 console.log(errorThrown); 54 alert(textStatus); 55 } 56 }); 57}
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.