1(function ($) { 2 Drupal.behaviors.imageCaptchaRefresh = { 3 attach: function (context) { 4 $('.reload-captcha', context).not('.processed').bind('click', function () { 5 $(this).addClass('processed'); 6 var $form = $(this).parents('form'); 7 // Send post query for getting new captcha data. 8 var date = new Date(); 9 var url = this.href + '?' + date.getTime(); 10 $.get( 11 url, 12 {}, 13 function (response) { 14 if(response.status == 1) { 15 $('.captcha', $form).find('img').attr('src', response.data.url); 16 $('input[name=captcha_sid]', $form).val(response.data.sid); 17 $('input[name=captcha_token]', $form).val(response.data.token); 18 } 19 else { 20 alert(response.message); 21 } 22 }, 23 'json' 24 ); 25 return false; 26 }); 27 } 28 }; 29})(jQuery);
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.