puzzlejs-jigsaw
v0.1.1
Published
A simple image puzzle
Downloads
3
Readme
puzzlejs-jigsaw
A simple picture puzzle.
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
}
);