https://github.com/mitscherlich/puzzlejs-jigsaw
A simple image puzzle
https://github.com/mitscherlich/puzzlejs-jigsaw
Last synced: 14 days ago
JSON representation
A simple image puzzle
- Host: GitHub
- URL: https://github.com/mitscherlich/puzzlejs-jigsaw
- Owner: Mitscherlich
- License: mit
- Created: 2021-07-12T03:21:00.000Z (about 5 years ago)
- Default Branch: dev
- Last Pushed: 2023-04-23T02:47:14.000Z (over 3 years ago)
- Last Synced: 2025-08-23T03:50:57.827Z (11 months ago)
- Language: JavaScript
- Homepage: https://npm.im/puzzlejs-jigsaw
- Size: 500 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# puzzlejs-jigsaw
A simple picture puzzle.

## Usage
Install `puzzlejs-jigsaw` via [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/).
```sh
$ npm install puzzlejs-jigsaw
# or
$ yarn add puzzlejs-jigsaw
```
Then add this to your site:
```js
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](LICENSE)