PageSourceSearch

https://www.hotbench.tv/javascripts/recaptcha-forms.js

js hotbench.tv collected 2026-10-02 06:36:41 UTC 1,082 bytes, 38 lines download raw bytes

1(function() {
2    var SITE_KEY = RECAPTCHA_SITE_KEY;
3  
4    function bindRecaptchaForm(formId) {
5      var form = document.getElementById(formId);
6      if (!form) return;
7  
8      form.addEventListener('submit', function(event) {
9        event.preventDefault();
10  
11        var submitBtn = form.querySelector('[type="submit"]');
12        if (submitBtn) {
13          submitBtn.disabled = true;
14          submitBtn.style.opacity = '0.64';
15        }
16  
17        grecaptcha.ready(function() {
18          grecaptcha.execute(SITE_KEY, { action: 'submit' })
19            .then(function(token) {
20              form.querySelector('#recaptcha_token').value = token;
21              form.submit();
22            })
23            .catch(function() {
24              if (submitBtn) {
25                submitBtn.disabled = false;
26                submitBtn.style.opacity = '';
27              }
28            });
29        });
30      });
31    }
32  
33    document.addEventListener('DOMContentLoaded', function() {
34        bindRecaptchaForm('form-opinions');
35        bindRecaptchaForm('form-case');
36      });
37      
38  })();

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.