1$(function(){ 2 3 var $form = $('#auth_modal_form').find("form"); 4 var $result = $('#auth_modal_form').find('.result_message'); 5 6 var ajax_path = $form.data("ajax-path"); 7 8 $form.find('input[type=submit]').on('click',function(){ 9 10 $result.text('...'); 11 12 $.ajax({ 13 type: 'POST', 14 url: ajax_path, 15 data: $form.serialize(), 16 async:true, 17 dataType:"json", 18 success: function(data){ 19 if (data.result=='ok'){ 20 $result.css('color','darkgreen').text( data.message ); 21 setTimeout(function(){ 22 23 document.location.href = document.location.href.replace('#auth',''); 24 },500); 25 }else if (typeof data.message == 'string') { 26 $result.css('color','darkred').html( data.message ); 27 }else { 28 console.log(data); 29 } 30 } 31 }); 32 33 return false; 34 }); 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.