hydroponics 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/hydro +19 -5
- data/hydroponics.gemspec +409 -3
- data/lib/db_remote.rb +23 -0
- data/lib/hydroponics.rb +17 -4
- data/lib/views/index.erb +26 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/jquery-ui-1.8.5.custom.css +572 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/AUTHORS.txt +30 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/GPL-LICENSE.txt +278 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/MIT-LICENSE.txt +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/collapsible.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/custom-icons.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/default.html +85 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/fillspace.html +76 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/hoverintent.html +134 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/index.html +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/mouseover.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/no-auto-height.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/sortable.html +83 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/addClass/default.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/addClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/animate/default.html +61 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/animate/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/categories.html +71 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/combobox.html +163 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/custom-data.html +95 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/default.html +64 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/folding.html +62 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/index.html +27 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/london.xml +114 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/maxheight.html +75 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/multiple-remote.html +76 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/multiple.html +91 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote-jsonp.html +86 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote-with-cache.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/search.php +640 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/xml.html +72 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/checkbox.html +44 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/default.html +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/icons.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/index.html +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/radio.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/splitbutton.html +55 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/toolbar.html +120 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/alt-field.html +36 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/animation.html +58 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/buttonbar.html +35 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/date-formats.html +47 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/default.html +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/dropdown-month-year.html +36 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/event-search.html +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/icon-trigger.html +37 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/images/calendar.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/index.html +31 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/inline.html +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/localization.html +146 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/min-max.html +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/multiple-calendars.html +36 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/other-months.html +37 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/show-week.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/demos.css +334 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/animated.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/default.html +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/index.html +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-confirmation.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-form.html +167 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-message.html +71 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/constrain-movement.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/cursor-style.html +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/default.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/delay-start.html +45 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/events.html +77 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/handle.html +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/index.html +28 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/revert.html +44 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/scroll.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/snap-to.html +68 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/sortable.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/visual-feedback.html +77 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/accepted-elements.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/default.html +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/index.html +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/photo-manager.html +184 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/propagation.html +80 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/revert.html +61 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/shopping-cart.html +101 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/visual-feedback.html +78 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/default.html +109 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/easing.html +107 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/index.html +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/hide/default.html +102 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/hide/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/calendar.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-config-on.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-spindown-open.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/icon-docs-info.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/pbar-ani.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/index.html +314 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/cycler.html +122 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/default.html +153 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/earth.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/flight.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/rocket.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/index.html +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/animated.html +44 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/default.html +35 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/index.html +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/resize.html +40 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/removeClass/default.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/removeClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/animate.html +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/aspect-ratio.html +40 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/constrain-area.html +45 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/default.html +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/delay-start.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/helper.html +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/index.html +28 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/max-min.html +43 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/snap-to-grid.html +40 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/synchronous-resize.html +47 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/textarea.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/visual-feedback.html +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/default.html +48 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/display-grid.html +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/index.html +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/serialize.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/show/default.html +103 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/show/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/colorpicker.html +95 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/default.html +37 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/hotelrooms.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/index.html +29 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/multiple-vertical.html +77 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/range-vertical.html +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/range.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/rangemax.html +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/rangemin.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/side-scroll.html +138 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/slider-vertical.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/steps.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/tabs.html +67 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html +79 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/connect-lists.html +58 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/default.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/delay-start.html +67 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/display-grid.html +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/empty-lists.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/index.html +26 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/items.html +71 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/placeholder.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/portlets.html +96 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/switchClass/default.html +48 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/switchClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content1.html +4 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content2.html +4 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content3-slow.php +7 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content4-broken.php +3 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/bottom.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/collapsible.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/cookie.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/default.html +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/index.html +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/manipulation.html +121 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/mouseover.html +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/sortable.html +65 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/vertical.html +64 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggle/default.html +92 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggle/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggleClass/default.html +46 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggleClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/accordion.html +977 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/addClass.html +109 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/animate.html +78 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/autocomplete.html +710 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/button.html +461 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/datepicker.html +2531 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/dialog.html +1603 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/draggable.html +1536 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/droppable.html +788 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/effect.html +143 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/hide.html +144 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/position.html +226 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/progressbar.html +381 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/removeClass.html +113 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/resizable.html +1160 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/selectable.html +807 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/show.html +144 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/slider.html +821 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/sortable.html +1910 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/switchClass.html +129 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/tabs.html +1513 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/toggle.html +144 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/toggleClass.html +111 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.bgiframe-2.1.1.js +10 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.cookie.js +89 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.metadata.js +122 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/qunit.css +153 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/qunit.js +1261 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/jquery-1.4.2.js +6240 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.accordion.css +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.all.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.autocomplete.css +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.base.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.button.css +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.core.css +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.datepicker.css +68 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.progressbar.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.slider.css +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.tabs.css +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.theme.css +252 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery-ui-1.8.5.custom.css +572 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.accordion.css +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.all.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.autocomplete.css +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.base.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.button.css +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.core.css +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.datepicker.css +68 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.dialog.css +21 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.progressbar.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.resizable.css +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.selectable.css +10 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.slider.css +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.tabs.css +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.theme.css +254 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery-ui-i18n.js +1199 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery-ui-1.8.5.custom.js +11358 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.blind.js +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.bounce.js +78 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.clip.js +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.core.js +714 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.drop.js +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.explode.js +79 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.fade.js +32 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.fold.js +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.highlight.js +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.pulsate.js +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.scale.js +178 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.shake.js +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.slide.js +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.transfer.js +45 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.accordion.js +598 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.autocomplete.js +555 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.button.js +372 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.core.js +307 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.datepicker.js +1732 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.dialog.js +837 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.draggable.js +797 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.droppable.js +285 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.mouse.js +151 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.position.js +251 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.progressbar.js +94 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.resizable.js +812 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.selectable.js +266 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.slider.js +680 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.sortable.js +1071 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.tabs.js +758 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.widget.js +249 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.blind.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.bounce.min.js +15 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.clip.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.core.min.js +30 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.drop.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.explode.min.js +15 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.fade.min.js +13 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.fold.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.highlight.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.pulsate.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.scale.min.js +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.shake.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.slide.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.transfer.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.accordion.min.js +30 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +31 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.button.min.js +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.core.min.js +17 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.datepicker.min.js +80 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.dialog.min.js +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.draggable.min.js +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.droppable.min.js +26 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.mouse.min.js +17 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.position.min.js +16 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.progressbar.min.js +16 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.resizable.min.js +47 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.selectable.min.js +22 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.slider.min.js +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.sortable.min.js +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.tabs.min.js +35 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.widget.min.js +15 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/version.txt +1 -0
- data/static/jquery-ui-1.8.5.custom/index.html +395 -0
- data/static/jquery-ui-1.8.5.custom/js/jquery-1.4.2.min.js +154 -0
- data/static/jquery-ui-1.8.5.custom/js/jquery-ui-1.8.5.custom.min.js +778 -0
- metadata +421 -4
@@ -0,0 +1,680 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Slider 1.8.5
|
3
|
+
*
|
4
|
+
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
5
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6
|
+
* http://jquery.org/license
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI/Slider
|
9
|
+
*
|
10
|
+
* Depends:
|
11
|
+
* jquery.ui.core.js
|
12
|
+
* jquery.ui.mouse.js
|
13
|
+
* jquery.ui.widget.js
|
14
|
+
*/
|
15
|
+
(function( $, undefined ) {
|
16
|
+
|
17
|
+
// number of pages in a slider
|
18
|
+
// (how many times can you page up/down to go through the whole range)
|
19
|
+
var numPages = 5;
|
20
|
+
|
21
|
+
$.widget( "ui.slider", $.ui.mouse, {
|
22
|
+
|
23
|
+
widgetEventPrefix: "slide",
|
24
|
+
|
25
|
+
options: {
|
26
|
+
animate: false,
|
27
|
+
distance: 0,
|
28
|
+
max: 100,
|
29
|
+
min: 0,
|
30
|
+
orientation: "horizontal",
|
31
|
+
range: false,
|
32
|
+
step: 1,
|
33
|
+
value: 0,
|
34
|
+
values: null
|
35
|
+
},
|
36
|
+
|
37
|
+
_create: function() {
|
38
|
+
var self = this,
|
39
|
+
o = this.options;
|
40
|
+
|
41
|
+
this._keySliding = false;
|
42
|
+
this._mouseSliding = false;
|
43
|
+
this._animateOff = true;
|
44
|
+
this._handleIndex = null;
|
45
|
+
this._detectOrientation();
|
46
|
+
this._mouseInit();
|
47
|
+
|
48
|
+
this.element
|
49
|
+
.addClass( "ui-slider" +
|
50
|
+
" ui-slider-" + this.orientation +
|
51
|
+
" ui-widget" +
|
52
|
+
" ui-widget-content" +
|
53
|
+
" ui-corner-all" );
|
54
|
+
|
55
|
+
if ( o.disabled ) {
|
56
|
+
this.element.addClass( "ui-slider-disabled ui-disabled" );
|
57
|
+
}
|
58
|
+
|
59
|
+
this.range = $([]);
|
60
|
+
|
61
|
+
if ( o.range ) {
|
62
|
+
if ( o.range === true ) {
|
63
|
+
this.range = $( "<div></div>" );
|
64
|
+
if ( !o.values ) {
|
65
|
+
o.values = [ this._valueMin(), this._valueMin() ];
|
66
|
+
}
|
67
|
+
if ( o.values.length && o.values.length !== 2 ) {
|
68
|
+
o.values = [ o.values[0], o.values[0] ];
|
69
|
+
}
|
70
|
+
} else {
|
71
|
+
this.range = $( "<div></div>" );
|
72
|
+
}
|
73
|
+
|
74
|
+
this.range
|
75
|
+
.appendTo( this.element )
|
76
|
+
.addClass( "ui-slider-range" );
|
77
|
+
|
78
|
+
if ( o.range === "min" || o.range === "max" ) {
|
79
|
+
this.range.addClass( "ui-slider-range-" + o.range );
|
80
|
+
}
|
81
|
+
|
82
|
+
// note: this isn't the most fittingly semantic framework class for this element,
|
83
|
+
// but worked best visually with a variety of themes
|
84
|
+
this.range.addClass( "ui-widget-header" );
|
85
|
+
}
|
86
|
+
|
87
|
+
if ( $( ".ui-slider-handle", this.element ).length === 0 ) {
|
88
|
+
$( "<a href='#'></a>" )
|
89
|
+
.appendTo( this.element )
|
90
|
+
.addClass( "ui-slider-handle" );
|
91
|
+
}
|
92
|
+
|
93
|
+
if ( o.values && o.values.length ) {
|
94
|
+
while ( $(".ui-slider-handle", this.element).length < o.values.length ) {
|
95
|
+
$( "<a href='#'></a>" )
|
96
|
+
.appendTo( this.element )
|
97
|
+
.addClass( "ui-slider-handle" );
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
this.handles = $( ".ui-slider-handle", this.element )
|
102
|
+
.addClass( "ui-state-default" +
|
103
|
+
" ui-corner-all" );
|
104
|
+
|
105
|
+
this.handle = this.handles.eq( 0 );
|
106
|
+
|
107
|
+
this.handles.add( this.range ).filter( "a" )
|
108
|
+
.click(function( event ) {
|
109
|
+
event.preventDefault();
|
110
|
+
})
|
111
|
+
.hover(function() {
|
112
|
+
if ( !o.disabled ) {
|
113
|
+
$( this ).addClass( "ui-state-hover" );
|
114
|
+
}
|
115
|
+
}, function() {
|
116
|
+
$( this ).removeClass( "ui-state-hover" );
|
117
|
+
})
|
118
|
+
.focus(function() {
|
119
|
+
if ( !o.disabled ) {
|
120
|
+
$( ".ui-slider .ui-state-focus" ).removeClass( "ui-state-focus" );
|
121
|
+
$( this ).addClass( "ui-state-focus" );
|
122
|
+
} else {
|
123
|
+
$( this ).blur();
|
124
|
+
}
|
125
|
+
})
|
126
|
+
.blur(function() {
|
127
|
+
$( this ).removeClass( "ui-state-focus" );
|
128
|
+
});
|
129
|
+
|
130
|
+
this.handles.each(function( i ) {
|
131
|
+
$( this ).data( "index.ui-slider-handle", i );
|
132
|
+
});
|
133
|
+
|
134
|
+
this.handles
|
135
|
+
.keydown(function( event ) {
|
136
|
+
var ret = true,
|
137
|
+
index = $( this ).data( "index.ui-slider-handle" ),
|
138
|
+
allowed,
|
139
|
+
curVal,
|
140
|
+
newVal,
|
141
|
+
step;
|
142
|
+
|
143
|
+
if ( self.options.disabled ) {
|
144
|
+
return;
|
145
|
+
}
|
146
|
+
|
147
|
+
switch ( event.keyCode ) {
|
148
|
+
case $.ui.keyCode.HOME:
|
149
|
+
case $.ui.keyCode.END:
|
150
|
+
case $.ui.keyCode.PAGE_UP:
|
151
|
+
case $.ui.keyCode.PAGE_DOWN:
|
152
|
+
case $.ui.keyCode.UP:
|
153
|
+
case $.ui.keyCode.RIGHT:
|
154
|
+
case $.ui.keyCode.DOWN:
|
155
|
+
case $.ui.keyCode.LEFT:
|
156
|
+
ret = false;
|
157
|
+
if ( !self._keySliding ) {
|
158
|
+
self._keySliding = true;
|
159
|
+
$( this ).addClass( "ui-state-active" );
|
160
|
+
allowed = self._start( event, index );
|
161
|
+
if ( allowed === false ) {
|
162
|
+
return;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
break;
|
166
|
+
}
|
167
|
+
|
168
|
+
step = self.options.step;
|
169
|
+
if ( self.options.values && self.options.values.length ) {
|
170
|
+
curVal = newVal = self.values( index );
|
171
|
+
} else {
|
172
|
+
curVal = newVal = self.value();
|
173
|
+
}
|
174
|
+
|
175
|
+
switch ( event.keyCode ) {
|
176
|
+
case $.ui.keyCode.HOME:
|
177
|
+
newVal = self._valueMin();
|
178
|
+
break;
|
179
|
+
case $.ui.keyCode.END:
|
180
|
+
newVal = self._valueMax();
|
181
|
+
break;
|
182
|
+
case $.ui.keyCode.PAGE_UP:
|
183
|
+
newVal = self._trimAlignValue( curVal + ( (self._valueMax() - self._valueMin()) / numPages ) );
|
184
|
+
break;
|
185
|
+
case $.ui.keyCode.PAGE_DOWN:
|
186
|
+
newVal = self._trimAlignValue( curVal - ( (self._valueMax() - self._valueMin()) / numPages ) );
|
187
|
+
break;
|
188
|
+
case $.ui.keyCode.UP:
|
189
|
+
case $.ui.keyCode.RIGHT:
|
190
|
+
if ( curVal === self._valueMax() ) {
|
191
|
+
return;
|
192
|
+
}
|
193
|
+
newVal = self._trimAlignValue( curVal + step );
|
194
|
+
break;
|
195
|
+
case $.ui.keyCode.DOWN:
|
196
|
+
case $.ui.keyCode.LEFT:
|
197
|
+
if ( curVal === self._valueMin() ) {
|
198
|
+
return;
|
199
|
+
}
|
200
|
+
newVal = self._trimAlignValue( curVal - step );
|
201
|
+
break;
|
202
|
+
}
|
203
|
+
|
204
|
+
self._slide( event, index, newVal );
|
205
|
+
|
206
|
+
return ret;
|
207
|
+
|
208
|
+
})
|
209
|
+
.keyup(function( event ) {
|
210
|
+
var index = $( this ).data( "index.ui-slider-handle" );
|
211
|
+
|
212
|
+
if ( self._keySliding ) {
|
213
|
+
self._keySliding = false;
|
214
|
+
self._stop( event, index );
|
215
|
+
self._change( event, index );
|
216
|
+
$( this ).removeClass( "ui-state-active" );
|
217
|
+
}
|
218
|
+
|
219
|
+
});
|
220
|
+
|
221
|
+
this._refreshValue();
|
222
|
+
|
223
|
+
this._animateOff = false;
|
224
|
+
},
|
225
|
+
|
226
|
+
destroy: function() {
|
227
|
+
this.handles.remove();
|
228
|
+
this.range.remove();
|
229
|
+
|
230
|
+
this.element
|
231
|
+
.removeClass( "ui-slider" +
|
232
|
+
" ui-slider-horizontal" +
|
233
|
+
" ui-slider-vertical" +
|
234
|
+
" ui-slider-disabled" +
|
235
|
+
" ui-widget" +
|
236
|
+
" ui-widget-content" +
|
237
|
+
" ui-corner-all" )
|
238
|
+
.removeData( "slider" )
|
239
|
+
.unbind( ".slider" );
|
240
|
+
|
241
|
+
this._mouseDestroy();
|
242
|
+
|
243
|
+
return this;
|
244
|
+
},
|
245
|
+
|
246
|
+
_mouseCapture: function( event ) {
|
247
|
+
var o = this.options,
|
248
|
+
position,
|
249
|
+
normValue,
|
250
|
+
distance,
|
251
|
+
closestHandle,
|
252
|
+
self,
|
253
|
+
index,
|
254
|
+
allowed,
|
255
|
+
offset,
|
256
|
+
mouseOverHandle;
|
257
|
+
|
258
|
+
if ( o.disabled ) {
|
259
|
+
return false;
|
260
|
+
}
|
261
|
+
|
262
|
+
this.elementSize = {
|
263
|
+
width: this.element.outerWidth(),
|
264
|
+
height: this.element.outerHeight()
|
265
|
+
};
|
266
|
+
this.elementOffset = this.element.offset();
|
267
|
+
|
268
|
+
position = { x: event.pageX, y: event.pageY };
|
269
|
+
normValue = this._normValueFromMouse( position );
|
270
|
+
distance = this._valueMax() - this._valueMin() + 1;
|
271
|
+
self = this;
|
272
|
+
this.handles.each(function( i ) {
|
273
|
+
var thisDistance = Math.abs( normValue - self.values(i) );
|
274
|
+
if ( distance > thisDistance ) {
|
275
|
+
distance = thisDistance;
|
276
|
+
closestHandle = $( this );
|
277
|
+
index = i;
|
278
|
+
}
|
279
|
+
});
|
280
|
+
|
281
|
+
// workaround for bug #3736 (if both handles of a range are at 0,
|
282
|
+
// the first is always used as the one with least distance,
|
283
|
+
// and moving it is obviously prevented by preventing negative ranges)
|
284
|
+
if( o.range === true && this.values(1) === o.min ) {
|
285
|
+
index += 1;
|
286
|
+
closestHandle = $( this.handles[index] );
|
287
|
+
}
|
288
|
+
|
289
|
+
allowed = this._start( event, index );
|
290
|
+
if ( allowed === false ) {
|
291
|
+
return false;
|
292
|
+
}
|
293
|
+
this._mouseSliding = true;
|
294
|
+
|
295
|
+
self._handleIndex = index;
|
296
|
+
|
297
|
+
closestHandle
|
298
|
+
.addClass( "ui-state-active" )
|
299
|
+
.focus();
|
300
|
+
|
301
|
+
offset = closestHandle.offset();
|
302
|
+
mouseOverHandle = !$( event.target ).parents().andSelf().is( ".ui-slider-handle" );
|
303
|
+
this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
|
304
|
+
left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
|
305
|
+
top: event.pageY - offset.top -
|
306
|
+
( closestHandle.height() / 2 ) -
|
307
|
+
( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
|
308
|
+
( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
|
309
|
+
( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
|
310
|
+
};
|
311
|
+
|
312
|
+
this._slide( event, index, normValue );
|
313
|
+
this._animateOff = true;
|
314
|
+
return true;
|
315
|
+
},
|
316
|
+
|
317
|
+
_mouseStart: function( event ) {
|
318
|
+
return true;
|
319
|
+
},
|
320
|
+
|
321
|
+
_mouseDrag: function( event ) {
|
322
|
+
var position = { x: event.pageX, y: event.pageY },
|
323
|
+
normValue = this._normValueFromMouse( position );
|
324
|
+
|
325
|
+
this._slide( event, this._handleIndex, normValue );
|
326
|
+
|
327
|
+
return false;
|
328
|
+
},
|
329
|
+
|
330
|
+
_mouseStop: function( event ) {
|
331
|
+
this.handles.removeClass( "ui-state-active" );
|
332
|
+
this._mouseSliding = false;
|
333
|
+
|
334
|
+
this._stop( event, this._handleIndex );
|
335
|
+
this._change( event, this._handleIndex );
|
336
|
+
|
337
|
+
this._handleIndex = null;
|
338
|
+
this._clickOffset = null;
|
339
|
+
this._animateOff = false;
|
340
|
+
|
341
|
+
return false;
|
342
|
+
},
|
343
|
+
|
344
|
+
_detectOrientation: function() {
|
345
|
+
this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
|
346
|
+
},
|
347
|
+
|
348
|
+
_normValueFromMouse: function( position ) {
|
349
|
+
var pixelTotal,
|
350
|
+
pixelMouse,
|
351
|
+
percentMouse,
|
352
|
+
valueTotal,
|
353
|
+
valueMouse;
|
354
|
+
|
355
|
+
if ( this.orientation === "horizontal" ) {
|
356
|
+
pixelTotal = this.elementSize.width;
|
357
|
+
pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
|
358
|
+
} else {
|
359
|
+
pixelTotal = this.elementSize.height;
|
360
|
+
pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
|
361
|
+
}
|
362
|
+
|
363
|
+
percentMouse = ( pixelMouse / pixelTotal );
|
364
|
+
if ( percentMouse > 1 ) {
|
365
|
+
percentMouse = 1;
|
366
|
+
}
|
367
|
+
if ( percentMouse < 0 ) {
|
368
|
+
percentMouse = 0;
|
369
|
+
}
|
370
|
+
if ( this.orientation === "vertical" ) {
|
371
|
+
percentMouse = 1 - percentMouse;
|
372
|
+
}
|
373
|
+
|
374
|
+
valueTotal = this._valueMax() - this._valueMin();
|
375
|
+
valueMouse = this._valueMin() + percentMouse * valueTotal;
|
376
|
+
|
377
|
+
return this._trimAlignValue( valueMouse );
|
378
|
+
},
|
379
|
+
|
380
|
+
_start: function( event, index ) {
|
381
|
+
var uiHash = {
|
382
|
+
handle: this.handles[ index ],
|
383
|
+
value: this.value()
|
384
|
+
};
|
385
|
+
if ( this.options.values && this.options.values.length ) {
|
386
|
+
uiHash.value = this.values( index );
|
387
|
+
uiHash.values = this.values();
|
388
|
+
}
|
389
|
+
return this._trigger( "start", event, uiHash );
|
390
|
+
},
|
391
|
+
|
392
|
+
_slide: function( event, index, newVal ) {
|
393
|
+
var otherVal,
|
394
|
+
newValues,
|
395
|
+
allowed;
|
396
|
+
|
397
|
+
if ( this.options.values && this.options.values.length ) {
|
398
|
+
otherVal = this.values( index ? 0 : 1 );
|
399
|
+
|
400
|
+
if ( ( this.options.values.length === 2 && this.options.range === true ) &&
|
401
|
+
( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
|
402
|
+
) {
|
403
|
+
newVal = otherVal;
|
404
|
+
}
|
405
|
+
|
406
|
+
if ( newVal !== this.values( index ) ) {
|
407
|
+
newValues = this.values();
|
408
|
+
newValues[ index ] = newVal;
|
409
|
+
// A slide can be canceled by returning false from the slide callback
|
410
|
+
allowed = this._trigger( "slide", event, {
|
411
|
+
handle: this.handles[ index ],
|
412
|
+
value: newVal,
|
413
|
+
values: newValues
|
414
|
+
} );
|
415
|
+
otherVal = this.values( index ? 0 : 1 );
|
416
|
+
if ( allowed !== false ) {
|
417
|
+
this.values( index, newVal, true );
|
418
|
+
}
|
419
|
+
}
|
420
|
+
} else {
|
421
|
+
if ( newVal !== this.value() ) {
|
422
|
+
// A slide can be canceled by returning false from the slide callback
|
423
|
+
allowed = this._trigger( "slide", event, {
|
424
|
+
handle: this.handles[ index ],
|
425
|
+
value: newVal
|
426
|
+
} );
|
427
|
+
if ( allowed !== false ) {
|
428
|
+
this.value( newVal );
|
429
|
+
}
|
430
|
+
}
|
431
|
+
}
|
432
|
+
},
|
433
|
+
|
434
|
+
_stop: function( event, index ) {
|
435
|
+
var uiHash = {
|
436
|
+
handle: this.handles[ index ],
|
437
|
+
value: this.value()
|
438
|
+
};
|
439
|
+
if ( this.options.values && this.options.values.length ) {
|
440
|
+
uiHash.value = this.values( index );
|
441
|
+
uiHash.values = this.values();
|
442
|
+
}
|
443
|
+
|
444
|
+
this._trigger( "stop", event, uiHash );
|
445
|
+
},
|
446
|
+
|
447
|
+
_change: function( event, index ) {
|
448
|
+
if ( !this._keySliding && !this._mouseSliding ) {
|
449
|
+
var uiHash = {
|
450
|
+
handle: this.handles[ index ],
|
451
|
+
value: this.value()
|
452
|
+
};
|
453
|
+
if ( this.options.values && this.options.values.length ) {
|
454
|
+
uiHash.value = this.values( index );
|
455
|
+
uiHash.values = this.values();
|
456
|
+
}
|
457
|
+
|
458
|
+
this._trigger( "change", event, uiHash );
|
459
|
+
}
|
460
|
+
},
|
461
|
+
|
462
|
+
value: function( newValue ) {
|
463
|
+
if ( arguments.length ) {
|
464
|
+
this.options.value = this._trimAlignValue( newValue );
|
465
|
+
this._refreshValue();
|
466
|
+
this._change( null, 0 );
|
467
|
+
}
|
468
|
+
|
469
|
+
return this._value();
|
470
|
+
},
|
471
|
+
|
472
|
+
values: function( index, newValue ) {
|
473
|
+
var vals,
|
474
|
+
newValues,
|
475
|
+
i;
|
476
|
+
|
477
|
+
if ( arguments.length > 1 ) {
|
478
|
+
this.options.values[ index ] = this._trimAlignValue( newValue );
|
479
|
+
this._refreshValue();
|
480
|
+
this._change( null, index );
|
481
|
+
}
|
482
|
+
|
483
|
+
if ( arguments.length ) {
|
484
|
+
if ( $.isArray( arguments[ 0 ] ) ) {
|
485
|
+
vals = this.options.values;
|
486
|
+
newValues = arguments[ 0 ];
|
487
|
+
for ( i = 0; i < vals.length; i += 1 ) {
|
488
|
+
vals[ i ] = this._trimAlignValue( newValues[ i ] );
|
489
|
+
this._change( null, i );
|
490
|
+
}
|
491
|
+
this._refreshValue();
|
492
|
+
} else {
|
493
|
+
if ( this.options.values && this.options.values.length ) {
|
494
|
+
return this._values( index );
|
495
|
+
} else {
|
496
|
+
return this.value();
|
497
|
+
}
|
498
|
+
}
|
499
|
+
} else {
|
500
|
+
return this._values();
|
501
|
+
}
|
502
|
+
},
|
503
|
+
|
504
|
+
_setOption: function( key, value ) {
|
505
|
+
var i,
|
506
|
+
valsLength = 0;
|
507
|
+
|
508
|
+
if ( $.isArray( this.options.values ) ) {
|
509
|
+
valsLength = this.options.values.length;
|
510
|
+
}
|
511
|
+
|
512
|
+
$.Widget.prototype._setOption.apply( this, arguments );
|
513
|
+
|
514
|
+
switch ( key ) {
|
515
|
+
case "disabled":
|
516
|
+
if ( value ) {
|
517
|
+
this.handles.filter( ".ui-state-focus" ).blur();
|
518
|
+
this.handles.removeClass( "ui-state-hover" );
|
519
|
+
this.handles.attr( "disabled", "disabled" );
|
520
|
+
this.element.addClass( "ui-disabled" );
|
521
|
+
} else {
|
522
|
+
this.handles.removeAttr( "disabled" );
|
523
|
+
this.element.removeClass( "ui-disabled" );
|
524
|
+
}
|
525
|
+
break;
|
526
|
+
case "orientation":
|
527
|
+
this._detectOrientation();
|
528
|
+
this.element
|
529
|
+
.removeClass( "ui-slider-horizontal ui-slider-vertical" )
|
530
|
+
.addClass( "ui-slider-" + this.orientation );
|
531
|
+
this._refreshValue();
|
532
|
+
break;
|
533
|
+
case "value":
|
534
|
+
this._animateOff = true;
|
535
|
+
this._refreshValue();
|
536
|
+
this._change( null, 0 );
|
537
|
+
this._animateOff = false;
|
538
|
+
break;
|
539
|
+
case "values":
|
540
|
+
this._animateOff = true;
|
541
|
+
this._refreshValue();
|
542
|
+
for ( i = 0; i < valsLength; i += 1 ) {
|
543
|
+
this._change( null, i );
|
544
|
+
}
|
545
|
+
this._animateOff = false;
|
546
|
+
break;
|
547
|
+
}
|
548
|
+
},
|
549
|
+
|
550
|
+
//internal value getter
|
551
|
+
// _value() returns value trimmed by min and max, aligned by step
|
552
|
+
_value: function() {
|
553
|
+
var val = this.options.value;
|
554
|
+
val = this._trimAlignValue( val );
|
555
|
+
|
556
|
+
return val;
|
557
|
+
},
|
558
|
+
|
559
|
+
//internal values getter
|
560
|
+
// _values() returns array of values trimmed by min and max, aligned by step
|
561
|
+
// _values( index ) returns single value trimmed by min and max, aligned by step
|
562
|
+
_values: function( index ) {
|
563
|
+
var val,
|
564
|
+
vals,
|
565
|
+
i;
|
566
|
+
|
567
|
+
if ( arguments.length ) {
|
568
|
+
val = this.options.values[ index ];
|
569
|
+
val = this._trimAlignValue( val );
|
570
|
+
|
571
|
+
return val;
|
572
|
+
} else {
|
573
|
+
// .slice() creates a copy of the array
|
574
|
+
// this copy gets trimmed by min and max and then returned
|
575
|
+
vals = this.options.values.slice();
|
576
|
+
for ( i = 0; i < vals.length; i+= 1) {
|
577
|
+
vals[ i ] = this._trimAlignValue( vals[ i ] );
|
578
|
+
}
|
579
|
+
|
580
|
+
return vals;
|
581
|
+
}
|
582
|
+
},
|
583
|
+
|
584
|
+
// returns the step-aligned value that val is closest to, between (inclusive) min and max
|
585
|
+
_trimAlignValue: function( val ) {
|
586
|
+
if ( val < this._valueMin() ) {
|
587
|
+
return this._valueMin();
|
588
|
+
}
|
589
|
+
if ( val > this._valueMax() ) {
|
590
|
+
return this._valueMax();
|
591
|
+
}
|
592
|
+
var step = ( this.options.step > 0 ) ? this.options.step : 1,
|
593
|
+
valModStep = val % step,
|
594
|
+
alignValue = val - valModStep;
|
595
|
+
|
596
|
+
if ( Math.abs(valModStep) * 2 >= step ) {
|
597
|
+
alignValue += ( valModStep > 0 ) ? step : ( -step );
|
598
|
+
}
|
599
|
+
|
600
|
+
// Since JavaScript has problems with large floats, round
|
601
|
+
// the final value to 5 digits after the decimal point (see #4124)
|
602
|
+
return parseFloat( alignValue.toFixed(5) );
|
603
|
+
},
|
604
|
+
|
605
|
+
_valueMin: function() {
|
606
|
+
return this.options.min;
|
607
|
+
},
|
608
|
+
|
609
|
+
_valueMax: function() {
|
610
|
+
return this.options.max;
|
611
|
+
},
|
612
|
+
|
613
|
+
_refreshValue: function() {
|
614
|
+
var oRange = this.options.range,
|
615
|
+
o = this.options,
|
616
|
+
self = this,
|
617
|
+
animate = ( !this._animateOff ) ? o.animate : false,
|
618
|
+
valPercent,
|
619
|
+
_set = {},
|
620
|
+
lastValPercent,
|
621
|
+
value,
|
622
|
+
valueMin,
|
623
|
+
valueMax;
|
624
|
+
|
625
|
+
if ( this.options.values && this.options.values.length ) {
|
626
|
+
this.handles.each(function( i, j ) {
|
627
|
+
valPercent = ( self.values(i) - self._valueMin() ) / ( self._valueMax() - self._valueMin() ) * 100;
|
628
|
+
_set[ self.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
|
629
|
+
$( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
|
630
|
+
if ( self.options.range === true ) {
|
631
|
+
if ( self.orientation === "horizontal" ) {
|
632
|
+
if ( i === 0 ) {
|
633
|
+
self.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );
|
634
|
+
}
|
635
|
+
if ( i === 1 ) {
|
636
|
+
self.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
|
637
|
+
}
|
638
|
+
} else {
|
639
|
+
if ( i === 0 ) {
|
640
|
+
self.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );
|
641
|
+
}
|
642
|
+
if ( i === 1 ) {
|
643
|
+
self.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
|
644
|
+
}
|
645
|
+
}
|
646
|
+
}
|
647
|
+
lastValPercent = valPercent;
|
648
|
+
});
|
649
|
+
} else {
|
650
|
+
value = this.value();
|
651
|
+
valueMin = this._valueMin();
|
652
|
+
valueMax = this._valueMax();
|
653
|
+
valPercent = ( valueMax !== valueMin ) ?
|
654
|
+
( value - valueMin ) / ( valueMax - valueMin ) * 100 :
|
655
|
+
0;
|
656
|
+
_set[ self.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
|
657
|
+
this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
|
658
|
+
|
659
|
+
if ( oRange === "min" && this.orientation === "horizontal" ) {
|
660
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
|
661
|
+
}
|
662
|
+
if ( oRange === "max" && this.orientation === "horizontal" ) {
|
663
|
+
this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
|
664
|
+
}
|
665
|
+
if ( oRange === "min" && this.orientation === "vertical" ) {
|
666
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
|
667
|
+
}
|
668
|
+
if ( oRange === "max" && this.orientation === "vertical" ) {
|
669
|
+
this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
|
670
|
+
}
|
671
|
+
}
|
672
|
+
}
|
673
|
+
|
674
|
+
});
|
675
|
+
|
676
|
+
$.extend( $.ui.slider, {
|
677
|
+
version: "1.8.5"
|
678
|
+
});
|
679
|
+
|
680
|
+
}(jQuery));
|