forked from bitovi/jquerypp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreverse.html
More file actions
40 lines (36 loc) · 1006 Bytes
/
reverse.html
File metadata and controls
40 lines (36 loc) · 1006 Bytes
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Move Demo Page</title>
<style type='text/css'>
body {font-family: verdana}
#draggable {
border: 1px solid red;
padding: 5px;
padding-top: 50px;
width: 150px;
}
</style>
</head>
<body>
<div id="draggable">
Drag me
<div id="inner">
<div id="innermost">Innermost div</div>
</div>
</div>
<script type='text/javascript' src='../../../steal/steal.js'>
</script>
<script type='text/javascript'>
steal('jquerypp/event/move', 'jquerypp/event/drag').then(function() {
$('#draggable').on('dragmove', function(ev, drag) {
$(drag.element).trigger('move');
});
$('#innermost').on('move', function(ev) {
console.log('Moving!');
});
});
</script>
</body>
</html>