diff options
author | Richard Worth <rdworth@gmail.com> | 2009-01-27 10:08:19 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-01-27 10:08:19 +0000 |
commit | 0d4d56ae45b6ba3113d2002d4aa16cea8338e8a2 (patch) | |
tree | f9e0f556f7e41ae9d123e085bba2f3cb5825e3bb /demos/slider/range-vertical.html | |
parent | 191c23117fbeefc98184ffcab0e55f21299c1551 (diff) | |
download | jquery-ui-0d4d56ae45b6ba3113d2002d4aa16cea8338e8a2.tar.gz jquery-ui-0d4d56ae45b6ba3113d2002d4aa16cea8338e8a2.zip |
demos: fixed file naming inconsistency. Multiple words now separated by hyphen, not underscore
Diffstat (limited to 'demos/slider/range-vertical.html')
-rw-r--r-- | demos/slider/range-vertical.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/demos/slider/range-vertical.html b/demos/slider/range-vertical.html new file mode 100644 index 000000000..37f5c601e --- /dev/null +++ b/demos/slider/range-vertical.html @@ -0,0 +1,47 @@ +<!doctype html> +<html lang="en"> +<head> + <title>jQuery UI Slider - Vertical range slider</title> + <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> + <script type="text/javascript" src="../../jquery-1.3.1.js"></script> + <script type="text/javascript" src="../../ui/ui.core.js"></script> + <script type="text/javascript" src="../../ui/ui.slider.js"></script> + <link type="text/css" href="../demos.css" rel="stylesheet" /> + <style type="text/css"> + #demo-frame > div.demo { padding: 10px !important; }; + </style> + <script type="text/javascript"> + $(function() { + $("#slider-range").slider({ + orientation: "vertical", + range: true, + 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)); + }); + </script> +</head> +<body> + +<div class="demo"> + +<p> +<label for="amount">Target sales goal (Millions):</label> +<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /> +</p> + +<div id="slider-range" style="height:250px;"></div> + +</div><!-- End demo --> + +<div class="demo-description"> + +<p>Change the orientation of the range slider to vertical. Assign a height value via <strong>.height()</strong> or by setting the height through CSS, and set the <strong>orientation</strong> option to "vertical."</p> + +</div><!-- End demo-description --> + +</body> +</html> |