63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Signature Pad demo</title>
|
|
<meta name="description" content="Signature Pad - HTML5 canvas based smooth signature drawing using variable width spline interpolation.">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
<link rel="stylesheet" href="css/signature-pad.css">
|
|
|
|
<!--[if IE]>
|
|
<link rel="stylesheet" type="text/css" href="css/ie9.css">
|
|
<![endif]-->
|
|
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-39365077-1']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body onselectstart="return false">
|
|
<a id="github" style="position: absolute; top: 0; right: 0; border: 0" href="https://github.com/szimek/signature_pad">
|
|
<img src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub">
|
|
</a>
|
|
|
|
<div id="signature-pad" class="signature-pad">
|
|
<div class="signature-pad--body">
|
|
<canvas></canvas>
|
|
</div>
|
|
<div class="signature-pad--footer">
|
|
<div class="description">Sign above</div>
|
|
|
|
<div class="signature-pad--actions">
|
|
<div>
|
|
<button type="button" class="button clear" data-action="clear">Clear</button>
|
|
<button type="button" class="button" data-action="change-color">Change color</button>
|
|
<button type="button" class="button" data-action="undo">Undo</button>
|
|
|
|
</div>
|
|
<div>
|
|
<button type="button" class="button save" data-action="save-png">Save as PNG</button>
|
|
<button type="button" class="button save" data-action="save-jpg">Save as JPG</button>
|
|
<button type="button" class="button save" data-action="save-svg">Save as SVG</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="js/signature_pad.umd.js"></script>
|
|
<script src="js/app.js"></script>
|
|
</body>
|
|
</html>
|