1$(document).ready(function(){ 2var csrf = $("#csrf").val(); 3 4 displayCaptcha(csrf); 5 6 $("#reloadCaptcha").click(function(){ 7 reloadCaptcha(); 8 }); 9 10 function displayCaptcha(csrf){ 11 $.ajax({ 12 type : "POST", 13 url : "/FMCS/getCaptcha", 14 data: "token="+csrf, 15 16 success : function(response) { 17 $("#captcha_img").html("<img style='width:90%' src='data:image/png;base64," + response + "' />"); 18 //this code is for public search --start 19 $("#captcha_img1").html("<img src='data:image/png;base64," + response + "' />"); 20 $("#captcha_img2").html("<img src='data:image/png;base64," + response + "' />"); 21 $("#captcha_img3").html("<img src='data:image/png;base64," + response + "' />"); 22 $("#captcha_img4").html("<img src='data:image/png;base64," + response + "' />"); 23 $("#captcha_img7").html("<img src='data:image/png;base64," + response + "' />"); 24 $("#captcha_img8").html("<img src='data:image/png;base64," + response + "' />"); 25 //public search --end 26 }, 27 error : function(e) { 28 $("#errormsg").addClass("alert alert-danger"); 29 $("#errormsg").html("<b>Error</b>: An Error Occured, Please try Later"); 30 setTimeout(function(){ 31 $("#errormsg").removeClass("alert alert-danger"); 32 $("#errormsg").html(""); 33 },2000); 34 } 35 }); 36 } 37 38 function reloadCaptcha(){ 39 var csrf = $("#csrf").val(); 40 //$("#refreshHandler").html("<a href='#' alt='Reload Image'><img src='/FMCS/resources/app_srv/GlobalPages/CommonUtility/Images/loading.gif' /></a>") 41 $.ajax({ 42 type : "POST", 43 url : "/FMCS/reloadCaptcha", 44 data: "token="+csrf, 45 46 success : function(response) { 47 $("#csrf").val(response); 48 displayCaptcha(response); 49 //$("#refreshHandler").html("<a href='#' id='reloadCaptcha' alt='Reload Image'><img src='/FMCS/resources/app_srv/GlobalPages/CommonUtility/Images/reload.png' width='30px' /></a>") 50 }, 51 error : function(e) { 52 $("#errormsg").addClass("alert alert-danger"); 53 $("#errormsg").html("<b>Error</b>: An Error Occured, Please try Later"); 54 setTimeout(function(){ 55 $("#errormsg").removeClass("alert alert-danger"); 56 $("#errormsg").html(""); 57 },2000); 58 } 59 }); 60 } 61});
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.