PageSourceSearch

https://ast.ru/local/components/ast/subscription-form/templates/.default/script.js

js ast.ru collected 2026-10-02 03:07:19 UTC 1,051 bytes, 1 lines download raw bytes

1$(document).ready(function(){$.validate({form:"#subscription-news",lang:"ru",errorMessageClass:"error",onSuccess:function(e){var n=e.serializeArray(),o="";for(i=0;i<n.length;i++)"email"==n[i].name&&(o=n[i].value);e=BX.bitrix_sessid();function r(e){if(e.ok)return e;throw Error(e.statusText)}return fetch("/local/ajax/subscriebe/checkUserSubscribe.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"email="+encodeURIComponent(o)+"&sessid="+encodeURIComponent(e)}).then(r).then(function(e){return e.json()}).then(function(e){e.isSubscriber&&(document.location.href="/letter-check-news/"),!e.isSubscriber&&e.existPromoCode&&(document.location.href="/letter-grat-news/"),e.isSubscriber||e.existPromoCode||(document.location.href="/letter-conf-news/ ")}).then(r).catch(function(e){console.error("Error:",e)}),!1}}),$("#subscription-news button").on("click",function(){var e=$(this).parents(".subscription-news__form");e.hasClass("subscription-news__form--no-send")&&e.removeClass("subscription-news__form--no-send")})});

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.