-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindexslider.html
216 lines (212 loc) · 8.45 KB
/
indexslider.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Demo Page: Using Progressive Enhancement to Convert a Select Box Into an Accessible jQuery UI Slider</title>
<script src="http://code.jquery.com/jquery.min.js"></script>
<!-- // <script type="text/javascript" src="_js/libs/jquery.tablesorter.min.js"></script>
// <script type="text/javascript" src="_js/libs/jquery-1.3.2.min.js"></script> -->
<script type="text/javascript" src="_js/libs/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="_js/libs/selectToUISlider.jQuery.js"></script>
<link rel="stylesheet" href="_css/redmond/jquery-ui-1.7.1.custom.css" type="text/css" />
<link rel="Stylesheet" href="_css/ui.slider.extras.css" type="text/css" />
<style type="text/css">
body {font-size: 62.5%; font-family:"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif; }
fieldset { border:0; margin: 6em; height: 12em;}
label {font-weight: normal; float: left; margin-right: .5em; font-size: 1.1em;}
select {margin-right: 1em; float: left;}
.ui-slider {clear: both; top: 5em;}
</style>
<script type="text/javascript">
$(function(){
$('select#valueAA, select#valueBB').selectToUISlider({
labels: 12,
});
});
$('fieldset.businessapproaches input').on('change', function () {
var index = $(this).prevAll('input').length - 1;
$('section.businessapproaches > section').eq(index).toggle();
});
</script>
</head>
<body>
<form action="#">
<fieldset>
<label for="valueAA">From:</label>
<select name="valueAA" id="valueAA">
<optgroup label="2003">
<option value="01/03">Jan 03</option>
<option value="02/03">Feb 03</option>
<option value="03/03">Mar 03</option>
<option value="03/03">Apr 03</option>
<option value="03/03">May 03</option>
<option value="06/03">Jun 03</option>
<option value="07/03">Jul 03</option>
<option value="08/03" selected="selected">Aug 03</option>
<option value="09/03">Sep 03</option>
<option value="10/03">Oct 03</option>
<option value="11/03">Nov 03</option>
<option value="12/03">Dec 03</option>
</optgroup>
<optgroup label="2004">
<option value="01/04">Jan 04</option>
<option value="02/04">Feb 04</option>
<option value="03/04">Mar 04</option>
<option value="04/04">Apr 04</option>
<option value="04/04">May 04</option>
<option value="06/04">Jun 04</option>
<option value="07/04">Jul 04</option>
<option value="08/04">Aug 04</option>
<option value="09/04">Sep 04</option>
<option value="10/04">Oct 04</option>
<option value="11/04">Nov 04</option>
<option value="12/04">Dec 04</option>
</optgroup>
<optgroup label="2005">
<option value="01/05">Jan 05</option>
<option value="02/05">Feb 05</option>
<option value="03/05">Mar 05</option>
<option value="04/05">Apr 05</option>
<option value="05/05">May 05</option>
<option value="06/05">Jun 05</option>
<option value="07/05">Jul 05</option>
<option value="08/05">Aug 05</option>
<option value="09/05">Sep 05</option>
<option value="10/05">Oct 05</option>
<option value="11/05">Nov 05</option>
<option value="12/05">Dec 05</option>
</optgroup>
<optgroup label="2006">
<option value="01/06">Jan 06</option>
<option value="02/06">Feb 06</option>
<option value="03/06">Mar 06</option>
<option value="04/06">Apr 06</option>
<option value="06/06">May 06</option>
<option value="06/06">Jun 06</option>
<option value="07/06">Jul 06</option>
<option value="08/06">Aug 06</option>
<option value="09/06">Sep 06</option>
<option value="10/06">Oct 06</option>
<option value="11/06">Nov 06</option>
<option value="12/06">Dec 06</option>
</optgroup>
<optgroup label="2007">
<option value="01/07">Jan 07</option>
<option value="02/07">Feb 07</option>
<option value="03/07">Mar 07</option>
<option value="04/07">Apr 07</option>
<option value="07/07">May 07</option>
<option value="07/07">Jun 07</option>
<option value="07/07">Jul 07</option>
<option value="08/07">Aug 07</option>
<option value="09/07">Sep 07</option>
<option value="10/07">Oct 07</option>
<option value="11/07">Nov 07</option>
<option value="12/07">Dec 07</option>
</optgroup>
<optgroup label="2008">
<option value="01/08">Jan 08</option>
<option value="02/08">Feb 08</option>
<option value="03/08">Mar 08</option>
<option value="04/08">Apr 08</option>
<option value="08/08">May 08</option>
<option value="08/08">Jun 08</option>
<option value="08/08">Jul 08</option>
<option value="08/08">Aug 08</option>
<option value="09/08">Sep 08</option>
<option value="10/08">Oct 08</option>
<option value="11/08">Nov 08</option>
<option value="12/08">Dec 08</option>
</optgroup>
</select>
<label for="valueBB">To:</label>
<select name="valueBB" id="valueBB">
<optgroup label="2003">
<option value="01/03">Jan 03</option>
<option value="02/03">Feb 03</option>
<option value="03/03">Mar 03</option>
<option value="03/03">Apr 03</option>
<option value="03/03">May 03</option>
<option value="06/03">Jun 03</option>
<option value="07/03">Jul 03</option>
<option value="08/03">Aug 03</option>
<option value="09/03">Sep 03</option>
<option value="10/03">Oct 03</option>
<option value="11/03">Nov 03</option>
<option value="12/03">Dec 03</option>
</optgroup>
<optgroup label="2004">
<option value="01/04">Jan 04</option>
<option value="02/04">Feb 04</option>
<option value="03/04">Mar 04</option>
<option value="04/04">Apr 04</option>
<option value="04/04">May 04</option>
<option value="06/04">Jun 04</option>
<option value="07/04">Jul 04</option>
<option value="08/04">Aug 04</option>
<option value="09/04">Sep 04</option>
<option value="10/04">Oct 04</option>
<option value="11/04">Nov 04</option>
<option value="12/04">Dec 04</option>
</optgroup>
<optgroup label="2005">
<option value="01/05">Jan 05</option>
<option value="02/05">Feb 05</option>
<option value="03/05">Mar 05</option>
<option value="04/05">Apr 05</option>
<option value="05/05">May 05</option>
<option value="06/05">Jun 05</option>
<option value="07/05">Jul 05</option>
<option value="08/05">Aug 05</option>
<option value="09/05">Sep 05</option>
<option value="10/05">Oct 05</option>
<option value="11/05">Nov 05</option>
<option value="12/05">Dec 05</option>
</optgroup>
<optgroup label="2006">
<option value="01/06">Jan 06</option>
<option value="02/06">Feb 06</option>
<option value="03/06">Mar 06</option>
<option value="04/06">Apr 06</option>
<option value="06/06">May 06</option>
<option value="06/06">Jun 06</option>
<option value="07/06">Jul 06</option>
<option value="08/06">Aug 06</option>
<option value="09/06">Sep 06</option>
<option value="10/06">Oct 06</option>
<option value="11/06">Nov 06</option>
<option value="12/06">Dec 06</option>
</optgroup>
<optgroup label="2007">
<option value="01/07">Jan 07</option>
<option value="02/07">Feb 07</option>
<option value="03/07">Mar 07</option>
<option value="04/07">Apr 07</option>
<option value="07/07">May 07</option>
<option value="07/07">Jun 07</option>
<option value="07/07">Jul 07</option>
<option value="08/07" selected="selected">Aug 07</option>
<option value="09/07">Sep 07</option>
<option value="10/07">Oct 07</option>
<option value="11/07">Nov 07</option>
<option value="12/07">Dec 07</option>
</optgroup>
<optgroup label="2008">
<option value="01/08">Jan 08</option>
<option value="02/08">Feb 08</option>
<option value="03/08">Mar 08</option>
<option value="04/08">Apr 08</option>
<option value="08/08">May 08</option>
<option value="08/08">Jun 08</option>
<option value="08/08">Jul 08</option>
<option value="08/08">Aug 08</option>
<option value="09/08">Sep 08</option>
<option value="10/08">Oct 08</option>
<option value="11/08">Nov 08</option>
<option value="12/08">Dec 08</option>
</optgroup>
</select>
</fieldset>
</form>
</body>
</html>