@mcaptcha/vanilla-glue
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha-3 • Public • Published

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

<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

Package Sidebar

Install

npm i @mcaptcha/vanilla-glue

Homepage

mcaptcha.org

Weekly Downloads

4,379

Version

0.1.0-alpha-3

License

(MIT OR Apache-2.0)

Unpacked Size

6.94 kB

Total Files

4

Last publish

Collaborators

  • mcaptcha-user
  • realaravinth