vaibhavar / signature-input

A re-usable control for adding interactive signature input to your forms

Home Page:https://codepen.io/vaibhavarora/pen/jxKQda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

signature-input

A re-usable control for adding interactive signature input to your forms

Screenshot

image

Usage

Classic HTML Way

  • Import the script tag <script type="text/Javascript" src="dist/js/signature-input.js"></script>

  • Import the style <link rel="stylesheet" href="dist/css/signature-input.css"/>

  • Create a div to hold the signature input <div id="signature"></div>

  • Instantiate the signature input on your HTML page <script type="text/Javascript"> signatureInputApi.init({ selector: "#signature" }); </script>

Configuration

Config object supports :

  • selector: HTML selector of the element to render signature input
  • width: Width of Signature input field
  • height: Height of Signature input field
  • color: Color of pen
  • input: "Name" of the input field for capturing image data on submission of form

Codepen

https://codepen.io/vaibhavarora/pen/jxKQda

About

A re-usable control for adding interactive signature input to your forms

https://codepen.io/vaibhavarora/pen/jxKQda

License:GNU General Public License v3.0


Languages

Language:JavaScript 85.7%Language:HTML 12.7%Language:CSS 1.6%