1.0.7 • Published 10 months ago

zkme-antibot-component v1.0.7

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

About

This package contains web components for anti-bot (liveness-detection).

DevicesChromeFireFoxSafari
Mobile (iOS)99 (iOS14.4+)99 (iOS14.4+)11
Mobile (Android)6662-
Desktop666311

Install via NPM

On the command line, navigate to the root directory of your project:

cd /path/to/your-project

Run the following command:

npm init

Then answer the questions in the command line questionnaire.

Install zkme-antibot-component

npm install zkme-antibot-component

Import zkme-antibot-component into your index.js

import { Antibot } from  'zkme-antibot-component'

Install via CDN

Connect the script in your .html file.

For example:

<script src="https://cdn.jsdelivr.net/npm/zkme-antibot-component@latest/dist/index.min.js"></script>

Add the name of the component to the html, as in the example below.

<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdn.jsdelivr.net/npm/zkme-antibot-component@latest/dist/index.min.js"></script>

    <script>
      //success callback
      function verifySuccess() {
        console.log('success callback')
      }
    </script>
  </head>
  <body>
   <zkme-antibot isOpen="true" verifySuccess="verifySuccess"></zkme-antibot>
  </body>
</html>