Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 891 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 891 Bytes

recaptcha-test

A website to test basic reCAPTCHA functionality with callbacks.

Usage

To handle possible reCAPTCHA events, override one or more of the following:

// fired, when the reCAPTCHA is loaded
function onCaptchaLoad() {
    console.log('onCaptchaLoad')
}

// fired, when the user submits a successful reCAPTCHA response
function onCaptchaSuccess(token) {
    console.log('onCaptchaSuccess', token)
}

// fired, when the reCAPTCHA response expires and the user needs to re-verify
function onCaptchaExpired() {
    console.log('onCaptchaExpired')
}

// fired, when the reCAPTCHA encounters an error
function onCaptchaError() {
    console.log('onCaptchaError')
}

Contribution

Any contribution is appreciated. Thank you, have fun!

License

MIT @ Richard Szakacs