forked from nathco/jQuery.dragmove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_region.html
50 lines (44 loc) · 1.02 KB
/
example_region.html
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
<html>
<head>
<title>Test</title>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="jQuery.dragmove.js"></script>
<style type="text/css">
.wrapper {
width: 960px;
height: 500px;
margin: 0 auto;
margin-top: 25px;
border: 1px solid black;
}
.wrapper div {
width: 150px;
height: 150px;
float: left;
}
.red {
background-color: red;
}
.green {
background-color: green;
}
.blue {
background-color: blue;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="red"></div>
<div class="green"></div>
<div class="blue"></div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$('.wrapper div').dragmove({
regionDiv: $('.wrapper')
});
});
</script>
</body>
</html>