aboutsummaryrefslogtreecommitdiffstats
path: root/demos/accordion
diff options
context:
space:
mode:
authorChi Cheng <cloudream@gmail.com>2009-03-22 15:48:26 +0000
committerChi Cheng <cloudream@gmail.com>2009-03-22 15:48:26 +0000
commit473e7e8e8a81f251a8eeeb500caa1e98d50b86de (patch)
tree2693901d17ca8e0d58e0ed66f980284cbd37d663 /demos/accordion
parent05a935c993d84100939465114f468a4427c99220 (diff)
downloadjquery-ui-473e7e8e8a81f251a8eeeb500caa1e98d50b86de.tar.gz
jquery-ui-473e7e8e8a81f251a8eeeb500caa1e98d50b86de.zip
Demos: sortable accordion
Diffstat (limited to 'demos/accordion')
-rw-r--r--demos/accordion/index.html3
-rw-r--r--demos/accordion/sortable.html64
2 files changed, 66 insertions, 1 deletions
diff --git a/demos/accordion/index.html b/demos/accordion/index.html
index f09fcf64b..86a5e48cb 100644
--- a/demos/accordion/index.html
+++ b/demos/accordion/index.html
@@ -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>
diff --git a/demos/accordion/sortable.html b/demos/accordion/sortable.html
new file mode 100644
index 000000000..e7b36b5aa
--- /dev/null
+++ b/demos/accordion/sortable.html
@@ -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>
+ <p>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.</p>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 2</a></h3>
+ <div>
+ <p>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. </p>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 3</a></h3>
+ <div>
+ <p>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. </p>
+ <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>
+ <p>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. </p><p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
+ </div>
+ </div>
+</div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>Drag the header to re-order panels.</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>