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

78 lines
1.9 KiB
HTML
Raw Normal View History

<!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">
<title>jQuery UI Slider - Multiple sliders</title>
2010-10-13 14:39:50 +00:00
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
2011-03-03 02:00:50 +00:00
<script src="../../jquery-1.5.1.js"></script>
2010-10-13 14:39:50 +00:00
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.mouse.js"></script>
<script src="../../ui/jquery.ui.slider.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#demo-frame > div.demo { padding: 10px !important; }
#eq span {
height:120px; float:left; margin:15px
}
</style>
2010-10-13 14:39:50 +00:00
<script>
2008-12-30 04:16:51 +00:00
$(function() {
// 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>
<body class="ui-widget-content" style="border:0;">
2008-12-30 04:16:51 +00:00
<div class="demo">
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>
</div><!-- End demo -->
2010-10-13 14:39:50 +00:00
<div class="demo-description" style="clear:left;">
<p>Combine horizontal and vertical sliders, each with their own options, to create the UI for a music player.</p>
</div><!-- End demo-description -->
2008-12-31 04:08:58 +00:00
2008-12-30 04:16:51 +00:00
</body>
</html>