mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
53 lines
1.2 KiB
HTML
53 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>jQuery UI Accordion Visual Test</title>
|
|
<link rel="stylesheet" href="all.css" type="text/css">
|
|
<link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css">
|
|
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
|
|
<script type="text/javascript" src="../../ui/ui.core.js"></script>
|
|
<script type="text/javascript" src="../../ui/ui.accordion.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
function on() {
|
|
$("#accordion").accordion({ header: "h3" });
|
|
}
|
|
function off() {
|
|
$("#accordion").accordion("destroy");
|
|
}
|
|
$("#toggle").toggle(on, off).click();
|
|
})
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<ul class="plugins">
|
|
<li class="plugin">
|
|
Accordion
|
|
<div id="accordion">
|
|
<div>
|
|
<h3><a href="#">First</a></h3>
|
|
<div>
|
|
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h3><a href="#">Second</a></h3>
|
|
<div>
|
|
Phasellus mattis tincidunt nibh.
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h3><a href="#">Third</a></h3>
|
|
<div>
|
|
Nam dui erat, auctor a, dignissim quis.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button id="toggle">Toggle</button>
|
|
</li>
|
|
</ul>
|
|
|
|
</body>
|
|
</html>
|