From 58a11a7dec11bdfc1f43f210ffd52da3816a530c Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Wed, 31 Dec 2008 05:01:58 +0000 Subject: demos: added inside
. some other minor updates

---
 demos/accordion/custom_icons.html   | 10 ++++----
 demos/accordion/fillspace.html      |  3 ++-
 demos/accordion/mouseover.html      |  4 ++-
 demos/dialog/default.html           | 50 +++++++++++++++++++++----------------
 demos/slider/default.html           | 11 ++++----
 demos/slider/multiple_vertical.html |  5 +++-
 demos/slider/range.html             |  5 ++--
 demos/slider/range_vertical.html    | 34 ++++++++++++++++++-------
 demos/slider/rangemax.html          | 26 ++++++++++++-------
 demos/slider/rangemin.html          | 28 +++++++++++++--------
 demos/slider/slider_vertical.html   | 24 +++++++++++++-----
 demos/slider/steps.html             | 27 ++++++++++++++------
 demos/tabs/collapsible.html         | 11 ++++----
 demos/tabs/mouseover.html           | 11 ++++----
 14 files changed, 160 insertions(+), 89 deletions(-)

(limited to 'demos')

diff --git a/demos/accordion/custom_icons.html b/demos/accordion/custom_icons.html
index 65ab3c912..3fb00167f 100644
--- a/demos/accordion/custom_icons.html
+++ b/demos/accordion/custom_icons.html
@@ -63,11 +63,11 @@
 
 

The icons used for the open and closed accordions can be any of the standard icons in the css framework or even a custom css class you create with an icon background image. For this example, we're using the arrow in a circle icons: -

-icons: {
-header: "ui-icon-circle-arrow-e",
-headerSelected: "ui-icon-circle-arrow-s"}
-
+
icons: {
+    header: "ui-icon-circle-arrow-e",
+    headerSelected: "ui-icon-circle-arrow-s"
+}
+
diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index a6a896767..2e880dd48 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -75,7 +75,8 @@ Resize the outer container:

In this example, the fillSpace option is used to make the accordion fit within a specific height and/or width. The script will automatically set the dimensions of the accordion to the height of the parent container. Try re-sizing the outer box to see the accordion fill the height of the box.

-
fillSpace: true
+
fillSpace: true
+
diff --git a/demos/accordion/mouseover.html b/demos/accordion/mouseover.html index c382a5158..ff3e5a6c1 100644 --- a/demos/accordion/mouseover.html +++ b/demos/accordion/mouseover.html @@ -58,7 +58,9 @@
-

In this example, we've customized the event to have sections open on mouseover instead of on click. This is done by simply adding this option event: "mouseover" to the accordion:

event: "mouseover"

+

In this example, we've customized the event to have sections open on mouseover instead of on click. This is done by simply adding this option event: "mouseover" to the accordion:

+
event: "mouseover"
+
diff --git a/demos/dialog/default.html b/demos/dialog/default.html index de5570f54..7a8aa0dee 100644 --- a/demos/dialog/default.html +++ b/demos/dialog/default.html @@ -19,36 +19,44 @@
-
-

This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.

-
- - -
-

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

-
-
- checkbox
- radio
-

-
-
-

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

+
+

This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.

+
+ + +
+

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

+
+
+ checkbox
+ radio
+

+
+
+

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

+
+

+This is a default dialog which opens in a floating layer above the page content protected with an iframe. +It is created by simply calling .dialog on the dialog content element, like this: +

-
+
$("#dialog").dialog();
+
-

This is a default dialog which opens in a floating layer above the page content protected with an iframe. It is created by simply calling .dialog on the ID of the content like this:

$("#dialog").dialog();

-

A basic dialog window has a title bar and a content area. If the content length exceeds the size of the window, a scrollbar will automatically appear. The dialog window can be moved, resized and closed with the 'x' icon by default.

+

+A basic dialog window has a title bar and a content area. +If the content length exceeds the maximum height (maxHeight option), a scrollbar will automatically appear. +The dialog window can be moved, resized and closed with the 'x' icon by default. +

- diff --git a/demos/slider/default.html b/demos/slider/default.html index 8d8096a9d..28fd1f59b 100644 --- a/demos/slider/default.html +++ b/demos/slider/default.html @@ -9,9 +9,7 @@ @@ -19,15 +17,16 @@
-

Your age:

-

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
+

+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. +

diff --git a/demos/slider/multiple_vertical.html b/demos/slider/multiple_vertical.html index 5a1913221..f6f263e7d 100644 --- a/demos/slider/multiple_vertical.html +++ b/demos/slider/multiple_vertical.html @@ -66,6 +66,7 @@ Master volume Graphic EQ

+
@@ -78,7 +79,9 @@ 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.

+

+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 7f5deaf9e..203c14689 100644 --- a/demos/slider/range.html +++ b/demos/slider/range.html @@ -30,9 +30,8 @@

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
-
+
range: true
+
diff --git a/demos/slider/range_vertical.html b/demos/slider/range_vertical.html index 5dd634e18..3cc55544d 100644 --- a/demos/slider/range_vertical.html +++ b/demos/slider/range_vertical.html @@ -12,8 +12,12 @@ $("#slider-range").slider({ orientation: "vertical", range: true, - values: [45, 67] + values: [17, 67], + slide: function(event, ui) { + $("#amount").val('$' + ui.values[0] + ' - $' + ui.values[1]); + } }); + $("#amount").val('$' + $("#slider-range").slider("values", 0) + ' - $' + $("#slider-range").slider("values", 1)); }); @@ -21,22 +25,34 @@
-

Target sales goal (Millions):

+

+ + +

+
- -
-

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

-
-orientation: "vertical",
+

+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 .height() or by setting the height through CSS.

+
+ +

+It's important to note that a vertical slider needs a height set. +You can do this via .height() or by setting the height through CSS. +

+ +

+This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +

diff --git a/demos/slider/rangemax.html b/demos/slider/rangemax.html index 90a80ce35..d5abf5fd7 100644 --- a/demos/slider/rangemax.html +++ b/demos/slider/rangemax.html @@ -11,8 +11,8 @@ $(function() { $("#slider-range-max").slider({ range: "max", - min:1, - max:10, + min: 1, + max: 10, value: 2, slide: function(event, ui) { $("#amount").val(ui.value); @@ -26,20 +26,28 @@
-

Minimum number of bedrooms:

+

+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"
+
-

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",
-
-

This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.

+

+This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +

diff --git a/demos/slider/rangemin.html b/demos/slider/rangemin.html index 96b7650a8..707f23ef7 100644 --- a/demos/slider/rangemin.html +++ b/demos/slider/rangemin.html @@ -12,8 +12,8 @@ $("#slider-range-min").slider({ range: "min", value: 37, - min:1, - max:700, + min: 1, + max: 700, slide: function(event, ui) { $("#amount").val('$' + ui.value); } @@ -26,23 +26,31 @@
-

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"
+
-

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",
-
-

This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.

+

+This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +

- diff --git a/demos/slider/slider_vertical.html b/demos/slider/slider_vertical.html index 12763dbd5..178d29852 100644 --- a/demos/slider/slider_vertical.html +++ b/demos/slider/slider_vertical.html @@ -25,22 +25,34 @@ -
-

Volume:

+

+ + +

+
+
+

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

-
+
orientation: "vertical"
+
-

This is an example of a minimum range 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.

-

This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.

+

+It's important to note that a vertical slider needs a height set. +You can do this via .height() or by setting the height through CSS. +

+

+This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +

diff --git a/demos/slider/steps.html b/demos/slider/steps.html index 1e5fb91cc..e1e3cb9a6 100644 --- a/demos/slider/steps.html +++ b/demos/slider/steps.html @@ -26,20 +26,33 @@
-

Donation amount ($50 increments):

+

+ + +

+
+
+ +

+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
+
-
+

+This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +

-

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
-
-

This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.

diff --git a/demos/tabs/collapsible.html b/demos/tabs/collapsible.html index 00eb42d42..3b058186f 100644 --- a/demos/tabs/collapsible.html +++ b/demos/tabs/collapsible.html @@ -40,15 +40,16 @@
- -
-

This example allows the tab strip to be toggled closed by setting the delectable option to true like this:

deselectable: true

- -
+

+This example allows the tab strip to be toggled closed by setting the delectable option to true like this: +

+
deselectable: true
+
+
diff --git a/demos/tabs/mouseover.html b/demos/tabs/mouseover.html index 4348db932..3f87a7383 100644 --- a/demos/tabs/mouseover.html +++ b/demos/tabs/mouseover.html @@ -39,15 +39,16 @@
- -
-

This example changes the default swap event from a click to mouseover by changing the event option:

event: 'mouseover'

- -
+

+This example changes the default swap event from a click to mouseover by changing the event option: +

+
event: 'mouseover'
+
+
-- cgit v1.2.3