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

0.1.0-alpha-3 • Public • Published

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

Package Sidebar

Install

npm i mcaptcha-glue

Homepage

mcaptcha.org

Weekly Downloads

0

Version

0.1.0-alpha-3

License

(MIT OR Apache-2.0)

Unpacked Size

12.5 kB

Total Files

7

Last publish

Collaborators

  • realaravinth
  • mcaptcha-user