1$(document).ready(function () { 2 $('.subs-form').submit(function() { 3 let data = $(this).serialize() 4 sentForm($(this).data('url'), data) 5 return false; 6 }) 7 8 $('.subs-result-close').click(function() { 9 $('.gray-overlay').fadeOut(150) 10 $('.subs-result').fadeOut(150) 11 return false 12 }) 13 14 $('[name="subs-check"]').change(function() { 15 if (!$(this).prop('checked')) { 16 $('.subs-form__input, .subs-form__btn').attr('disabled', true) 17 } else { 18 $('.subs-form__input, .subs-form__btn').attr('disabled', false) 19 } 20 }) 21}) 22 23function sentForm(url, data) { 24 $.ajax({ 25 url: url, 26 method: 'post', 27 dataType: 'html', 28 data: data, 29 success: function(data){ 30 let res = JSON.parse(data) 31 // console.log(res); 32 if (res && res.EMAIL_ERROR) { 33 $('.subs-form__input').addClass('error'); 34 } else if (res && res.ADD) { 35 $('.subs-result__add').show() 36 $('.subs-result__ext').hide() 37 } else if (res && res.EXT) { 38 $('.subs-result__add').hide() 39 $('.subs-result__ext').show() 40 } 41 $('.subs-form')[0].reset() 42 $('.subs-form__input').removeClass('error'); 43 $('.gray-overlay').fadeIn(150) 44 $('.subs-result').fadeIn(150) 45 } 46 }); 47}
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.