0.1.0-alpha-3 • Published 4 years ago

mcaptcha-glue v0.1.0-alpha-3

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
github
Last release
4 years ago

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