r2354 - Demos: sortable accordion

r2354 - Demos: sortable accordion

Author: cloudream@gmail.com
Date: Sun Mar 22 08:48:26 2009
New Revision: 2354
Added:
trunk/demos/accordion/sortable.html (contents, props changed)
Modified:
trunk/demos/accordion/index.html
Log:
Demos: sortable accordion
Modified: trunk/demos/accordion/index.html
==============================================================================
--- trunk/demos/accordion/index.html    (original)
+++ trunk/demos/accordion/index.html    Sun Mar 22 08:48:26 2009
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html>
<html lang="en">
<head>
    <title>jQuery UI Accordion Demos</title>
@@ -14,6 +14,7 @@
            <li><a href="collapsible.html">Collapse content</a></li>
            <li><a href="mouseover.html">Open on mouseover</a></li>
            <li><a href="custom-icons.html">Customize icons</a></li>
+            <li><a href="sortable.html">Sortable</a></li>
        </ul>
    </div>
</body>
Added: trunk/demos/accordion/sortable.html
==============================================================================
--- (empty file)
+++ trunk/demos/accordion/sortable.html    Sun Mar 22 08:48:26 2009
@@ -0,0 +1,64 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Accordion - Sortable</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
+    <script type="text/javascript" src="../../ui/ui.core.js"></script>
+    <script type="text/javascript" src="../../ui/ui.sortable.js"></script>
+    <script type="text/javascript" src="../../ui/ui.accordion.js"></script>
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <script type="text/javascript">
+    $(function() {
+        $("#accordion").accordion({header:"> div >
h3"}).sortable({axis:"y",handle:"h3"});
+    });
+    </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div id="accordion">
+    <div>
+        <h3><a href="#">Section 1</a></h3>
+        <div>
+            

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




+        </div>
+    </div>
+    <div>
+        <h3><a href="#">Section 2</a></h3>
+        <div>
+            

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit
amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non
quam. In suscipit faucibus urna.



+        </div>
+    </div>
+    <div>
+        <h3><a href="#">Section 3</a></h3>
+        <div>
+            

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




+            <ul>
+                <li>List item one</li>
+                <li>List item two</li>
+                <li>List item three</li>
+            </ul>
+        </div>
+    </div>
+    <div>
+        <h3><a href="#">Section 4</a></h3>
+        <div>
+            

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


+        </div>
+    </div>
+</div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+

Drag the header to re-order panels.


+
+</div><!-- End demo-description -->
+
+</body>
+</html>