PageSourceSearch

https://projectalloy.org/javascripts/captcha.js

js projectalloy.org collected 2026-09-24 09:44:45 UTC 704 bytes, 1 lines download raw bytes

1function setupCaptchas(){for(var e=document.querySelectorAll("form"),t=0;t<e.length;t++){var a=e[t];if(!a.className.match(/stripe/)){var r=a.querySelector('input[type="submit"]'),c=captchaPlaceholder();r.insertAdjacentElement("beforebegin",c),renderCaptcha(c),validateCaptchaOnSubmit(a)}}}function captchaPlaceholder(){var e=document.createElement("div");return e.className="invisible-captcha",e}function renderCaptcha(e){var t="6LdMqysUAAAAABtlzr5Ki54p3VqRhpC4S7fSxq--";grecaptcha.render(e,{sitekey:t})}function validateCaptchaOnSubmit(e){e.addEventListener("submit",function(t){if(""===grecaptcha.getResponse()){t.preventDefault();var a=e.querySelector("div.error");a.setAttribute("aria-hidden",!1)}})}

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.