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">
|
2009-01-20 21:10:12 +00:00
|
|
|
<title>jQuery UI Slider - Multiple sliders</title>
|
2013-12-02 18:36:12 +00:00
|
|
|
<link rel="stylesheet" href="../../themes/base/all.css">
|
2014-03-03 21:52:54 +00:00
|
|
|
<script src="../../jquery.js"></script>
|
2013-12-02 18:36:12 +00:00
|
|
|
<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>
|
2014-03-06 04:03:17 +00:00
|
|
|
#eq > span {
|
2010-10-13 14:39:50 +00:00
|
|
|
height:120px; float:left; margin:15px
|
|
|
|
}
|
2008-12-31 14:25:59 +00:00
|
|
|
</style>
|
2010-10-13 14:39:50 +00:00
|
|
|
<script>
|
2008-12-30 04:16:51 +00:00
|
|
|
$(function() {
|
2009-02-28 12:24:42 +00:00
|
|
|
// setup master volume
|
2010-10-13 14:39:50 +00:00
|
|
|
$( "#master" ).slider({
|
2009-02-28 12:24:42 +00:00
|
|
|
value: 60,
|
2010-02-05 02:30:48 +00:00
|
|
|
orientation: "horizontal",
|
|
|
|
range: "min",
|
|
|
|
animate: true
|
2008-12-30 04:16:51 +00:00
|
|
|
});
|
2009-02-28 12:24:42 +00:00
|
|
|
// setup graphic EQ
|
2010-10-13 14:39:50 +00:00
|
|
|
$( "#eq > span" ).each(function() {
|
2009-02-28 12:24:42 +00:00
|
|
|
// 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({
|
2010-02-05 02:30:48 +00:00
|
|
|
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-30 19:08:39 +00:00
|
|
|
|
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
|
2008-12-30 22:01:56 +00:00
|
|
|
</p>
|
|
|
|
|
2009-02-28 12:24:42 +00:00
|
|
|
<div id="master" style="width:260px; margin:15px;"></div>
|
2008-12-30 22:01:56 +00:00
|
|
|
|
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
|
2008-12-30 22:01:56 +00:00
|
|
|
</p>
|
2008-12-31 05:01:58 +00:00
|
|
|
|
2009-02-28 12:24:42 +00:00
|
|
|
<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>
|
2008-12-30 19:08:39 +00:00
|
|
|
|
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>
|