@drozdik.m/recaptcha
Version:
Intuitive and easy way to use Recaptcha
12 lines (11 loc) • 494 B
JavaScript
exports.__esModule = true;
var RecaptchaV2_1 = require("../src/RecaptchaV2");
document.addEventListener("DOMContentLoaded", function () {
var recaptcha1 = new RecaptchaV2_1.RecaptchaV2("recaptcha1", "6LcTYRAUAAAAAPPL_zx6mJBG9shbysJXwLepTBgt");
document.getElementById("recaptcha1Reset").addEventListener("click", function () {
recaptcha1.Reset();
});
recaptcha1.OnStateChange.Add(function (e) {
console.log("Validated: " + e.Validated());
});
});