@andypagdin/verify

0.0.3 • Public • Published

VerifyJs

A lightweight simple puzzle verification plugin.

Build Build Version Size

Verify randomly generates a path for the user to follow using the on screen d-pad.

PathGeneration Demo

Installation

Add verify.js to your project.

<script src="verify.js"></script>

You can get the corresponding CDN link from unpkg.

VerifyJs is available via npm.

npm install @andypagdin/verify --save

Usage

Simply call action() to activate the verification modal.

Verify.action((result, message) => {
  console.log(result, message);
});

result will return 3 different codes:

  • 0: Verify failed.
  • 1: Verify successful.
  • 2: Modal was closed before verification was able to complete.

message will return 3 different strings:

  • Incorrect move $move_direction
  • Verification successful
  • Modal closed before verification complete

Readme

Keywords

none

Package Sidebar

Install

npm i @andypagdin/verify

Weekly Downloads

3

Version

0.0.3

License

ISC

Unpacked Size

72.3 kB

Total Files

3

Last publish

Collaborators

  • pags11