]> source.dussan.org Git - jquery-ui.git/commitdiff
Added container divs and added descriptions
authorTodd Parker <fg.todd@gmail.com>
Tue, 30 Dec 2008 19:08:39 +0000 (19:08 +0000)
committerTodd Parker <fg.todd@gmail.com>
Tue, 30 Dec 2008 19:08:39 +0000 (19:08 +0000)
demos/slider/default.html
demos/slider/multiple_vertical.html
demos/slider/range.html
demos/slider/range_vertical.html
demos/slider/rangemax.html
demos/slider/rangemin.html
demos/slider/slider_vertical.html
demos/slider/steps.html

index 475ba1c7a7bd64b4bd1d20601c9fe5bb24b638fa..972c5497a33a29411e56ca03eb82790569c4b4a7 100644 (file)
 </head>
 <body>
 
+
+
+<div class="demo">
+
 <div id="slider"></div>
 
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>The default slider has a single handle and is horizontal. The handle can be moved with the mouse or by using the arrow keys and has full ARIA attributes for accessibility. The current value for the slider can be set with the value option: <pre>value: 37</pre></p>
+
+</div><!-- End demo-description -->
+
+
+
+
 </body>
 </html>
index cafd1b48e62cbde049d7dc23755d025385706b65..30d215133d8b6b4e4871b369f208663db66ee8cf 100644 (file)
@@ -53,6 +53,9 @@
 </head>
 <body>
 
+
+<div class="demo">
+
 Master volume:
 <div id="slider0" style="width:260px; margin:15px; clear:both;"></div>
 
@@ -66,5 +69,15 @@ Graphic EQ:
 <div id="slider5" style="height:120px; float:left; margin:15px"></div>
 <div id="slider6" style="height:120px; float:left; margin:15px"></div>
 <div id="slider7" style="height:120px; float:left; margin:15px"></div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>This example shows how easy it is to add multiple sliders to a page, each with their own options, to make a UI for a music player.</p>
+
+</div><!-- End demo-description -->
 </body>
 </html>
index e9b1f2787dc02ba61d68cbdf9041f75b0604f2f0..80f097bf5666173609583a5621efc6d3902812c9 100644 (file)
        $(function() {
                $("#slider-range").slider({
                        range: true,
-                       values: [17, 67]
+                       min: 0,
+                       max: 500,
+                       values: [75, 300]
                });
        });
        </script>
 </head>
 <body>
 
+
+
+
+<p>Price range:</p>
 <div id="slider-range"></div>
 
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>Example of a range slider that had two drag handles and a filled bar that connects the two handles to indicate that the values between them are selected. THis is created by setting the range option:</p> 
+<pre>
+range: true,
+</pre> 
+
+</div><!-- End demo-description -->
+
 </body>
 </html>
index f9cf7b4d2fb59ab608e4becbd5dfad07a49f3036..18bfd4a15e00a3710299f1b386a3f705858c70e2 100644 (file)
 </head>
 <body>
 
-<div id="slider-range" style="height:300px;"></div>
+<div class="demo">
+
+<div id="slider-range" style="height:250px;"></div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>This is an example of a vertical range slider created by setting the orientation to vertical:</p> 
+<pre>
+orientation: "vertical",
+range: true,
+values: [17, 67]
+</pre> 
+<p>It's important to note that a vertical slider needs a height set. You can do this via the script options or by adding a height through CSS. </p>
+
+</div><!-- End demo-description -->
 
 </body>
 </html>
index 2987505ccfa59a2e71522c0e2996eaf8099deb73..fb42cc54f4e6a2f3fd59f846968687f942085ed9 100644 (file)
        $(function() {
                $("#slider-range-max").slider({
                        range: "max",
-                       value: 63
+                       min:1,
+                       max:10,
+                       value: 2
                });
        });
        </script>
 </head>
 <body>
 
+<div class="demo">
+
+<p>Minimum number of bedrooms:</p>
 <div id="slider-range-max"></div>
 
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>An example of a range slider that has the filled bar hard-coded to the maximum value plus a single slider. This makes it clear that selecting a value will also include all values above the selection. This is a range option type:</p> 
+<pre>
+range: "max",
+</pre> 
+
+</div><!-- End demo-description -->
+
 </body>
 </html>
index 1a492388778ef6c6b1657bbbf96a1d8f66f5b2b9..339680859646e784642ad610ff07c7f8c2245e4f 100644 (file)
 </head>
 <body>
 
+<div class="demo">
+
+<p>Maximum price:</p>
 <div id="slider-range-min"></div>
 
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>An example of a range slider that has the filled bar hard-coded to the minimum value plus a single slider. This makes it clear that selecting a value will also include all values below the selection. This is a range option type:</p> 
+<pre>
+range: "min",
+</pre> 
+
+</div><!-- End demo-description -->
+
+
 </body>
 </html>
index 3479aed4ad72c138e6b4dfc434fcfae82407301d..7c1fdb01dc35b49976320203e0118a02e867de84 100644 (file)
 </head>
 <body>
 
-<div id="slider-vertical" style="height:300px;"></div>
+
+<div class="demo">
+
+<div id="slider-vertical" style="height:250px;"></div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>This is an example of a vertical slider created by setting the orientation to vertical:</p> <pre>orientation: "vertical",</pre> 
+<p>It's important to note that a vertical slider needs a height set. You can do this via the script options or by adding a height through CSS. </p>
+
+</div><!-- End demo-description -->
 
 </body>
 </html>
index da3d0f94ba57ce8c394d4df1a2e0b3d07abfc600..84c9721bb9c2dd2fb6e79b44b9a5f6a4e54ade07 100644 (file)
 </head>
 <body>
 
+<div class="demo">
+
 <div id="slider"></div>
 
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>This slider has a step value set that will only allow for increments of 50 to be selected. The default step increment is 1. The drag handle will snap to drop points every 50 units. This is set in an option called step:</p>
+<pre>                  
+min: 0, max: 500, step: 50
+</pre>
+
+</div><!-- End demo-description -->
+
 </body>
 </html>