blob: 03bf08e1fd15129c7728693ccf3bcdc62ce79607 (
plain)
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
|
<!doctype html>
<html lang="en">
<head>
<title>Compound Visual Test : Draggable in Accordion</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.4.1.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
<style type="text/css">
.draggable {
width: 10em;
margin: 0.5em;
}
</style>
<script type="text/javascript">
$(function() {
$( "#accordion" ).accordion();
$( ".draggable" ).addClass( "ui-widget ui-widget-content ui-corner-all" )
$( "#first .draggable" ).draggable();
$( "#second .draggable" ).draggable({
appendTo: "body"
});
$( "#third .draggable" ).draggable({
helper: "clone",
appendTo: "body"
});
});
</script>
</head>
<body>
<div id="accordion">
<h3><a href="#">.draggable()</a></h3>
<div id="first">
<div class="draggable">Draggable 1-1</div>
<div class="draggable">Draggable 1-2</div>
<div class="draggable">Draggable 1-3</div>
<div class="draggable">Draggable 1-4</div>
<div class="draggable">Draggable 1-5</div>
</div>
<h3><a href="#">.draggable({ appendTo: "body" })</a></h3>
<div id="second">
<div class="draggable">Draggable 2-1</div>
<div class="draggable">Draggable 2-2</div>
<div class="draggable">Draggable 2-3</div>
<div class="draggable">Draggable 2-4</div>
<div class="draggable">Draggable 2-5</div>
</div>
<h3><a href="#">.draggable({ helper: "clone", appendTo: "body" })</a></h3>
<div id="third">
<div class="draggable">Draggable 3-1</div>
<div class="draggable">Draggable 3-2</div>
<div class="draggable">Draggable 3-3</div>
<div class="draggable">Draggable 3-4</div>
<div class="draggable">Draggable 3-5</div>
</div>
</div>
</body>
</html>
|