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.