2010-03-12 03:18:34 +00:00
|
|
|
<!DOCTYPE html>
|
2009-07-18 18:33:16 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2010-03-12 03:18:34 +00:00
|
|
|
<meta charset="UTF-8" />
|
2009-07-18 18:35:30 +00:00
|
|
|
<title>Compound Visual Test : Draggable in Accordion</title>
|
2009-07-18 18:33:16 +00:00
|
|
|
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
2010-02-16 01:38:23 +00:00
|
|
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
|
2012-03-22 13:57:33 +00:00
|
|
|
<script type="text/javascript" src="../../../jquery-1.7.2.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
2009-12-16 22:20:18 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
2010-01-20 00:04:48 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
|
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
|
2010-01-20 00:04:48 +00:00
|
|
|
<style type="text/css">
|
|
|
|
.draggable {
|
|
|
|
width: 10em;
|
|
|
|
margin: 0.5em;
|
|
|
|
}
|
|
|
|
</style>
|
2009-07-18 18:33:16 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
2010-01-20 00:04:48 +00:00
|
|
|
$( "#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"
|
2009-07-18 18:33:16 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="accordion">
|
2010-01-20 00:04:48 +00:00
|
|
|
<h3><a href="#">.draggable()</a></h3>
|
2009-07-18 18:33:16 +00:00
|
|
|
<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>
|
2010-01-20 00:04:48 +00:00
|
|
|
<h3><a href="#">.draggable({ appendTo: "body" })</a></h3>
|
2009-07-18 18:33:16 +00:00
|
|
|
<div id="second">
|
2010-01-20 00:04:48 +00:00
|
|
|
<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>
|
2009-07-18 18:33:16 +00:00
|
|
|
</div>
|
2010-01-20 00:04:48 +00:00
|
|
|
<h3><a href="#">.draggable({ helper: "clone", appendTo: "body" })</a></h3>
|
2009-07-18 18:33:16 +00:00
|
|
|
<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>
|