forked from boblemarin/jQuery.eraser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteeth.htm
98 lines (81 loc) · 2.06 KB
/
teeth.htm
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name='HandheldFriendly' content='True' />
<meta name='viewport' content='user-scalable=0' />
<meta name="viewport" content="width=device-width" />
<title>PLEASE BRUSH MY TEETH ! jQuery.eraser demo</title>
<style type="text/css">
body {
background: #FFF;
color: #FFF;
margin: 5px;
padding: 0px;
margin-bottom: 45px;
text-align: center;
font-family: Helvetica, Arial;
}
a {
color: #000;
}
a.box {
text-decoration: none;
display: inline-block;
color: #000;
background: #DDD;
padding: 10px;
margin: 10px;
}
.big {
font-size: 2em;
display: inline-block;
margin: 10px;
}
.container {
position: relative;
display: inline-block;
width: 675px;
height: 850px;
}
#robot {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
#redux {
position: absolute;
top: 444px;
left: 208px;
z-index: 2;
}
</style>
</head>
<body>
<span class="container">
<img id="robot" src="img/please.jpg" />
<img id="redux" src="img/overlay.jpg" />
</span>
<p>
<a href="#" onclick="reset(event);" class="box"> RESET </a>
<a href="#" onclick="remove(event);" class="box"> CLEAR </a>
</p>
<script src='http://code.jquery.com/jquery-2.1.1.min.js' type='text/javascript'></script>
<script src='jquery.eraser.js' type='text/javascript'></script>
<script type = "text/javascript">
$(function(){
$('#redux').eraser({size: 10});
});
function remove(event) {
$("#redux").eraser('clear');
event.preventDefault();
}
function reset(event) {
$("#redux").eraser('reset');
event.preventDefault();
}
</script>
<p><a href="index.html">Made with jQuery.eraser()</a></p>
</body>
</html>