/[projects]/misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/slider/steps.html
ViewVC logotype

Annotation of /misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/slider/steps.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (hide annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 3 months ago) by torben
File MIME type: text/html
File size: 1179 byte(s)
initial import
1 torben 2125 <!doctype html>
2     <html lang="en">
3     <head>
4     <meta charset="utf-8">
5     <title>jQuery UI Slider - Snap to increments</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" ).slider({
16     value:100,
17     min: 0,
18     max: 500,
19     step: 50,
20     slide: function( event, ui ) {
21     $( "#amount" ).val( "$" + ui.value );
22     }
23     });
24     $( "#amount" ).val( "$" + $( "#slider" ).slider( "value" ) );
25     });
26     </script>
27     </head>
28     <body>
29    
30     <p>
31     <label for="amount">Donation amount ($50 increments):</label>
32     <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
33     </p>
34    
35     <div id="slider"></div>
36    
37     <div class="demo-description">
38     <p>Increment slider values with the <code>step</code> option set to an integer, commonly a dividend of the slider's maximum value. The default increment is 1.</p>
39     </div>
40     </body>
41     </html>

  ViewVC Help
Powered by ViewVC 1.1.20