blob: cec8b2378f86908d605acbc88fb3e02176b71243 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pinky Swear</title>
<style type="text/css">
body {
background: #FFE5B9;
color: #BE9248;
font-size: 1.4em;
}
.writing {
font-family: 'Euphoria Script', cursive;
font-size: 1.3em;
}
input.writing {
background: #FFE5B9;
color: #BE9248;
border: 0px;
border-bottom: 1px dotted;
}
</style>
<link rel="stylesheet" href="/js/jquery.signaturepad.css">
<link href='http://fonts.googleapis.com/css?family=Euphoria+Script&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]><script src="
<link rel="stylesheet" href="/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="/s" class="sigPad">
<span>I, </span>
<input name="name" id="name" class="writing">
<span>, hereby declare:</span><br/>
<input name="swear" id="swear" class="writing">
<p class="drawItDesc">Signed,</p>
<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 class="clearButton" href="#">clear</button>
<button type="submit">I pinky swear</button>
</form>
<script src="/js/jquery.signaturepad.min.js"></script>
<script>
$(document).ready(function() {
var sig = $('.sigPad').signaturePad({
drawOnly: true,
errorMessage: 'Write the swear',
errorMessageDraw: 'sign the swear bro'
});
%if sig:
sig.regenerate({{!sig}});
%end
});
</script>
<script src="/js/json2.min.js"></script>
</body>
</html>
|