puzzlejs-jigsaw

0.1.1 • Public • Published

puzzlejs-jigsaw

A simple picture puzzle.

preview

Usage

Install puzzlejs-jigsaw via npm or yarn.

$ npm install puzzlejs-jigsaw
# or
$ yarn add puzzlejs-jigsaw

Then add this to your site:

import $ from 'jquery';
import jigsaw from 'puzzlejs-jigsaw';

jigsaw.init(
  $('#jigsaw'),
  /**
   * callback when puzzle passed
   */
  function passed() {
    // TODO: implement or delete this
  },
  /**
   * callback when puzzle not passed
   */
  function rejected() {
    // TODO: implement or delete this
  }
);

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i puzzlejs-jigsaw

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

509 kB

Total Files

20

Last publish

Collaborators

  • mitscherlich36