2008-12-13 13:39:49 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>jQuery UI Accordion Visual Test</title>
|
2009-01-22 12:01:20 +00:00
|
|
|
<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.3.1.js"></script>
|
|
|
|
<script type="text/javascript" src="../../../ui/ui.core.js"></script>
|
|
|
|
<script type="text/javascript" src="../../../ui/ui.accordion.js"></script>
|
2008-12-13 13:39:49 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
function on() {
|
|
|
|
$("#accordion").accordion({ header: "h3" });
|
|
|
|
}
|
|
|
|
function off() {
|
|
|
|
$("#accordion").accordion("destroy");
|
|
|
|
}
|
|
|
|
$("#toggle").toggle(on, off).click();
|
2009-01-30 02:35:37 +00:00
|
|
|
});
|
2008-12-13 13:39:49 +00:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<ul class="plugins">
|
|
|
|
<li class="plugin">
|
|
|
|
Accordion
|
|
|
|
<div id="accordion">
|
2009-01-30 02:35:37 +00:00
|
|
|
<h3><a href="#">First</a></h3>
|
2008-12-13 13:39:49 +00:00
|
|
|
<div>
|
2009-01-30 02:35:37 +00:00
|
|
|
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.
|
2008-12-13 13:39:49 +00:00
|
|
|
</div>
|
2009-01-30 02:35:37 +00:00
|
|
|
<h3><a href="#">Second</a></h3>
|
2008-12-13 13:39:49 +00:00
|
|
|
<div>
|
2009-01-30 02:35:37 +00:00
|
|
|
Phasellus mattis tincidunt nibh.
|
2008-12-13 13:39:49 +00:00
|
|
|
</div>
|
2009-01-30 02:35:37 +00:00
|
|
|
<h3><a href="#">Third</a></h3>
|
2008-12-13 13:39:49 +00:00
|
|
|
<div>
|
2009-01-30 02:35:37 +00:00
|
|
|
Nam dui erat, auctor a, dignissim quis.
|
2008-12-13 13:39:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button id="toggle">Toggle</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|