scottjehl
9a9d47e550
removed an unnecessary wrapper
2010-10-05 23:00:33 -04:00
scottjehl
71763d3dfa
pretty rough, but here's a functional attempt at rounded-corner switches
2010-10-05 22:57:13 -04:00
scottjehl
69f446d945
preliminary support for tap switching
2010-10-05 21:24:59 -04:00
scottjehl
50f9c363e7
brought the corners back on regular sliders
2010-10-05 19:23:58 -04:00
scottjehl
6a885f88d4
refactored switch sliders to be more iPhone like.
2010-10-05 19:18:39 -04:00
scottjehl
e5207475a9
renamed the classes to "switch". For sliders built from selects with more than 2 options, we can use the name "select". currently, only 2 options are supported for select sliders
2010-10-05 18:28:03 -04:00
scottjehl
92c49bf97e
extended slider to support simple toggle switches based on select menus.
...
The logic will actually support multi-option selects as well, but the labels are flipped in order for switch-style controls, so if we want to support regular sliders from selects, the labels will have to be in forward order and beneath the slider bar.
2010-09-23 12:51:23 -04:00
jzaefferer
037729415c
Refactored slider code a bit, just a first pass.
2010-09-21 23:31:25 +02:00
scottjehl
8b5a1b0a1f
moved the percent fixer logic out of the if/else
2010-09-21 16:45:45 -04:00
scottjehl
e6707af667
added aria support
2010-09-21 16:43:07 -04:00
scottjehl
3b7a717e92
more updates to slider css and js. Should have itemized commits, but this thing's still in first-pass status.
2010-09-21 16:07:23 -04:00
scottjehl
9ec0823443
needed to pass the event arg
2010-09-21 15:33:51 -04:00
scottjehl
8e3aa35931
return clicks false on handle
2010-09-21 15:32:35 -04:00
scottjehl
4992d7b168
First pass at a simple slider plugin. Can be called on an input element with data-role="slider". Controls communicate both ways during use.
2010-09-21 15:25:23 -04:00