2008-09-20 17:42:04 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2008-12-23 10:38:12 +00:00
|
|
|
<title>Slider Visual Test Page</title>
|
2009-01-22 12:01:20 +00:00
|
|
|
<link rel="stylesheet" href="../all.css" type="text/css">
|
|
|
|
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
|
2010-01-20 13:52:38 +00:00
|
|
|
<script type="text/javascript" src="../../../jquery-1.4.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
2009-12-16 22:20:18 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
2010-01-01 12:43:36 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.slider.js"></script>
|
2008-09-20 17:42:04 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
2008-12-23 10:38:12 +00:00
|
|
|
$("#slider1").slider();
|
|
|
|
$("#slider2").slider({
|
|
|
|
step: 2,
|
|
|
|
start: function(event, ui) {
|
|
|
|
//console.log('start');
|
|
|
|
},
|
|
|
|
slide: function(event, ui) {
|
|
|
|
//console.log('slide');
|
|
|
|
//return (ui.value < 50 || ui.value > 63);
|
|
|
|
},
|
|
|
|
stop: function(event, ui) {
|
|
|
|
//console.log('stop');
|
|
|
|
},
|
|
|
|
change: function(event, ui) {
|
|
|
|
//console.log('change');
|
|
|
|
},
|
|
|
|
values: [10, 50, 90]
|
|
|
|
});
|
|
|
|
$("#slider3").slider({
|
|
|
|
max: 10,
|
|
|
|
orientation: 'vertical',
|
|
|
|
step: 2,
|
|
|
|
value: 3
|
|
|
|
});
|
|
|
|
$("#h-range-true").slider({ orientation: "horizontal", range: true });
|
|
|
|
$("#h-range-max").slider({ orientation: "horizontal", range: 'max' });
|
|
|
|
$("#h-range-min").slider({ orientation: "horizontal", range: 'min' });
|
|
|
|
$("#v-range-true").slider({ orientation: "vertical", range: true });
|
|
|
|
$("#v-range-max").slider({ orientation: "vertical", range: 'max' });
|
|
|
|
$("#v-range-min").slider({ orientation: "vertical", range: 'min' });
|
2008-09-20 17:42:04 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<ul class="plugins">
|
2008-12-23 10:38:12 +00:00
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
2008-09-20 17:42:04 +00:00
|
|
|
Slider
|
2008-12-23 10:38:12 +00:00
|
|
|
<div id="slider1"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - values: [10, 50, 90]
|
|
|
|
<div id="slider2">
|
|
|
|
<a id="foo" href="#" class="ui-slider-handle"></a>
|
|
|
|
<a id="bar" href="#" class="ui-slider-handle"></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - orientation: vertical
|
|
|
|
<div id="slider3" style="height:100%;"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="plugins">
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - range: true
|
|
|
|
<div id="h-range-true"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - range: 'max'
|
|
|
|
<div id="h-range-max"></div>
|
2008-09-20 17:42:04 +00:00
|
|
|
</li>
|
2008-12-23 10:38:12 +00:00
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - range: 'min'
|
|
|
|
<div id="h-range-min"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="plugins">
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - range: true
|
|
|
|
<div id="v-range-true"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - range: 'max'
|
|
|
|
<div id="v-range-max"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="plugin" style="padding:1em;">
|
|
|
|
Slider - range: 'min'
|
|
|
|
<div id="v-range-min"></div>
|
|
|
|
</li>
|
|
|
|
|
2008-09-20 17:42:04 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|