PageSourceSearch

https://rendv.ru/bitrix/js/b01110011.recaptcha/script.js

js rendv.ru collected 2026-10-07 15:24:20 UTC 1,050 bytes, 44 lines download raw bytes

1window.recaptcha.token = '';
2
3window.recaptcha.stid = null; // setTimeout id
4
5window.recaptcha.reloadToken = function()
6{
7    if (typeof(grecaptcha) === 'undefined') return;
8
9    clearTimeout(this.stid);
10
11    this.stid = setTimeout(() =>
12    {
13        this.reloadToken();
14    },
15    this.tokenLifeTime * 1000);
16
17    grecaptcha.ready(() =>
18    {
19        grecaptcha.execute(this.siteKey, {action: 'homepage'}).then(token =>
20        {
21            this.token = token;
22        });
23    });
24};
25
26window.recaptcha.getToken = function() // пользуемся этим методом когда нужно получить токен
27{
28    var oldToken = this.token;
29    this.reloadToken();
30    return oldToken;
31};
32
33document.addEventListener('DOMContentLoaded', function()
34{
35    window.recaptcha.reloadToken();
36
37    document.querySelectorAll('input[name=recaptcha_token]').forEach(item =>
38    {
39        item.form.onsubmit = () =>
40        {
41            item.value = window.recaptcha.getToken();
42        };
43    });
44});

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.