accordion functional demo: fixes to work with default theme

This commit is contained in:
Jörn Zaefferer 2008-10-05 14:06:03 +00:00
parent 2c89a2d2c9
commit b53e2e5c7e
2 changed files with 22 additions and 12 deletions

View File

@ -1,26 +1,36 @@
<ul id="accordionDemo" style="width: 200px; height: 450px;">
<li>
<a href='#'>Test 1</a>
<li class="ui-accordion-group">
<h3 class="ui-accordion-header">
<a href='#'>Test 1</a>
</h3>
<div class="ui-accordion-data">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</li>
<li>
<a href='#'>Test 2</a>
<li class="ui-accordion-group">
<h3 class="ui-accordion-header">
<a href='#'>Test 2</a>
</h3>
<div class="ui-accordion-data">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>
</li>
<li>
<a href='#'>Test 3</a>
<li class="ui-accordion-group">
<h3 class="ui-accordion-header">
<a href='#'>Test 3</a>
</h3>
<div class="ui-accordion-data">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</div>
</li>
<li>
<a href='#'>Test 4</a>
<li class="ui-accordion-group">
<h3 class="ui-accordion-header">
<a href='#'>Test 4</a>
</h3>
<div class="ui-accordion-data">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</div>
</li>
<li>
<a href='#'>Test 5</a>
<li class="ui-accordion-group">
<h3 class="ui-accordion-header">
<a href='#'>Test 5</a>
</h3>
<div class="ui-accordion-data">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</div>
</li>

View File

@ -16,8 +16,8 @@
destroy: '$("#accordionDemo").accordion("destroy");',
options: [
{ desc: 'Simple Accordion Mouse over', source: '$("#accordionDemo").accordion({event: "mouseover"});' },
{ desc: 'Simple Accordion', source: '$("#accordionDemo").accordion();' }
{ desc: 'Simple Accordion Mouse over', source: '$("#accordionDemo").accordion({event: "mouseover", header:".ui-accordion-header"});' },
{ desc: 'Simple Accordion', source: '$("#accordionDemo").accordion({ header: ".ui-accordion-header"});' }
]
}
]