1 2jQuery(function ($) { 3 /* 4 localized variables passed through params object: 5 params.clearLogRestUrl 6 params.clearLogButtonId 7 params.downloadLogRestUrl 8 params.downloadLogButtonId 9 10 */ 11 12 $("#"+params.clearLogButtonId).on("click", () => { 13 14 $.post( 15 params.clearLogRestUrl, 16 { }, 17 function (json) { 18 console.log(json); 19 } 20 ); 21 }); 22 23 $("#"+params.downloadLogButtonId).on("click", () => { 24 $.post( 25 params.downloadLogRestUrl, 26 {}, 27 function (json) { 28 let download = json.data; 29 30 var blob = new Blob([download], { type: "json" }); 31 32 var a = document.createElement("a"); 33 a.download = "nf-file-uploads-debug-log.json"; 34 a.href = URL.createObjectURL(blob); 35 a.dataset.downloadurl = ["json", a.download, a.href].join(":"); 36 a.style.display = "none"; 37 document.body.appendChild(a); 38 a.click(); 39 document.body.removeChild(a); 40 setTimeout(function () { 41 URL.revokeObjectURL(a.href); 42 }, 15000); 43 } 44 ); 45 }); 46 47return; 48 49});
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.