and a note on manual changes in dataTables.bootstrap.css
[myslice.git] / third-party / jquery-ui-1.10.2 / demos / slider / range-vertical.html
1 <!doctype html>
2 <html lang="en">
3 <head>
4         <meta charset="utf-8">
5         <title>jQuery UI Slider - Vertical range slider</title>
6         <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7         <script src="../../jquery-1.9.1.js"></script>
8         <script src="../../ui/jquery.ui.core.js"></script>
9         <script src="../../ui/jquery.ui.widget.js"></script>
10         <script src="../../ui/jquery.ui.mouse.js"></script>
11         <script src="../../ui/jquery.ui.slider.js"></script>
12         <link rel="stylesheet" href="../demos.css">
13         <script>
14         $(function() {
15                 $( "#slider-range" ).slider({
16                         orientation: "vertical",
17                         range: true,
18                         values: [ 17, 67 ],
19                         slide: function( event, ui ) {
20                                 $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
21                         }
22                 });
23                 $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
24                         " - $" + $( "#slider-range" ).slider( "values", 1 ) );
25         });
26         </script>
27 </head>
28 <body>
29
30 <p>
31         <label for="amount">Target sales goal (Millions):</label>
32         <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
33 </p>
34
35 <div id="slider-range" style="height:250px;"></div>
36
37 <div class="demo-description">
38 <p>Change the orientation of the range slider to vertical.  Assign a height value via <code>.height()</code> or by setting the height through CSS, and set the <code>orientation</code> option to "vertical."</p>
39 </div>
40 </body>
41 </html>