Skip to content

Latest commit

 

History

History
 
 

vanilla

Vanilla JavaScript Glue JavaScript library

Embed mCaptcha widget in webpages built using Vanilla JavaScript

0.1.0 Build) codecov

Usage

Add this snippet to the form which requires to be protected using mCaptcha

<label
  data-mcaptcha_url="{{paste your widget link here}}"
  for="mcaptcha__token"
  id="mcaptcha__token-label"
>
  mCaptcha authorization token.
  <a
	href="https://mcaptcha.org/docs/user-manual/how-to-mcaptcha-without-js/"
	>Instructions</a
  >.
  <input type="text" name="mcaptcha__token" id="mcaptcha__token" />
</label>
<div id="mcaptcha__widget-container"></div>
<script src="https://unpkg.com/@mcaptcha/vanilla-glue@0.1.0-rc2/dist/index.js"></script

Example

See example form in ./static/embeded.html