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/slider-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/slider-vertical.html')
-rw-r--r-- | demos/slider/slider-vertical.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/demos/slider/slider-vertical.html b/demos/slider/slider-vertical.html new file mode 100644 index 000000000..1cc7fbcfd --- /dev/null +++ b/demos/slider/slider-vertical.html @@ -0,0 +1,49 @@ +<!doctype html> +<html lang="en"> +<head> + <title>jQuery UI Slider - Vertical 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-vertical").slider({ + orientation: "vertical", + range: "min", + min: 0, + max: 100, + value: 60, + slide: function(event, ui) { + $("#amount").val(ui.value); + } + }); + $("#amount").val($("#slider-vertical").slider("value")); + }); + </script> +</head> +<body> + +<div class="demo"> + +<p> +<label for="amount">Volume:</label> +<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /> +</p> + +<div id="slider-vertical" style="height:200px;"></div> + +</div><!-- End demo --> + +<div class="demo-description"> + +<p>Change the orientation of the 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> |