diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-09-09 21:35:00 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-09 22:33:28 -0400 |
commit | b79e92818fa027bbd3daec17d6417940e2b156ed (patch) | |
tree | a27caa10de418e37b7e3ca61b249182a7b17f1ae /demos/accordion/custom-icons.html | |
parent | 590e03cc328879f67b2350b76b50ec34d559739e (diff) | |
download | jquery-ui-b79e92818fa027bbd3daec17d6417940e2b156ed.tar.gz jquery-ui-b79e92818fa027bbd3daec17d6417940e2b156ed.zip |
Accordion demos: Coding standards.
Diffstat (limited to 'demos/accordion/custom-icons.html')
-rw-r--r-- | demos/accordion/custom-icons.html | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index c81fb3120..6ad35ddbb 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -1,28 +1,28 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8" /> + <meta charset="utf-8"> <title>jQuery UI Accordion - Customize icons</title> - <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> - <script type="text/javascript" src="../../jquery-1.4.2.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.accordion.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script> - <link type="text/css" href="../demos.css" rel="stylesheet" /> - <script type="text/javascript"> + <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> + <script src="../../jquery-1.4.2.js"></script> + <script src="../../ui/jquery.ui.core.js"></script> + <script src="../../ui/jquery.ui.widget.js"></script> + <script src="../../ui/jquery.ui.accordion.js"></script> + <script src="../../ui/jquery.ui.button.js"></script> + <link rel="stylesheet" href="../demos.css"> + <script> $(function() { var icons = { header: "ui-icon-circle-arrow-e", headerSelected: "ui-icon-circle-arrow-s" }; - $("#accordion").accordion({ + $( "#accordion" ).accordion({ icons: icons }); - $("#toggle").button().toggle(function() { - $("#accordion").accordion("option", "icons", false); + $( "#toggle" ).button().toggle(function() { + $( "#accordion" ).accordion( "option", "icons", false ); }, function() { - $("#accordion").accordion("option", "icons", icons); + $( "#accordion" ).accordion( "option", "icons", icons ); }); }); </script> @@ -62,9 +62,7 @@ <div class="demo-description"> - <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> - </div><!-- End demo-description --> </body> |