# puzzlejs-jigsaw **Repository Path**: Mitscherlich/puzzlejs-jigsaw ## Basic Information - **Project Name**: puzzlejs-jigsaw - **Description**: A simple image puzzle - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-04 - **Last Updated**: 2022-03-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # puzzlejs-jigsaw A simple picture puzzle. ![preview](preview.png) ## 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)