-
Notifications
You must be signed in to change notification settings - Fork 203
/
index.html
152 lines (134 loc) · 5.36 KB
/
index.html
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>jSlider</title>
<!-- bin/jquery.slider.min.css -->
<link rel="stylesheet" href="css/jslider.css" type="text/css">
<link rel="stylesheet" href="css/jslider.blue.css" type="text/css">
<link rel="stylesheet" href="css/jslider.plastic.css" type="text/css">
<link rel="stylesheet" href="css/jslider.round.css" type="text/css">
<link rel="stylesheet" href="css/jslider.round.plastic.css" type="text/css">
<!-- end -->
<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
<!-- bin/jquery.slider.min.js -->
<script type="text/javascript" src="js/jshashtable-2.1_src.js"></script>
<script type="text/javascript" src="js/jquery.numberformatter-1.2.3.js"></script>
<script type="text/javascript" src="js/tmpl.js"></script>
<script type="text/javascript" src="js/jquery.dependClass-0.1.js"></script>
<script type="text/javascript" src="js/draggable-0.1.js"></script>
<script type="text/javascript" src="js/jquery.slider.js"></script>
<!-- end -->
<style type="text/css" media="screen">
body { background: #EEF0F7; }
.layout { padding: 50px; font-family: Georgia, serif; }
.layout-slider { margin-bottom: 60px; width: 50%; }
.layout-slider-settings { font-size: 12px; padding-bottom: 10px; }
.layout-slider-settings pre { font-family: Courier; }
</style>
</head>
<body>
<div class="layout">
<div class="layout-slider" style="width: 100%">
Slider <span style="display: inline-block; width: 400px; padding: 0 5px;"><input id="Slider1" type="slider" name="price" value="30000.5;60000" /></span> in string
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#Slider1").slider({ from: 1000, to: 100000, step: 500, smooth: true, round: 0, dimension: " $", skin: "plastic" });
</script>
<div class="layout-slider-settings">
<pre>{
from: 5,
to: 50,
step: 2.5,
round: 1,
format: { format: '##.0', locale: 'de' },
dimension: '&nbsp;€'
}</pre>
</div>
<div class="layout-slider">
<input id="SliderSingle" type="slider" name="price" value="20" />
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#SliderSingle").slider({ from: 5, to: 50, step: 2.5, round: 1, format: { format: '##.0', locale: 'de' }, dimension: ' €', skin: "round" });
</script>
<div class="layout-slider-settings">
<pre>{
from: 5000,
to: 150000,
heterogeneity: ['50/50000'],
step: 1000,
dimension: '&nbsp;$'
}</pre>
</div>
<div class="layout-slider">
<input id="Slider2" type="slider" name="price" value="5000;50000" />
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#Slider2").slider({ from: 5000, to: 150000, heterogeneity: ['50/50000'], step: 1000, dimension: ' $' });
</script>
<div class="layout-slider-settings">
<pre>{
from: 0,
to: 500,
heterogeneity: ['50/100', '75/250'],
scale: [0, '|', 50, '|' , '100', '|', 250, '|', 500],
limits: false,
step: 1,
dimension: '&nbsp;m<small>2</small>'
}</pre>
</div>
<div class="layout-slider">
<input id="Slider3" type="slider" name="area" value="25;75" />
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#Slider3").slider({ from: 0, to: 500, heterogeneity: ['50/100', '75/250'], scale: [0, '|', 50, '|', '100', '|', 250, '|', 500], limits: false, step: 1, dimension: ' m<small>2</small>', skin: "round_plastic" });
</script>
<div class="layout-slider-settings">
<pre>{
from: 1,
to: 30,
heterogeneity: ['50/5', '75/15'],
scale: [1, '|', 3, '|', '5', '|', 15, '|', 30],
limits: false,
step: 1,
dimension: '',
skin: "blue"
}</pre>
</div>
<div class="layout-slider">
<input id="Slider4" type="slider" name="area" value="2;10" />
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#Slider4").slider({ from: 1, to: 30, heterogeneity: ['50/5', '75/15'], scale: [1, '|', 3, '|', '5', '|', 15, '|', 30], limits: false, step: 1, dimension: '', skin: "blue", callback: function( value ){ console.dir( this ); } });
</script>
<div class="layout-slider-settings">
<pre>{
from: 480,
to: 1020,
step: 15,
dimension: '',
scale: ['8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00'],
limits: false,
calculate: function( value ){
var hours = Math.floor( value / 60 );
var mins = ( value - hours*60 );
return (hours < 10 ? "0"+hours : hours) + ":" + ( mins == 0 ? "00" : mins );
},
onstatechange: function( value ){
console.dir( this );
}
}</pre>
</div>
<div class="layout-slider">
<input id="Slider5" type="slider" name="area" value="600;720" />
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#Slider5").slider({ from: 480, to: 1020, step: 15, dimension: '', scale: ['8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00'], limits: false, calculate: function( value ){
var hours = Math.floor( value / 60 );
var mins = ( value - hours*60 );
return (hours < 10 ? "0"+hours : hours) + ":" + ( mins == 0 ? "00" : mins );
}})
</script>
</div>
</body>
</html>