mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 08:26:35 +08:00
Definitions for jSignature jQuery plugin including tests for definitionss. Included are some documentation on the typed definition functions making use of JDocs TypeScript support. Updated the readme to include the new Typed Definition. Included empty tscparams files to be consistent with other definitions in the project.
19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
/// <reference path='../jquery/jquery.d.ts'/>
|
|
/// <reference path='jquery.jsignature.d.ts'/>
|
|
|
|
/*
|
|
* Taken from the tests section on jSignature
|
|
*/
|
|
$(document).ready(function () {
|
|
|
|
var $sigdiv = $('#signature');
|
|
|
|
$sigdiv.jSignature();
|
|
|
|
$sigdiv.jSignature("reset");
|
|
|
|
var data = $sigdiv.jSignature("getData", "svgbase64");
|
|
|
|
$sigdiv.jSignature("setData", "data:" + data);
|
|
|
|
}); |