diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-20 00:13:25 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-20 00:13:25 +0000 |
commit | 34266c3b154b870525bf91d93de809ca447ed6f4 (patch) | |
tree | 071f49bffef6ac0cb99180c6c501db40e1fe589c /tests/visual | |
parent | 23413d2ebc34cce27d7a682076d7815ffb9ca8d9 (diff) | |
download | jquery-ui-34266c3b154b870525bf91d93de809ca447ed6f4.tar.gz jquery-ui-34266c3b154b870525bf91d93de809ca447ed6f4.zip |
Nested Plugin visual test: sortable accordion inside sortable tabs.
Diffstat (limited to 'tests/visual')
-rw-r--r-- | tests/visual/compound/sortable_accordion_sortable_tabs.html | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/tests/visual/compound/sortable_accordion_sortable_tabs.html b/tests/visual/compound/sortable_accordion_sortable_tabs.html new file mode 100644 index 000000000..33205157d --- /dev/null +++ b/tests/visual/compound/sortable_accordion_sortable_tabs.html @@ -0,0 +1,107 @@ +<!doctype html> +<html lang="en"> +<head> + <title>Compound Visual Test : Accordion in Tabs</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.mouse.js"></script> + <script type="text/javascript" src="../../../ui/jquery.ui.sortable.js"></script> + <script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script> + <script type="text/javascript" src="../../../ui/jquery.ui.tabs.js"></script> + <script type="text/javascript"> + $(function() { + $( "#accordion-1, #accordion-2" ) + .accordion({ + header: "> div > h3" + }) + .sortable(); + + $( "#tabs" ) + .tabs() + .find( ".ui-tabs-nav" ) + .sortable(); + }); + </script> +</head> +<body> + +<div id="tabs"> + <ul> + <li><a href="#tabs-1">First</a></li> + <li><a href="#tabs-2">Second</a></li> + </ul> + <div id="tabs-1"> + <div id="accordion-1"> + <div> + <h3><a href="#">Accordion Header 1</a></h3> + <div> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + </div> + </div> + <div> + <h3><a href="#">Accordion Header 2</a></h3> + <div> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + </div> + </div> + <div> + <h3><a href="#">Accordion Header 3</a></h3> + <div> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + </div> + </div> + </div> + </div> + <div id="tabs-2"> + <div id="accordion-1"> + <div> + <h3><a href="#">Accordion Header 1</a></h3> + <div> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + <p>Accordion Content 1</p> + </div> + </div> + <div> + <h3><a href="#">Accordion Header 2</a></h3> + <div> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + <p>Accordion Content 2</p> + </div> + </div> + <div> + <h3><a href="#">Accordion Header 3</a></h3> + <div> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + <p>Accordion Content 3</p> + </div> + </div> + </div> + </div> +</div> + +</body> +</html> |