1hjq(function(){ 2 var forms = hjq('form.ox_form.ox_callback'); 3 function update_captcha(form){ 4 hjq.ajax({ 5 url: '//ox.dev.ndkl.ru/captcha.php', 6 data: { 7 act: 'get_id', 8 source: window.location.href, 9 rectype: form.find('input[name="rectype"]').val() 10 }, 11 success: function(data){ 12 if (parseInt(data)){ 13 cid = data; 14 var c = form.find('.captcha'); 15 c.find('input[name="_captcha_id"]').val(data); 16 c.find('input[name="_captcha_value"]').attr('required', true).val(''); 17 c.find('img').attr('src', '//ox.dev.ndkl.ru/captcha.php?act=get_file&id=' + data); 18 c.show(); 19 } 20 } 21 }); 22 } 23 24 forms.each(function(index, item){ 25 var cid = 0; 26 var res = oxInitForm(item, function(data){ 27 if (data !== false){ 28 if (data.status == 'error' && data.code == 1) 29 update_captcha(hjq(item)); 30 } 31 }); 32 res.form.submit(function(){ 33 res.sendForm(); 34 return false; 35 }); 36 }); 37});
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.