diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-09-10 11:33:46 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-09-10 11:33:46 -0400 |
commit | 303f20e1b3c977d75047bed1a3533a180d73fab5 (patch) | |
tree | c8cf97b57f2493313dfd92c1dfceedb29d137d67 /demos/accordion | |
parent | 9e259c6e5369bf272dd14df7aea1372c5b064300 (diff) | |
download | jquery-ui-303f20e1b3c977d75047bed1a3533a180d73fab5.tar.gz jquery-ui-303f20e1b3c977d75047bed1a3533a180d73fab5.zip |
Demos: Cleanup.
Diffstat (limited to 'demos/accordion')
-rw-r--r-- | demos/accordion/collapsible.html | 11 | ||||
-rw-r--r-- | demos/accordion/custom-icons.html | 11 | ||||
-rw-r--r-- | demos/accordion/default.html | 9 | ||||
-rw-r--r-- | demos/accordion/fillspace.html | 71 | ||||
-rw-r--r-- | demos/accordion/hoverintent.html | 7 | ||||
-rw-r--r-- | demos/accordion/index.html | 24 | ||||
-rw-r--r-- | demos/accordion/no-auto-height.html | 11 | ||||
-rw-r--r-- | demos/accordion/sortable.html | 11 |
8 files changed, 54 insertions, 101 deletions
diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index c348dfbbf..f6439bb76 100644 --- a/demos/accordion/collapsible.html +++ b/demos/accordion/collapsible.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> @@ -19,8 +19,6 @@ </head> <body> -<div class="demo"> - <div id="accordion"> <h3>Section 1</h3> <div> @@ -45,13 +43,8 @@ </div> </div> -</div><!-- End demo --> - - - <div class="demo-description"> <p>By default, accordions always keep one section open. To allow for all sections to be be collapsible, set the <code>collapsible</code> option to true. Click on the currently open section to collapse its content pane.</p> -</div><!-- End demo-description --> - +</div> </body> </html> diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 83f3060ef..11672bea1 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> @@ -31,8 +31,6 @@ </head> <body> -<div class="demo"> - <div id="accordion"> <h3>Section 1</h3> <div> @@ -59,13 +57,8 @@ <button id="toggle">Toggle icons</button> -</div><!-- End demo --> - - - <div class="demo-description"> <p>Customize the header icons with the <code>icons</code> option, which accepts classes for the header's default and active (open) state. Use any class from the UI CSS framework, or create custom classes with background images.</p> -</div><!-- End demo-description --> - +</div> </body> </html> diff --git a/demos/accordion/default.html b/demos/accordion/default.html index a50270b27..005d43115 100644 --- a/demos/accordion/default.html +++ b/demos/accordion/default.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> @@ -17,8 +17,6 @@ </head> <body> -<div class="demo"> - <div id="accordion"> <h3>Section 1</h3> <div> @@ -68,8 +66,6 @@ </div> </div> -</div><!-- End demo --> - <div class="demo-description"> <p> Click headers to expand/collapse content that is broken into logical sections, much like tabs. @@ -79,7 +75,6 @@ Optionally, toggle sections open/closed on mouseover. The underlying HTML markup is a series of headers (H3 tags) and content divs so the content is usable without JavaScript. </p> -</div><!-- End demo-description --> - +</div> </body> </html> diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index f2e936ec0..ced9ec64a 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> @@ -11,6 +11,13 @@ <script src="../../ui/jquery.ui.resizable.js"></script> <script src="../../ui/jquery.ui.accordion.js"></script> <link rel="stylesheet" href="../demos.css"> + <style> + #accordion-resizer { + padding: 10px; + width: 350px; + height: 220px; + } + </style> <script> $(function() { $( "#accordion" ).accordion({ @@ -18,7 +25,7 @@ }); }); $(function() { - $( "#accordionResizer" ).resizable({ + $( "#accordion-resizer" ).resizable({ minHeight: 140, minWidth: 200, resize: function() { @@ -30,48 +37,36 @@ </head> <body> -<div class="demo"> - <h3 class="docs">Resize the outer container:</h3> - -<div id="accordionResizer" style="padding:10px; width:350px; height:220px;" class="ui-widget-content"> -<div id="accordion"> - <h3>Section 1</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> - <h3>Section 2</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> - <h3>Section 3</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> - <h3>Section 4</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 id="accordion-resizer" class="ui-widget-content"> + <div id="accordion"> + <h3>Section 1</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> + <h3>Section 2</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> + <h3>Section 3</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> + <h3>Section 4</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> -<span class="ui-icon ui-icon-grip-dotted-horizontal" style="margin:2px auto;"></span> -</div><!-- End accordionResizer --> - -<div style="margin-top:7px; padding:10px; width:350px; height:50px;" class="ui-widget-content">I'm another panel</div> - -</div><!-- End demo --> - - - <div class="demo-description"> <p>Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the <code>heightStyle</code> option to <code>"fill"</code>, and the script will automatically set the dimensions of the accordion to the height of its parent container.</p> -</div><!-- End demo-description --> - +</div> </body> </html> diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index 706bbc128..3ee6a2b10 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -70,8 +70,6 @@ </head> <body> -<div class="demo"> - <div id="accordion"> <h3>Section 1</h3> <div> @@ -121,8 +119,6 @@ </div> </div> -</div><!-- End demo --> - <div class="demo-description"> <p> Click headers to expand/collapse content that is broken into logical sections, much like tabs. @@ -132,7 +128,6 @@ Optionally, toggle sections open/closed on mouseover. The underlying HTML markup is a series of headers (H3 tags) and content divs so the content is usable without JavaScript. </p> -</div><!-- End demo-description --> - +</div> </body> </html> diff --git a/demos/accordion/index.html b/demos/accordion/index.html index 81ed971d8..92bd33d9b 100644 --- a/demos/accordion/index.html +++ b/demos/accordion/index.html @@ -1,24 +1,20 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Accordion Demos</title> - <link rel="stylesheet" href="../demos.css"> </head> <body> -<div class="demos-nav"> - <h4>Examples</h4> - <ul> - <li class="demo-config-on"><a href="default.html">Default functionality</a></li> - <li><a href="fillspace.html">Fill space</a></li> - <li><a href="no-auto-height.html">No auto height</a></li> - <li><a href="collapsible.html">Collapse content</a></li> - <li><a href="hoverintent.html">Open on hoverintent</a></li> - <li><a href="custom-icons.html">Customize icons</a></li> - <li><a href="sortable.html">Sortable</a></li> - </ul> -</div> +<ul> + <li><a href="default.html">Default functionality</a></li> + <li><a href="fillspace.html">Fill space</a></li> + <li><a href="no-auto-height.html">No auto height</a></li> + <li><a href="collapsible.html">Collapse content</a></li> + <li><a href="hoverintent.html">Open on hoverintent</a></li> + <li><a href="custom-icons.html">Customize icons</a></li> + <li><a href="sortable.html">Sortable</a></li> +</ul> </body> </html> diff --git a/demos/accordion/no-auto-height.html b/demos/accordion/no-auto-height.html index 1773f1bee..088b6e5d3 100644 --- a/demos/accordion/no-auto-height.html +++ b/demos/accordion/no-auto-height.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> @@ -19,8 +19,6 @@ </head> <body> -<div class="demo"> - <div id="accordion"> <h3>Section 1</h3> <div> @@ -45,13 +43,8 @@ </div> </div> -</div><!-- End demo --> - - - <div class="demo-description"> <p>Setting <code>heightStyle: "content"</code> allows the accordion panels to keep their native height.</p> -</div><!-- End demo-description --> - +</div> </body> </html> diff --git a/demos/accordion/sortable.html b/demos/accordion/sortable.html index 415d7a818..122e47087 100644 --- a/demos/accordion/sortable.html +++ b/demos/accordion/sortable.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> @@ -35,8 +35,6 @@ </head> <body> -<div class="demo"> - <div id="accordion"> <div class="group"> <h3>Section 1</h3> @@ -69,13 +67,8 @@ </div> </div> -</div><!-- End demo --> - - - <div class="demo-description"> <p>Drag the header to re-order panels.</p> -</div><!-- End demo-description --> - +</div> </body> </html> |