PageSourceSearch

https://aspro.ru/local/templates/aspro_main/components/bitrix/catalog.comments/article_comments/script.js

js aspro.ru collected 2026-10-03 19:22:38 UTC 933 bytes, 33 lines download raw bytes

1(function () {
2	function prepareForm(form) {
3		if (!form || form.dataset.articleCommentsPrepared === "Y") {
4			return;
5		}
6
7		form.dataset.articleCommentsPrepared = "Y";
8
9		var nameInput = form.querySelector('input[name="user_name"]');
10		var emailInput = form.querySelector('input[name="user_email"]');
11		var textarea = form.querySelector("textarea");
12		var submit = form.querySelector("#post-button");
13
14	}
15
16	function prepareRoot(root) {
17		root.querySelectorAll("form").forEach(prepareForm);
18	}
19
20	document.addEventListener("DOMContentLoaded", function () {
21		document.querySelectorAll("[data-article-comments], .article-comments").forEach(function (root) {
22			prepareRoot(root);
23		});
24	});
25
26	if (window.BX && BX.addCustomEvent) {
27		BX.addCustomEvent("onFrameDataReceived", function () {
28			document.querySelectorAll("[data-article-comments], .article-comments").forEach(function (root) {
29				prepareRoot(root);
30			});
31		});
32	}
33})();

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.