Updated readme

This commit is contained in:
Luis Leiva 2017-12-06 00:13:19 +01:00
parent 10f9718008
commit d3c1096ae9
1 changed files with 2 additions and 0 deletions

View File

@ -15,11 +15,13 @@ Available also as a jQuery plugin.
## TL;DR:
### Vanilla JavaScript version
Add `<script src="dist/sketchable.full.min.js"></script>` to your page and just do:
```js
var sketcher = new Sketchable('canvas');
```
### jQuery version
Add `<script src="dist/jquery.sketchable.full.min.js"></script>` to your page and just do:
```js
var $sketcher = $('canvas').sketchable();