2012-05-08 18:40:45 +00:00
|
|
|
<!doctype html>
|
2009-07-18 18:33:16 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2012-05-08 18:40:45 +00:00
|
|
|
<meta charset="utf-8">
|
2009-07-18 18:35:30 +00:00
|
|
|
<title>Compound Visual Test : Draggable in Accordion</title>
|
2012-05-08 18:40:45 +00:00
|
|
|
<link rel="stylesheet" href="../visual.css">
|
2013-12-02 18:36:12 +00:00
|
|
|
<link rel="stylesheet" href="../../../themes/base/all.css">
|
2014-06-10 11:55:45 +00:00
|
|
|
<script src="../../../external/jquery/jquery.js"></script>
|
2013-12-02 18:36:12 +00:00
|
|
|
<script src="../../../ui/core.js"></script>
|
|
|
|
<script src="../../../ui/widget.js"></script>
|
|
|
|
<script src="../../../ui/mouse.js"></script>
|
|
|
|
<script src="../../../ui/accordion.js"></script>
|
|
|
|
<script src="../../../ui/draggable.js"></script>
|
2012-05-08 18:40:45 +00:00
|
|
|
<style>
|
2010-01-20 00:04:48 +00:00
|
|
|
.draggable {
|
|
|
|
width: 10em;
|
|
|
|
margin: 0.5em;
|
|
|
|
}
|
|
|
|
</style>
|
2012-05-08 18:40:45 +00:00
|
|
|
<script>
|
2009-07-18 18:33:16 +00:00
|
|
|
$(function() {
|
2010-01-20 00:04:48 +00:00
|
|
|
$( ".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
|
|
|
});
|
2012-05-08 18:40:45 +00:00
|
|
|
$( "#accordion" ).accordion();
|
2009-07-18 18:33:16 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="accordion">
|
2012-05-08 18:40:45 +00:00
|
|
|
<h3>.draggable()</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>
|
2012-05-08 18:40:45 +00:00
|
|
|
<h3>.draggable({ appendTo: "body" })</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>
|
2012-05-08 18:40:45 +00:00
|
|
|
<h3>.draggable({ helper: "clone", appendTo: "body" })</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>
|