jquery-ui/demos/slider/multiple-vertical.html

70 lines
1.8 KiB
HTML
Raw Normal View History

2012-09-10 15:33:46 +00:00
<!doctype html>
2008-12-30 04:16:51 +00:00
<html lang="en">
<head>
2010-10-13 14:39:50 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Slider - Multiple sliders</title>
<link rel="stylesheet" href="../../themes/base/all.css">
<script src="../../external/jquery/jquery.js"></script>
<script src="../../ui/core.js"></script>
<script src="../../ui/widget.js"></script>
<script src="../../ui/mouse.js"></script>
<script src="../../ui/slider.js"></script>
2010-10-13 14:39:50 +00:00
<link rel="stylesheet" href="../demos.css">
<style>
#eq > span {
2010-10-13 14:39:50 +00:00
height:120px; float:left; margin:15px
}
</style>
<script src="../../external/requirejs/require.js"></script>
<script src="../bootstrap.js">
// setup master volume
2010-10-13 14:39:50 +00:00
$( "#master" ).slider({
value: 60,
orientation: "horizontal",
range: "min",
animate: true
2008-12-30 04:16:51 +00:00
});
// setup graphic EQ
2010-10-13 14:39:50 +00:00
$( "#eq > span" ).each(function() {
// read initial values from markup and remove that
2010-10-13 14:39:50 +00:00
var value = parseInt( $( this ).text(), 10 );
$( this ).empty().slider({
value: value,
range: "min",
animate: true,
orientation: "vertical"
});
2008-12-30 04:16:51 +00:00
});
</script>
</head>
2012-09-10 15:33:46 +00:00
<body>
2008-12-31 04:08:58 +00:00
<p class="ui-state-default ui-corner-all ui-helper-clearfix" style="padding:4px;">
2010-10-13 14:39:50 +00:00
<span class="ui-icon ui-icon-volume-on" style="float:left; margin:-2px 5px 0 0;"></span>
Master volume
</p>
<div id="master" style="width:260px; margin:15px;"></div>
2008-12-31 04:08:58 +00:00
<p class="ui-state-default ui-corner-all" style="padding:4px;margin-top:4em;">
2010-10-13 14:39:50 +00:00
<span class="ui-icon ui-icon-signal" style="float:left; margin:-2px 5px 0 0;"></span>
Graphic EQ
</p>
<div id="eq">
<span>88</span>
<span>77</span>
<span>55</span>
<span>33</span>
<span>40</span>
<span>45</span>
<span>70</span>
</div>
2012-09-10 15:33:46 +00:00
<div class="demo-description">
2010-10-13 14:39:50 +00:00
<p>Combine horizontal and vertical sliders, each with their own options, to create the UI for a music player.</p>
2012-09-10 15:33:46 +00:00
</div>
2008-12-30 04:16:51 +00:00
</body>
</html>