<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>\r
- <script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>\r
- <script type="text/javascript" src="../../../ui/jquery.ui.datepicker.js"></script>\r
+ <script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.autocomplete.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>\r
- <script type="text/javascript" src="../../../ui/jquery.ui.tabs.js"></script>\r
- <script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>\r
+ <script type="text/javascript" src="../../../ui/jquery.ui.datepicker.js"></script>\r
+ <script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.progressbar.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.slider.js"></script>\r
+ <script type="text/javascript" src="../../../ui/jquery.ui.tabs.js"></script>\r
<script type="text/javascript">\r
$(function() {\r
- $('#datepicker').datepicker();\r
+ $("#accordion").accordion();\r
$("#autocomplete").autocomplete({\r
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"]\r
});\r
- $("button").button();\r
- \r
- // TODO add more widgets\r
+ $("button").button().click(function() {\r
+ $("#dialog2").dialog("open");\r
+ });\r
+ $("#datepicker").datepicker();\r
+ $("#progressbar").progressbar({\r
+ value: 30\r
+ });\r
+ $("#slider").slider({\r
+ // should be animated\r
+ animate: true,\r
+ value: 30,\r
+ slide: function(event, ui) {\r
+ $("#progress").val(ui.value);\r
+ $("#progressbar").progressbar("option", "value", ui.value);\r
+ }\r
+ });\r
+ $("#tabs").tabs();\r
\r
- $('#dialog').dialog();\r
+ $("#dialog").dialog();\r
+ $("#dialog2").dialog({\r
+ autoOpen: false,\r
+ width: 100,\r
+ height: 75,\r
+ modal: true\r
+ })\r
});\r
</script>\r
</head>\r
<body>\r
\r
<div id="dialog">\r
- <button>A Button</button>\r
+ <div id="accordion">\r
+ <h3><a href="#">Accordion Header 1</a></h3>\r
+ <div>\r
+ Accordion Content 1\r
+ </div>\r
+ <h3><a href="#">Accordion Header 2</a></h3>\r
+ <div>\r
+ Accordion Content 2\r
+ </div>\r
+ <h3><a href="#">Accordion Header 3</a></h3>\r
+ <div>\r
+ Accordion Content 3\r
+ </div>\r
+ </div>\r
<input id="autocomplete">\r
+ <button>A Button</button>\r
<input id="datepicker">\r
<button>Another button</button>\r
+ <div>\r
+ <label for="progress">Progress: <input id="progress" /></label>\r
+ </div>\r
+ <div id="progressbar">\r
+ </div>\r
+ <div id="slider"></div>\r
+ <div id="tabs">\r
+ <ul>\r
+ <li><a href="#tabs-1">First</a></li>\r
+ <li><a href="#tabs-2">Second</a></li>\r
+ <li><a href="#tabs-3">Third</a></li>\r
+ </ul>\r
+ <div id="tabs-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>\r
+ <div id="tabs-2">Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.</div>\r
+ <div id="tabs-3">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>\r
+ </div>\r
+</div>\r
+<div id="dialog2">\r
+ Yay, another dialog.\r
</div>\r
\r
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae urna quam. Fusce adipiscing erat eget magna malesuada vel mollis ligula ullamcorper. Donec pulvinar, libero et vehicula facilisis, odio orci fringilla magna, non ultricies ipsum justo a tellus. Proin facilisis magna vitae quam vestibulum tempor. Aenean semper placerat posuere. In nisi diam, ullamcorper sit amet viverra sed, pretium sed neque. Sed posuere vulputate mauris vitae placerat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam in odio elit, non tempor felis. Integer non iaculis ante. Sed erat mauris, aliquam nec consequat id, congue id libero. Maecenas elementum gravida tincidunt. Suspendisse lacinia enim sit amet nulla cursus pulvinar.\r