forked from AudithSoftworks/Uniform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
472 lines (417 loc) · 16.5 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Formwin - form styles for IE8+</title>
<!-- jQuery is needed -->
<script src="demo/js/jquery-1.7.min.js"></script>
<!-- Formwin includes, feel free to combine/compress/minify those -->
<link rel="stylesheet" type="text/css" href="formwin/css/formwin-base.css">
<link rel="stylesheet" type="text/css" href="formwin/css/formwin-sprite.css">
<link rel="stylesheet" type="text/css" href="formwin/css/formwin-theme.css">
<script src="formwin/js/jquery.formwin.js"></script>
<!-- demo page specific includes -->
<link rel="stylesheet" type="text/css" href="demo/css/demo.css">
<!-- Formwin JS part -->
<script>
$(document).ready(function(){
// apply formwin to all form elements (formWinClassSel: 'label')
// applying to only those with class="formwin" would look like this: formWinClassSel: '.formwin' (including the dot)
$.formwin.init({
placeholderColor: '#999',
imagePath: 'formwin/img/'
});
// fix label sizes on all form elements
$.formwin.fixlabels();
});
</script>
</head>
<body>
<h1>Formwin - form styles for IE8+</h1>
Welcome to Formwin! For now this is just a copy of the <a href="demo/index.html">Demo Page</a>.<br>
<div class="info">
The following form elements showcase Formwon form elements ;)<br>
Dashed lines around form elements are intentionally there (set in demo.css) to show you the actual form element boundaries including labels.
</div>
<form action="#">
<!-- textarea -->
textarea without label and and with placeholder-attribute:<br>
<br>
<div class="borderdiv">
<label for="textarea_plain" class="formwintexts">
<textarea cols="40" rows="5" id="textarea_plain" placeholder="placeholder text"></textarea>
</label>
</div>
textarea with label above, some text contained, inline css to set size:<br>
<br>
<div class="borderdiv">
<label for="textarea_above" class="formwintexts above">
<span>Textarea Label (above)</span>
<textarea cols="40" rows="5" id="textarea_above" style="width: 400px; height: 150px;">long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text long textarea text</textarea>
</label>
</div>
textarea with label to the right and in 'positive' state:<br>
<br>
<div class="borderdiv">
<label for="textarea_right" class="formwintexts right positive">
<span>Textarea Label (right)</span>
<textarea cols="40" rows="5" id="textarea_right">textarea text</textarea>
</label>
</div>
textarea with label below and in 'negative' state:<br>
<br>
<div class="borderdiv">
<label for="textarea_below" class="formwintexts below negative">
<span>Textarea Label (below)</span>
<textarea cols="40" rows="5" id="textarea_below">textarea text</textarea>
</label>
</div>
disabled textarea with label to the left:<br>
<br>
<div class="borderdiv">
<label for="textarea_left" class="formwintexts left disabled">
<span>Textarea Label (left)</span>
<textarea cols="40" rows="5" id="textarea_left" disabled="disabled">textarea text</textarea>
</label>
</div>
<!-- input[type=text] -->
input[type=text] without label and and with placeholder-attribute:<br>
<br>
<div class="borderdiv">
<label for="input_plain" class="formwintexts">
<input type="text" id="input_plain" name="input_plain" placeholder="placeholder text" value="">
</label>
</div>
input[type=text] with label above and some text contained:<br>
<br>
<div class="borderdiv">
<label for="input_above" class="formwintexts above">
<span>Input Label (above)</span>
<input type="text" id="input_above" name="input_above" value="input text appears here, yep that's right nowhere else">
</label>
</div>
input[type=text] with label to the right and in 'positive' state:<br>
<br>
<div class="borderdiv">
<label for="input_right" class="formwintexts right positive">
<span>Input Label (right)</span>
<input type="text" id="input_right" name="input_right" value="input text">
</label>
</div>
input[type=text] with label below and in 'negative' state:<br>
<br>
<div class="borderdiv">
<label for="input_below" class="formwintexts below negative">
<span>Input Label (below)</span>
<input type="text" id="input_below" name="input_below" value="input text">
</label>
</div>
disabled input[type=text] with label to the left:<br>
<br>
<div class="borderdiv">
<label for="input_left" class="formwintexts left disabled">
<span>Input Label (left)</span>
<input type="text" id="input_left" name="input_left" value="input text" disabled="disabled">
</label>
</div>
<!-- input[type=password] -->
input[type=password] without label and and with placeholder-attribute:<br>
<br>
<div class="borderdiv">
<label for="inputpass_plain" class="formwintexts">
<input type="password" id="inputpass_plain" name="inputpass_plain" placeholder="placeholder text" value="">
</label>
</div>
disabled input[type=password] with label above and some text contained:<br>
<br>
<div class="borderdiv">
<label for="inputpass_above" class="formwintexts above">
<span>Input Label (above)</span>
<input type="password" id="inputpass_above" name="inputpass_above" value="password text appears here, yep that's right nowhere else">
</label>
</div>
input[type=password] positive with label to the left and some text contained:<br>
<br>
<div class="borderdiv">
<label for="inputpass_right" class="formwintexts positive left">
<span>Password Label (left)</span>
<input type="password" id="inputpass_right" name="inputpass_right" value="rightpassword">
</label>
</div>
input[type=password] negative with label to the left and some text contained:<br>
<br>
<div class="borderdiv">
<label for="inputpass_wrong" class="formwintexts negative left">
<span>Password Label (left)</span>
<input type="password" id="inputpass_wrong" name="inputpass_wrong" value="wrongpassword">
</label>
</div>
<!-- select -->
select without label and nothing selected:<br>
<br>
<div class="borderdiv">
<label for="select_plain">
<div class="selectedvalue"><!-- optionally fill in selected option's text here --></div>
<select id="select_plain" name="select_plain">
<option value="0">1</option>
<option value="1">2</option>
<option value="2">3</option>
</select>
</label>
</div>
select with label above and moar text in options, 2nd option selected:<br>
<br>
<div class="borderdiv">
<label for="select_above" class="above">
<span>Select Label (above)</span>
<div class="selectedvalue"></div>
<select id="select_above" name="select_above">
<option value="1">One One One</option>
<option value="2" selected="selected">Two Two Two</option>
<option value="3">Three Three Three</option>
</select>
</label>
</div>
select with label to the right, pre-filled value ("One"):<br>
<br>
<div class="borderdiv">
<label for="select_right" class="right">
<span>Select Label (right)</span>
<div class="selectedvalue">1</div>
<select id="select_right" name="select_right">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3 with spacer text</option>
</select>
</label>
</div>
select with label below:<br>
<br>
<div class="borderdiv">
<label for="select_below" class="below">
<span>Select Label (below)</span>
<div class="selectedvalue"></div>
<select id="select_below" name="select_below">
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3">Option Three - yeah</option>
</select>
</label>
</div>
disabled select with label to the left:<br>
<br>
<div class="borderdiv"><!-- optionally fill class="disabled" for disabled form elements - speeds up display of disabled state -->
<label for="select_left" class="left">
<span>Select Label (left)</span>
<div class="selectedvalue"></div>
<select id="select_left" name="select_left" disabled="disabled">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three - super</option>
</select>
</label>
</div>
<!-- checkbox -->
checkbox without label:<br>
<br>
<div class="borderdiv">
<label for="check_plain">
<div class="checkedvalue"></div>
<input type="checkbox" id="check_plain" name="check_plain" value="check_plain">
</label>
</div>
checkbox with label above, checked:<br>
<br>
<div class="borderdiv">
<label for="check_above" class="above checked">
<span>Checkbox Label (above, checked)</span>
<div class="checkedvalue"></div>
<input type="checkbox" id="check_above" name="check_above" value="check_above" checked="checked">
</label>
</div>
checkbox with label to the right:<br>
<br>
<div class="borderdiv">
<label for="check_right" class="right">
<span>Checkbox Label (right)</span>
<div class="checkedvalue"></div>
<input type="checkbox" id="check_right" name="check_right" value="check_right">
</label>
</div>
disabled checkbox with label below:<br>
<br>
<div class="borderdiv">
<label for="check_below" class="below">
<span>Checkbox Label (below, disabled)</span>
<div class="checkedvalue"></div>
<input type="checkbox" id="check_below" name="check_below" value="check_below" disabled="disabled">
</label>
</div>
disabled and checked checkbox with label to the left:<br>
<br>
<div class="borderdiv">
<label for="check_left" class="left">
<span>Checkbox Label (left, disabled, checked)</span>
<div class="checkedvalue"></div>
<input type="checkbox" id="check_left" name="check_left" value="check_left" disabled="disabled" checked="checked">
</label>
</div>
<!-- radios -->
radios without labels and nothing selected:<br>
<br>
<div class="borderdiv">
<label for="radio_plain_1">
<div class="radiovalue"></div>
<input type="radio" name="radio_plain" id="radio_plain_1" value="radio_plain_1">
</label>
<label for="radio_plain_2">
<div class="radiovalue"></div>
<input type="radio" name="radio_plain" id="radio_plain_2" value="radio_plain_2">
</label>
<label for="radio_plain_3">
<div class="radiovalue"></div>
<input type="radio" name="radio_plain" id="radio_plain_3" value="radio_plain_3">
</label>
</div>
radios with labels above, 2nd one selected:<br>
<br>
<div class="borderdiv">
<label for="radio_above_1" class="above">
<span>Radio Label (above)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_above" id="radio_above_1" value="radio_above_1">
</label>
<label for="radio_above_2" class="above checked">
<span>Radio Label (above and checked)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_above" id="radio_above_2" value="radio_above_2" checked="checked">
</label>
<label for="radio_above_3" class="above">
<span>Radio Label (above)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_above" id="radio_above_3" value="radio_above_3">
</label>
</div>
radios with labels to the right, line breaks added:<br>
<br>
<div class="borderdiv">
<label for="radio_right_1" class="right">
<span>Radio Label (right)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_right" id="radio_right_1" value="radio_right_1">
</label>
<br>
<label for="radio_right_2" class="right">
<span>Radio Label (right)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_right" id="radio_right_2" value="radio_right_2">
</label>
<br>
<label for="radio_right_3" class="right">
<span>Radio Label (right)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_right" id="radio_right_3" value="radio_right_3">
</label>
</div>
radios with labels below, 2nd one disabled:<br>
<br>
<div class="borderdiv">
<label for="radio_below_1" class="below">
<span>Radio Label (below)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_below" id="radio_below_1" value="radio_below_1">
</label>
<label for="radio_below_2" class="below">
<span>Radio Label (below and disabled)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_below" id="radio_below_2" value="radio_below_2" disabled="disabled">
</label>
<label for="radio_below_3" class="below">
<span>Radio Label (below)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_below" id="radio_below_3" value="radio_below_3">
</label>
</div>
radios with labels to the left, all disabled, 3rd one selected, line breaks added:<br>
<br>
<div class="borderdiv">
<label for="radio_left_1" class="left">
<span>Radio Label (left, disabled)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_left" id="radio_left_1" value="radio_left_1" disabled="disabled">
</label>
<br>
<label for="radio_left_2" class="left">
<span>Radio Label (left, disabled)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_left" id="radio_left_2" value="radio_left_2" disabled="disabled">
</label>
<br>
<label for="radio_left_3" class="left">
<span>Radio Label (left, disabled, checked)</span>
<div class="radiovalue"></div>
<input type="radio" name="radio_left" id="radio_left_3" value="radio_left_3" disabled="disabled" checked="checked">
</label>
</div>
<!-- buttons -->
<div class="borderdiv">
<div class="formwinbutton">
<input type="button" id="button_plain" value="Simple Input Button">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton">
<input type="button" id="button_disabled" value="Disabled Input Button" disabled="disabled">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton positive">
<input type="button" id="button_positive" value="Positive Input Button">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton positive disabled">
<input type="button" id="button_positive_disabled" value="Disabled Positive Input Button" disabled="disabled">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton negative">
<input type="button" id="button_negative" value="Negative Input Button">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton negative">
<input type="button" id="button_negative_disabled" value="Disabled Negative Input Button" disabled="disabled">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton custom1">
<input type="button" id="button_custom" value="Custom Input Button">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton custom1">
<input type="button" id="button_custom_disabled" value="Disabled Custom Input Button" disabled="disabled">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton">
<input type="submit" id="submit_plain" value="Submit Button">
</div>
</div>
<div class="borderdiv">
<div class="formwinbutton">
<input type="submit" id="submit_disabled" value="Disabled Submit Button" disabled="disabled">
</div>
</div>
<div class="borderdiv">
<button id="buttontag0">
Button Tag<br>
tbd
</button>
</div>
</form>
<br>
by Rocco, <a href="http://www.pavingways.com">PavingWays</a>
</body>
</html>