Vanilla JavaScript Glue JavaScript library
Embed mCaptcha widget in webpages built using Vanilla JavaScript
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