PageSourceSearch

https://softbalance.ru/local/js/grecapthainit.js?17664337031308

js softbalance.ru collected 2026-10-02 15:08:17 UTC 1,308 bytes, 49 lines download raw bytes

1(function (window) {
2    'use strict';
3
4    window.SBRecaptcha = function (params) {
5
6        this.siteKey = params;
7        this.token = '';
8
9        BX.ready(BX.delegate(this.init, this));
10    };
11
12    window.SBRecaptcha.prototype = {
13
14        init: function () {
15            this.reloadToken();
16        },
17
18        //пользуемся этим методом когда нужно получить токен
19        getToken: function ()
20        {
21            let oldToken = this.token;
22            this.reloadToken();
23            return oldToken;
24        },
25
26        //получаем токен и храним его в объекте
27        reloadToken: function () {
28            if (typeof(grecaptcha) !== "undefined") {
29                let sitekey = this.siteKey;
30                let obj = this;
31                grecaptcha.ready(function () {
32                    grecaptcha.execute(sitekey, {action: 'homepage'}).then(function (token) {
33                        obj.token = token;
34                    });
35                });
36            }
37        }
38    };
39
40})(window);
41
42BX.ready(function ()
43{
44    //получаем ключ сайта
45    let siteKey = BX.message('grecsitekey');
46
47    //объект сохраняем в window
48    window.SBRecapthchaObj = new window.SBRecaptcha(siteKey);
49});

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.