typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
19 lines (12 loc) • 395 B
text/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);
});