1var form, 2 input, 3 error, 4 checkbox; 5 6$(function() { 7 8 function findForm(el) { 9 form = $(el).closest('.mailer-subscribe'); 10 input = form.find('input'); 11 error = form.find('#mailer-subscribe-error'); 12 checkbox = form.find('.mailer-subscribe-terms input[type=checkbox]'); 13 } 14 15 $('.mailer-subscribe button.primary').click(function(e) { 16 findForm($(this)); 17 if (!checkbox.is(':checked')) { 18 error.text('ÐодÑвеÑдиÑе ÑоглаÑие'); 19 error.show(); 20 return false; 21 } 22 if (!input.val()) { 23 error.text('Ðе Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿ÑÑÑÑм'); 24 error.show(); 25 return false; 26 } 27 28 /* 29 * ya metrika 30 */ 31 if ($(this).closest('form').data('id') == '1685868') { 32 yaCounter1024649.reachGoal('podpiska_pingvin'); 33 } else if ($(this).closest('form').data('id') == '214733') { 34 yaCounter1024649.reachGoal('podpiska_tm'); 35 } 36 37 error.empty(); 38 error.hide(); 39 }); 40 41 $('.mailer-subscribe-terms input[type=checkbox]').change(function() { 42 findForm($(this)); 43 error.empty(); 44 error.hide(); 45 }); 46 $('.mailer-subscribe input').keyup(function() { 47 findForm($(this)); 48 error.empty(); 49 error.hide(); 50 }); 51 $(".ml-block-success").click(function() { 52 findForm($(this)); 53 form.removeClass('__result'); 54 }); 55 56});
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.