forked from bitovi/jquerypp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswipe.html
More file actions
50 lines (50 loc) · 1.15 KB
/
swipe.html
File metadata and controls
50 lines (50 loc) · 1.15 KB
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>swipe</title>
<style type='text/css'>
body {font-family: verdana}
.error {border: solid 1px red;}
.error_text { color: red; font-size: 10px;}
td {padding: 3px;}
#swipe {
width: 500px;
height: 100px;
background-color: green;
}
li {
border: solid 5px green;
width: 200px;
}
</style>
</head>
<body>
<div id='swipe'>Swipe Me</div>
<div id='swipes'>Swipes
<ul>
<li>Swipe Me</li>
<li>Swipe Me</li>
<li>Swipe Me</li>
<li>Swipe Me</li>
</ul>
</div>
<script type='text/javascript'
src='../../../steal/steal.js?jquerypp/event/swipe'>
$('#swipe').bind('swipe', function(){
console.log('swipe1')
}).bind("swiperight", function(){
console.log('right')
}).bind('swipeleft', function(){
console.log('left')
}).bind('swipeup', function(){
console.log('up')
}).bind('swipedown', function(){
console.log('down')
})
$('#swipes').delegate('li','swipe', function(){
console.log('swipe2')
})
</script>
</body>
</html>