forked from thread-pond/signature-pad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregenerate-signature.html
executable file
·30 lines (29 loc) · 1.03 KB
/
regenerate-signature.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Regenerate a Signature · Signature Pad</title>
<style>
body { font: normal 100.01%/1.375 "Helvetica Neue",Helvetica,Arial,sans-serif; }
p { margin: 0.515em 0 0; padding: 0 6px; }
</style>
<link href="../assets/jquery.signaturepad.css" rel="stylesheet">
<!--[if lt IE 9]><script src="../assets/flashcanvas.js"></script><![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
</head>
<body>
<div class="sigPad signed">
<div class="sigWrapper">
<div class="typed">Sir John A. Macdonald</div>
<canvas class="pad" width="198" height="55"></canvas>
</div>
<p>Sir John A. Macdonald<br>July 1, 1867</p>
</div>
<script src="../jquery.signaturepad.js"></script>
<script src="sample-signature-output.js"></script>
<script>
$(document).ready(function() {
$('.sigPad').signaturePad({displayOnly:true}).regenerate(sig);
});
</script>
<script src="../assets/json2.min.js"></script>
</body>