source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/demos/accordion/no-auto-height.html@ 24245

Last change on this file since 24245 was 24245, checked in by sjb48, 13 years ago

Oran code for supporting format changes to document.

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4 <title>jQuery UI Accordion - No Auto Height</title>
5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
7 <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
9 <script type="text/javascript" src="../../ui/jquery.ui.accordion.js"></script>
10 <link type="text/css" href="../demos.css" rel="stylesheet" />
11 <script type="text/javascript">
12 $(function() {
13 $("#accordion").accordion({
14 autoHeight: false,
15 navigation: true
16 });
17 });
18 </script>
19</head>
20<body>
21
22<div class="demo">
23
24<div id="accordion">
25 <h3><a href="#section1">Section 1</a></h3>
26 <div>
27 <p>Mauris mauris ante, blandit et, ultrices a, susceros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
28 </div>
29 <h3><a href="#section2">Section 2</a></h3>
30 <div>
31 <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>
32 </div>
33 <h3><a href="#section3">Section 3</a></h3>
34 <div>
35 <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>
36 <ul>
37 <li>List item</li>
38 <li>List item</li>
39 <li>List item</li>
40 <li>List item</li>
41 <li>List item</li>
42 <li>List item</li>
43 <li>List item</li>
44 </ul>
45 <a href="#othercontent">Link to other content</a>
46 </div>
47</div>
48
49</div><!-- End demo -->
50
51
52
53<div class="demo-description">
54
55<p>Setting <code>autoHeight: false</code> allows to accordion panels to keep their native height.</p>
56
57<p>In addition, the <code>navigation</code> option is enabled, opening the panel based on the current location, eg. no-auto-height.html#panel2 would open the second panel on page load. It also finds anchors within the content, so #othercontent will open the third section, as it contains a link with that href.</p>
58
59</div><!-- End demo-description -->
60
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.