Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.01 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.01 KB

signature-pad

Add a signing pad to your website or app. Try the demo.

<script src='/path/to/signature-pad.min.js'></script>

signature-pad

Usage

Place a script tag containing the path to signature-pad.js wherever you want the signature pad to be displayed.

<script src='/path/to/signature-pad.min.js'></script>

Events

signature_pad.data_url

Bind to the signature_pad.data_url event to get a png data_url of the signature.

<script type="text/javascript"> 
  signature_pad.bind('signature_pad.data_url', function(result) {
    console.log('signature_pad.data_url', result);
  });
</script>

Development Setup

Edit only files under /src directory. Then run the following to generate the /build directory.

npm install
grunt

Visit http://localhost:3000 to test out your changes.