aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/slider.html
blob: d7c63a4cc58cf853babc4098e371bbf576e12379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!doctype html>
<html lang="en">
<head>
	<title>Slider Visual Test Page</title>
	<link rel="stylesheet" href="all.css" type="text/css">
	<link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css">
	<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
	<script type="text/javascript" src="../../ui/ui.core.js"></script>
	<script type="text/javascript" src="../../ui/ui.slider.js"></script>
	<script type="text/javascript">
	$(function() {
		$("#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' });
	});
	</script>
</head>

<body>

<ul class="plugins">

<li class="plugin" style="padding:1em;">
	Slider
	<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>
</li>

<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>

</ul>

</body>
</html>