@mcaptcha/vanilla-glue
Version:
glue code to setup mCaptcha on your website
36 lines (26 loc) • 940 B
Markdown
<div align="center">
<h1>Vanilla JavaScript Glue JavaScript library</h1>
<strong>Embed mCaptcha widget in webpages built using Vanilla JavaScript</strong>
[](https://mcaptcha.github.io/glue/vanilla)
/badge.svg>)
[](https://codecov.io/gh/mCaptcha/glue)
</div>
## Usage
Add this snippet to the form which requires to be protected using
mCaptcha
```html
<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](./static/embeded.html)