blob: 3611eec45d65dc567166eb98b358aa0e805cfbfb (
plain)
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
31
32
33
34
35
|
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Require a Drawn Signature · Signature Pad</title>
<style type="text/css">
body { font: normal 100.01%/1.375 "Helvetica Neue",Helvetica,Arial,sans-serif; }
</style>
<link rel="stylesheet" href="js/jquery.signaturepad.css">
<!--[if lt IE 9]><script src="js/flashcanvas.js"></script><![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<form method="post" action="" class="sigPad">
<label for="name">Your swear</label>
<input type="text" name="name" id="name" class="name">
<p class="drawItDesc">Draw your signature</p>
<a class="clearButton" href="#">clear</a>
<div class="sig sigWrapper">
<div class="typed"></div>
<canvas class="pad" width="198" height="55"></canvas>
<input type="hidden" name="output" class="output">
</div>
<button type="submit">I accept the terms of this agreement.</button>
</form>
<script src="js/jquery.signaturepad.min.js"></script>
<script>
$(document).ready(function() {
$('.sigPad').signaturePad({drawOnly:true,errorMessage:"Write the swear",errorMessageDraw:"sign the swear bro"});
});
</script>
<script src="js/json2.min.js"></script>
</body>
|