From f57f31c72d180442785bbf92290799c140aa17eb Mon Sep 17 00:00:00 2001 From: Todd Parker Date: Tue, 30 Dec 2008 19:08:39 +0000 Subject: Added container divs and added descriptions --- demos/slider/default.html | 17 +++++++++++++++++ demos/slider/multiple_vertical.html | 13 +++++++++++++ demos/slider/range.html | 21 ++++++++++++++++++++- demos/slider/range_vertical.html | 20 +++++++++++++++++++- demos/slider/rangemax.html | 20 +++++++++++++++++++- demos/slider/rangemin.html | 17 +++++++++++++++++ demos/slider/slider_vertical.html | 16 +++++++++++++++- demos/slider/steps.html | 15 +++++++++++++++ 8 files changed, 135 insertions(+), 4 deletions(-) diff --git a/demos/slider/default.html b/demos/slider/default.html index 475ba1c7a..972c5497a 100644 --- a/demos/slider/default.html +++ b/demos/slider/default.html @@ -17,7 +17,24 @@ + + +
+
+
+ + + +
+ +

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:

value: 37

+ +
+ + + + diff --git a/demos/slider/multiple_vertical.html b/demos/slider/multiple_vertical.html index cafd1b48e..30d215133 100644 --- a/demos/slider/multiple_vertical.html +++ b/demos/slider/multiple_vertical.html @@ -53,6 +53,9 @@ + +
+ Master volume:
@@ -66,5 +69,15 @@ Graphic EQ:
+ +
+ + + +
+ +

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.

+ +
diff --git a/demos/slider/range.html b/demos/slider/range.html index e9b1f2787..80f097bf5 100644 --- a/demos/slider/range.html +++ b/demos/slider/range.html @@ -11,14 +11,33 @@ $(function() { $("#slider-range").slider({ range: true, - values: [17, 67] + min: 0, + max: 500, + values: [75, 300] }); }); + + + +

Price range:

+ + + + +
+ +

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:

+
+range: true,
+
+ +
+ diff --git a/demos/slider/range_vertical.html b/demos/slider/range_vertical.html index f9cf7b4d2..18bfd4a15 100644 --- a/demos/slider/range_vertical.html +++ b/demos/slider/range_vertical.html @@ -19,7 +19,25 @@ -
+
+ +
+ +
+ + + +
+ +

This is an example of a vertical range slider created by setting the orientation to vertical:

+
+orientation: "vertical",
+range: true,
+values: [17, 67]
+
+

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.

+ +
diff --git a/demos/slider/rangemax.html b/demos/slider/rangemax.html index 2987505cc..fb42cc54f 100644 --- a/demos/slider/rangemax.html +++ b/demos/slider/rangemax.html @@ -11,14 +11,32 @@ $(function() { $("#slider-range-max").slider({ range: "max", - value: 63 + min:1, + max:10, + value: 2 }); }); +
+ +

Minimum number of bedrooms:

+
+ + + +
+ +

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:

+
+range: "max",
+
+ +
+ diff --git a/demos/slider/rangemin.html b/demos/slider/rangemin.html index 1a4923887..339680859 100644 --- a/demos/slider/rangemin.html +++ b/demos/slider/rangemin.html @@ -18,7 +18,24 @@ +
+ +

Maximum price:

+
+ + + +
+ +

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:

+
+range: "min",
+
+ +
+ + diff --git a/demos/slider/slider_vertical.html b/demos/slider/slider_vertical.html index 3479aed4a..7c1fdb01d 100644 --- a/demos/slider/slider_vertical.html +++ b/demos/slider/slider_vertical.html @@ -18,7 +18,21 @@ -
+ +
+ +
+ +
+ + + +
+ +

This is an example of a vertical slider created by setting the orientation to vertical:

orientation: "vertical",
+

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.

+ +
diff --git a/demos/slider/steps.html b/demos/slider/steps.html index da3d0f94b..84c9721bb 100644 --- a/demos/slider/steps.html +++ b/demos/slider/steps.html @@ -17,7 +17,22 @@ +
+
+
+ + + +
+ +

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:

+
			
+min: 0, max: 500, step: 50
+
+ +
+ -- cgit v1.2.3