mcaptcha-glue

glue code to setup mCaptcha on your website

Usage no npm install needed!

<script type="module">
  import mcaptchaGlue from 'https://cdn.skypack.dev/mcaptcha-glue';
</script>

README

PoW JavaScript library

JavaScript library to generate PoW for mCaptcha

0.1.0 Build) codecov

Usage

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

<div style="width: 304px; height: 78px;">
  <iframe
    title="mCaptcha"
    src="<LINK TO WIDGET>"
    role="presentation"
    name="mcaptcha-widget__iframe"
    id="mcaptcha-widget__iframe"
    scrolling="no"
    sandbox="allow-same-origin allow-scripts"
    width="304"
    height="78"
    data-mcaptcha_host="<mCaptcha HOST LOCATION>"
    frameborder="0"
  ></iframe>
</div>
<script src="../dist/index.js"></script>
<script charset="utf-8">
  mcaptchaGlue.init();
</script>

Example

See example form in ./static/embeded.html