mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
54 lines
1.9 KiB
HTML
54 lines
1.9 KiB
HTML
<!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/ui.all.css" type="text/css">
|
|
<script type="text/javascript" src="../../../jquery-1.3.2.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.accordion.js"></script>
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#accordion').accordion();
|
|
$('#first .draggable').draggable();
|
|
$('#second .draggable').draggable({
|
|
appendTo: 'body'
|
|
});
|
|
$('#third .draggable').draggable();
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="accordion">
|
|
<h3><a href="#">Accordion Header 1</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="#">Accordion Header 2</a></h3>
|
|
<div id="second">
|
|
<div class="draggable">Draggable with appendTo 2-1</div>
|
|
<div class="draggable">Draggable with appendTo 2-2</div>
|
|
<div class="draggable">Draggable with appendTo 2-3</div>
|
|
<div class="draggable">Draggable with appendTo 2-4</div>
|
|
<div class="draggable">Draggable with appendTo 2-5</div>
|
|
</div>
|
|
<h3><a href="#">Accordion Header 3</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>
|