Subversion Repositories Sites.obs-saisons.fr

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
40 aurelien 1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
	<meta charset="utf-8">
5
	<title>jQuery UI Accordion - Customize icons</title>
6
	<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7
	<script src="../../jquery-1.4.2.js"></script>
8
	<script src="../../ui/jquery.ui.core.js"></script>
9
	<script src="../../ui/jquery.ui.widget.js"></script>
10
	<script src="../../ui/jquery.ui.accordion.js"></script>
11
	<script src="../../ui/jquery.ui.button.js"></script>
12
	<link rel="stylesheet" href="../demos.css">
13
	<script>
14
	$(function() {
15
		var icons = {
16
			header: "ui-icon-circle-arrow-e",
17
			headerSelected: "ui-icon-circle-arrow-s"
18
		};
19
		$( "#accordion" ).accordion({
20
			icons: icons
21
		});
22
		$( "#toggle" ).button().toggle(function() {
23
			$( "#accordion" ).accordion( "option", "icons", false );
24
		}, function() {
25
			$( "#accordion" ).accordion( "option", "icons", icons );
26
		});
27
	});
28
	</script>
29
</head>
30
<body>
31
 
32
<div class="demo">
33
 
34
<div id="accordion">
35
	<h3><a href="#">Section 1</a></h3>
36
	<div>
37
		<p>Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
38
	</div>
39
	<h3><a href="#">Section 2</a></h3>
40
	<div>
41
		<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>
42
	</div>
43
	<h3><a href="#">Section 3</a></h3>
44
	<div>
45
		<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>
46
		<ul>
47
			<li>List item one</li>
48
			<li>List item two</li>
49
			<li>List item three</li>
50
		</ul>
51
	</div>
52
	<h3><a href="#">Section 4</a></h3>
53
	<div>
54
		<p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. </p><p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
55
	</div>
56
</div>
57
 
58
<button id="toggle">Toggle icons</button>
59
 
60
</div><!-- End demo -->
61
 
62
 
63
 
64
<div class="demo-description">
65
<p>Customize the header icons with the <code>icons</code> option, which accepts classes for the header's default and selected (open) state.  Use any class from the UI CSS framework, or create custom classes with background images.</p>
66
</div><!-- End demo-description -->
67
 
68
</body>
69
</html>