Skip to content

Instantly share code, notes, and snippets.

@venturion
Last active August 3, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venturion/a4278d8b01b9dc32e917221c64fe6035 to your computer and use it in GitHub Desktop.
Save venturion/a4278d8b01b9dc32e917221c64fe6035 to your computer and use it in GitHub Desktop.
/* Inicialização */
var mathCaptcha = new MathCaptcha({
selector: '#form'
})
/* Default parameters */
MathCaptcha.defaults = {
selector: '[name=form]',
inputClass: 'form-control',
inputName: 'captcha',
placeholder: 'calc result',
labelClass: 'calc',
calcValueClass: 'calc__value',
calcResultClass: 'calc__result',
wrapperClass: 'math-captcha',
submitSelectorClass: '[type=submit]',
eventType: 'blur',
multiplicator: 100,
fontSize: 14
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment