corrade-http-templates – Blame information for rev 57
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
57 | office | 1 | <!doctype html> |
2 | <html lang="en"> |
||
3 | <head> |
||
4 | <meta charset="utf-8"> |
||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
||
6 | <title>jQuery UI Slider - Custom handle</title> |
||
7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
||
8 | <link rel="stylesheet" href="../demos.css"> |
||
9 | <style> |
||
10 | #custom-handle { |
||
11 | width: 3em; |
||
12 | height: 1.6em; |
||
13 | top: 50%; |
||
14 | margin-top: -.8em; |
||
15 | text-align: center; |
||
16 | line-height: 1.6em; |
||
17 | } |
||
18 | </style> |
||
19 | <script src="../../external/requirejs/require.js"></script> |
||
20 | <script src="../bootstrap.js"> |
||
21 | var handle = $( "#custom-handle" ); |
||
22 | $( "#slider" ).slider({ |
||
23 | create: function() { |
||
24 | handle.text( $( this ).slider( "value" ) ); |
||
25 | }, |
||
26 | slide: function( event, ui ) { |
||
27 | handle.text( ui.value ); |
||
28 | } |
||
29 | }); |
||
30 | </script> |
||
31 | </head> |
||
32 | <body> |
||
33 | |||
34 | <div id="slider"> |
||
35 | <div id="custom-handle" class="ui-slider-handle"></div> |
||
36 | </div> |
||
37 | |||
38 | <div class="demo-description"> |
||
39 | <p>The basic slider is horizontal and has a single handle that can be moved with the mouse or by using the arrow keys.</p> |
||
40 | </div> |
||
41 | </body> |
||
42 | </html> |