PageSourceSearch

https://reurl.cc/asset/javascripts/common/recaptcha.js

js reurl.cc collected 2026-10-01 08:27:21 UTC 863 bytes, 23 lines download raw bytes

1// Renders the invisible reCAPTCHA widget into the #recaptcha container.
2//
3// Google's api.js is loaded with `defer` and pulls in further resources of its
4// own, so grecaptcha.render is usually not available yet at mount time; poll
5// until it shows up.
6//
7// callback runs once grecaptcha.execute() has produced a token; read it there
8// with grecaptcha.getResponse().
9window.initInvisibleRecaptcha = function (siteKey, callback) {
10    (function attempt() {
11        setTimeout(function () {
12            if (typeof grecaptcha === 'undefined' || typeof grecaptcha.render === 'undefined') {
13                attempt()
14            } else {
15                grecaptcha.render('recaptcha', {
16                    sitekey: siteKey,
17                    size: 'invisible',
18                    callback: callback
19                })
20            }
21        }, 100)
22    })()
23}

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.