0.1.1 • Published 3 years ago

puzzlejs-jigsaw v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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