Debian Codegraph @

demos/slider/multiple-vertical.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
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 - Multiple sliders</title>
7 <link rel="stylesheet" href="../../themes/base/all.css">
8 <script src="../../external/jquery/jquery.js"></script>
9 <script src="../../ui/core.js"></script>
10 <script src="../../ui/widget.js"></script>
11 <script src="../../ui/mouse.js"></script>
12 <script src="../../ui/slider.js"></script>
13 <link rel="stylesheet" href="../demos.css">
14 <style>
15 #eq > span {
16 height:120px; float:left; margin:15px
17 }
18 </style>
19 <script src="../../external/requirejs/require.js"></script>
20 <script src="../bootstrap.js">
21 // setup master volume
22 $( "#master" ).slider({
23 value: 60,
24 orientation: "horizontal",
25 range: "min",
26 animate: true
27 });
28 // setup graphic EQ
29 $( "#eq > span" ).each(function() {
30 // read initial values from markup and remove that
31 var value = parseInt( $( this ).text(), 10 );
32 $( this ).empty().slider({
33 value: value,
34 range: "min",
35 animate: true,
36 orientation: "vertical"
37 });
38 });
39 </script>
40 </head>
41 <body>
42
43 <p class="ui-state-default ui-corner-all ui-helper-clearfix" style="padding:4px;">
44 <span class="ui-icon ui-icon-volume-on" style="float:left; margin:-2px 5px 0 0;"></span>
45 Master volume
46 </p>
47
48 <div id="master" style="width:260px; margin:15px;"></div>
49
50 <p class="ui-state-default ui-corner-all" style="padding:4px;margin-top:4em;">
51 <span class="ui-icon ui-icon-signal" style="float:left; margin:-2px 5px 0 0;"></span>
52 Graphic EQ
53 </p>
54
55 <div id="eq">
56 <span>88</span>
57 <span>77</span>
58 <span>55</span>
59 <span>33</span>
60 <span>40</span>
61 <span>45</span>
62 <span>70</span>
63 </div>
64
65 <div class="demo-description">
66 <p>Combine horizontal and vertical sliders, each with their own options, to create the UI for a music player.</p>
67 </div>
68 </body>
69 </html>