mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
56 lines
1.5 KiB
HTML
56 lines
1.5 KiB
HTML
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>jQuery UI Accordion Visual Test</title>
|
||
|
|
||
|
<link rel="stylesheet" href="../../themes/base/ui.core.css" type="text/css">
|
||
|
<link rel="stylesheet" href="../../themes/base/ui.theme.css" type="text/css">
|
||
|
<link rel="stylesheet" href="../../themes/base/ui.accordion.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 enable() {
|
||
|
$("#myAccordion").accordion({
|
||
|
header: "h3"
|
||
|
});
|
||
|
}
|
||
|
function disable() {
|
||
|
$("#myAccordion").accordion("destroy");
|
||
|
}
|
||
|
$("#toggle").toggle(enable, disable);
|
||
|
//enable();
|
||
|
})
|
||
|
</script>
|
||
|
</head>
|
||
|
<body style="font-size: 62.5%;">
|
||
|
|
||
|
<div id="myAccordion">
|
||
|
<div>
|
||
|
<h3><a href="#">Test 1</a></h3>
|
||
|
<div>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<h3><a href="#">Test 2</a></h3>
|
||
|
<div>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<h3><a href="#">Test 3</a></h3>
|
||
|
<div>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<button id="toggle">Toggle</button>
|
||
|
|
||
|
</body>
|
||
|
</html>
|