No description, website, or topics provided.
JavaScript CSS HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
public
.csslintrc
.editorconfig
.gitignore
.jshintrc
Gulpfile.js
README.md
app.js
package.json

README.md

Cactus Draw

Cactus Draw is an open-source collaborative drawing app that grew out of DesertJS Hackathon.

How to Use

  1. Reference jQuery (such as on Google's CDN)

  2. Reference the css file: http://cactusdraw.com/cactusdraw.min.css or http://cactusdraw.com/cactusdraw.css

  3. Reference the javascript file: http://cactusdraw.com/cactusdraw.min.js or http://cactusdraw.com/cactusdraw.js

  4. Create a div:

    a. class="cactusdraw"

    b. data-room="some-unique-name"

    c. data-writable="true"

    Make the canvas read-only by setting data-writable="false"

    d. other styles to taste (width, height, border, etc)

Sample

<div class="cactusdraw" data-room="public" data-writable="true"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<link rel="stylesheet" href="http://cactusdraw.com/cactusdraw.css" type="text/css" />
<script src="http://cactusdraw.com/cactusdraw.js"></script>

License

Copyright (c) 2012-2015 Rob Richardson Licensed under the MIT license.