1 | <!doctype html>
|
2 | <html lang="en">
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <title>Signature Pad demo</title>
|
6 | <meta name="description" content="Signature Pad - HTML5 canvas based smooth signature drawing using variable width spline interpolation.">
|
7 |
|
8 | <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
|
9 |
|
10 | <meta name="apple-mobile-web-app-capable" content="yes">
|
11 | <meta name="apple-mobile-web-app-status-bar-style" content="black">
|
12 |
|
13 | <link rel="stylesheet" href="css/signature-pad.css">
|
14 |
|
15 | |
16 |
|
17 |
|
18 |
|
19 | <script type="text/javascript">
|
20 | var _gaq = _gaq || [];
|
21 | _gaq.push(['_setAccount', 'UA-39365077-1']);
|
22 | _gaq.push(['_trackPageview']);
|
23 |
|
24 | (function() {
|
25 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
26 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
27 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
28 | })();
|
29 | </script>
|
30 | </head>
|
31 | <body onselectstart="return false">
|
32 | <a id="github" style="position: absolute; top: 0; right: 0; border: 0" href="https://github.com/szimek/signature_pad">
|
33 | <img src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub">
|
34 | </a>
|
35 |
|
36 | <div id="signature-pad" class="signature-pad">
|
37 | <div class="signature-pad--body">
|
38 | <canvas></canvas>
|
39 | </div>
|
40 | <div class="signature-pad--footer">
|
41 | <div class="description">Sign above</div>
|
42 |
|
43 | <div class="signature-pad--actions">
|
44 | <div>
|
45 | <button type="button" class="button clear" data-action="clear">Clear</button>
|
46 | <button type="button" class="button" data-action="change-color">Change color</button>
|
47 | <button type="button" class="button" data-action="undo">Undo</button>
|
48 |
|
49 | </div>
|
50 | <div>
|
51 | <button type="button" class="button save" data-action="save-png">Save as PNG</button>
|
52 | <button type="button" class="button save" data-action="save-jpg">Save as JPG</button>
|
53 | <button type="button" class="button save" data-action="save-svg">Save as SVG</button>
|
54 | </div>
|
55 | </div>
|
56 | </div>
|
57 | </div>
|
58 |
|
59 | <script src="js/signature_pad.umd.js"></script>
|
60 | <script src="js/app.js"></script>
|
61 | </body>
|
62 | </html>
|