forked from bitovi/jquerypp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep.html
More file actions
71 lines (64 loc) · 1.61 KB
/
step.html
File metadata and controls
71 lines (64 loc) · 1.61 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>drag</title>
<style type='text/css'>
body {font-family: verdana}
.error {border: solid 1px red;}
.error_text { color: red; font-size: 10px;}
td {padding: 3px;}
.handle {
width: 98px;
height: 38px;
border: dashed 1px red;
cursor : pointer;
}
#internal .handle {
border-color: green;
}
#internal {
border: solid 3px green;
padding: 5px;
margin-top: 50px;
}
#ondoc {
border: solid 5px green;
padding: 0px;
height: 240px;
width: 420px;
}
#demo-html{
padding: 30px 0px 0px 30px;
}
</style>
</head>
<body>
<div id='demo-html'>
<div id="ondoc">
<div id='handle' class='handle'>top left</div>
<div id='handle2' class='handle'>horizontal</div>
<div id='handle3' class='handle'>vertical</div>
<div id='handle4' class='handle'>horizontal vertical</div>
</div>
</div>
<script type='text/javascript' src='../../../../steal/steal.js'></script>
<script type='text/javascript' id='demo-source'>
steal('jquerypp/event/drag/step', function(){
$("#ondoc")
.delegate('#handle',"draginit", function(ev, drag){
drag.step(40,$("#ondoc"))
})
.delegate('#handle2',"draginit", function(ev, drag){
drag.step(40,$("#ondoc"),"x")
})
.delegate('#handle3',"draginit", function(ev, drag){
drag.step({y: 40},$("#ondoc"),"y")
})
.delegate('#handle4',"draginit", function(ev, drag){
drag.step(40,$("#ondoc"),"xy")
});
})
</script>
</body>
</html>