]> source.dussan.org Git - jquery-ui.git/commitdiff
Added simple slider test
authorRichard Worth <rdworth@gmail.com>
Mon, 9 Jun 2008 07:40:29 +0000 (07:40 +0000)
committerRichard Worth <rdworth@gmail.com>
Mon, 9 Jun 2008 07:40:29 +0000 (07:40 +0000)
tests/visual/all.css
tests/visual/all.html
tests/visual/slider.html [new file with mode: 0644]

index f7e5be50667181ffa7a690d6b32c9562214ea542..17fc5985bafc1c8ebd0dbae72756aca47cb64af7 100644 (file)
@@ -6,7 +6,7 @@ ul.plugins li { margin: 0 12px 12px 0;
        color: white; border: 1px solid gray; text-align: center; font-weight: bold; }\r
 \r
 #accordion, #draggable, #droppable,\r
-#resizable, #selectable, #slider, #sortable, #tabs {\r
+#resizable, #selectable, #sortable, #tabs {\r
        margin: 10px;\r
        width: 190px; height: 180px;\r
        text-align: center;\r
@@ -71,3 +71,6 @@ ul.plugins li { margin: 0 12px 12px 0;
 .ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: gray !important; border: none !important; }\r
 .ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: gray !important; border: none !important; }\r
 .ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: gray !important; border: none !important; }\r
+\r
+.ui-slider { margin: 10px; background: #FF9C08; height: 15px; }\r
+.ui-slider-handle { width: 10px; height: 15px; background: white; }\r
index fe8cae919d38938e7c34ca4d2ba1a1e804f8ba4c..2340b1a01aa861919365b35c77e8a2d808f96740 100644 (file)
@@ -23,6 +23,7 @@
                $("#draggable").draggable();\r
                $("#resizable").resizable();\r
                $("#selectable").selectable();\r
+               $("#slider").slider();\r
                $("#sortable").sortable();\r
        });\r
        </script>\r
                <div>9</div>\r
        </div>\r
 </li>\r
+<li>\r
+       Slider\r
+       <div id="slider"></div>\r
+</li>\r
 <li>\r
        Sortable\r
        <div id="sortable">\r
diff --git a/tests/visual/slider.html b/tests/visual/slider.html
new file mode 100644 (file)
index 0000000..3e4e991
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>\r
+<html lang="en">\r
+<head>\r
+       <title>Simple Slider</title>\r
+       <link rel="stylesheet" href="all.css" type="text/css" media="screen">\r
+       <script type="text/javascript" src="../../jquery-1.2.6.js"></script>\r
+       <script type="text/javascript" src="../../ui/ui.core.js"></script>\r
+       <script type="text/javascript" src="../../ui/ui.slider.js"></script>\r
+       <script type="text/javascript">\r
+       $(function() {\r
+               $("#slider").slider();\r
+       });\r
+       </script>\r
+</head>\r
+\r
+<body>\r
+\r
+<ul class="plugins">\r
+<li>\r
+       Slider\r
+       <div id="slider"></div>\r
+</li>\r
+</ul>\r
+\r
+</body>\r
+</html>\r