1document.addEventListener('DOMContentLoaded', function() { 2 3 $('.js-subscription-book-form').on({ 4 'is:captchaFail': function(event) { 5 const $form = $(event.target); 6 $form.find('.js-subscription-book-form__input, .subscription-book__legal').css('display', 'none'); 7 }, 8 'is:success': function(event, response, data) { 9 const $form = $(event.target); 10 11 // ТÑÐ¸Ð³Ð³ÐµÑ ÑобÑÑÐ¸Ñ Ð¿Ñи аналиÑиÑеÑком дейÑÑвии 12 const analyticsEvent = new CustomEvent('ab.analytics.event', { 13 bubbles: true, 14 cancelable: true, 15 detail: { 16 eventCode: 'subscriptionBookGift', 17 email: $form.find('.js-subscription-book-form__input-field').val() 18 } 19 }); 20 event.target.dispatchEvent(analyticsEvent); 21 22 // Ðоказ ÑÑпеÑно оÑпÑавленной ÑоÑÐ¼Ñ 23 setTimeout(() => { 24 $form.find('.js-subscription-book-form__default').css('display', 'none'); 25 $form.find('.js-subscription-book-form__success').addClass('subscription-book__success_shown'); 26 }, 100); 27 }, 28 'is:fail': function(event) { 29 $(document).trigger('is:errorModal'); 30 } 31 }); 32 33 $(document).on('offerchange', function(event, offer) { 34 $('.js-subscription-book-form input[name="product"]').val(offer.id); 35 }); 36});
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.