0.1.0-alpha-3 • Published 6 months ago

@mcaptcha/vanilla-glue v0.1.0-alpha-3

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
github
Last release
6 months ago

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

<div
	id="mcaptcha__widget-container"
></div>
<script src="../dist/index.js"></script>
<script charset="utf-8">
	let config = {
		widgetLink: new URL(
			"https://demo.mcaptcha.org/widget/?sitekey=pHy0AktWyOKuxZDzFfoaewncWecCHo23"
		),
	};
	new mcaptchaGlue.default(config);
</script>

Example

See example form in ./static/embeded.html