PageSourceSearch

https://fkks.com/themes/ee/asset/javascript/compressed/recaptcha.js

js fkks.com collected 2026-10-02 16:22:32 UTC 1,183 bytes, 31 lines download raw bytes

1// reCaptcha v3 JS
2document.addEventListener('submit', function(event) {
3    const form = event.target;
4    const submitFormFunction = Object.getPrototypeOf(form).submit;
5    event.preventDefault();
6    grecaptcha.ready(function () {
7        grecaptcha.execute(eeRecaptchaKey, { action: 'register' }).then(function (token) {
8            var sendData = "rec=" + token
9            const eeRecaptchaResponse = fetch(eeRecaptchaEndpoint, {
10                method: 'POST',
11                credentials: 'same-origin',
12                headers: {
13                    'Content-Type': 'application/x-www-form-urlencoded'
14                },
15                body: sendData
16            }).then(function(response) {
17                return response.json();
18            }).then(function(json) {
19                if(json.code != 'failed') {
20                    document.getElementById('eeReCaptcha').value = json.code;
21                    submitFormFunction.call(form);
22                } else {
23                    console.log("reCaptcha check failed");
24                }
25            })
26            .catch(function(error) {
27                //console.log(error);
28            })
29        });
30    });
31});

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.