From 75ad7e4bd7d69243e7e5281c2642f00478fb072d Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 19 Feb 2014 18:02:09 +0200 Subject: Added tags, jquery UI --- apps/it/forms.py | 50 + .../migrations/0011_auto__add_field_issue_title.py | 124 + .../0012_auto__add_field_issue_assigned_to.py | 125 + apps/it/models.py | 13 +- apps/it/static/images/bubble-128.png | Bin 0 -> 16272 bytes apps/it/static/images/user-128.png | Bin 0 -> 10101 bytes apps/it/static/js/ui/AUTHORS.txt | 260 + apps/it/static/js/ui/Gruntfile.js | 357 + apps/it/static/js/ui/MANIFEST | 739 + apps/it/static/js/ui/MIT-LICENSE.txt | 26 + apps/it/static/js/ui/README.md | 96 + .../static/js/ui/demos/accordion/collapsible.html | 50 + .../static/js/ui/demos/accordion/custom-icons.html | 64 + apps/it/static/js/ui/demos/accordion/default.html | 80 + .../it/static/js/ui/demos/accordion/fillspace.html | 72 + .../static/js/ui/demos/accordion/hoverintent.html | 148 + apps/it/static/js/ui/demos/accordion/index.html | 20 + .../js/ui/demos/accordion/no-auto-height.html | 50 + apps/it/static/js/ui/demos/accordion/sortable.html | 74 + apps/it/static/js/ui/demos/addClass/default.html | 45 + apps/it/static/js/ui/demos/addClass/index.html | 14 + apps/it/static/js/ui/demos/animate/default.html | 55 + apps/it/static/js/ui/demos/animate/index.html | 14 + .../js/ui/demos/autocomplete/categories.html | 67 + .../static/js/ui/demos/autocomplete/combobox.html | 213 + .../js/ui/demos/autocomplete/custom-data.html | 90 + .../static/js/ui/demos/autocomplete/default.html | 58 + .../static/js/ui/demos/autocomplete/folding.html | 56 + .../ui/demos/autocomplete/images/jquery_32x32.png | Bin 0 -> 1417 bytes .../demos/autocomplete/images/jqueryui_32x32.png | Bin 0 -> 1193 bytes .../demos/autocomplete/images/sizzlejs_32x32.png | Bin 0 -> 999 bytes .../demos/autocomplete/images/transparent_1x1.png | Bin 0 -> 95 bytes .../autocomplete/images/ui-anim_basic_16x16.gif | Bin 0 -> 1459 bytes apps/it/static/js/ui/demos/autocomplete/index.html | 25 + apps/it/static/js/ui/demos/autocomplete/london.xml | 114 + .../static/js/ui/demos/autocomplete/maxheight.html | 71 + .../js/ui/demos/autocomplete/multiple-remote.html | 80 + .../static/js/ui/demos/autocomplete/multiple.html | 93 + .../js/ui/demos/autocomplete/remote-jsonp.html | 82 + .../ui/demos/autocomplete/remote-with-cache.html | 52 + .../it/static/js/ui/demos/autocomplete/remote.html | 55 + apps/it/static/js/ui/demos/autocomplete/search.php | 590 + apps/it/static/js/ui/demos/autocomplete/xml.html | 66 + apps/it/static/js/ui/demos/button/checkbox.html | 37 + apps/it/static/js/ui/demos/button/default.html | 34 + apps/it/static/js/ui/demos/button/icons.html | 49 + apps/it/static/js/ui/demos/button/index.html | 19 + apps/it/static/js/ui/demos/button/radio.html | 32 + apps/it/static/js/ui/demos/button/splitbutton.html | 69 + apps/it/static/js/ui/demos/button/toolbar.html | 118 + .../static/js/ui/demos/datepicker/alt-field.html | 29 + .../static/js/ui/demos/datepicker/animation.html | 51 + .../static/js/ui/demos/datepicker/buttonbar.html | 28 + .../js/ui/demos/datepicker/date-formats.html | 40 + .../static/js/ui/demos/datepicker/date-range.html | 44 + apps/it/static/js/ui/demos/datepicker/default.html | 26 + .../ui/demos/datepicker/dropdown-month-year.html | 29 + .../js/ui/demos/datepicker/icon-trigger.html | 30 + .../js/ui/demos/datepicker/images/calendar.gif | Bin 0 -> 269 bytes apps/it/static/js/ui/demos/datepicker/index.html | 27 + apps/it/static/js/ui/demos/datepicker/inline.html | 26 + .../ui/demos/datepicker/jquery.ui.datepicker-ar.js | 23 + .../ui/demos/datepicker/jquery.ui.datepicker-fr.js | 25 + .../ui/demos/datepicker/jquery.ui.datepicker-he.js | 23 + .../demos/datepicker/jquery.ui.datepicker-zh-TW.js | 23 + .../js/ui/demos/datepicker/localization.html | 41 + apps/it/static/js/ui/demos/datepicker/min-max.html | 26 + .../js/ui/demos/datepicker/multiple-calendars.html | 29 + .../js/ui/demos/datepicker/other-months.html | 30 + .../static/js/ui/demos/datepicker/show-week.html | 32 + apps/it/static/js/ui/demos/demos.css | 19 + apps/it/static/js/ui/demos/dialog/animated.html | 52 + apps/it/static/js/ui/demos/dialog/default.html | 33 + apps/it/static/js/ui/demos/dialog/index.html | 19 + .../js/ui/demos/dialog/modal-confirmation.html | 46 + apps/it/static/js/ui/demos/dialog/modal-form.html | 157 + .../static/js/ui/demos/dialog/modal-message.html | 49 + apps/it/static/js/ui/demos/dialog/modal.html | 38 + .../js/ui/demos/draggable/constrain-movement.html | 58 + .../static/js/ui/demos/draggable/cursor-style.html | 42 + apps/it/static/js/ui/demos/draggable/default.html | 32 + .../static/js/ui/demos/draggable/delay-start.html | 38 + apps/it/static/js/ui/demos/draggable/events.html | 70 + apps/it/static/js/ui/demos/draggable/handle.html | 41 + apps/it/static/js/ui/demos/draggable/index.html | 24 + apps/it/static/js/ui/demos/draggable/revert.html | 37 + apps/it/static/js/ui/demos/draggable/scroll.html | 44 + apps/it/static/js/ui/demos/draggable/snap-to.html | 61 + apps/it/static/js/ui/demos/draggable/sortable.html | 50 + .../js/ui/demos/draggable/visual-feedback.html | 70 + .../js/ui/demos/droppable/accepted-elements.html | 53 + apps/it/static/js/ui/demos/droppable/default.html | 46 + .../js/ui/demos/droppable/images/high_tatras.jpg | Bin 0 -> 22994 bytes .../js/ui/demos/droppable/images/high_tatras2.jpg | Bin 0 -> 25619 bytes .../ui/demos/droppable/images/high_tatras2_min.jpg | Bin 0 -> 2164 bytes .../js/ui/demos/droppable/images/high_tatras3.jpg | Bin 0 -> 24583 bytes .../ui/demos/droppable/images/high_tatras3_min.jpg | Bin 0 -> 1901 bytes .../js/ui/demos/droppable/images/high_tatras4.jpg | Bin 0 -> 24870 bytes .../ui/demos/droppable/images/high_tatras4_min.jpg | Bin 0 -> 2541 bytes .../ui/demos/droppable/images/high_tatras_min.jpg | Bin 0 -> 2147 bytes apps/it/static/js/ui/demos/droppable/index.html | 20 + .../js/ui/demos/droppable/photo-manager.html | 182 + .../static/js/ui/demos/droppable/propagation.html | 73 + apps/it/static/js/ui/demos/droppable/revert.html | 54 + .../js/ui/demos/droppable/shopping-cart.html | 94 + .../js/ui/demos/droppable/visual-feedback.html | 72 + apps/it/static/js/ui/demos/effect/default.html | 102 + apps/it/static/js/ui/demos/effect/easing.html | 102 + apps/it/static/js/ui/demos/effect/index.html | 15 + apps/it/static/js/ui/demos/hide/default.html | 95 + apps/it/static/js/ui/demos/hide/index.html | 14 + apps/it/static/js/ui/demos/images/calendar.gif | Bin 0 -> 269 bytes .../js/ui/demos/images/demo-config-on-tile.gif | Bin 0 -> 172 bytes .../static/js/ui/demos/images/demo-config-on.gif | Bin 0 -> 335 bytes .../js/ui/demos/images/demo-spindown-closed.gif | Bin 0 -> 103 bytes .../js/ui/demos/images/demo-spindown-open.gif | Bin 0 -> 105 bytes .../static/js/ui/demos/images/icon-docs-info.gif | Bin 0 -> 206 bytes apps/it/static/js/ui/demos/images/pbar-ani.gif | Bin 0 -> 7970 bytes apps/it/static/js/ui/demos/index.html | 40 + apps/it/static/js/ui/demos/menu/default.html | 67 + apps/it/static/js/ui/demos/menu/icons.html | 44 + apps/it/static/js/ui/demos/menu/index.html | 15 + apps/it/static/js/ui/demos/position/cycler.html | 107 + apps/it/static/js/ui/demos/position/default.html | 137 + .../static/js/ui/demos/position/images/earth.jpg | Bin 0 -> 29850 bytes .../static/js/ui/demos/position/images/flight.jpg | Bin 0 -> 33637 bytes .../static/js/ui/demos/position/images/rocket.jpg | Bin 0 -> 32986 bytes apps/it/static/js/ui/demos/position/index.html | 15 + .../it/static/js/ui/demos/progressbar/default.html | 28 + .../js/ui/demos/progressbar/images/pbar-ani.gif | Bin 0 -> 7970 bytes .../js/ui/demos/progressbar/indeterminate.html | 53 + apps/it/static/js/ui/demos/progressbar/index.html | 16 + apps/it/static/js/ui/demos/progressbar/label.html | 61 + .../it/static/js/ui/demos/removeClass/default.html | 45 + apps/it/static/js/ui/demos/removeClass/index.html | 14 + apps/it/static/js/ui/demos/resizable/animate.html | 36 + .../static/js/ui/demos/resizable/aspect-ratio.html | 35 + .../js/ui/demos/resizable/constrain-area.html | 40 + apps/it/static/js/ui/demos/resizable/default.html | 33 + .../static/js/ui/demos/resizable/delay-start.html | 45 + apps/it/static/js/ui/demos/resizable/helper.html | 36 + apps/it/static/js/ui/demos/resizable/index.html | 24 + apps/it/static/js/ui/demos/resizable/max-min.html | 38 + .../static/js/ui/demos/resizable/snap-to-grid.html | 35 + .../js/ui/demos/resizable/synchronous-resize.html | 42 + apps/it/static/js/ui/demos/resizable/textarea.html | 34 + .../js/ui/demos/resizable/visual-feedback.html | 36 + apps/it/static/js/ui/demos/selectable/default.html | 43 + .../js/ui/demos/selectable/display-grid.html | 48 + apps/it/static/js/ui/demos/selectable/index.html | 16 + .../static/js/ui/demos/selectable/serialize.html | 54 + apps/it/static/js/ui/demos/show/default.html | 97 + apps/it/static/js/ui/demos/show/index.html | 14 + apps/it/static/js/ui/demos/slider/colorpicker.html | 87 + apps/it/static/js/ui/demos/slider/default.html | 27 + apps/it/static/js/ui/demos/slider/hotelrooms.html | 49 + apps/it/static/js/ui/demos/slider/index.html | 24 + .../js/ui/demos/slider/multiple-vertical.html | 69 + .../static/js/ui/demos/slider/range-vertical.html | 41 + apps/it/static/js/ui/demos/slider/range.html | 42 + apps/it/static/js/ui/demos/slider/rangemax.html | 40 + apps/it/static/js/ui/demos/slider/rangemin.html | 41 + apps/it/static/js/ui/demos/slider/side-scroll.html | 131 + .../static/js/ui/demos/slider/slider-vertical.html | 42 + apps/it/static/js/ui/demos/slider/steps.html | 41 + .../demos/sortable/connect-lists-through-tabs.html | 72 + .../static/js/ui/demos/sortable/connect-lists.html | 52 + apps/it/static/js/ui/demos/sortable/default.html | 45 + .../static/js/ui/demos/sortable/delay-start.html | 61 + .../static/js/ui/demos/sortable/display-grid.html | 48 + .../static/js/ui/demos/sortable/empty-lists.html | 63 + apps/it/static/js/ui/demos/sortable/index.html | 22 + apps/it/static/js/ui/demos/sortable/items.html | 64 + .../static/js/ui/demos/sortable/placeholder.html | 50 + apps/it/static/js/ui/demos/sortable/portlets.html | 115 + apps/it/static/js/ui/demos/spinner/currency.html | 52 + apps/it/static/js/ui/demos/spinner/decimal.html | 56 + apps/it/static/js/ui/demos/spinner/default.html | 64 + apps/it/static/js/ui/demos/spinner/index.html | 19 + apps/it/static/js/ui/demos/spinner/latlong.html | 57 + apps/it/static/js/ui/demos/spinner/overflow.html | 44 + apps/it/static/js/ui/demos/spinner/time.html | 74 + .../it/static/js/ui/demos/switchClass/default.html | 40 + apps/it/static/js/ui/demos/switchClass/index.html | 14 + apps/it/static/js/ui/demos/tabs/ajax.html | 46 + apps/it/static/js/ui/demos/tabs/ajax/content1.html | 4 + apps/it/static/js/ui/demos/tabs/ajax/content2.html | 4 + .../static/js/ui/demos/tabs/ajax/content3-slow.php | 7 + .../js/ui/demos/tabs/ajax/content4-broken.php | 3 + apps/it/static/js/ui/demos/tabs/bottom.html | 58 + apps/it/static/js/ui/demos/tabs/collapsible.html | 48 + apps/it/static/js/ui/demos/tabs/default.html | 42 + apps/it/static/js/ui/demos/tabs/index.html | 20 + apps/it/static/js/ui/demos/tabs/manipulation.html | 122 + apps/it/static/js/ui/demos/tabs/mouseover.html | 44 + apps/it/static/js/ui/demos/tabs/sortable.html | 51 + apps/it/static/js/ui/demos/tabs/vertical.html | 54 + apps/it/static/js/ui/demos/toggle/default.html | 103 + apps/it/static/js/ui/demos/toggle/index.html | 14 + .../it/static/js/ui/demos/toggleClass/default.html | 39 + apps/it/static/js/ui/demos/toggleClass/index.html | 14 + .../static/js/ui/demos/tooltip/ajax/content1.html | 1 + .../static/js/ui/demos/tooltip/ajax/content2.html | 1 + .../js/ui/demos/tooltip/custom-animation.html | 54 + .../static/js/ui/demos/tooltip/custom-content.html | 83 + .../static/js/ui/demos/tooltip/custom-style.html | 95 + apps/it/static/js/ui/demos/tooltip/default.html | 40 + apps/it/static/js/ui/demos/tooltip/forms.html | 65 + .../js/ui/demos/tooltip/images/st-stephens.jpg | Bin 0 -> 17724 bytes .../js/ui/demos/tooltip/images/tower-bridge.jpg | Bin 0 -> 15764 bytes apps/it/static/js/ui/demos/tooltip/index.html | 20 + apps/it/static/js/ui/demos/tooltip/tracking.html | 42 + .../static/js/ui/demos/tooltip/video-player.html | 117 + apps/it/static/js/ui/demos/widget/default.html | 178 + apps/it/static/js/ui/demos/widget/index.html | 14 + .../js/ui/external/globalize.culture.de-DE.js | 81 + .../js/ui/external/globalize.culture.ja-JP.js | 100 + apps/it/static/js/ui/external/globalize.js | 1585 ++ apps/it/static/js/ui/external/jquery.mousewheel.js | 101 + apps/it/static/js/ui/external/jshint.js | 4835 ++++++ apps/it/static/js/ui/external/qunit.css | 244 + apps/it/static/js/ui/external/qunit.js | 2152 +++ apps/it/static/js/ui/jquery-1.10.2.js | 9789 ++++++++++++ apps/it/static/js/ui/package.json | 73 + apps/it/static/js/ui/tests/index.css | 21 + apps/it/static/js/ui/tests/index.html | 33 + apps/it/static/js/ui/tests/index.js | 10 + apps/it/static/js/ui/tests/jquery-1.10.0.js | 9800 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.10.1.js | 9807 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.10.2.js | 9789 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.6.1.js | 8936 +++++++++++ apps/it/static/js/ui/tests/jquery-1.6.2.js | 8981 +++++++++++ apps/it/static/js/ui/tests/jquery-1.6.3.js | 9044 +++++++++++ apps/it/static/js/ui/tests/jquery-1.6.4.js | 9046 +++++++++++ apps/it/static/js/ui/tests/jquery-1.6.js | 8865 +++++++++++ apps/it/static/js/ui/tests/jquery-1.7.1.js | 9266 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.7.2.js | 9404 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.7.js | 9300 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.8.0.js | 9227 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.8.1.js | 9301 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.8.2.js | 9440 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.8.3.js | 9472 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.9.0.js | 9555 ++++++++++++ apps/it/static/js/ui/tests/jquery-1.9.1.js | 9597 ++++++++++++ apps/it/static/js/ui/tests/jquery-2.0.0.js | 8755 +++++++++++ apps/it/static/js/ui/tests/jquery-2.0.1.js | 8837 +++++++++++ apps/it/static/js/ui/tests/jquery-2.0.2.js | 8842 +++++++++++ apps/it/static/js/ui/tests/jquery-2.0.3.js | 8829 +++++++++++ apps/it/static/js/ui/tests/jquery.js | 26 + apps/it/static/js/ui/tests/jquery.simulate.js | 324 + .../js/ui/tests/unit/accordion/accordion.html | 143 + .../js/ui/tests/unit/accordion/accordion_common.js | 20 + .../js/ui/tests/unit/accordion/accordion_core.js | 117 + .../js/ui/tests/unit/accordion/accordion_events.js | 169 + .../ui/tests/unit/accordion/accordion_methods.js | 126 + .../ui/tests/unit/accordion/accordion_options.js | 463 + .../tests/unit/accordion/accordion_test_helpers.js | 27 + apps/it/static/js/ui/tests/unit/accordion/all.html | 30 + apps/it/static/js/ui/tests/unit/all.html | 70 + .../static/js/ui/tests/unit/autocomplete/all.html | 30 + .../ui/tests/unit/autocomplete/autocomplete.html | 49 + .../tests/unit/autocomplete/autocomplete_common.js | 29 + .../tests/unit/autocomplete/autocomplete_core.js | 270 + .../tests/unit/autocomplete/autocomplete_events.js | 182 + .../unit/autocomplete/autocomplete_methods.js | 45 + .../unit/autocomplete/autocomplete_options.js | 278 + .../autocomplete/remote_object_array_labels.txt | 1 + .../autocomplete/remote_object_array_values.txt | 1 + .../unit/autocomplete/remote_string_array.txt | 1 + apps/it/static/js/ui/tests/unit/button/all.html | 30 + apps/it/static/js/ui/tests/unit/button/button.html | 78 + .../js/ui/tests/unit/button/button_common.js | 14 + .../static/js/ui/tests/unit/button/button_core.js | 212 + .../js/ui/tests/unit/button/button_events.js | 36 + .../js/ui/tests/unit/button/button_methods.js | 52 + .../js/ui/tests/unit/button/button_options.js | 117 + apps/it/static/js/ui/tests/unit/core/all.html | 30 + apps/it/static/js/ui/tests/unit/core/core.html | 135 + apps/it/static/js/ui/tests/unit/core/core.js | 191 + apps/it/static/js/ui/tests/unit/core/selector.js | 251 + .../it/static/js/ui/tests/unit/datepicker/all.html | 30 + .../js/ui/tests/unit/datepicker/datepicker.html | 48 + .../ui/tests/unit/datepicker/datepicker_common.js | 7 + .../js/ui/tests/unit/datepicker/datepicker_core.js | 524 + .../ui/tests/unit/datepicker/datepicker_events.js | 153 + .../ui/tests/unit/datepicker/datepicker_methods.js | 125 + .../ui/tests/unit/datepicker/datepicker_options.js | 1113 ++ .../unit/datepicker/datepicker_test_helpers.js | 37 + .../ui/tests/unit/datepicker/images/calendar.gif | Bin 0 -> 269 bytes apps/it/static/js/ui/tests/unit/dialog/all.html | 30 + apps/it/static/js/ui/tests/unit/dialog/dialog.html | 71 + .../js/ui/tests/unit/dialog/dialog_common.js | 43 + .../static/js/ui/tests/unit/dialog/dialog_core.js | 163 + .../js/ui/tests/unit/dialog/dialog_deprecated.html | 67 + .../js/ui/tests/unit/dialog/dialog_deprecated.js | 63 + .../js/ui/tests/unit/dialog/dialog_events.js | 370 + .../js/ui/tests/unit/dialog/dialog_methods.js | 252 + .../js/ui/tests/unit/dialog/dialog_options.js | 584 + .../js/ui/tests/unit/dialog/dialog_test_helpers.js | 44 + apps/it/static/js/ui/tests/unit/draggable/all.html | 30 + .../js/ui/tests/unit/draggable/draggable.html | 58 + .../js/ui/tests/unit/draggable/draggable_common.js | 40 + .../js/ui/tests/unit/draggable/draggable_core.js | 168 + .../js/ui/tests/unit/draggable/draggable_events.js | 125 + .../ui/tests/unit/draggable/draggable_methods.js | 99 + .../ui/tests/unit/draggable/draggable_options.js | 1404 ++ .../tests/unit/draggable/draggable_test_helpers.js | 79 + apps/it/static/js/ui/tests/unit/droppable/all.html | 30 + .../js/ui/tests/unit/droppable/droppable.html | 50 + .../js/ui/tests/unit/droppable/droppable_common.js | 20 + .../js/ui/tests/unit/droppable/droppable_core.js | 29 + .../js/ui/tests/unit/droppable/droppable_events.js | 63 + .../ui/tests/unit/droppable/droppable_methods.js | 88 + .../ui/tests/unit/droppable/droppable_options.js | 67 + .../tests/unit/droppable/droppable_test_helpers.js | 10 + apps/it/static/js/ui/tests/unit/effects/all.html | 30 + .../static/js/ui/tests/unit/effects/effects.html | 117 + .../js/ui/tests/unit/effects/effects_core.js | 274 + .../js/ui/tests/unit/effects/effects_scale.js | 68 + .../js/ui/tests/unit/images/jqueryui_32x32.png | Bin 0 -> 1193 bytes apps/it/static/js/ui/tests/unit/index.html | 66 + apps/it/static/js/ui/tests/unit/menu/all.html | 30 + apps/it/static/js/ui/tests/unit/menu/menu.html | 269 + .../it/static/js/ui/tests/unit/menu/menu_common.js | 20 + apps/it/static/js/ui/tests/unit/menu/menu_core.js | 48 + .../it/static/js/ui/tests/unit/menu/menu_events.js | 637 + .../static/js/ui/tests/unit/menu/menu_methods.js | 117 + .../static/js/ui/tests/unit/menu/menu_options.js | 115 + .../js/ui/tests/unit/menu/menu_test_helpers.js | 31 + apps/it/static/js/ui/tests/unit/position/all.html | 30 + .../static/js/ui/tests/unit/position/position.html | 53 + .../js/ui/tests/unit/position/position_core.js | 729 + .../static/js/ui/tests/unit/progressbar/all.html | 30 + .../js/ui/tests/unit/progressbar/progressbar.html | 44 + .../tests/unit/progressbar/progressbar_common.js | 12 + .../ui/tests/unit/progressbar/progressbar_core.js | 53 + .../tests/unit/progressbar/progressbar_events.js | 51 + .../tests/unit/progressbar/progressbar_methods.js | 25 + .../tests/unit/progressbar/progressbar_options.js | 72 + .../it/static/js/ui/tests/unit/qunit-composite.css | 13 + apps/it/static/js/ui/tests/unit/qunit-composite.js | 112 + apps/it/static/js/ui/tests/unit/resizable/all.html | 30 + .../js/ui/tests/unit/resizable/images/test.jpg | Bin 0 -> 391 bytes .../js/ui/tests/unit/resizable/resizable.html | 65 + .../js/ui/tests/unit/resizable/resizable_common.js | 30 + .../js/ui/tests/unit/resizable/resizable_core.js | 209 + .../js/ui/tests/unit/resizable/resizable_events.js | 220 + .../ui/tests/unit/resizable/resizable_methods.js | 12 + .../ui/tests/unit/resizable/resizable_options.js | 291 + .../tests/unit/resizable/resizable_test_helpers.js | 11 + .../it/static/js/ui/tests/unit/selectable/all.html | 30 + .../js/ui/tests/unit/selectable/selectable.html | 51 + .../ui/tests/unit/selectable/selectable_common.js | 21 + .../js/ui/tests/unit/selectable/selectable_core.js | 3 + .../ui/tests/unit/selectable/selectable_events.js | 69 + .../ui/tests/unit/selectable/selectable_methods.js | 104 + .../ui/tests/unit/selectable/selectable_options.js | 65 + apps/it/static/js/ui/tests/unit/slider/all.html | 30 + apps/it/static/js/ui/tests/unit/slider/slider.html | 48 + .../js/ui/tests/unit/slider/slider_common.js | 23 + .../static/js/ui/tests/unit/slider/slider_core.js | 297 + .../js/ui/tests/unit/slider/slider_events.js | 152 + .../js/ui/tests/unit/slider/slider_methods.js | 96 + .../js/ui/tests/unit/slider/slider_options.js | 317 + apps/it/static/js/ui/tests/unit/sortable/all.html | 30 + .../static/js/ui/tests/unit/sortable/sortable.html | 99 + .../js/ui/tests/unit/sortable/sortable_common.js | 45 + .../js/ui/tests/unit/sortable/sortable_core.js | 3 + .../js/ui/tests/unit/sortable/sortable_events.js | 275 + .../js/ui/tests/unit/sortable/sortable_methods.js | 92 + .../js/ui/tests/unit/sortable/sortable_options.js | 460 + .../tests/unit/sortable/sortable_test_helpers.js | 9 + apps/it/static/js/ui/tests/unit/spinner/all.html | 30 + .../static/js/ui/tests/unit/spinner/spinner.html | 50 + .../js/ui/tests/unit/spinner/spinner_common.js | 23 + .../js/ui/tests/unit/spinner/spinner_core.js | 238 + .../js/ui/tests/unit/spinner/spinner_events.js | 259 + .../js/ui/tests/unit/spinner/spinner_methods.js | 174 + .../js/ui/tests/unit/spinner/spinner_options.js | 262 + .../ui/tests/unit/spinner/spinner_test_helpers.js | 8 + apps/it/static/js/ui/tests/unit/subsuite.js | 25 + apps/it/static/js/ui/tests/unit/swarminject.js | 10 + apps/it/static/js/ui/tests/unit/tabs/all.html | 30 + .../it/static/js/ui/tests/unit/tabs/data/test.html | 1 + apps/it/static/js/ui/tests/unit/tabs/tabs.html | 155 + .../it/static/js/ui/tests/unit/tabs/tabs_common.js | 18 + apps/it/static/js/ui/tests/unit/tabs/tabs_core.js | 615 + .../it/static/js/ui/tests/unit/tabs/tabs_events.js | 318 + .../static/js/ui/tests/unit/tabs/tabs_methods.js | 270 + .../static/js/ui/tests/unit/tabs/tabs_options.js | 345 + .../js/ui/tests/unit/tabs/tabs_test_helpers.js | 67 + apps/it/static/js/ui/tests/unit/testsuite.js | 298 + apps/it/static/js/ui/tests/unit/tooltip/all.html | 30 + .../static/js/ui/tests/unit/tooltip/tooltip.html | 55 + .../js/ui/tests/unit/tooltip/tooltip_common.js | 21 + .../js/ui/tests/unit/tooltip/tooltip_core.js | 137 + .../js/ui/tests/unit/tooltip/tooltip_events.js | 57 + .../js/ui/tests/unit/tooltip/tooltip_methods.js | 94 + .../js/ui/tests/unit/tooltip/tooltip_options.js | 171 + apps/it/static/js/ui/tests/unit/widget/all.html | 30 + apps/it/static/js/ui/tests/unit/widget/widget.html | 44 + .../js/ui/tests/unit/widget/widget_animation.js | 257 + .../static/js/ui/tests/unit/widget/widget_core.js | 1459 ++ .../js/ui/tests/unit/widget/widget_extend.js | 105 + .../static/js/ui/tests/visual/accordion/icons.html | 95 + .../static/js/ui/tests/visual/addClass/queue.html | 52 + .../static/js/ui/tests/visual/button/button.html | 94 + .../js/ui/tests/visual/button/performance.html | 26 + .../ui/tests/visual/compound/accordion_tabs.html | 86 + .../tests/visual/compound/datepicker_dialog.html | 31 + .../ui/tests/visual/compound/dialog_widgets.html | 101 + .../tests/visual/compound/draggable_accordion.html | 65 + ...aggable_accordion_accordion_tabs_draggable.html | 107 + .../compound/sortable_accordion_sortable_tabs.html | 116 + .../js/ui/tests/visual/compound/tabs_tabs.html | 73 + .../js/ui/tests/visual/compound/tabs_tooltips.html | 37 + .../static/js/ui/tests/visual/dialog/animated.html | 53 + .../js/ui/tests/visual/dialog/complex-dialogs.html | 125 + apps/it/static/js/ui/tests/visual/dialog/form.html | 70 + .../js/ui/tests/visual/dialog/performance.html | 73 + apps/it/static/js/ui/tests/visual/effects/all.html | 217 + .../static/js/ui/tests/visual/effects/effects.css | 49 + .../static/js/ui/tests/visual/effects/effects.js | 107 + .../static/js/ui/tests/visual/effects/scale.html | 157 + apps/it/static/js/ui/tests/visual/index.html | 82 + apps/it/static/js/ui/tests/visual/menu/menu.html | 314 + .../js/ui/tests/visual/position/position.html | 143 + .../tests/visual/position/position_feedback.html | 145 + apps/it/static/js/ui/tests/visual/theme.html | 525 + .../js/ui/tests/visual/tooltip/animations.html | 73 + .../static/js/ui/tests/visual/tooltip/tooltip.html | 206 + apps/it/static/js/ui/tests/visual/visual.css | 3 + .../js/ui/themes/base/images/animated-overlay.gif | Bin 0 -> 1738 bytes .../base/images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../base/images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../base/images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../base/images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../base/images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../base/images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../base/images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../themes/base/images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes apps/it/static/js/ui/themes/base/jquery-ui.css | 1189 ++ .../js/ui/themes/base/jquery.ui.accordion.css | 38 + apps/it/static/js/ui/themes/base/jquery.ui.all.css | 12 + .../js/ui/themes/base/jquery.ui.autocomplete.css | 16 + .../it/static/js/ui/themes/base/jquery.ui.base.css | 25 + .../static/js/ui/themes/base/jquery.ui.button.css | 114 + .../it/static/js/ui/themes/base/jquery.ui.core.css | 93 + .../js/ui/themes/base/jquery.ui.datepicker.css | 175 + .../static/js/ui/themes/base/jquery.ui.dialog.css | 70 + .../it/static/js/ui/themes/base/jquery.ui.menu.css | 79 + .../js/ui/themes/base/jquery.ui.progressbar.css | 28 + .../js/ui/themes/base/jquery.ui.resizable.css | 76 + .../js/ui/themes/base/jquery.ui.selectable.css | 13 + .../static/js/ui/themes/base/jquery.ui.slider.css | 73 + .../static/js/ui/themes/base/jquery.ui.spinner.css | 65 + .../it/static/js/ui/themes/base/jquery.ui.tabs.css | 51 + .../static/js/ui/themes/base/jquery.ui.theme.css | 410 + .../static/js/ui/themes/base/jquery.ui.tooltip.css | 21 + .../base/minified/images/animated-overlay.gif | Bin 0 -> 1738 bytes .../minified/images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../minified/images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../minified/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../minified/images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../minified/images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../minified/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes .../js/ui/themes/base/minified/jquery-ui.min.css | 4 + .../base/minified/jquery.ui.accordion.min.css | 5 + .../base/minified/jquery.ui.autocomplete.min.css | 5 + .../themes/base/minified/jquery.ui.button.min.css | 5 + .../ui/themes/base/minified/jquery.ui.core.min.css | 5 + .../base/minified/jquery.ui.datepicker.min.css | 5 + .../themes/base/minified/jquery.ui.dialog.min.css | 5 + .../ui/themes/base/minified/jquery.ui.menu.min.css | 5 + .../base/minified/jquery.ui.progressbar.min.css | 5 + .../base/minified/jquery.ui.resizable.min.css | 5 + .../base/minified/jquery.ui.selectable.min.css | 5 + .../themes/base/minified/jquery.ui.slider.min.css | 5 + .../themes/base/minified/jquery.ui.spinner.min.css | 5 + .../ui/themes/base/minified/jquery.ui.tabs.min.css | 5 + .../themes/base/minified/jquery.ui.theme.min.css | 5 + .../themes/base/minified/jquery.ui.tooltip.min.css | 5 + apps/it/static/js/ui/ui.accordion.jquery.json | 67 + apps/it/static/js/ui/ui.autocomplete.jquery.json | 69 + apps/it/static/js/ui/ui.button.jquery.json | 66 + apps/it/static/js/ui/ui.core.jquery.json | 61 + apps/it/static/js/ui/ui.datepicker.jquery.json | 66 + apps/it/static/js/ui/ui.dialog.jquery.json | 70 + apps/it/static/js/ui/ui.draggable.jquery.json | 66 + apps/it/static/js/ui/ui.droppable.jquery.json | 67 + apps/it/static/js/ui/ui.effect-blind.jquery.json | 65 + apps/it/static/js/ui/ui.effect-bounce.jquery.json | 65 + apps/it/static/js/ui/ui.effect-clip.jquery.json | 65 + apps/it/static/js/ui/ui.effect-drop.jquery.json | 65 + apps/it/static/js/ui/ui.effect-explode.jquery.json | 65 + apps/it/static/js/ui/ui.effect-fade.jquery.json | 65 + apps/it/static/js/ui/ui.effect-fold.jquery.json | 65 + .../static/js/ui/ui.effect-highlight.jquery.json | 65 + apps/it/static/js/ui/ui.effect-pulsate.jquery.json | 65 + apps/it/static/js/ui/ui.effect-scale.jquery.json | 65 + apps/it/static/js/ui/ui.effect-shake.jquery.json | 65 + apps/it/static/js/ui/ui.effect-slide.jquery.json | 65 + .../it/static/js/ui/ui.effect-transfer.jquery.json | 63 + apps/it/static/js/ui/ui.effect.jquery.json | 68 + apps/it/static/js/ui/ui.menu.jquery.json | 66 + apps/it/static/js/ui/ui.mouse.jquery.json | 64 + apps/it/static/js/ui/ui.position.jquery.json | 66 + apps/it/static/js/ui/ui.progressbar.jquery.json | 65 + apps/it/static/js/ui/ui.resizable.jquery.json | 65 + apps/it/static/js/ui/ui.selectable.jquery.json | 65 + apps/it/static/js/ui/ui.slider.jquery.json | 67 + apps/it/static/js/ui/ui.sortable.jquery.json | 66 + apps/it/static/js/ui/ui.spinner.jquery.json | 68 + apps/it/static/js/ui/ui.tabs.jquery.json | 67 + apps/it/static/js/ui/ui.tooltip.jquery.json | 64 + apps/it/static/js/ui/ui.widget.jquery.json | 64 + apps/it/static/js/ui/ui/.jshintrc | 22 + apps/it/static/js/ui/ui/i18n/jquery-ui-i18n.js | 1793 +++ .../js/ui/ui/i18n/jquery.ui.datepicker-af.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ar-DZ.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ar.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-az.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-be.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-bg.js | 24 + .../js/ui/ui/i18n/jquery.ui.datepicker-bs.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ca.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-cs.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-cy-GB.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-da.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-de.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-el.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-en-AU.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-en-GB.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-en-NZ.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-eo.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-es.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-et.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-eu.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-fa.js | 59 + .../js/ui/ui/i18n/jquery.ui.datepicker-fi.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-fo.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-fr-CA.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-fr-CH.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-fr.js | 25 + .../js/ui/ui/i18n/jquery.ui.datepicker-gl.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-he.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-hi.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-hr.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-hu.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-hy.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-id.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-is.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-it.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ja.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ka.js | 21 + .../js/ui/ui/i18n/jquery.ui.datepicker-kk.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-km.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ko.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ky.js | 24 + .../js/ui/ui/i18n/jquery.ui.datepicker-lb.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-lt.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-lv.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-mk.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ml.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ms.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-nb.js | 22 + .../js/ui/ui/i18n/jquery.ui.datepicker-nl-BE.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-nl.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-nn.js | 22 + .../js/ui/ui/i18n/jquery.ui.datepicker-no.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-pl.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-pt-BR.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-pt.js | 22 + .../js/ui/ui/i18n/jquery.ui.datepicker-rm.js | 21 + .../js/ui/ui/i18n/jquery.ui.datepicker-ro.js | 26 + .../js/ui/ui/i18n/jquery.ui.datepicker-ru.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-sk.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-sl.js | 24 + .../js/ui/ui/i18n/jquery.ui.datepicker-sq.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-sr-SR.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-sr.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-sv.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-ta.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-th.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-tj.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-tr.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-uk.js | 24 + .../js/ui/ui/i18n/jquery.ui.datepicker-vi.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-zh-CN.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-zh-HK.js | 23 + .../js/ui/ui/i18n/jquery.ui.datepicker-zh-TW.js | 23 + apps/it/static/js/ui/ui/jquery-ui.js | 15040 +++++++++++++++++++ apps/it/static/js/ui/ui/jquery.ui.accordion.js | 570 + apps/it/static/js/ui/ui/jquery.ui.autocomplete.js | 606 + apps/it/static/js/ui/ui/jquery.ui.button.js | 395 + apps/it/static/js/ui/ui/jquery.ui.core.js | 320 + apps/it/static/js/ui/ui/jquery.ui.datepicker.js | 2038 +++ apps/it/static/js/ui/ui/jquery.ui.dialog.js | 823 + apps/it/static/js/ui/ui/jquery.ui.draggable.js | 958 ++ apps/it/static/js/ui/ui/jquery.ui.droppable.js | 389 + apps/it/static/js/ui/ui/jquery.ui.effect-blind.js | 82 + apps/it/static/js/ui/ui/jquery.ui.effect-bounce.js | 113 + apps/it/static/js/ui/ui/jquery.ui.effect-clip.js | 67 + apps/it/static/js/ui/ui/jquery.ui.effect-drop.js | 65 + .../it/static/js/ui/ui/jquery.ui.effect-explode.js | 97 + apps/it/static/js/ui/ui/jquery.ui.effect-fade.js | 30 + apps/it/static/js/ui/ui/jquery.ui.effect-fold.js | 76 + .../static/js/ui/ui/jquery.ui.effect-highlight.js | 50 + .../it/static/js/ui/ui/jquery.ui.effect-pulsate.js | 63 + apps/it/static/js/ui/ui/jquery.ui.effect-scale.js | 318 + apps/it/static/js/ui/ui/jquery.ui.effect-shake.js | 74 + apps/it/static/js/ui/ui/jquery.ui.effect-slide.js | 64 + .../static/js/ui/ui/jquery.ui.effect-transfer.js | 47 + apps/it/static/js/ui/ui/jquery.ui.effect.js | 1289 ++ apps/it/static/js/ui/ui/jquery.ui.menu.js | 627 + apps/it/static/js/ui/ui/jquery.ui.mouse.js | 169 + apps/it/static/js/ui/ui/jquery.ui.position.js | 501 + apps/it/static/js/ui/ui/jquery.ui.progressbar.js | 145 + apps/it/static/js/ui/ui/jquery.ui.resizable.js | 978 ++ apps/it/static/js/ui/ui/jquery.ui.selectable.js | 277 + apps/it/static/js/ui/ui/jquery.ui.slider.js | 676 + apps/it/static/js/ui/ui/jquery.ui.sortable.js | 1289 ++ apps/it/static/js/ui/ui/jquery.ui.spinner.js | 497 + apps/it/static/js/ui/ui/jquery.ui.tabs.js | 849 ++ apps/it/static/js/ui/ui/jquery.ui.tooltip.js | 402 + apps/it/static/js/ui/ui/jquery.ui.widget.js | 521 + .../js/ui/ui/minified/i18n/jquery-ui-i18n.min.js | 6 + .../minified/i18n/jquery.ui.datepicker-af.min.js | 4 + .../i18n/jquery.ui.datepicker-ar-DZ.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ar.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-az.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-be.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-bg.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-bs.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ca.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-cs.min.js | 4 + .../i18n/jquery.ui.datepicker-cy-GB.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-da.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-de.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-el.min.js | 4 + .../i18n/jquery.ui.datepicker-en-AU.min.js | 4 + .../i18n/jquery.ui.datepicker-en-GB.min.js | 4 + .../i18n/jquery.ui.datepicker-en-NZ.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-eo.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-es.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-et.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-eu.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-fa.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-fi.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-fo.min.js | 4 + .../i18n/jquery.ui.datepicker-fr-CA.min.js | 4 + .../i18n/jquery.ui.datepicker-fr-CH.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-fr.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-gl.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-he.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-hi.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-hr.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-hu.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-hy.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-id.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-is.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-it.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ja.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ka.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-kk.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-km.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ko.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ky.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-lb.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-lt.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-lv.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-mk.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ml.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ms.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-nb.min.js | 4 + .../i18n/jquery.ui.datepicker-nl-BE.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-nl.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-nn.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-no.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-pl.min.js | 4 + .../i18n/jquery.ui.datepicker-pt-BR.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-pt.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-rm.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ro.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ru.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-sk.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-sl.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-sq.min.js | 4 + .../i18n/jquery.ui.datepicker-sr-SR.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-sr.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-sv.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-ta.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-th.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-tj.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-tr.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-uk.min.js | 4 + .../minified/i18n/jquery.ui.datepicker-vi.min.js | 4 + .../i18n/jquery.ui.datepicker-zh-CN.min.js | 4 + .../i18n/jquery.ui.datepicker-zh-HK.min.js | 4 + .../i18n/jquery.ui.datepicker-zh-TW.min.js | 4 + apps/it/static/js/ui/ui/minified/jquery-ui.min.js | 12 + .../js/ui/ui/minified/jquery.ui.accordion.min.js | 4 + .../ui/ui/minified/jquery.ui.autocomplete.min.js | 4 + .../js/ui/ui/minified/jquery.ui.button.min.js | 4 + .../static/js/ui/ui/minified/jquery.ui.core.min.js | 4 + .../js/ui/ui/minified/jquery.ui.datepicker.min.js | 5 + .../js/ui/ui/minified/jquery.ui.dialog.min.js | 4 + .../js/ui/ui/minified/jquery.ui.draggable.min.js | 4 + .../js/ui/ui/minified/jquery.ui.droppable.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-blind.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-bounce.min.js | 4 + .../js/ui/ui/minified/jquery.ui.effect-clip.min.js | 4 + .../js/ui/ui/minified/jquery.ui.effect-drop.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-explode.min.js | 4 + .../js/ui/ui/minified/jquery.ui.effect-fade.min.js | 4 + .../js/ui/ui/minified/jquery.ui.effect-fold.min.js | 4 + .../ui/minified/jquery.ui.effect-highlight.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-pulsate.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-scale.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-shake.min.js | 4 + .../ui/ui/minified/jquery.ui.effect-slide.min.js | 4 + .../ui/minified/jquery.ui.effect-transfer.min.js | 4 + .../js/ui/ui/minified/jquery.ui.effect.min.js | 4 + .../static/js/ui/ui/minified/jquery.ui.menu.min.js | 4 + .../js/ui/ui/minified/jquery.ui.mouse.min.js | 4 + .../js/ui/ui/minified/jquery.ui.position.min.js | 4 + .../js/ui/ui/minified/jquery.ui.progressbar.min.js | 4 + .../js/ui/ui/minified/jquery.ui.resizable.min.js | 4 + .../js/ui/ui/minified/jquery.ui.selectable.min.js | 4 + .../js/ui/ui/minified/jquery.ui.slider.min.js | 4 + .../js/ui/ui/minified/jquery.ui.sortable.min.js | 4 + .../js/ui/ui/minified/jquery.ui.spinner.min.js | 4 + .../static/js/ui/ui/minified/jquery.ui.tabs.min.js | 4 + .../js/ui/ui/minified/jquery.ui.tooltip.min.js | 4 + .../js/ui/ui/minified/jquery.ui.widget.min.js | 4 + apps/it/templates/default.html | 65 +- apps/it/templates/edit_issue.html | 2 +- apps/it/templates/list_issues.html | 15 +- apps/it/templates/view_issue.html | 83 +- apps/it/templatetags/it_tags.py | 12 + apps/it/views.py | 68 +- it/urls.py | 4 + .../Screen_Shot_2012-12-10_at_5.22.41_PM.png | Bin 0 -> 597977 bytes .../Screen_Shot_2012-12-10_at_5.49.45_PM.png | Bin 0 -> 622558 bytes .../Screen_Shot_2012-12-10_at_5.51.08_PM.png | Bin 0 -> 637983 bytes .../Screen_Shot_2012-12-10_at_5.51.16_PM.png | Bin 0 -> 634799 bytes .../Screen_Shot_2012-12-10_at_5.51.31_PM.png | Bin 0 -> 639611 bytes .../Screen_Shot_2012-12-10_at_5.53.22_PM.png | Bin 0 -> 664533 bytes .../Screen_Shot_2012-12-10_at_5.55.25_PM.png | Bin 0 -> 621437 bytes uploads/attachments/arrow-down-512_2.png | Bin 0 -> 106895 bytes 762 files changed, 288767 insertions(+), 92 deletions(-) create mode 100644 apps/it/forms.py create mode 100644 apps/it/migrations/0011_auto__add_field_issue_title.py create mode 100644 apps/it/migrations/0012_auto__add_field_issue_assigned_to.py create mode 100755 apps/it/static/images/bubble-128.png create mode 100755 apps/it/static/images/user-128.png create mode 100644 apps/it/static/js/ui/AUTHORS.txt create mode 100644 apps/it/static/js/ui/Gruntfile.js create mode 100644 apps/it/static/js/ui/MANIFEST create mode 100644 apps/it/static/js/ui/MIT-LICENSE.txt create mode 100644 apps/it/static/js/ui/README.md create mode 100644 apps/it/static/js/ui/demos/accordion/collapsible.html create mode 100644 apps/it/static/js/ui/demos/accordion/custom-icons.html create mode 100644 apps/it/static/js/ui/demos/accordion/default.html create mode 100644 apps/it/static/js/ui/demos/accordion/fillspace.html create mode 100644 apps/it/static/js/ui/demos/accordion/hoverintent.html create mode 100644 apps/it/static/js/ui/demos/accordion/index.html create mode 100644 apps/it/static/js/ui/demos/accordion/no-auto-height.html create mode 100644 apps/it/static/js/ui/demos/accordion/sortable.html create mode 100644 apps/it/static/js/ui/demos/addClass/default.html create mode 100644 apps/it/static/js/ui/demos/addClass/index.html create mode 100644 apps/it/static/js/ui/demos/animate/default.html create mode 100644 apps/it/static/js/ui/demos/animate/index.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/categories.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/combobox.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/custom-data.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/default.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/folding.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/images/jquery_32x32.png create mode 100644 apps/it/static/js/ui/demos/autocomplete/images/jqueryui_32x32.png create mode 100644 apps/it/static/js/ui/demos/autocomplete/images/sizzlejs_32x32.png create mode 100644 apps/it/static/js/ui/demos/autocomplete/images/transparent_1x1.png create mode 100644 apps/it/static/js/ui/demos/autocomplete/images/ui-anim_basic_16x16.gif create mode 100644 apps/it/static/js/ui/demos/autocomplete/index.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/london.xml create mode 100644 apps/it/static/js/ui/demos/autocomplete/maxheight.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/multiple-remote.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/multiple.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/remote-jsonp.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/remote-with-cache.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/remote.html create mode 100644 apps/it/static/js/ui/demos/autocomplete/search.php create mode 100644 apps/it/static/js/ui/demos/autocomplete/xml.html create mode 100644 apps/it/static/js/ui/demos/button/checkbox.html create mode 100644 apps/it/static/js/ui/demos/button/default.html create mode 100644 apps/it/static/js/ui/demos/button/icons.html create mode 100644 apps/it/static/js/ui/demos/button/index.html create mode 100644 apps/it/static/js/ui/demos/button/radio.html create mode 100644 apps/it/static/js/ui/demos/button/splitbutton.html create mode 100644 apps/it/static/js/ui/demos/button/toolbar.html create mode 100644 apps/it/static/js/ui/demos/datepicker/alt-field.html create mode 100644 apps/it/static/js/ui/demos/datepicker/animation.html create mode 100644 apps/it/static/js/ui/demos/datepicker/buttonbar.html create mode 100644 apps/it/static/js/ui/demos/datepicker/date-formats.html create mode 100644 apps/it/static/js/ui/demos/datepicker/date-range.html create mode 100644 apps/it/static/js/ui/demos/datepicker/default.html create mode 100644 apps/it/static/js/ui/demos/datepicker/dropdown-month-year.html create mode 100644 apps/it/static/js/ui/demos/datepicker/icon-trigger.html create mode 100644 apps/it/static/js/ui/demos/datepicker/images/calendar.gif create mode 100644 apps/it/static/js/ui/demos/datepicker/index.html create mode 100644 apps/it/static/js/ui/demos/datepicker/inline.html create mode 100644 apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-ar.js create mode 100644 apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-fr.js create mode 100644 apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-he.js create mode 100644 apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js create mode 100644 apps/it/static/js/ui/demos/datepicker/localization.html create mode 100644 apps/it/static/js/ui/demos/datepicker/min-max.html create mode 100644 apps/it/static/js/ui/demos/datepicker/multiple-calendars.html create mode 100644 apps/it/static/js/ui/demos/datepicker/other-months.html create mode 100644 apps/it/static/js/ui/demos/datepicker/show-week.html create mode 100644 apps/it/static/js/ui/demos/demos.css create mode 100644 apps/it/static/js/ui/demos/dialog/animated.html create mode 100644 apps/it/static/js/ui/demos/dialog/default.html create mode 100644 apps/it/static/js/ui/demos/dialog/index.html create mode 100644 apps/it/static/js/ui/demos/dialog/modal-confirmation.html create mode 100644 apps/it/static/js/ui/demos/dialog/modal-form.html create mode 100644 apps/it/static/js/ui/demos/dialog/modal-message.html create mode 100644 apps/it/static/js/ui/demos/dialog/modal.html create mode 100644 apps/it/static/js/ui/demos/draggable/constrain-movement.html create mode 100644 apps/it/static/js/ui/demos/draggable/cursor-style.html create mode 100644 apps/it/static/js/ui/demos/draggable/default.html create mode 100644 apps/it/static/js/ui/demos/draggable/delay-start.html create mode 100644 apps/it/static/js/ui/demos/draggable/events.html create mode 100644 apps/it/static/js/ui/demos/draggable/handle.html create mode 100644 apps/it/static/js/ui/demos/draggable/index.html create mode 100644 apps/it/static/js/ui/demos/draggable/revert.html create mode 100644 apps/it/static/js/ui/demos/draggable/scroll.html create mode 100644 apps/it/static/js/ui/demos/draggable/snap-to.html create mode 100644 apps/it/static/js/ui/demos/draggable/sortable.html create mode 100644 apps/it/static/js/ui/demos/draggable/visual-feedback.html create mode 100644 apps/it/static/js/ui/demos/droppable/accepted-elements.html create mode 100644 apps/it/static/js/ui/demos/droppable/default.html create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras2.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras2_min.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras3.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras3_min.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras4.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras4_min.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/images/high_tatras_min.jpg create mode 100644 apps/it/static/js/ui/demos/droppable/index.html create mode 100644 apps/it/static/js/ui/demos/droppable/photo-manager.html create mode 100644 apps/it/static/js/ui/demos/droppable/propagation.html create mode 100644 apps/it/static/js/ui/demos/droppable/revert.html create mode 100644 apps/it/static/js/ui/demos/droppable/shopping-cart.html create mode 100644 apps/it/static/js/ui/demos/droppable/visual-feedback.html create mode 100644 apps/it/static/js/ui/demos/effect/default.html create mode 100644 apps/it/static/js/ui/demos/effect/easing.html create mode 100644 apps/it/static/js/ui/demos/effect/index.html create mode 100644 apps/it/static/js/ui/demos/hide/default.html create mode 100644 apps/it/static/js/ui/demos/hide/index.html create mode 100644 apps/it/static/js/ui/demos/images/calendar.gif create mode 100644 apps/it/static/js/ui/demos/images/demo-config-on-tile.gif create mode 100644 apps/it/static/js/ui/demos/images/demo-config-on.gif create mode 100644 apps/it/static/js/ui/demos/images/demo-spindown-closed.gif create mode 100644 apps/it/static/js/ui/demos/images/demo-spindown-open.gif create mode 100644 apps/it/static/js/ui/demos/images/icon-docs-info.gif create mode 100644 apps/it/static/js/ui/demos/images/pbar-ani.gif create mode 100644 apps/it/static/js/ui/demos/index.html create mode 100644 apps/it/static/js/ui/demos/menu/default.html create mode 100644 apps/it/static/js/ui/demos/menu/icons.html create mode 100644 apps/it/static/js/ui/demos/menu/index.html create mode 100644 apps/it/static/js/ui/demos/position/cycler.html create mode 100644 apps/it/static/js/ui/demos/position/default.html create mode 100644 apps/it/static/js/ui/demos/position/images/earth.jpg create mode 100644 apps/it/static/js/ui/demos/position/images/flight.jpg create mode 100644 apps/it/static/js/ui/demos/position/images/rocket.jpg create mode 100644 apps/it/static/js/ui/demos/position/index.html create mode 100644 apps/it/static/js/ui/demos/progressbar/default.html create mode 100644 apps/it/static/js/ui/demos/progressbar/images/pbar-ani.gif create mode 100644 apps/it/static/js/ui/demos/progressbar/indeterminate.html create mode 100644 apps/it/static/js/ui/demos/progressbar/index.html create mode 100644 apps/it/static/js/ui/demos/progressbar/label.html create mode 100644 apps/it/static/js/ui/demos/removeClass/default.html create mode 100644 apps/it/static/js/ui/demos/removeClass/index.html create mode 100644 apps/it/static/js/ui/demos/resizable/animate.html create mode 100644 apps/it/static/js/ui/demos/resizable/aspect-ratio.html create mode 100644 apps/it/static/js/ui/demos/resizable/constrain-area.html create mode 100644 apps/it/static/js/ui/demos/resizable/default.html create mode 100644 apps/it/static/js/ui/demos/resizable/delay-start.html create mode 100644 apps/it/static/js/ui/demos/resizable/helper.html create mode 100644 apps/it/static/js/ui/demos/resizable/index.html create mode 100644 apps/it/static/js/ui/demos/resizable/max-min.html create mode 100644 apps/it/static/js/ui/demos/resizable/snap-to-grid.html create mode 100644 apps/it/static/js/ui/demos/resizable/synchronous-resize.html create mode 100644 apps/it/static/js/ui/demos/resizable/textarea.html create mode 100644 apps/it/static/js/ui/demos/resizable/visual-feedback.html create mode 100644 apps/it/static/js/ui/demos/selectable/default.html create mode 100644 apps/it/static/js/ui/demos/selectable/display-grid.html create mode 100644 apps/it/static/js/ui/demos/selectable/index.html create mode 100644 apps/it/static/js/ui/demos/selectable/serialize.html create mode 100644 apps/it/static/js/ui/demos/show/default.html create mode 100644 apps/it/static/js/ui/demos/show/index.html create mode 100644 apps/it/static/js/ui/demos/slider/colorpicker.html create mode 100644 apps/it/static/js/ui/demos/slider/default.html create mode 100644 apps/it/static/js/ui/demos/slider/hotelrooms.html create mode 100644 apps/it/static/js/ui/demos/slider/index.html create mode 100644 apps/it/static/js/ui/demos/slider/multiple-vertical.html create mode 100644 apps/it/static/js/ui/demos/slider/range-vertical.html create mode 100644 apps/it/static/js/ui/demos/slider/range.html create mode 100644 apps/it/static/js/ui/demos/slider/rangemax.html create mode 100644 apps/it/static/js/ui/demos/slider/rangemin.html create mode 100644 apps/it/static/js/ui/demos/slider/side-scroll.html create mode 100644 apps/it/static/js/ui/demos/slider/slider-vertical.html create mode 100644 apps/it/static/js/ui/demos/slider/steps.html create mode 100644 apps/it/static/js/ui/demos/sortable/connect-lists-through-tabs.html create mode 100644 apps/it/static/js/ui/demos/sortable/connect-lists.html create mode 100644 apps/it/static/js/ui/demos/sortable/default.html create mode 100644 apps/it/static/js/ui/demos/sortable/delay-start.html create mode 100644 apps/it/static/js/ui/demos/sortable/display-grid.html create mode 100644 apps/it/static/js/ui/demos/sortable/empty-lists.html create mode 100644 apps/it/static/js/ui/demos/sortable/index.html create mode 100644 apps/it/static/js/ui/demos/sortable/items.html create mode 100644 apps/it/static/js/ui/demos/sortable/placeholder.html create mode 100644 apps/it/static/js/ui/demos/sortable/portlets.html create mode 100644 apps/it/static/js/ui/demos/spinner/currency.html create mode 100644 apps/it/static/js/ui/demos/spinner/decimal.html create mode 100644 apps/it/static/js/ui/demos/spinner/default.html create mode 100644 apps/it/static/js/ui/demos/spinner/index.html create mode 100644 apps/it/static/js/ui/demos/spinner/latlong.html create mode 100644 apps/it/static/js/ui/demos/spinner/overflow.html create mode 100644 apps/it/static/js/ui/demos/spinner/time.html create mode 100644 apps/it/static/js/ui/demos/switchClass/default.html create mode 100644 apps/it/static/js/ui/demos/switchClass/index.html create mode 100644 apps/it/static/js/ui/demos/tabs/ajax.html create mode 100644 apps/it/static/js/ui/demos/tabs/ajax/content1.html create mode 100644 apps/it/static/js/ui/demos/tabs/ajax/content2.html create mode 100644 apps/it/static/js/ui/demos/tabs/ajax/content3-slow.php create mode 100644 apps/it/static/js/ui/demos/tabs/ajax/content4-broken.php create mode 100644 apps/it/static/js/ui/demos/tabs/bottom.html create mode 100644 apps/it/static/js/ui/demos/tabs/collapsible.html create mode 100644 apps/it/static/js/ui/demos/tabs/default.html create mode 100644 apps/it/static/js/ui/demos/tabs/index.html create mode 100644 apps/it/static/js/ui/demos/tabs/manipulation.html create mode 100644 apps/it/static/js/ui/demos/tabs/mouseover.html create mode 100644 apps/it/static/js/ui/demos/tabs/sortable.html create mode 100644 apps/it/static/js/ui/demos/tabs/vertical.html create mode 100644 apps/it/static/js/ui/demos/toggle/default.html create mode 100644 apps/it/static/js/ui/demos/toggle/index.html create mode 100644 apps/it/static/js/ui/demos/toggleClass/default.html create mode 100644 apps/it/static/js/ui/demos/toggleClass/index.html create mode 100644 apps/it/static/js/ui/demos/tooltip/ajax/content1.html create mode 100644 apps/it/static/js/ui/demos/tooltip/ajax/content2.html create mode 100644 apps/it/static/js/ui/demos/tooltip/custom-animation.html create mode 100644 apps/it/static/js/ui/demos/tooltip/custom-content.html create mode 100644 apps/it/static/js/ui/demos/tooltip/custom-style.html create mode 100644 apps/it/static/js/ui/demos/tooltip/default.html create mode 100644 apps/it/static/js/ui/demos/tooltip/forms.html create mode 100644 apps/it/static/js/ui/demos/tooltip/images/st-stephens.jpg create mode 100644 apps/it/static/js/ui/demos/tooltip/images/tower-bridge.jpg create mode 100644 apps/it/static/js/ui/demos/tooltip/index.html create mode 100644 apps/it/static/js/ui/demos/tooltip/tracking.html create mode 100644 apps/it/static/js/ui/demos/tooltip/video-player.html create mode 100644 apps/it/static/js/ui/demos/widget/default.html create mode 100644 apps/it/static/js/ui/demos/widget/index.html create mode 100644 apps/it/static/js/ui/external/globalize.culture.de-DE.js create mode 100644 apps/it/static/js/ui/external/globalize.culture.ja-JP.js create mode 100644 apps/it/static/js/ui/external/globalize.js create mode 100644 apps/it/static/js/ui/external/jquery.mousewheel.js create mode 100644 apps/it/static/js/ui/external/jshint.js create mode 100644 apps/it/static/js/ui/external/qunit.css create mode 100644 apps/it/static/js/ui/external/qunit.js create mode 100644 apps/it/static/js/ui/jquery-1.10.2.js create mode 100644 apps/it/static/js/ui/package.json create mode 100644 apps/it/static/js/ui/tests/index.css create mode 100644 apps/it/static/js/ui/tests/index.html create mode 100644 apps/it/static/js/ui/tests/index.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.10.0.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.10.1.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.10.2.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.6.1.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.6.2.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.6.3.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.6.4.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.6.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.7.1.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.7.2.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.7.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.8.0.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.8.1.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.8.2.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.8.3.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.9.0.js create mode 100644 apps/it/static/js/ui/tests/jquery-1.9.1.js create mode 100644 apps/it/static/js/ui/tests/jquery-2.0.0.js create mode 100644 apps/it/static/js/ui/tests/jquery-2.0.1.js create mode 100644 apps/it/static/js/ui/tests/jquery-2.0.2.js create mode 100644 apps/it/static/js/ui/tests/jquery-2.0.3.js create mode 100644 apps/it/static/js/ui/tests/jquery.js create mode 100644 apps/it/static/js/ui/tests/jquery.simulate.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion.html create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion_common.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion_core.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion_events.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion_options.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/accordion_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/accordion/all.html create mode 100644 apps/it/static/js/ui/tests/unit/all.html create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/all.html create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/autocomplete.html create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/autocomplete_common.js create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/autocomplete_core.js create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/autocomplete_events.js create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/autocomplete_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/autocomplete_options.js create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/remote_object_array_labels.txt create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/remote_object_array_values.txt create mode 100644 apps/it/static/js/ui/tests/unit/autocomplete/remote_string_array.txt create mode 100644 apps/it/static/js/ui/tests/unit/button/all.html create mode 100644 apps/it/static/js/ui/tests/unit/button/button.html create mode 100644 apps/it/static/js/ui/tests/unit/button/button_common.js create mode 100644 apps/it/static/js/ui/tests/unit/button/button_core.js create mode 100644 apps/it/static/js/ui/tests/unit/button/button_events.js create mode 100644 apps/it/static/js/ui/tests/unit/button/button_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/button/button_options.js create mode 100644 apps/it/static/js/ui/tests/unit/core/all.html create mode 100644 apps/it/static/js/ui/tests/unit/core/core.html create mode 100644 apps/it/static/js/ui/tests/unit/core/core.js create mode 100644 apps/it/static/js/ui/tests/unit/core/selector.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/all.html create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker.html create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker_common.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker_core.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker_events.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker_options.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/datepicker_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/datepicker/images/calendar.gif create mode 100644 apps/it/static/js/ui/tests/unit/dialog/all.html create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog.html create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_common.js create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_core.js create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_deprecated.html create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_deprecated.js create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_events.js create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_options.js create mode 100644 apps/it/static/js/ui/tests/unit/dialog/dialog_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/draggable/all.html create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable.html create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable_common.js create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable_core.js create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable_events.js create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable_options.js create mode 100644 apps/it/static/js/ui/tests/unit/draggable/draggable_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/droppable/all.html create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable.html create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable_common.js create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable_core.js create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable_events.js create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable_options.js create mode 100644 apps/it/static/js/ui/tests/unit/droppable/droppable_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/effects/all.html create mode 100644 apps/it/static/js/ui/tests/unit/effects/effects.html create mode 100644 apps/it/static/js/ui/tests/unit/effects/effects_core.js create mode 100644 apps/it/static/js/ui/tests/unit/effects/effects_scale.js create mode 100644 apps/it/static/js/ui/tests/unit/images/jqueryui_32x32.png create mode 100644 apps/it/static/js/ui/tests/unit/index.html create mode 100644 apps/it/static/js/ui/tests/unit/menu/all.html create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu.html create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu_common.js create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu_core.js create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu_events.js create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu_options.js create mode 100644 apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/position/all.html create mode 100644 apps/it/static/js/ui/tests/unit/position/position.html create mode 100644 apps/it/static/js/ui/tests/unit/position/position_core.js create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/all.html create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/progressbar.html create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/progressbar_common.js create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/progressbar_core.js create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/progressbar_events.js create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/progressbar_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/progressbar/progressbar_options.js create mode 100644 apps/it/static/js/ui/tests/unit/qunit-composite.css create mode 100644 apps/it/static/js/ui/tests/unit/qunit-composite.js create mode 100644 apps/it/static/js/ui/tests/unit/resizable/all.html create mode 100644 apps/it/static/js/ui/tests/unit/resizable/images/test.jpg create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable.html create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable_common.js create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable_core.js create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable_events.js create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable_options.js create mode 100644 apps/it/static/js/ui/tests/unit/resizable/resizable_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/selectable/all.html create mode 100644 apps/it/static/js/ui/tests/unit/selectable/selectable.html create mode 100644 apps/it/static/js/ui/tests/unit/selectable/selectable_common.js create mode 100644 apps/it/static/js/ui/tests/unit/selectable/selectable_core.js create mode 100644 apps/it/static/js/ui/tests/unit/selectable/selectable_events.js create mode 100644 apps/it/static/js/ui/tests/unit/selectable/selectable_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/selectable/selectable_options.js create mode 100644 apps/it/static/js/ui/tests/unit/slider/all.html create mode 100644 apps/it/static/js/ui/tests/unit/slider/slider.html create mode 100644 apps/it/static/js/ui/tests/unit/slider/slider_common.js create mode 100644 apps/it/static/js/ui/tests/unit/slider/slider_core.js create mode 100644 apps/it/static/js/ui/tests/unit/slider/slider_events.js create mode 100644 apps/it/static/js/ui/tests/unit/slider/slider_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/slider/slider_options.js create mode 100644 apps/it/static/js/ui/tests/unit/sortable/all.html create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable.html create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable_common.js create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable_core.js create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable_events.js create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable_options.js create mode 100644 apps/it/static/js/ui/tests/unit/sortable/sortable_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/spinner/all.html create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner.html create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner_common.js create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner_core.js create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner_events.js create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner_options.js create mode 100644 apps/it/static/js/ui/tests/unit/spinner/spinner_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/subsuite.js create mode 100644 apps/it/static/js/ui/tests/unit/swarminject.js create mode 100644 apps/it/static/js/ui/tests/unit/tabs/all.html create mode 100644 apps/it/static/js/ui/tests/unit/tabs/data/test.html create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs.html create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs_common.js create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs_core.js create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs_events.js create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs_options.js create mode 100644 apps/it/static/js/ui/tests/unit/tabs/tabs_test_helpers.js create mode 100644 apps/it/static/js/ui/tests/unit/testsuite.js create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/all.html create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/tooltip.html create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/tooltip_common.js create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/tooltip_core.js create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/tooltip_events.js create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/tooltip_methods.js create mode 100644 apps/it/static/js/ui/tests/unit/tooltip/tooltip_options.js create mode 100644 apps/it/static/js/ui/tests/unit/widget/all.html create mode 100644 apps/it/static/js/ui/tests/unit/widget/widget.html create mode 100644 apps/it/static/js/ui/tests/unit/widget/widget_animation.js create mode 100644 apps/it/static/js/ui/tests/unit/widget/widget_core.js create mode 100644 apps/it/static/js/ui/tests/unit/widget/widget_extend.js create mode 100644 apps/it/static/js/ui/tests/visual/accordion/icons.html create mode 100644 apps/it/static/js/ui/tests/visual/addClass/queue.html create mode 100644 apps/it/static/js/ui/tests/visual/button/button.html create mode 100644 apps/it/static/js/ui/tests/visual/button/performance.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/accordion_tabs.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/datepicker_dialog.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/dialog_widgets.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/draggable_accordion.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/sortable_accordion_sortable_tabs.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/tabs_tabs.html create mode 100644 apps/it/static/js/ui/tests/visual/compound/tabs_tooltips.html create mode 100644 apps/it/static/js/ui/tests/visual/dialog/animated.html create mode 100644 apps/it/static/js/ui/tests/visual/dialog/complex-dialogs.html create mode 100644 apps/it/static/js/ui/tests/visual/dialog/form.html create mode 100644 apps/it/static/js/ui/tests/visual/dialog/performance.html create mode 100644 apps/it/static/js/ui/tests/visual/effects/all.html create mode 100644 apps/it/static/js/ui/tests/visual/effects/effects.css create mode 100644 apps/it/static/js/ui/tests/visual/effects/effects.js create mode 100644 apps/it/static/js/ui/tests/visual/effects/scale.html create mode 100644 apps/it/static/js/ui/tests/visual/index.html create mode 100644 apps/it/static/js/ui/tests/visual/menu/menu.html create mode 100644 apps/it/static/js/ui/tests/visual/position/position.html create mode 100644 apps/it/static/js/ui/tests/visual/position/position_feedback.html create mode 100644 apps/it/static/js/ui/tests/visual/theme.html create mode 100644 apps/it/static/js/ui/tests/visual/tooltip/animations.html create mode 100644 apps/it/static/js/ui/tests/visual/tooltip/tooltip.html create mode 100644 apps/it/static/js/ui/tests/visual/visual.css create mode 100644 apps/it/static/js/ui/themes/base/images/animated-overlay.gif create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-icons_222222_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-icons_2e83ff_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-icons_454545_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-icons_888888_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/images/ui-icons_cd0a0a_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/jquery-ui.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.accordion.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.all.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.autocomplete.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.base.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.button.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.core.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.datepicker.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.dialog.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.menu.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.progressbar.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.resizable.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.selectable.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.slider.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.spinner.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.tabs.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.theme.css create mode 100644 apps/it/static/js/ui/themes/base/jquery.ui.tooltip.css create mode 100644 apps/it/static/js/ui/themes/base/minified/images/animated-overlay.gif create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-icons_222222_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-icons_2e83ff_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-icons_454545_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-icons_888888_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/minified/images/ui-icons_cd0a0a_256x240.png create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery-ui.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.accordion.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.autocomplete.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.button.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.core.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.datepicker.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.dialog.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.menu.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.progressbar.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.resizable.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.selectable.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.slider.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.spinner.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.tabs.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.theme.min.css create mode 100644 apps/it/static/js/ui/themes/base/minified/jquery.ui.tooltip.min.css create mode 100644 apps/it/static/js/ui/ui.accordion.jquery.json create mode 100644 apps/it/static/js/ui/ui.autocomplete.jquery.json create mode 100644 apps/it/static/js/ui/ui.button.jquery.json create mode 100644 apps/it/static/js/ui/ui.core.jquery.json create mode 100644 apps/it/static/js/ui/ui.datepicker.jquery.json create mode 100644 apps/it/static/js/ui/ui.dialog.jquery.json create mode 100644 apps/it/static/js/ui/ui.draggable.jquery.json create mode 100644 apps/it/static/js/ui/ui.droppable.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-blind.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-bounce.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-clip.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-drop.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-explode.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-fade.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-fold.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-highlight.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-pulsate.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-scale.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-shake.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-slide.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect-transfer.jquery.json create mode 100644 apps/it/static/js/ui/ui.effect.jquery.json create mode 100644 apps/it/static/js/ui/ui.menu.jquery.json create mode 100644 apps/it/static/js/ui/ui.mouse.jquery.json create mode 100644 apps/it/static/js/ui/ui.position.jquery.json create mode 100644 apps/it/static/js/ui/ui.progressbar.jquery.json create mode 100644 apps/it/static/js/ui/ui.resizable.jquery.json create mode 100644 apps/it/static/js/ui/ui.selectable.jquery.json create mode 100644 apps/it/static/js/ui/ui.slider.jquery.json create mode 100644 apps/it/static/js/ui/ui.sortable.jquery.json create mode 100644 apps/it/static/js/ui/ui.spinner.jquery.json create mode 100644 apps/it/static/js/ui/ui.tabs.jquery.json create mode 100644 apps/it/static/js/ui/ui.tooltip.jquery.json create mode 100644 apps/it/static/js/ui/ui.widget.jquery.json create mode 100644 apps/it/static/js/ui/ui/.jshintrc create mode 100644 apps/it/static/js/ui/ui/i18n/jquery-ui-i18n.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-af.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ar-DZ.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ar.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-az.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-be.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-bg.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-bs.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ca.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-cs.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-cy-GB.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-da.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-de.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-el.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-en-AU.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-en-GB.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-en-NZ.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-eo.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-es.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-et.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-eu.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-fa.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-fi.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-fo.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-fr-CA.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-fr-CH.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-fr.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-gl.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-he.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-hi.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-hr.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-hu.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-hy.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-id.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-is.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-it.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ja.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ka.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-kk.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-km.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ko.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ky.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-lb.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-lt.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-lv.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-mk.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ml.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ms.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-nb.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-nl-BE.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-nl.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-nn.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-no.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-pl.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-pt-BR.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-pt.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-rm.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ro.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ru.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-sk.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-sl.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-sq.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-sr-SR.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-sr.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-sv.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-ta.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-th.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-tj.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-tr.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-uk.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-vi.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-zh-CN.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-zh-HK.js create mode 100644 apps/it/static/js/ui/ui/i18n/jquery.ui.datepicker-zh-TW.js create mode 100644 apps/it/static/js/ui/ui/jquery-ui.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.accordion.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.autocomplete.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.button.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.core.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.datepicker.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.dialog.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.draggable.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.droppable.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-blind.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-bounce.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-clip.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-drop.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-explode.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-fade.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-fold.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-highlight.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-pulsate.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-scale.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-shake.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-slide.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect-transfer.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.effect.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.menu.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.mouse.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.position.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.progressbar.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.resizable.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.selectable.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.slider.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.sortable.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.spinner.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.tabs.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.tooltip.js create mode 100644 apps/it/static/js/ui/ui/jquery.ui.widget.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery-ui-i18n.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-af.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ar-DZ.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ar.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-az.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-be.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-bg.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-bs.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ca.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-cs.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-cy-GB.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-da.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-de.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-el.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-en-AU.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-en-GB.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-en-NZ.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-eo.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-es.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-et.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-eu.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-fa.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-fi.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-fo.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-fr-CA.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-fr-CH.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-fr.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-gl.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-he.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-hi.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-hr.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-hu.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-hy.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-id.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-is.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-it.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ja.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ka.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-kk.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-km.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ko.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ky.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-lb.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-lt.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-lv.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-mk.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ml.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ms.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-nb.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-nl-BE.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-nl.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-nn.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-no.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-pl.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-pt-BR.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-pt.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-rm.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ro.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ru.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-sk.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-sl.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-sq.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-sr-SR.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-sr.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-sv.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-ta.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-th.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-tj.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-tr.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-uk.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-vi.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-zh-CN.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-zh-HK.min.js create mode 100644 apps/it/static/js/ui/ui/minified/i18n/jquery.ui.datepicker-zh-TW.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery-ui.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.accordion.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.autocomplete.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.button.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.core.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.datepicker.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.dialog.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.draggable.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.droppable.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-blind.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-bounce.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-clip.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-drop.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-explode.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-fade.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-fold.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-highlight.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-pulsate.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-scale.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-shake.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-slide.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect-transfer.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.effect.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.menu.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.mouse.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.position.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.progressbar.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.resizable.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.selectable.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.slider.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.sortable.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.spinner.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.tabs.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.tooltip.min.js create mode 100644 apps/it/static/js/ui/ui/minified/jquery.ui.widget.min.js create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.22.41_PM.png create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.49.45_PM.png create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.51.08_PM.png create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.51.16_PM.png create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.51.31_PM.png create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.53.22_PM.png create mode 100644 uploads/attachments/Screen_Shot_2012-12-10_at_5.55.25_PM.png create mode 100644 uploads/attachments/arrow-down-512_2.png diff --git a/apps/it/forms.py b/apps/it/forms.py new file mode 100644 index 0000000..15d1bf1 --- /dev/null +++ b/apps/it/forms.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- + +from django import forms +from django.forms.extras.widgets import SelectDateWidget + +from apps.it.models import (Issue, Task, Attachment, + User, Asset, TaggedItem) + +class SmallTextarea(forms.Textarea): + def __init__(self, *args, **kwargs): + super(SmallTextarea, self).__init__(attrs={'rows': 5}) + +class AssetForm(forms.ModelForm): + class Meta: + model = Asset + +class SimpleAssetForm(forms.ModelForm): + class Meta: + model = Asset + fields = ['name', 'description', 'kind'] + +class AttachmentForm(forms.ModelForm): + class Meta: + model = Attachment + +class IssueForm(forms.ModelForm): + class Meta: + model = Issue + +class SimpleIssueForm(forms.ModelForm): + class Meta: + model = Issue + fields = ['title', 'description'] + widgets = {'description': SmallTextarea} + +class TaskForm(forms.ModelForm): + class Meta: + model = Task + widgets = { + 'description': SmallTextarea, + 'due_date': SelectDateWidget + } + +class SimpleTaskForm(forms.ModelForm): + class Meta: + model = Task + fields = ['description'] + widgets = { + 'description': SmallTextarea, + } diff --git a/apps/it/migrations/0011_auto__add_field_issue_title.py b/apps/it/migrations/0011_auto__add_field_issue_title.py new file mode 100644 index 0000000..effef98 --- /dev/null +++ b/apps/it/migrations/0011_auto__add_field_issue_title.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- +from south.utils import datetime_utils as datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + # Adding field 'Issue.title' + db.add_column(u'it_issue', 'title', + self.gf('django.db.models.fields.CharField')(default=u'New Issue', max_length=256), + keep_default=False) + + + def backwards(self, orm): + # Deleting field 'Issue.title' + db.delete_column(u'it_issue', 'title') + + + models = { + u'auth.group': { + 'Meta': {'object_name': 'Group'}, + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) + }, + u'auth.permission': { + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) + }, + u'auth.user': { + 'Meta': {'object_name': 'User'}, + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}), + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) + }, + u'contenttypes.contenttype': { + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) + }, + u'it.article': { + 'Meta': {'object_name': 'Article'}, + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'note': ('django.db.models.fields.TextField', [], {}), + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), + 'title': ('django.db.models.fields.CharField', [], {'default': "'New Article'", 'max_length': '256'}) + }, + u'it.asset': { + 'Meta': {'object_name': 'Asset'}, + 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}), + 'description': ('django.db.models.fields.TextField', [], {}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'ip_address': ('django.db.models.fields.IPAddressField', [], {'default': "''", 'max_length': '15'}), + 'issues': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['it.Issue']", 'null': 'True', 'symmetrical': 'False'}), + 'kind': ('django.db.models.fields.CharField', [], {'default': "'SERVER'", 'max_length': '128'}), + 'location': ('django.db.models.fields.CharField', [], {'max_length': '256'}), + 'name': ('django.db.models.fields.CharField', [], {'default': "'New Asset'", 'max_length': '256'}) + }, + u'it.attachment': { + 'Meta': {'object_name': 'Attachment'}, + 'attachment': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}), + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}) + }, + u'it.issue': { + 'Meta': {'ordering': "['-priority', 'created_at']", 'object_name': 'Issue'}, + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + 'description': ('django.db.models.fields.TextField', [], {}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'priority': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), + 'state': ('django.db.models.fields.CharField', [], {'default': "'NEW'", 'max_length': '32'}), + 'title': ('django.db.models.fields.CharField', [], {'default': "u'New Issue'", 'max_length': '256'}), + 'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), + 'users': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'metoo'", 'null': 'True', 'to': u"orm['auth.User']"}) + }, + u'it.taggeditem': { + 'Meta': {'unique_together': "(('content_type', 'object_id', 'tag'),)", 'object_name': 'TaggedItem'}, + 'color': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), + 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '128'}) + }, + u'it.task': { + 'Meta': {'ordering': "['-created_at']", 'object_name': 'Task'}, + 'assigned_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'tasks'", 'null': 'True', 'to': u"orm['auth.User']"}), + 'completed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + 'description': ('django.db.models.fields.TextField', [], {}), + 'due_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'issue': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['it.Issue']", 'null': 'True'}), + 'step': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), + 'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) + } + } + + complete_apps = ['it'] \ No newline at end of file diff --git a/apps/it/migrations/0012_auto__add_field_issue_assigned_to.py b/apps/it/migrations/0012_auto__add_field_issue_assigned_to.py new file mode 100644 index 0000000..eb664e6 --- /dev/null +++ b/apps/it/migrations/0012_auto__add_field_issue_assigned_to.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +from south.utils import datetime_utils as datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + # Adding field 'Issue.assigned_to' + db.add_column(u'it_issue', 'assigned_to', + self.gf('django.db.models.fields.related.ForeignKey')(related_name='issues', null=True, to=orm['auth.User']), + keep_default=False) + + + def backwards(self, orm): + # Deleting field 'Issue.assigned_to' + db.delete_column(u'it_issue', 'assigned_to_id') + + + models = { + u'auth.group': { + 'Meta': {'object_name': 'Group'}, + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) + }, + u'auth.permission': { + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) + }, + u'auth.user': { + 'Meta': {'object_name': 'User'}, + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}), + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) + }, + u'contenttypes.contenttype': { + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) + }, + u'it.article': { + 'Meta': {'object_name': 'Article'}, + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'note': ('django.db.models.fields.TextField', [], {}), + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), + 'title': ('django.db.models.fields.CharField', [], {'default': "u'New Article'", 'max_length': '256'}) + }, + u'it.asset': { + 'Meta': {'object_name': 'Asset'}, + 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}), + 'description': ('django.db.models.fields.TextField', [], {}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'ip_address': ('django.db.models.fields.IPAddressField', [], {'default': "''", 'max_length': '15'}), + 'issues': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['it.Issue']", 'null': 'True', 'symmetrical': 'False'}), + 'kind': ('django.db.models.fields.CharField', [], {'default': "'SERVER'", 'max_length': '128'}), + 'location': ('django.db.models.fields.CharField', [], {'max_length': '256'}), + 'name': ('django.db.models.fields.CharField', [], {'default': "'New Asset'", 'max_length': '256'}) + }, + u'it.attachment': { + 'Meta': {'object_name': 'Attachment'}, + 'attachment': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}), + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}) + }, + u'it.issue': { + 'Meta': {'ordering': "['-priority', 'created_at']", 'object_name': 'Issue'}, + 'assigned_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'issues'", 'null': 'True', 'to': u"orm['auth.User']"}), + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + 'description': ('django.db.models.fields.TextField', [], {}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'priority': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), + 'state': ('django.db.models.fields.CharField', [], {'default': "'NEW'", 'max_length': '32'}), + 'title': ('django.db.models.fields.CharField', [], {'default': "u'New Issue'", 'max_length': '256'}), + 'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), + 'users': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'metoo'", 'null': 'True', 'to': u"orm['auth.User']"}) + }, + u'it.taggeditem': { + 'Meta': {'unique_together': "(('content_type', 'object_id', 'tag'),)", 'object_name': 'TaggedItem'}, + 'color': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), + 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '128'}) + }, + u'it.task': { + 'Meta': {'ordering': "['-created_at']", 'object_name': 'Task'}, + 'assigned_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'tasks'", 'null': 'True', 'to': u"orm['auth.User']"}), + 'completed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), + 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), + 'description': ('django.db.models.fields.TextField', [], {}), + 'due_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'issue': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['it.Issue']", 'null': 'True'}), + 'step': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), + 'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) + } + } + + complete_apps = ['it'] \ No newline at end of file diff --git a/apps/it/models.py b/apps/it/models.py index 0ebc5d0..536518b 100644 --- a/apps/it/models.py +++ b/apps/it/models.py @@ -39,19 +39,22 @@ class Attachment(AbstractGenericItem): def __unicode__(self): import os - return os.path.basename(self.attachment.name) + path = os.path.basename(self.attachment.name) + return u'%s ...' % path[0:35] class Article(AbstractGenericItem): note = models.TextField() tags = generic.GenericRelation(TaggedItem) - title = models.CharField(max_length=256, default='New Article') + title = models.CharField(max_length=256, default=_('New Article')) class Issue(models.Model): + title = models.CharField(max_length=256, default=_('New Issue')) description = models.TextField() priority = models.PositiveIntegerField(default=0) + assigned_to = models.ForeignKey(User, null=True, related_name='issues') users = models.ManyToManyField( User, null=True, @@ -73,6 +76,9 @@ class Issue(models.Model): def __unicode__(self): return self.description + def get_content_type(self): + return ContentType.objects.get_for_model(self) + def get_absolute_url(self): return '/issues/%d/' % self.pk @@ -89,7 +95,7 @@ class Task(models.Model): blank=True, related_name='tasks') created_at = models.DateTimeField(auto_now_add=True) - due_date = models.DateField(null=True, blank=True, editable=False) + due_date = models.DateField(null=True, blank=True) updated_at = models.DateTimeField(auto_now=True) completed_at = models.DateTimeField(null=True, blank=True, editable=False) files = generic.GenericRelation(Attachment) @@ -113,7 +119,6 @@ class Asset(models.Model): ('NETWORK', _('Networking')), ('SOFTWARE', _('Software')), ('PRINTER', _('Printer')), - ('SERVICE', _('Service')), ) kind = models.CharField(choices=KINDS, max_length=128, default=KINDS[0][0]) tags = generic.GenericRelation(TaggedItem) diff --git a/apps/it/static/images/bubble-128.png b/apps/it/static/images/bubble-128.png new file mode 100755 index 0000000..016f26e Binary files /dev/null and b/apps/it/static/images/bubble-128.png differ diff --git a/apps/it/static/images/user-128.png b/apps/it/static/images/user-128.png new file mode 100755 index 0000000..e06407d Binary files /dev/null and b/apps/it/static/images/user-128.png differ diff --git a/apps/it/static/js/ui/AUTHORS.txt b/apps/it/static/js/ui/AUTHORS.txt new file mode 100644 index 0000000..b1b977f --- /dev/null +++ b/apps/it/static/js/ui/AUTHORS.txt @@ -0,0 +1,260 @@ +Authors ordered by first contribution +A list of current team members is available at http://jqueryui.com/about + +Paul Bakaus +Richard Worth +Yehuda Katz +Sean Catchpole +John Resig +Tane Piper +Dmitri Gaskin +Klaus Hartl +Stefan Petre +Gilles van den Hoven +Micheil Bryan Smith +Jörn Zaefferer +Marc Grabanski +Keith Wood +Brandon Aaron +Scott González +Eduardo Lundgren +Aaron Eisenberger +Joan Piedra +Bruno Basto +Remy Sharp +Bohdan Ganicky +David Bolter +Chi Cheng +Ca-Phun Ung +Ariel Flesler +Maggie Wachs +Scott Jehl +Todd Parker +Andrew Powell +Brant Burnett +Douglas Neiner +Paul Irish +Ralph Whitbeck +Thibault Duplessis +Dominique Vincent +Jack Hsu +Adam Sontag +Carl Fürstenberg +Kevin Dalman +Alberto Fernández Capel +Jacek Jędrzejewski (http://jacek.jedrzejewski.name) +Ting Kuei +Samuel Cormier-Iijima +Jon Palmer +Ben Hollis +Justin MacCarthy +Eyal Kobrigo +Tiago Freire +Diego Tres +Holger Rüprich +Ziling Zhao +Mike Alsup +Robson Braga Araujo +Pierre-Henri Ausseil +Christopher McCulloh +Andrew Newcomb +Lim Chee Aun +Jorge Barreiro +Daniel Steigerwald +John Firebaugh +John Enters +Andrey Kapitcyn +Dmitry Petrov +Eric Hynds +Chairat Sunthornwiphat +Josh Varner +Stéphane Raimbault +Jay Merrifield +J. Ryan Stinnett +Peter Heiberg +Alex Dovenmuehle +Jamie Gegerson +Raymond Schwartz +Phillip Barnes +Kyle Wilkinson +Khaled AlHourani +Marian Rudzynski +Jean-Francois Remy +Doug Blood +Filippo Cavallarin +Heiko Henning +Aliaksandr Rahalevich +Mario Visic +Xavi Ramirez +Max Schnur +Saji Nediyanchath +Corey Frang +Aaron Peterson +Ivan Peters +Mohamed Cherif Bouchelaghem +Marcos Sousa +Michael DellaNoce +George Marshall +Tobias Brunner +Martin Solli +David Petersen +Dan Heberden +William Kevin Manire +Gilmore Davidson +Michael Wu +Adam Parod +Guillaume Gautreau +Marcel Toele +Dan Streetman +Matt Hoskins +Giovanni Giacobbi +Kyle Florence +Pavol Hluchý +Hans Hillen +Mark Johnson +Trey Hunner +Shane Whittet +Edward A Faulkner +Adam Baratz +Kato Kazuyoshi +Eike Send +Kris Borchers +Eddie Monge +Israel Tsadok +Carson McDonald +Jason Davies +Garrison Locke +David Murdoch +Benjamin Scott Boyle +Jesse Baird +Jonathan Vingiano +Dylan Just +Hiroshi Tomita +Glenn Goodrich +Tarafder Ashek-E-Elahi +Ryan Neufeld +Marc Neuwirth +Philip Graham +Benjamin Sterling +Wesley Walser +Kouhei Sutou +Karl Kirch +Chris Kelly +Jay Oster +Alexander Polomoshnov +David Leal +Igor Milla +Dave Methvin +Florian Gutmann +Marwan Al Jubeh +Milan Broum +Sebastian Sauer +Gaëtan Muller +William Griffiths +Stojce Slavkovski +David Soms +David De Sloovere +Michael P. Jung +Shannon Pekary +Matthew Edward Hutton +James Khoury +Rob Loach +Alberto Monteiro +Alex Rhea +Krzysztof Rosiński +Ryan Olton +Genie <386@mail.com> +Rick Waldron +Ian Simpson +Lev Kitsis +TJ VanToll +Justin Domnitz +Douglas Cerna +Bert ter Heide +Jasvir Nagra +Petr Hromadko +Harri Kilpiö +Lado Lomidze +Amir E. Aharoni +Simon Sattes +Jo Liss +Guntupalli Karunakar +Shahyar Ghobadpour +Lukasz Lipinski +Timo Tijhof +Jason Moon +Martin Frost +Eneko Illarramendi +EungJun Yi +Courtland Allen +Viktar Varvanovich +Danny Trunk +Pavel Stetina +Michael Stay +Steven Roussey +Michael Hollis +Lee Rowlands +Timmy Willison +Karl Swedberg +Baoju Yuan +Maciej Mroziński +Luis Dalmolin +Mark Aaron Shirley +Martin Hoch +Jiayi Yang +Philipp Benjamin Köppchen +Sindre Sorhus +Bernhard Sirlinger +Jared A. Scheel +Rafael Xavier de Souza +John Chen +Dale Kocian +Mike Sherov +Andrew Couch +Marc-Andre Lafortune +Nate Eagle +David Souther +Mathias Stenbom +Sergey Kartashov +Avinash R +Ethan Romba +Cory Gackenheimer +Juan Pablo Kaniefsky +Roman Salnikov +Anika Henke +Samuel Bovée +Fabrício Matté +Viktor Kojouharov +Pawel Maruszczyk (http://hrabstwo.net) +Pavel Selitskas +Bjørn Johansen +Matthieu Penant +Dominic Barnes +David Sullivan +Thomas Jaggi +Vahid Sohrabloo +Travis Carden +Bruno M. Custódio +Nathanael Silverman +Christian Wenz +Steve Urmston +Zaven Muradyan +Woody Gilk +Zbigniew Motyka +Suhail Alkowaileet +Toshi MARUYAMA +Christian Klammer +Steven Luscher +Gan Eng Chin +Vilhjálmur Skúlason +Siebrand Mazeland +Mohsen Ekhtiari +Jasper de Groot +Jyoti Deka +Andrei Picus +Ondrej Novy +Jacob McCutcheon +Monika Piotrowicz +Imants Horsts +Eric Dahl +Thomas Meyer diff --git a/apps/it/static/js/ui/Gruntfile.js b/apps/it/static/js/ui/Gruntfile.js new file mode 100644 index 0000000..4106110 --- /dev/null +++ b/apps/it/static/js/ui/Gruntfile.js @@ -0,0 +1,357 @@ +module.exports = function( grunt ) { + +"use strict"; + +var + // files + coreFiles = [ + "jquery.ui.core.js", + "jquery.ui.widget.js", + "jquery.ui.mouse.js", + "jquery.ui.draggable.js", + "jquery.ui.droppable.js", + "jquery.ui.resizable.js", + "jquery.ui.selectable.js", + "jquery.ui.sortable.js", + "jquery.ui.effect.js" + ], + + uiFiles = coreFiles.map(function( file ) { + return "ui/" + file; + }).concat( expandFiles( "ui/*.js" ).filter(function( file ) { + return coreFiles.indexOf( file.substring(3) ) === -1; + })), + + allI18nFiles = expandFiles( "ui/i18n/*.js" ), + + cssFiles = [ + "core", + "accordion", + "autocomplete", + "button", + "datepicker", + "dialog", + "menu", + "progressbar", + "resizable", + "selectable", + "slider", + "spinner", + "tabs", + "tooltip", + "theme" + ].map(function( component ) { + return "themes/base/jquery.ui." + component + ".css"; + }), + + // minified files + minify = { + options: { + preserveComments: false + }, + main: { + options: { + banner: createBanner( uiFiles ) + }, + files: { + "dist/jquery-ui.min.js": "dist/jquery-ui.js" + } + }, + i18n: { + options: { + banner: createBanner( allI18nFiles ) + }, + files: { + "dist/i18n/jquery-ui-i18n.min.js": "dist/i18n/jquery-ui-i18n.js" + } + } + }, + + minifyCSS = { + options: { + keepSpecialComments: 0 + }, + main: { + options: { + keepSpecialComments: "*" + }, + src: "dist/jquery-ui.css", + dest: "dist/jquery-ui.min.css" + } + }, + + compareFiles = { + all: [ + "dist/jquery-ui.js", + "dist/jquery-ui.min.js" + ] + }; + +function mapMinFile( file ) { + return "dist/" + file.replace( /\.js$/, ".min.js" ).replace( /ui\//, "minified/" ); +} + +function expandFiles( files ) { + return grunt.util._.pluck( grunt.file.expandMapping( files ), "src" ).map(function( values ) { + return values[ 0 ]; + }); +} + +uiFiles.concat( allI18nFiles ).forEach(function( file ) { + minify[ file ] = { + options: { + banner: createBanner() + }, + files: {} + }; + minify[ file ].files[ mapMinFile( file ) ] = file; +}); + +cssFiles.forEach(function( file ) { + minifyCSS[ file ] = { + options: { + banner: createBanner() + }, + src: file, + dest: "dist/" + file.replace( /\.css$/, ".min.css" ).replace( /themes\/base\//, "themes/base/minified/" ) + }; +}); + +uiFiles.forEach(function( file ) { + // TODO this doesn't do anything until https://github.com/rwldrn/grunt-compare-size/issues/13 + compareFiles[ file ] = [ file, mapMinFile( file ) ]; +}); + +// grunt plugins +grunt.loadNpmTasks( "grunt-contrib-jshint" ); +grunt.loadNpmTasks( "grunt-contrib-uglify" ); +grunt.loadNpmTasks( "grunt-contrib-concat" ); +grunt.loadNpmTasks( "grunt-contrib-qunit" ); +grunt.loadNpmTasks( "grunt-contrib-csslint" ); +grunt.loadNpmTasks( "grunt-contrib-cssmin" ); +grunt.loadNpmTasks( "grunt-html" ); +grunt.loadNpmTasks( "grunt-compare-size" ); +grunt.loadNpmTasks( "grunt-git-authors" ); +// local testswarm and build tasks +grunt.loadTasks( "build/tasks" ); + +function stripDirectory( file ) { + return file.replace( /.+\/(.+?)>?$/, "$1" ); +} + +function createBanner( files ) { + // strip folders + var fileNames = files && files.map( stripDirectory ); + return "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " + + "<%= grunt.template.today('isoDate') %>\n" + + "<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" + + (files ? "* Includes: " + fileNames.join(", ") + "\n" : "")+ + "* Copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" + + " Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */\n"; +} + +grunt.initConfig({ + pkg: grunt.file.readJSON("package.json"), + files: { + dist: "<%= pkg.name %>-<%= pkg.version %>", + cdn: "<%= pkg.name %>-<%= pkg.version %>-cdn", + themes: "<%= pkg.name %>-themes-<%= pkg.version %>" + }, + compare_size: compareFiles, + concat: { + ui: { + options: { + banner: createBanner( uiFiles ), + stripBanners: { + block: true + } + }, + src: uiFiles, + dest: "dist/jquery-ui.js" + }, + i18n: { + options: { + banner: createBanner( allI18nFiles ) + }, + src: allI18nFiles, + dest: "dist/i18n/jquery-ui-i18n.js" + }, + css: { + options: { + banner: createBanner( cssFiles ), + stripBanners: { + block: true + } + }, + src: cssFiles, + dest: "dist/jquery-ui.css" + } + }, + uglify: minify, + cssmin: minifyCSS, + htmllint: { + // ignore files that contain invalid html, used only for ajax content testing + all: grunt.file.expand( [ "demos/**/*.html", "tests/**/*.html" ] ).filter(function( file ) { + return !/(?:ajax\/content\d\.html|tabs\/data\/test\.html|tests\/unit\/core\/core\.html)/.test( file ); + }) + }, + copy: { + dist: { + src: [ + "AUTHORS.txt", + "jquery-*.js", + "MIT-LICENSE.txt", + "README.md", + "Gruntfile.js", + "package.json", + "*.jquery.json", + "ui/**/*", + "ui/.jshintrc", + "demos/**/*", + "themes/**/*", + "external/**/*", + "tests/**/*" + ], + renames: { + "dist/jquery-ui.js": "ui/jquery-ui.js", + "dist/jquery-ui.min.js": "ui/minified/jquery-ui.min.js", + "dist/i18n/jquery-ui-i18n.js": "ui/i18n/jquery-ui-i18n.js", + "dist/i18n/jquery-ui-i18n.min.js": "ui/minified/i18n/jquery-ui-i18n.min.js", + "dist/jquery-ui.css": "themes/base/jquery-ui.css", + "dist/jquery-ui.min.css": "themes/base/minified/jquery-ui.min.css" + }, + dest: "dist/<%= files.dist %>" + }, + dist_min: { + src: "dist/minified/**/*", + strip: /^dist/, + dest: "dist/<%= files.dist %>/ui" + }, + dist_css_min: { + src: "dist/themes/base/minified/*.css", + strip: /^dist/, + dest: "dist/<%= files.dist %>" + }, + dist_units_images: { + src: "themes/base/images/*", + strip: /^themes\/base\//, + dest: "dist/" + }, + dist_min_images: { + src: "themes/base/images/*", + strip: /^themes\/base\//, + dest: "dist/<%= files.dist %>/themes/base/minified" + }, + cdn: { + src: [ + "AUTHORS.txt", + "MIT-LICENSE.txt", + "ui/*.js", + "package.json" + ], + renames: { + "dist/jquery-ui.js": "jquery-ui.js", + "dist/jquery-ui.min.js": "jquery-ui.min.js", + "dist/i18n/jquery-ui-i18n.js": "i18n/jquery-ui-i18n.js", + "dist/i18n/jquery-ui-i18n.min.js": "i18n/jquery-ui-i18n.min.js" + }, + dest: "dist/<%= files.cdn %>" + }, + cdn_i18n: { + src: "ui/i18n/jquery.ui.datepicker-*.js", + strip: "ui/", + dest: "dist/<%= files.cdn %>" + }, + cdn_i18n_min: { + src: "dist/minified/i18n/jquery.ui.datepicker-*.js", + strip: "dist/minified", + dest: "dist/<%= files.cdn %>" + }, + cdn_min: { + src: "dist/minified/*.js", + strip: /^dist\/minified/, + dest: "dist/<%= files.cdn %>/ui" + }, + cdn_themes: { + src: "dist/<%= files.themes %>/themes/**/*", + strip: "dist/<%= files.themes %>", + dest: "dist/<%= files.cdn %>" + }, + themes: { + src: [ + "AUTHORS.txt", + "MIT-LICENSE.txt", + "package.json" + ], + dest: "dist/<%= files.themes %>" + } + }, + zip: { + dist: { + src: "<%= files.dist %>", + dest: "<%= files.dist %>.zip" + }, + cdn: { + src: "<%= files.cdn %>", + dest: "<%= files.cdn %>.zip" + }, + themes: { + src: "<%= files.themes %>", + dest: "<%= files.themes %>.zip" + } + }, + md5: { + dist: { + src: "dist/<%= files.dist %>", + dest: "dist/<%= files.dist %>/MANIFEST" + }, + cdn: { + src: "dist/<%= files.cdn %>", + dest: "dist/<%= files.cdn %>/MANIFEST" + }, + themes: { + src: "dist/<%= files.themes %>", + dest: "dist/<%= files.themes %>/MANIFEST" + } + }, + qunit: { + files: expandFiles( "tests/unit/**/*.html" ).filter(function( file ) { + // disabling everything that doesn't (quite) work with PhantomJS for now + // TODO except for all|index|test, try to include more as we go + return !( /(all|index|test|dialog|dialog_deprecated|tooltip)\.html$/ ).test( file ); + }) + }, + jshint: { + options: { + jshintrc: true + }, + all: [ + "ui/*.js", + "Gruntfile.js", + "build/**/*.js", + "tests/unit/**/*.js" + ] + }, + csslint: { + base_theme: { + src: "themes/base/*.css", + options: { + csslintrc: ".csslintrc" + } + } + } +}); + +grunt.registerTask( "default", [ "lint", "test" ] ); +grunt.registerTask( "lint", [ "asciilint", "jshint", "csslint", "htmllint" ] ); +grunt.registerTask( "test", [ "qunit" ] ); +grunt.registerTask( "sizer", [ "concat:ui", "uglify:main", "compare_size:all" ] ); +grunt.registerTask( "sizer_all", [ "concat:ui", "uglify", "compare_size" ] ); + +// "copy:dist_units_images" is used by unit tests +grunt.registerTask( "build", [ "concat", "uglify", "cssmin", "copy:dist_units_images" ] ); +grunt.registerTask( "release", "clean build copy:dist copy:dist_min copy:dist_min_images copy:dist_css_min md5:dist zip:dist".split( " " ) ); +grunt.registerTask( "release_themes", "release generate_themes copy:themes md5:themes zip:themes".split( " " ) ); +grunt.registerTask( "release_cdn", "release_themes copy:cdn copy:cdn_min copy:cdn_i18n copy:cdn_i18n_min copy:cdn_themes md5:cdn zip:cdn".split( " " ) ); + +}; diff --git a/apps/it/static/js/ui/MANIFEST b/apps/it/static/js/ui/MANIFEST new file mode 100644 index 0000000..17eb052 --- /dev/null +++ b/apps/it/static/js/ui/MANIFEST @@ -0,0 +1,739 @@ +AUTHORS.txt 75c63565413df3aec9164b7015ab1dcc +Gruntfile.js 6e2eb53c57811ff9e80f486d8220eedc +MIT-LICENSE.txt 7b6c8585922792679d6ad964efaf20cf +README.md 5ee91a843278883045b930240a27e370 +demos/accordion/collapsible.html ece67a43685330ff0fde0ece00e19a04 +demos/accordion/custom-icons.html 7f9da385aed81bbd2bef15db124675ac +demos/accordion/default.html fffc4cb846361daab5cea3fed91a3eca +demos/accordion/fillspace.html 836f7c2cdc3237f2ee797f64c529e659 +demos/accordion/hoverintent.html f0e68b0181c543721a6b7be5fc948398 +demos/accordion/index.html 7ba8142840cf4ac7d848309cd3853ad1 +demos/accordion/no-auto-height.html a72176b92498f0639a438b04312ee88a +demos/accordion/sortable.html a3787c97fb18238da2956a161d6597f5 +demos/addClass/default.html 59b41d7ad7601908e27a31de0d48ec3a +demos/addClass/index.html 1ecebffae58a5a73527c4376635669f2 +demos/animate/default.html 09da88819088c45c6667d9c42b4e25f4 +demos/animate/index.html 1ecebffae58a5a73527c4376635669f2 +demos/autocomplete/categories.html 07651491d9ca53677ff53f4f91f2b731 +demos/autocomplete/combobox.html 5f42d0c5ff005b6d1decd69c41244c9b +demos/autocomplete/custom-data.html 60fa47ec0ea3b6a9d7799c9067ad84b4 +demos/autocomplete/default.html 8750a56f68d26e0aceb38a631c99e7ce +demos/autocomplete/folding.html 05723823bfc207364063e3b51e6270f6 +demos/autocomplete/images/jquery_32x32.png 63b85354622b940ba1252cb946a1dfe1 +demos/autocomplete/images/jqueryui_32x32.png b5907552b610ac23f514760d3e30db78 +demos/autocomplete/images/sizzlejs_32x32.png 290e264d5641f5e22cf7eb4477e9d5c8 +demos/autocomplete/images/transparent_1x1.png 5612a775b711def5af3b0ace26436983 +demos/autocomplete/images/ui-anim_basic_16x16.gif 0ea023ac2a49a96c925c7751119aa343 +demos/autocomplete/index.html 5a4790606b9ee69afc05abed0efd87aa +demos/autocomplete/london.xml 71b873703620337cee79d7bd7d637b23 +demos/autocomplete/maxheight.html 0c508209e01f8aaa7f88b4f999d18ac2 +demos/autocomplete/multiple-remote.html 83984fae87a76d6fbf15a40520e31264 +demos/autocomplete/multiple.html 1979790279ebf9fc137b64d386676dd4 +demos/autocomplete/remote-jsonp.html 63104d4b1314347030d6532c32a779f8 +demos/autocomplete/remote-with-cache.html d70bd6819caa1a3cab0b6c54454772b5 +demos/autocomplete/remote.html d6da7c901c8eb6ea21e07664f71c3e1d +demos/autocomplete/search.php e50d30ac4ff4d87fa0b76863ab2cd131 +demos/autocomplete/xml.html dfec9bd345b2ef604079dbf18d83bd62 +demos/button/checkbox.html a32bf2dc87bd2024deab78c45d4dc971 +demos/button/default.html 108ef8e53f81f9b20af3571f6894dae3 +demos/button/icons.html be4b6edfc9357b95695baac361a8ecf6 +demos/button/index.html e1d150eeb2b171caed125974510bfe74 +demos/button/radio.html cad9d66a26043da71802552fa1e34894 +demos/button/splitbutton.html c5b773a84155a092ec510179fde27098 +demos/button/toolbar.html fa01feb7dbf0342518dd5a4ae05521ea +demos/datepicker/alt-field.html c3715619f405661462d5ab3a6d02005d +demos/datepicker/animation.html cc240b5387ebf62a478763f262e1b46e +demos/datepicker/buttonbar.html 5cdd52da5b0da3c4325d77b855cf784d +demos/datepicker/date-formats.html 692cf697a5cbc390e830899717cf9e19 +demos/datepicker/date-range.html cd14df143133674881316a8269109025 +demos/datepicker/default.html b8774877a5008959bb0e60e79a8282ee +demos/datepicker/dropdown-month-year.html fac9a2a2cfddd230fc99641595e60178 +demos/datepicker/icon-trigger.html e936ab2919b6f3c2236bde7e0e6c1855 +demos/datepicker/images/calendar.gif ecae0392680875218dde6eec7ba713ae +demos/datepicker/index.html 31141303fd50342ce57a275f51f1799b +demos/datepicker/inline.html 4861fee3f5169f248277a04f7b6362c0 +demos/datepicker/jquery.ui.datepicker-ar.js 942eaa8e2a371c9858a75e3f58ac27c0 +demos/datepicker/jquery.ui.datepicker-fr.js c73cd5077b12ddc8eb4d7f8b78b6500a +demos/datepicker/jquery.ui.datepicker-he.js a791d8f0ac08b0d2876bcd21e029d39a +demos/datepicker/jquery.ui.datepicker-zh-TW.js 443e52a6fae355caecbd60e63b5c72d3 +demos/datepicker/localization.html 7d9fdbcc65559404e83b3c0dd834e244 +demos/datepicker/min-max.html 08d7a08662960c02e103c252aecf2781 +demos/datepicker/multiple-calendars.html 5930cb5190a1d51c0791689c77ba887f +demos/datepicker/other-months.html afdebfa45c4851be36567ade789403bd +demos/datepicker/show-week.html 37479a99b08d5538cbc27629e861c2cb +demos/demos.css c7fc917de57fba6b610ad6191fc1a28a +demos/dialog/animated.html bcfd6374a14f3e610146c0d64f2b21be +demos/dialog/default.html 23ffd9b4cccef5d1ef3c41a6624ecad0 +demos/dialog/index.html 204169799ab0d5b7ec5fd0bb7515c3b0 +demos/dialog/modal-confirmation.html 4ebd2050a38b190e25ae3267abf62852 +demos/dialog/modal-form.html 3460524adfdd9e79e6e35b276b3e5c9d +demos/dialog/modal-message.html ee53580a26976caa05347c0a06f9b8be +demos/dialog/modal.html 0c76cfca0ba0c8d7e66515abf1fc0344 +demos/draggable/constrain-movement.html 30dc43c4ae0e29ce70a6d4b3a571fa21 +demos/draggable/cursor-style.html 0d721f5551a935933ce2edb9060927b1 +demos/draggable/default.html 09078e95929f85eaf73941a9cf0a079b +demos/draggable/delay-start.html 7dbe86363981d6172e70da67463a210b +demos/draggable/events.html a7966e53354ca5ba9867fbac78cc4f23 +demos/draggable/handle.html 517a55b725ffa18734fdb781ef4ff233 +demos/draggable/index.html 76f8ebe28a28f6fe060ea5ca437fc6cb +demos/draggable/revert.html 46f4919c8711457edd98fb30489da4da +demos/draggable/scroll.html 268f235cfc90857d3b6db94ee490db1d +demos/draggable/snap-to.html cdfca5a00e55e4c921e87e047fea0505 +demos/draggable/sortable.html e5594451ee0cab69c8b3dc2724c174f9 +demos/draggable/visual-feedback.html ccf711c48ee411e60dbf07e8e7354ed4 +demos/droppable/accepted-elements.html cae46d853a9d9988e569d0214493c8b6 +demos/droppable/default.html 1eb7b12a64fa6938698ba8f42fa6e9ac +demos/droppable/images/high_tatras.jpg 969449984d601e92df0e0521fe0adcda +demos/droppable/images/high_tatras2.jpg 05ab2eefd3ce77a097fe968ecfa79db6 +demos/droppable/images/high_tatras2_min.jpg c81066bcfa835d52a4d9c0daa5a2448e +demos/droppable/images/high_tatras3.jpg 75829fca8936aeb8ac8934cfc6d96d47 +demos/droppable/images/high_tatras3_min.jpg 2211533e3e3e7a0e5b9cd4a1b000da25 +demos/droppable/images/high_tatras4.jpg 2f9736c9afa012359026ba5c4b382e30 +demos/droppable/images/high_tatras4_min.jpg c2e09f1983e9ffb318c773892735a81f +demos/droppable/images/high_tatras_min.jpg 5ce7c7cf7fb648d44350ff612d07caa2 +demos/droppable/index.html f236a2f25273c8e86d85eea26d2c2641 +demos/droppable/photo-manager.html 32cf03703ce95cad05d584524574a054 +demos/droppable/propagation.html 8535b819a22aae9a6cfc226249d11f6e +demos/droppable/revert.html 66e85b14a18df1b1a4e241290f706756 +demos/droppable/shopping-cart.html 02b4f1f974352aa1ea25b29b8faa4ca7 +demos/droppable/visual-feedback.html 3aa9ab33bd571f32527bdf27810ab86e +demos/effect/default.html 1ac1c52912b36963bb8e2fba4110c5fc +demos/effect/easing.html 9ed1da610e34ea2e857ada3cf26fdac5 +demos/effect/index.html 7670272a705926230cfcb3d53c37f69e +demos/hide/default.html 0c51e1dbe72da0ad02e7b4b289fe7711 +demos/hide/index.html 1ecebffae58a5a73527c4376635669f2 +demos/images/calendar.gif ecae0392680875218dde6eec7ba713ae +demos/images/demo-config-on-tile.gif 53a1e40835829322d93d32d3772e7e37 +demos/images/demo-config-on.gif bbbfaec5d74cbf00d14d7e37c6a729d8 +demos/images/demo-spindown-closed.gif 3df09cf39f5ac14679a6b1e76e104059 +demos/images/demo-spindown-open.gif 205c7b92a32e9a07dee036d4b07fb7ff +demos/images/icon-docs-info.gif bef5580a53a2ba7465a2a385022f670a +demos/images/pbar-ani.gif 6958801266c8f025fe28a928ba6cd992 +demos/index.html ea28419d5769b2115f79bfd4243bc83e +demos/menu/default.html dbd73c208528eb8a6aee25cf2354b2c1 +demos/menu/icons.html aa6c68c713221ca340faeb6cb911c43d +demos/menu/index.html aba072191ea6e4f6a64da313995a6e94 +demos/position/cycler.html 96c2850cdad56080989db5625f404550 +demos/position/default.html 7408c8b7ea7dae9c4714bd7f5a0f805d +demos/position/images/earth.jpg 3b925e0b109f9d4d383c76eccf495b53 +demos/position/images/flight.jpg fdcad09a5015ecdfe0355a8cfb345dd5 +demos/position/images/rocket.jpg 775634773fa6564afd8257e8180c43e0 +demos/position/index.html e76ea712f8894fd122cbd53c7a97fa8f +demos/progressbar/default.html e8892e5ca10c8332567995805bdc2553 +demos/progressbar/images/pbar-ani.gif 6958801266c8f025fe28a928ba6cd992 +demos/progressbar/indeterminate.html ae5cd30762d9723bfc4a25efa2499cc5 +demos/progressbar/index.html 4b63914f473c93a3e11ae8235eeb6ba1 +demos/progressbar/label.html 3898a735bda6a82a50c1caca0cd6ec98 +demos/removeClass/default.html 19c98953c08fe69fe592b1b4b2fe855c +demos/removeClass/index.html 1ecebffae58a5a73527c4376635669f2 +demos/resizable/animate.html ec8a1f64fa977a68fb5186a4b314b6c0 +demos/resizable/aspect-ratio.html e2347a58ced7dcd1125c2479dca9c505 +demos/resizable/constrain-area.html f7861f7b74b1a98d5d91ef75e0cf9b46 +demos/resizable/default.html 54feb3cc1cd5c9082a6bc8ffc2c00367 +demos/resizable/delay-start.html 78d330f5c33c3c790c9861b1688d7332 +demos/resizable/helper.html 69fa5cbf6883d17d2ac5145ff826fce2 +demos/resizable/index.html 4e91089b11d4dc09aa0e70ceb5320a4b +demos/resizable/max-min.html 18336a9e855dca95e3f6199715036bc9 +demos/resizable/snap-to-grid.html b646d385d6f1790969c1fcc155af13f0 +demos/resizable/synchronous-resize.html 08f840d56fc23825ed2957073d858df6 +demos/resizable/textarea.html ad9fdae6ba424af8293842ed91d3602b +demos/resizable/visual-feedback.html 667273380d149051f0f48ae54495af8d +demos/selectable/default.html 5f9f700e2c3830789e84cdcff3ebe4a2 +demos/selectable/display-grid.html 37fd931d3a7063108a3b87d4b723ea16 +demos/selectable/index.html daf7df35e4ed02fb093e92a1a95e63af +demos/selectable/serialize.html 1d8d7762ca2441a8032b8cfdcb84f73e +demos/show/default.html 954259615c3e0d246453f576e07b4fcd +demos/show/index.html 1ecebffae58a5a73527c4376635669f2 +demos/slider/colorpicker.html 338a0ea7a5326b2218c9f4de08329e65 +demos/slider/default.html 05648defae619b54147bceb0f5dafbe2 +demos/slider/hotelrooms.html 0de94cc08bb9519eaf6eada5ec1b580a +demos/slider/index.html 91c70e693a9748b67102ae54e3251773 +demos/slider/multiple-vertical.html 3a2621fb9d885455e51a7fa9c1f03588 +demos/slider/range-vertical.html f9f071f085023ecc460ffd3a6b723939 +demos/slider/range.html 150d81dd9765fa3a697809e0ccea5175 +demos/slider/rangemax.html b668b47dc2dc7dd4f093c8f72300baa7 +demos/slider/rangemin.html fe589ffc4fb560e10e4a4e40422a7f19 +demos/slider/side-scroll.html ce67cc9ce84eb8a30f6d5f1934b0be00 +demos/slider/slider-vertical.html bd4538a3053d789b35bd31cdb7f87f4a +demos/slider/steps.html 81e34a76d38975c1bcbe1107f27f3836 +demos/sortable/connect-lists-through-tabs.html dde7187c2f776f91b043126d4eee5d10 +demos/sortable/connect-lists.html 3c6e7c22b7ec072c102334ea546e9047 +demos/sortable/default.html c1333aa89ae2f6b1bba9462669a6d958 +demos/sortable/delay-start.html e759fdaaf5e64dd6a425529b92e968d3 +demos/sortable/display-grid.html 97a6a5b559da38c2cd6b290b6034daba +demos/sortable/empty-lists.html e3cbc697028e358e3c6fb10de1a39bfa +demos/sortable/index.html a68a64aecfd8ade1134982578d8a4855 +demos/sortable/items.html 5323615b6befc417bc7e774f4f69c0bf +demos/sortable/placeholder.html 6080935475cb53214d8e871fed00e933 +demos/sortable/portlets.html 528d78a005427f773aed8887838fe717 +demos/spinner/currency.html b279d9c9aa1bc6ff51b8cbffaa4f18ba +demos/spinner/decimal.html 884a644f3f964088f4ff5fd8fb0d298c +demos/spinner/default.html 353b6180314b47446856abafd7e8c0f7 +demos/spinner/index.html 44a4e022747a656aa42e615847452235 +demos/spinner/latlong.html 12fe6df2423338b763b8f3790af652ca +demos/spinner/overflow.html 2cfa5aaefb7c748bc9d9dfc925e2a693 +demos/spinner/time.html 7719adbbdc212d340709fd913338c202 +demos/switchClass/default.html 4a73a793c7cb96df65f6dc01770d9566 +demos/switchClass/index.html 1ecebffae58a5a73527c4376635669f2 +demos/tabs/ajax.html b93aa0c5876e66f434da065e71bc1432 +demos/tabs/ajax/content1.html a057a52c505c537a9db040a84d25e640 +demos/tabs/ajax/content2.html 1289bb96e74c38ed0f6c68507a41aec6 +demos/tabs/ajax/content3-slow.php 1184ec5ad3b1bf81eb5f19cb6a233daa +demos/tabs/ajax/content4-broken.php feb9562749e8ae1d0408c257ca44b6e5 +demos/tabs/bottom.html 5dfce8ea55b81114b148d1bde0f1d944 +demos/tabs/collapsible.html 419e26243a93f4985c6602129a2ff686 +demos/tabs/default.html 4e47de333a22a0121932df1ad9df066c +demos/tabs/index.html 0c5de49104cbcaa52b4541c4e3ec1069 +demos/tabs/manipulation.html 0cd91ad2e3785307b9ce9e36280da509 +demos/tabs/mouseover.html 44811e70116b3abfc153299c8b213e08 +demos/tabs/sortable.html a1baa5b45544a001bf70e1a873a4abf9 +demos/tabs/vertical.html 6ccfbbe2088a233b4fd0f9c3fee0e9fc +demos/toggle/default.html 8a1eb7c585211cf065376404be510e32 +demos/toggle/index.html 1ecebffae58a5a73527c4376635669f2 +demos/toggleClass/default.html d8fc1930dfc34b538426696be9888d1f +demos/toggleClass/index.html 1ecebffae58a5a73527c4376635669f2 +demos/tooltip/ajax/content1.html 12a3151f0923a1b6289e8ab1a348eee2 +demos/tooltip/ajax/content2.html afd4c4907b88dfa728d7d0773f348d31 +demos/tooltip/custom-animation.html ac14406635e98446fc23158ef9c09831 +demos/tooltip/custom-content.html 4c4a0f2e1c7d498e5a4ba9c7db911e92 +demos/tooltip/custom-style.html d4463fbd54bdac4e26bdd47a8fd9df9a +demos/tooltip/default.html a42b76d98525b053361ae9de63d7a82f +demos/tooltip/forms.html c206fb4baf8efce40f5f25418570a4e9 +demos/tooltip/images/st-stephens.jpg 753aec4fa1c8c80bec3732ebf454a632 +demos/tooltip/images/tower-bridge.jpg 66d36bf9a4ea5baf6a717e5b0ca06c40 +demos/tooltip/index.html cdf3b5b7616d24ef087adcc7f05700da +demos/tooltip/tracking.html 49a31038a0aa9453f537e31d1da84edb +demos/tooltip/video-player.html 3205e00b4414b4ad773e3960f0a72f11 +demos/widget/default.html 71f0024a04a4cd1b44c1a8b2ca7c0e9f +demos/widget/index.html dbd594416083998b2ba3462b64b96aae +external/globalize.culture.de-DE.js 7ca47099bde44c5c647b9ee859d38418 +external/globalize.culture.ja-JP.js 0f4692b553b5ae2d9d5c6698e91664cc +external/globalize.js 5b05228a40a25dbf6ce9f9a7a6babfc3 +external/jquery.mousewheel.js 99457f3dc7082452b9fdc702b3dfcbaf +external/jshint.js e25340f0196f65135f50877c0fe6efe2 +external/qunit.css 37687050b4af752017145c24bfd9c2f4 +external/qunit.js c88d05352e715c460e26f5db688c1d13 +jquery-1.10.2.js 91515770ce8c55de23b306444d8ea998 +package.json a599d946dcac9ff95d631f1fe50014fd +tests/index.css 1975db2466c0425aa5bde34b58490513 +tests/index.html 0da06f714617c036a4cc44eb03229292 +tests/index.js 5cb5a4eb5eefc483727fa6383b83e3b6 +tests/jquery-1.10.0.js 7afc740382f2bf4147d8f63850a9c2b9 +tests/jquery-1.10.1.js bd42b401ab68f9eb54eee47a873b5769 +tests/jquery-1.10.2.js 91515770ce8c55de23b306444d8ea998 +tests/jquery-1.6.1.js 4b65ea7175ec8007f79bf245cf909e05 +tests/jquery-1.6.2.js fc1ebe9026579ec6d37993f1eaceb54a +tests/jquery-1.6.3.js 5761f94379fe831aba5129cbb4b8a257 +tests/jquery-1.6.4.js e3cfaf7a2c029866cb5fc35c883907fb +tests/jquery-1.6.js 4d9bd9c1be819924dfec925a678077d2 +tests/jquery-1.7.1.js 6f477fa74c5027c9ec6945f9235bdf35 +tests/jquery-1.7.2.js 85d6bc8bb1725066ad866e17086dcdd3 +tests/jquery-1.7.js ba1e8d241eb0be1a07a031377aebdcef +tests/jquery-1.8.0.js 15ea967efbc17ae4f37d9db743e712b5 +tests/jquery-1.8.1.js 3fb547ed8dc2b18ab3ea88e4b8868f19 +tests/jquery-1.8.2.js ef68beaa375acd83206bbc0cf92970e9 +tests/jquery-1.8.3.js 2073df88a429ccbe5dca5e2c40e742b4 +tests/jquery-1.9.0.js f3346149a7173e70d39e6f36bfb178a4 +tests/jquery-1.9.1.js 08c235d357750c657ac1db7d1cf656a9 +tests/jquery-2.0.0.js e51be64870f23f7ba920206ed3efeab9 +tests/jquery-2.0.1.js 7a9d7fc063109369956dc6e80bca7a61 +tests/jquery-2.0.2.js fb7f045585513b12c3694e83496c5a5d +tests/jquery-2.0.3.js b29c22eae459aa715cdd8fa340bb6e29 +tests/jquery.js 34f78440ca5ca8fe21f9a304747afac8 +tests/jquery.simulate.js 77a796da2b4544b1afc97a196e4ebcd4 +tests/unit/accordion/accordion.html 56973698b4d67cd4f87976b99a995360 +tests/unit/accordion/accordion_common.js 432f694f4c2ad29d0079753f42cbdb9b +tests/unit/accordion/accordion_core.js cb4184cbaafa07e4c87060e1fefff654 +tests/unit/accordion/accordion_events.js 51a5304f2fc4a2a246622bc4a0f51629 +tests/unit/accordion/accordion_methods.js 2bfaf4aa95d70747be78b4f278985695 +tests/unit/accordion/accordion_options.js 021f0d27d1f9df9c857588cad812af15 +tests/unit/accordion/accordion_test_helpers.js 54546f504f3af43033fd824135e28e90 +tests/unit/accordion/all.html e7048cd36cfe67b6b65a21f807c84108 +tests/unit/all.html 023776360e6e094e1993a622e4257cc8 +tests/unit/autocomplete/all.html 765483907c676d8f7e6032ef32cc706c +tests/unit/autocomplete/autocomplete.html a762f9475956916171ef08532ea8ba55 +tests/unit/autocomplete/autocomplete_common.js 41eb983cb553bac7f9304a516dda2344 +tests/unit/autocomplete/autocomplete_core.js 18257128cbfddb2818565de678b8a118 +tests/unit/autocomplete/autocomplete_events.js 95eb26e267489afe3ab75a295cb392e2 +tests/unit/autocomplete/autocomplete_methods.js ebae0a966b238bd89e4673307a2f77e3 +tests/unit/autocomplete/autocomplete_options.js 3f74887b8fdd18088930c0b0e83393f4 +tests/unit/autocomplete/remote_object_array_labels.txt 47e4bc9f1926d7b98eb7e11991ab0961 +tests/unit/autocomplete/remote_object_array_values.txt 5db4d5ca44a403a6d15c38076208c019 +tests/unit/autocomplete/remote_string_array.txt 5a68e737a3ded6571ad5c79cad5c853f +tests/unit/button/all.html 39aed18fbfad13dc1dc1104604ba7f42 +tests/unit/button/button.html 2443618d7c575d4c65a96049023fdbe9 +tests/unit/button/button_common.js 57e70e1e0a4f6e9c62ba01622745d652 +tests/unit/button/button_core.js dd012d22c46ffc9bd2b90b777310cd5c +tests/unit/button/button_events.js 34072c28effa6e5627222d5760b05526 +tests/unit/button/button_methods.js 7d5c50a43f98408b4d3b0b6620f8b6b9 +tests/unit/button/button_options.js 66991dd555d3f2c7989b718affed8cad +tests/unit/core/all.html c3014f822d57b8900918b4121bada36a +tests/unit/core/core.html 5773ad09c485b2a85aace0d3841710df +tests/unit/core/core.js 1cf6ecf681baa6b28ecdd95b3bbfa4da +tests/unit/core/selector.js b039256d06c4209f1ba2a1d0b92e6795 +tests/unit/datepicker/all.html c6df6dbec4eb79779ca41bcc24b73ecd +tests/unit/datepicker/datepicker.html fc505c5cbebfb540b7460f70226368ba +tests/unit/datepicker/datepicker_common.js da2e216e7486a17640c152ccae9bce4e +tests/unit/datepicker/datepicker_core.js faa62df45b408e5075b4af5beef46097 +tests/unit/datepicker/datepicker_events.js 15fcde79f8dd3070476e6b0c703b0de2 +tests/unit/datepicker/datepicker_methods.js 9339ed34c35a517c42b0422b35173098 +tests/unit/datepicker/datepicker_options.js e4a46b58acfcdb7e02d0f7464b5d9ade +tests/unit/datepicker/datepicker_test_helpers.js 3cf4e39059f3aba71be9498616d17aee +tests/unit/datepicker/images/calendar.gif ecae0392680875218dde6eec7ba713ae +tests/unit/dialog/all.html 80120373fcd04809727831fe5ed974a3 +tests/unit/dialog/dialog.html e6ee9ab73e2526ee014bc032dc5aea16 +tests/unit/dialog/dialog_common.js 8095d571d9ce39c1ba9b9ca3196565b7 +tests/unit/dialog/dialog_core.js d83106c08d90eb74e73479f20b08a5be +tests/unit/dialog/dialog_deprecated.html a5132ea51e4d36c53248dba5135440fa +tests/unit/dialog/dialog_deprecated.js 92024860fdbf8f559aaec50f33679f8a +tests/unit/dialog/dialog_events.js a6ea96edb013d921cfc017dd3b466984 +tests/unit/dialog/dialog_methods.js 81f51afcb211427b189ec674f15bfa25 +tests/unit/dialog/dialog_options.js 48537004ea6e461e6a2a4f698d983411 +tests/unit/dialog/dialog_test_helpers.js 6bde838d6ed5e88e1c27e8de15b9fa4a +tests/unit/draggable/all.html b76a1c63f8888a59019d17f58b397935 +tests/unit/draggable/draggable.html bc70338c67f0a7ebd53650ab419e112a +tests/unit/draggable/draggable_common.js def6c57bad222afec2d1168e1d9c04d7 +tests/unit/draggable/draggable_core.js 10ac5adcb1bdc47769a5e67212ae0e49 +tests/unit/draggable/draggable_events.js eb0d6dabeff78e72f20d32b14c23d996 +tests/unit/draggable/draggable_methods.js 3821ed8f83fcc13f08b66dee2bd245ef +tests/unit/draggable/draggable_options.js 52dfda6b6d27be0e4c15996dbb26d85c +tests/unit/draggable/draggable_test_helpers.js ab8bfd37e82f479b7220320ae2464432 +tests/unit/droppable/all.html a96ef931310d65827d60ea26f03d6e3e +tests/unit/droppable/droppable.html d3bbc631b02e58516663272a366a191a +tests/unit/droppable/droppable_common.js 91882be881a84fea7b1e0ec45a8b2ca2 +tests/unit/droppable/droppable_core.js de2a35afb3e459985b0d0dedb9b093ad +tests/unit/droppable/droppable_events.js eb29bb8950a648460586765019ca84c4 +tests/unit/droppable/droppable_methods.js 0a6ee3b24d729eeb20964a83724af439 +tests/unit/droppable/droppable_options.js e1271ee5a56bba24fa98cf52babc7dee +tests/unit/droppable/droppable_test_helpers.js b1ba5248d747e336434f3876da111981 +tests/unit/effects/all.html d341e4111d05311f5f8d937116613dd5 +tests/unit/effects/effects.html e71d6f046ecfd20dc0342522656df4c7 +tests/unit/effects/effects_core.js e3cda7655c9aa7eb3d5a514b8de6654c +tests/unit/effects/effects_scale.js 81271ea4c56fb82f9336fe87058404f2 +tests/unit/images/jqueryui_32x32.png b5907552b610ac23f514760d3e30db78 +tests/unit/index.html 3509381a4187c5582cb4e9f808e96184 +tests/unit/menu/all.html 86b3a814933330f594bff97e32cfca99 +tests/unit/menu/menu.html 46fdf57c4b8ccceea2351a696e53585c +tests/unit/menu/menu_common.js 14ff1786dc6fd7b4bb36165748996fad +tests/unit/menu/menu_core.js ba00a13e09b5f52f8e2d5823de5c5d03 +tests/unit/menu/menu_events.js 94d8ea754e762537fa1eea5c6efe7ad0 +tests/unit/menu/menu_methods.js f33681c05c4097c9a4987d3b164d5d5b +tests/unit/menu/menu_options.js ae44169875b329158d90b4d23a91f4d4 +tests/unit/menu/menu_test_helpers.js 137f4cf6c1b2879f3e94066800de2669 +tests/unit/position/all.html 3719d60cda94cdf4b922f02a97a2f7e9 +tests/unit/position/position.html df8fe227ff37d50f1f965b32f4b870fb +tests/unit/position/position_core.js a29906451e739f8b028397ad7c1ab52e +tests/unit/progressbar/all.html a1cc60fd42bf675392e9f7fb21570117 +tests/unit/progressbar/progressbar.html fee63970c42b3ad1f5cb032ae2255020 +tests/unit/progressbar/progressbar_common.js a23adf8bd501eb49aeeffbd24160e036 +tests/unit/progressbar/progressbar_core.js 56e676fb918d441003f81702a5469c94 +tests/unit/progressbar/progressbar_events.js 1fc602b409157c3cc5786c3c19843702 +tests/unit/progressbar/progressbar_methods.js 41605c770a137a33535095110edc1d46 +tests/unit/progressbar/progressbar_options.js f8edf4492fadef665d99b5b4f220ce6a +tests/unit/qunit-composite.css bf9a7cb34b4e8c0379e565e6d3ec487f +tests/unit/qunit-composite.js 2bafe0b898f476e0b51b119ea54939b2 +tests/unit/resizable/all.html c58b8943b1b9ad0e94308f221f73b456 +tests/unit/resizable/images/test.jpg b8c459677bc8915cda93bf9efe86d72c +tests/unit/resizable/resizable.html a684be8dfcb79bf2230c44f27e96a355 +tests/unit/resizable/resizable_common.js a5f05d5392c3ba34a4e8d5bc2b8c927e +tests/unit/resizable/resizable_core.js 29cab0a78a94955314a73cece82cb73e +tests/unit/resizable/resizable_events.js 73042679a9c635f87a56bc43b4fd70fc +tests/unit/resizable/resizable_methods.js f71dbbbb8c72ea6ac6a3a41df2e64c30 +tests/unit/resizable/resizable_options.js ae0e48231905b565e98c0cc6e1022a38 +tests/unit/resizable/resizable_test_helpers.js a200da89ae7a74e1aca3e89b2975e529 +tests/unit/selectable/all.html dea8e9466bd3ad70e413612f5d1d8057 +tests/unit/selectable/selectable.html 30cda03229830e5fcd12a6092eadf916 +tests/unit/selectable/selectable_common.js bcf3baf9883e6a9f9d70b4af19cbcfaa +tests/unit/selectable/selectable_core.js ae8129f4b08d9fc637223e6c1fe43125 +tests/unit/selectable/selectable_events.js a86acfa0c3397e313b24bda2859ca44b +tests/unit/selectable/selectable_methods.js 96d128be3a52d04e60f6e1e82a319a75 +tests/unit/selectable/selectable_options.js 60452417be0ea4bf73e9a350b440cb43 +tests/unit/slider/all.html c4acfc4860d307bf4cbeedec409b2725 +tests/unit/slider/slider.html 8aa77586769cea5bf0c9fa3c9ad140b4 +tests/unit/slider/slider_common.js 8643772a233ae367e11dd9af0da6bb9e +tests/unit/slider/slider_core.js 002f47ef5ddd7298a2d688ecc9ba26a2 +tests/unit/slider/slider_events.js fc54264afbdbb2587f97971d2327fd15 +tests/unit/slider/slider_methods.js 6aeb39b1d6b49e8c742739397043f60a +tests/unit/slider/slider_options.js 414cf83ded0543404d8f63d50f25ba40 +tests/unit/sortable/all.html 5990cee8afdc4f8a2fb4acad77842cf7 +tests/unit/sortable/sortable.html 0946e8fff2d57824fd0e51569441e822 +tests/unit/sortable/sortable_common.js 07629ea5d09768cd576c8a6bc3052ee5 +tests/unit/sortable/sortable_core.js 13094091aa0e6e1cb69fed5aae89ed73 +tests/unit/sortable/sortable_events.js 23fb859505697fbcbaa6256517980b3b +tests/unit/sortable/sortable_methods.js fb44be61d747a5de33b7d722d4635625 +tests/unit/sortable/sortable_options.js 3aac89e279e4f2b2c34a2a8389b9b0e5 +tests/unit/sortable/sortable_test_helpers.js b0dda6cfb320d1f37fd5b0e46ea306c0 +tests/unit/spinner/all.html d8bcdabaadae05afb33a1e070b8eeebb +tests/unit/spinner/spinner.html 0c281720fc0bc501527a8f2bb060e5e3 +tests/unit/spinner/spinner_common.js e0084a518f2e54c222d14247cbe6436b +tests/unit/spinner/spinner_core.js ec97922ca3bd5c4e4a81489b6e2f451f +tests/unit/spinner/spinner_events.js 975dde87c8ecf8548630ce3f2d6d2300 +tests/unit/spinner/spinner_methods.js 3753c26a2f6bf1dfcdec1774e1ce00d6 +tests/unit/spinner/spinner_options.js 03f527bba5cfa16ca49bc102eaae3e23 +tests/unit/spinner/spinner_test_helpers.js 2f9d7a1a54bbebaed1b3982fcbc77878 +tests/unit/subsuite.js 87d73bdf4b23f0d80b303b878993271b +tests/unit/swarminject.js edd2bc76548cce6675263e6cd43145e8 +tests/unit/tabs/all.html 36c3b255db10bdd8be40d9817b6eaa87 +tests/unit/tabs/data/test.html 94382cbd6df9df6b2d8dbebb59740dd3 +tests/unit/tabs/tabs.html 54ef396a25ff7695bb6904f83674e19a +tests/unit/tabs/tabs_common.js 907cb2cd2b9a4acad75dbbf7f7a3d865 +tests/unit/tabs/tabs_core.js 19f32b66c465dabd264869287d4935da +tests/unit/tabs/tabs_events.js 67802c3855ad9dced2ac32bf7d663d29 +tests/unit/tabs/tabs_methods.js 4c0e4a27edad8ae65b5d6f302e9cdf0a +tests/unit/tabs/tabs_options.js c47cb447d292a312c886f17e77a5cc07 +tests/unit/tabs/tabs_test_helpers.js 3fa3b964947f3bfb767a0d5809b52100 +tests/unit/testsuite.js 9fceeee258eae72e27cc8a001ded5131 +tests/unit/tooltip/all.html 977ecf8b330d8a565dbc493b1079d0be +tests/unit/tooltip/tooltip.html b8c2f7eaf5a19bde14bf0ff5c032c6ad +tests/unit/tooltip/tooltip_common.js 905ecb3445955642ff8ff8bd6f9b84c9 +tests/unit/tooltip/tooltip_core.js 8999ce3f66047c39a436e8d2c7776ea8 +tests/unit/tooltip/tooltip_events.js 7f6992ca8273f9145b9d94b60461c592 +tests/unit/tooltip/tooltip_methods.js aed9d6fc6acbe0aeb9ecf10c0729a6de +tests/unit/tooltip/tooltip_options.js caaba4e2825877ce574038ed20d710c5 +tests/unit/widget/all.html 5240e76cc399d4627d33b966d09a60df +tests/unit/widget/widget.html b56a5deb1de2d1cdced819870149a7d4 +tests/unit/widget/widget_animation.js 38a8438ccb896155f00739bb0a5cc24d +tests/unit/widget/widget_core.js f829ba5ceef8b6b121162b92313e75cc +tests/unit/widget/widget_extend.js b0ca0e5aa6c74b6d0332808f8fb390c2 +tests/visual/accordion/icons.html aad4267b7ea8589dbedb1aa0717f5986 +tests/visual/addClass/queue.html 9dbeb4c524bd7e4a05e722687cc7f779 +tests/visual/button/button.html b487da405092bd377d24189cad4f4929 +tests/visual/button/performance.html c6f9a52e415dd628fb8527d95d864b9d +tests/visual/compound/accordion_tabs.html d5dc59fe27ea007becf4ead1dede68df +tests/visual/compound/datepicker_dialog.html 2b7d5c30f6ee3aac2f158bb9e3800ec5 +tests/visual/compound/dialog_widgets.html 25dfaf19420d8cb61f5920537f3f60ad +tests/visual/compound/draggable_accordion.html 76f564a225463207d7fa1ae89a6449b1 +tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html 53665163e8f161c57580e3aa64a7ae1b +tests/visual/compound/sortable_accordion_sortable_tabs.html d1a2c0be7d4d5492b063d41f593f6df4 +tests/visual/compound/tabs_tabs.html 581326d29c33af7a8a8ea9a99f203c4a +tests/visual/compound/tabs_tooltips.html 2e18bed77760840636af6d82416e3ea6 +tests/visual/dialog/animated.html 94245979fbfbddb881b9c30d9bbb2a88 +tests/visual/dialog/complex-dialogs.html e2c4fa334c8919c6d6b46eaafa40f152 +tests/visual/dialog/form.html 97353896dde786f9eb57218b4c935406 +tests/visual/dialog/performance.html 270ac0f6ed07a5065cdc7fca9938249c +tests/visual/effects/all.html 45842a311e5926a20f68c2adb70fe88b +tests/visual/effects/effects.css e9f39ec2b841172f489d672ce57e6c3f +tests/visual/effects/effects.js cf826d29cefa363e5974fad875637927 +tests/visual/effects/scale.html 7b8e0b1ce9079688b0936a3da1737616 +tests/visual/index.html 8dfb570d31ba60602bbe6d4bc9b92b9e +tests/visual/menu/menu.html fe9a2a4da985fa5cd0006858ecfce21e +tests/visual/position/position.html d2b090fd6f099a444d9c5f56661ebae9 +tests/visual/position/position_feedback.html 1b9524fd6691e0e898fbf71640cebaf3 +tests/visual/theme.html cc4fef2cb8793e21729783a10a46743d +tests/visual/tooltip/animations.html 63d5fb019f2b86c881d85299320dfc2e +tests/visual/tooltip/tooltip.html a0b5910523406cc67451035349922504 +tests/visual/visual.css da740540ef7976839bc9611338de0181 +themes/base/images/animated-overlay.gif 7b1d52ef7bdaa05f5948dc3a1f75d1e3 +themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png 4b5c132cf83d2d3e48e5a559739709ee +themes/base/images/ui-bg_flat_75_ffffff_40x100.png 1bbf3e17a3d20b23c665b78994c93f0a +themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png 472c9a50dc526afcfeaf739ff67816cd +themes/base/images/ui-bg_glass_65_ffffff_1x400.png 6fed187efb9afef2679ff9a46dd6bef7 +themes/base/images/ui-bg_glass_75_dadada_1x400.png 49c75ede4c8c0a97752cc2bd34c36e3f +themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png a4b7af89c12cc2b0c24a6b06c6ee4c46 +themes/base/images/ui-bg_glass_95_fef1ec_1x400.png 0fdd53e72a8bded481b24b70797b8373 +themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png e2a1926fe6fcb1f025c300fb36b76a6f +themes/base/images/ui-icons_222222_256x240.png cac9343b455ba1077614c1bb583cbe18 +themes/base/images/ui-icons_2e83ff_256x240.png 559b15504e19e757f34ac93c35893408 +themes/base/images/ui-icons_454545_256x240.png 619efe8651a5e9c49aed92368fa9dff3 +themes/base/images/ui-icons_888888_256x240.png 993a8340d509467ebd9dfcb49ed5daa0 +themes/base/images/ui-icons_cd0a0a_256x240.png e76f396c14ecad218b72a59abe670a9c +themes/base/jquery-ui.css 1b2b740765b356d8399e1bc37518d7cb +themes/base/jquery.ui.accordion.css fb17952e23bc3e94f7d9de1414ea0da5 +themes/base/jquery.ui.all.css 74c15eb220ccd82b8a2cac8cca2e8e72 +themes/base/jquery.ui.autocomplete.css fdde0dc0adb9ee41f2daa411930d2a3b +themes/base/jquery.ui.base.css b5d925b927913c961e2fd268d7b51c92 +themes/base/jquery.ui.button.css 963af78bad4b010cd377de80c430e0ca +themes/base/jquery.ui.core.css 7869b1a182736c093c903e547045d2b1 +themes/base/jquery.ui.datepicker.css d447bfcdaa3f6c3d8276fb70357484ea +themes/base/jquery.ui.dialog.css 1be109dd4ef62d14c16a8afef4ad39a4 +themes/base/jquery.ui.menu.css fcd5c7298c3d83ca76b1cc6f042306da +themes/base/jquery.ui.progressbar.css b176df7520877fcecd9afaee4ad672d7 +themes/base/jquery.ui.resizable.css dd09743fea55ae965b45af9e19acf412 +themes/base/jquery.ui.selectable.css 8b7b2d56f427c91ec7a70c8c293f8842 +themes/base/jquery.ui.slider.css b87d8b1c7d3082aaad890dfa1da9ab55 +themes/base/jquery.ui.spinner.css a3d008e899489b59018165a050cb7f65 +themes/base/jquery.ui.tabs.css 2e6dcfd8c52556bdbe9a809481801b89 +themes/base/jquery.ui.theme.css 77339b20e493c11d00207e307529d2e1 +themes/base/jquery.ui.tooltip.css 737f3f3cd10fd9bb41eaa0b9ce0d7cb6 +themes/base/minified/images/animated-overlay.gif 7b1d52ef7bdaa05f5948dc3a1f75d1e3 +themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png 4b5c132cf83d2d3e48e5a559739709ee +themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png 1bbf3e17a3d20b23c665b78994c93f0a +themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png 472c9a50dc526afcfeaf739ff67816cd +themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png 6fed187efb9afef2679ff9a46dd6bef7 +themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png 49c75ede4c8c0a97752cc2bd34c36e3f +themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png a4b7af89c12cc2b0c24a6b06c6ee4c46 +themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png 0fdd53e72a8bded481b24b70797b8373 +themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png e2a1926fe6fcb1f025c300fb36b76a6f +themes/base/minified/images/ui-icons_222222_256x240.png cac9343b455ba1077614c1bb583cbe18 +themes/base/minified/images/ui-icons_2e83ff_256x240.png 559b15504e19e757f34ac93c35893408 +themes/base/minified/images/ui-icons_454545_256x240.png 619efe8651a5e9c49aed92368fa9dff3 +themes/base/minified/images/ui-icons_888888_256x240.png 993a8340d509467ebd9dfcb49ed5daa0 +themes/base/minified/images/ui-icons_cd0a0a_256x240.png e76f396c14ecad218b72a59abe670a9c +themes/base/minified/jquery-ui.min.css 73cc4beff310fb53497a63b8a3bd088e +themes/base/minified/jquery.ui.accordion.min.css a35ca78df94d73fef53e098d68954ab7 +themes/base/minified/jquery.ui.autocomplete.min.css 1aa0e47add9d2e129a3bf92e92e8dd40 +themes/base/minified/jquery.ui.button.min.css d248925d72a18517a8c2c93b9bc0767e +themes/base/minified/jquery.ui.core.min.css ab0966a885d8b65d8c3fcc0538fa7048 +themes/base/minified/jquery.ui.datepicker.min.css 0025fa3ab14c123d863c3f434fe08ffa +themes/base/minified/jquery.ui.dialog.min.css 6c1838c2f294934d00aefe036a757ce2 +themes/base/minified/jquery.ui.menu.min.css f5ddaa43c67ccc8c5aadaa192912117b +themes/base/minified/jquery.ui.progressbar.min.css d246d2b795dda7af15b6e6470711cdf4 +themes/base/minified/jquery.ui.resizable.min.css fdb052e45ccdfd7b22f842f7f04c99c9 +themes/base/minified/jquery.ui.selectable.min.css e58bd2f81566e6c09aaf19f2eb0c34a1 +themes/base/minified/jquery.ui.slider.min.css cb02fdb1957c51a873d881e3dbdb5ee4 +themes/base/minified/jquery.ui.spinner.min.css 0afa4f096d0edede2be86a48707f0c0d +themes/base/minified/jquery.ui.tabs.min.css 61062d9432282362c1555744d3081c18 +themes/base/minified/jquery.ui.theme.min.css 586434d1834ac8567183d1e71e3024f1 +themes/base/minified/jquery.ui.tooltip.min.css 22670bac5e2d3bf230b83b179bc44466 +ui.accordion.jquery.json 9de1dac1ee9fb9efdad3e72aaea862c8 +ui.autocomplete.jquery.json d62e1deb4570ea061c2199a05ea1f110 +ui.button.jquery.json 93b58fd4859416f61c45656998134c6f +ui.core.jquery.json 55e15768f0c1e57659d52d2de53f0668 +ui.datepicker.jquery.json 69bde87fce6aba4be2de8a7ce98f2237 +ui.dialog.jquery.json de86e9e5b07bfe1fb7bce601f06b3191 +ui.draggable.jquery.json 1b631362c471f287f487145cdf4f7ba1 +ui.droppable.jquery.json 1361f178349cec90c359285c17e68434 +ui.effect-blind.jquery.json 3d65a9d613155f3aa693b10d6638afea +ui.effect-bounce.jquery.json 6ed394e3ab1d6cc75fdcaa7207f11aa6 +ui.effect-clip.jquery.json b716bc5ca920580c645f4711eb54cfae +ui.effect-drop.jquery.json b417d16ed9f84a1d61b1b53cca54c081 +ui.effect-explode.jquery.json 47553fe37241a77cbd8babe81c509201 +ui.effect-fade.jquery.json 28d2e11db48b709115c35e0a94b43f7b +ui.effect-fold.jquery.json a45ccdc261a172cb3b111b0917f882b5 +ui.effect-highlight.jquery.json 78ff95dbfc3b7b9592232d76d3b61b3e +ui.effect-pulsate.jquery.json 0e32c483cc72ad2eafeaa9be68c8fab2 +ui.effect-scale.jquery.json 8c8ecaeab46594bfdb78ee1276d7133f +ui.effect-shake.jquery.json 5a5f9354e453df2cf4f5b8cab4e64ac5 +ui.effect-slide.jquery.json 0793fc922dda5c5a2f8a2357f6eee6bd +ui.effect-transfer.jquery.json 57f317c639c3e86a30f605492ac0c230 +ui.effect.jquery.json bc945619dccff9fd658d25c5e983f551 +ui.menu.jquery.json 5adf3b19b51efe88307ec97ef7bd20e9 +ui.mouse.jquery.json 359244105dbc0f6e05de06bd5cdee003 +ui.position.jquery.json c0b61d7b30db82217e432be8b08d2f4a +ui.progressbar.jquery.json 64625968b23fae3cec15ca3575ccab97 +ui.resizable.jquery.json 7c8cf970724d12cddfa8aae5afdb4fc7 +ui.selectable.jquery.json 84f3ba5349f5a29bcdfd898f307c00d1 +ui.slider.jquery.json 07c830e23cf9e3e585fbe820f3cd4260 +ui.sortable.jquery.json 09de33863211b28e7198fd7d70b4c1b9 +ui.spinner.jquery.json 12e09debf41a93407bf3836c6ea335ca +ui.tabs.jquery.json 62fab5598b05e28e4022b129f1ee9c0f +ui.tooltip.jquery.json 826a4b9ba63efab81212ab3ae6c5ea70 +ui.widget.jquery.json 4408cc9caa2b28cb5027950437dd87f5 +ui/i18n/jquery-ui-i18n.js fbd96ddbabee15b13a3cb37f657e8524 +ui/i18n/jquery.ui.datepicker-af.js 3f6dc7167ebfdab2e4c06ca1f7ecbf55 +ui/i18n/jquery.ui.datepicker-ar-DZ.js 56090ba6fc5c479ae4cda7c576836820 +ui/i18n/jquery.ui.datepicker-ar.js 942eaa8e2a371c9858a75e3f58ac27c0 +ui/i18n/jquery.ui.datepicker-az.js 1aea4f0f8c0e6a30328f192aff2a1c0f +ui/i18n/jquery.ui.datepicker-be.js 47798259b2d017908e77584020a46d8c +ui/i18n/jquery.ui.datepicker-bg.js 24c64c898073fdf4e176c7a57eed2108 +ui/i18n/jquery.ui.datepicker-bs.js 02b7d071b1bd94ea1bf6b80434bf25bd +ui/i18n/jquery.ui.datepicker-ca.js 94457329c5dfa19ec34ca758ef9af96f +ui/i18n/jquery.ui.datepicker-cs.js 8b24b1eb5c72e00db3eaf1893712535d +ui/i18n/jquery.ui.datepicker-cy-GB.js fb40b70ba78ef9f4251a86355c5f65f7 +ui/i18n/jquery.ui.datepicker-da.js 4ca3479af4b128605a4b1ba0a460864b +ui/i18n/jquery.ui.datepicker-de.js 9e724b55121fe31b366ec12cdf7dd04f +ui/i18n/jquery.ui.datepicker-el.js 9e5f4ce80bfa2188a0c39bc0ef3f67bc +ui/i18n/jquery.ui.datepicker-en-AU.js 4a38655904f6c55da227cea464b55a2b +ui/i18n/jquery.ui.datepicker-en-GB.js 24a226a281a11799c495abc21f696c23 +ui/i18n/jquery.ui.datepicker-en-NZ.js af985e8d034123f14696aa116027760d +ui/i18n/jquery.ui.datepicker-eo.js 284e3234ab912cab90b7df798d2229d6 +ui/i18n/jquery.ui.datepicker-es.js 196b4d78b5959c806c5276a3d1bca390 +ui/i18n/jquery.ui.datepicker-et.js 7340534709a670fdc0e6c778f81e69d0 +ui/i18n/jquery.ui.datepicker-eu.js 24751dd4dcabb58b82ee0817fea84fd3 +ui/i18n/jquery.ui.datepicker-fa.js 5e6dab546d1aeaba3ea1b08cb8a78905 +ui/i18n/jquery.ui.datepicker-fi.js 8219421691385dea5db2fd84b7addef3 +ui/i18n/jquery.ui.datepicker-fo.js afd8c9bc15c5885362c656e5d7c84890 +ui/i18n/jquery.ui.datepicker-fr-CA.js caa86bb3277b220d6412236a27a3fc2d +ui/i18n/jquery.ui.datepicker-fr-CH.js c21ee9b7c5ec3fc01aed92ebf83a1131 +ui/i18n/jquery.ui.datepicker-fr.js c73cd5077b12ddc8eb4d7f8b78b6500a +ui/i18n/jquery.ui.datepicker-gl.js 4675f94f450180e380a1601a6b371508 +ui/i18n/jquery.ui.datepicker-he.js a791d8f0ac08b0d2876bcd21e029d39a +ui/i18n/jquery.ui.datepicker-hi.js 0a77f05797ea2541aefa54587f72d274 +ui/i18n/jquery.ui.datepicker-hr.js 09c6d590bc6341774a7b6fe81949bcc1 +ui/i18n/jquery.ui.datepicker-hu.js df7114c7beb23fac576e3ad4dd58f826 +ui/i18n/jquery.ui.datepicker-hy.js bf602b00d963e8060915f407aa06117c +ui/i18n/jquery.ui.datepicker-id.js fb0ad98a3ad212b1986fcac5015b0435 +ui/i18n/jquery.ui.datepicker-is.js 3b7e3f95a642ffdc20caea54095d788a +ui/i18n/jquery.ui.datepicker-it.js eee4c720914c640bcd852ba846549823 +ui/i18n/jquery.ui.datepicker-ja.js 8f22d47039a716ab9dc558ef5cb606c5 +ui/i18n/jquery.ui.datepicker-ka.js 59ced607df538bff4b30bde208558e78 +ui/i18n/jquery.ui.datepicker-kk.js 17cd8c09bfc4fb4d1009d0d7251d45bc +ui/i18n/jquery.ui.datepicker-km.js 1adb43c3aaa02820ddc47bd6291c35d5 +ui/i18n/jquery.ui.datepicker-ko.js c07463fd9be92f2a74a8693e11a3a6ed +ui/i18n/jquery.ui.datepicker-ky.js 78c4fbe7edc801a3d7ac96479f38c471 +ui/i18n/jquery.ui.datepicker-lb.js 070ff75dff2e4c5ecaeefcf69362a824 +ui/i18n/jquery.ui.datepicker-lt.js 76422893a0454f9fac93022bf405d86a +ui/i18n/jquery.ui.datepicker-lv.js c63bb77753dc7c62444faf2adcb404ea +ui/i18n/jquery.ui.datepicker-mk.js a5f91ba250568d5923bc0d7cb5cbc949 +ui/i18n/jquery.ui.datepicker-ml.js 183a9c567fe5c2d5024fb82cee66ff32 +ui/i18n/jquery.ui.datepicker-ms.js 51efc50e21ae012a17f4f3cd0f2ac93d +ui/i18n/jquery.ui.datepicker-nb.js 1f791342b878511cb7f589cd27b04521 +ui/i18n/jquery.ui.datepicker-nl-BE.js 1e12ff741b12964e1fd73673d4aaf44d +ui/i18n/jquery.ui.datepicker-nl.js e2e6f9efa2cd758e29c5a5d9463f3a4f +ui/i18n/jquery.ui.datepicker-nn.js 81637fae116f19daaaeec66ece964b4b +ui/i18n/jquery.ui.datepicker-no.js 2fa4f2894f94ecf35729c51e8183addf +ui/i18n/jquery.ui.datepicker-pl.js be287cf01c812b8df9e69fd84b075cef +ui/i18n/jquery.ui.datepicker-pt-BR.js dff6b4f131f72032ff0a69a555c7c6a4 +ui/i18n/jquery.ui.datepicker-pt.js bb8bf1481586433c3b80fdc5368d91dc +ui/i18n/jquery.ui.datepicker-rm.js 0601228208954434efea2ccf265f5b94 +ui/i18n/jquery.ui.datepicker-ro.js 6ca441ce332624416e84ad38034e7795 +ui/i18n/jquery.ui.datepicker-ru.js 0d41df9a86abe85b7b63028957c73106 +ui/i18n/jquery.ui.datepicker-sk.js 87b2273b7f29f1e0d848891337beb5c4 +ui/i18n/jquery.ui.datepicker-sl.js 486c5cd6945b02f0749df41fdc3f352e +ui/i18n/jquery.ui.datepicker-sq.js 77e864f9841f5152d5920daf9e3e2f32 +ui/i18n/jquery.ui.datepicker-sr-SR.js 19cbf770b97c3ee2c334dcc5d057ddbf +ui/i18n/jquery.ui.datepicker-sr.js c7cbb822cfc23aec41c95de8330f2feb +ui/i18n/jquery.ui.datepicker-sv.js 018ff01252e3a0ac5bb15dbe39b429cd +ui/i18n/jquery.ui.datepicker-ta.js 3bf8496fd386e4694af8823300a532e3 +ui/i18n/jquery.ui.datepicker-th.js abd6001b82c780af58bfe9a64d0a0d9a +ui/i18n/jquery.ui.datepicker-tj.js bab95a8bfd829041af4be1c5a782c935 +ui/i18n/jquery.ui.datepicker-tr.js adc631c4ab7b682d16a2153c27ce288c +ui/i18n/jquery.ui.datepicker-uk.js aae92337f25274e12be54766da9ad8d0 +ui/i18n/jquery.ui.datepicker-vi.js eb28234f86f04fc28490f893fa4238fe +ui/i18n/jquery.ui.datepicker-zh-CN.js 26131e8a11678170b28c0a469d43aaee +ui/i18n/jquery.ui.datepicker-zh-HK.js d283c9c7266ad9f6fa2dbc46db3026f5 +ui/i18n/jquery.ui.datepicker-zh-TW.js 443e52a6fae355caecbd60e63b5c72d3 +ui/jquery-ui.js 43a5f2981878ff5c9b605b2d8c7bb0ec +ui/jquery.ui.accordion.js cec7b2afde9634119a7b30c711480c64 +ui/jquery.ui.autocomplete.js b9924a6e3b305145f156fd027c25d902 +ui/jquery.ui.button.js e50be67b4e07e1cd61df0806b74566bc +ui/jquery.ui.core.js 495fc824644e9f56c716f4f19f797394 +ui/jquery.ui.datepicker.js fc1180f7327a8534805e8035020da251 +ui/jquery.ui.dialog.js 310f7977156e1caeae4d6c60a1aa9794 +ui/jquery.ui.draggable.js bea5eccf905d1a97cb97c13d590f1053 +ui/jquery.ui.droppable.js dbf93a484952fb7d4ef5722b9ca6598d +ui/jquery.ui.effect-blind.js a514127e65fdf55c30cb669174b2c788 +ui/jquery.ui.effect-bounce.js 33bbcc23d7d93ccc6b6c1ae57a41a831 +ui/jquery.ui.effect-clip.js 79b4c36bc5dedad582f1db1d39d86e87 +ui/jquery.ui.effect-drop.js 5836525420c6b441c5ccb74d80c1877b +ui/jquery.ui.effect-explode.js cc0752b84f66ea9ec6fdd80479d4a98b +ui/jquery.ui.effect-fade.js db69be03386c29822fbe39f3f0152cc2 +ui/jquery.ui.effect-fold.js 7f51467d5c2d39df62090acf5bf49802 +ui/jquery.ui.effect-highlight.js 384ba1f7dac1e5fb14d83b5c548084d2 +ui/jquery.ui.effect-pulsate.js b4c0f9e9a0bd8360c744b0e221af99d7 +ui/jquery.ui.effect-scale.js bbb2b31cf99419c96ea93e6137d8657c +ui/jquery.ui.effect-shake.js b70a671758326cdbc1439e9f22645278 +ui/jquery.ui.effect-slide.js 261491a676a7b1f25042e4e421ac0aa1 +ui/jquery.ui.effect-transfer.js 206b754fca95f138508708f7498ed0d7 +ui/jquery.ui.effect.js 09855fe0bc8af60aa9db954e6124ddc6 +ui/jquery.ui.menu.js 7ed11ba837b32589f672e2b8b464b042 +ui/jquery.ui.mouse.js 1088fc344eb2a5f2e8ed23d396873332 +ui/jquery.ui.position.js 781f11b2ff2f551a965346c64dd2c752 +ui/jquery.ui.progressbar.js 8ab2415c18a1a87855ebf42c0bf05428 +ui/jquery.ui.resizable.js 5c5cbeb41c39f661fa7cc7e279cdfc33 +ui/jquery.ui.selectable.js 3f00c36bd6c3a57f2af9e132fe6cad09 +ui/jquery.ui.slider.js 90eadaecb851adf9f493d81208b48042 +ui/jquery.ui.sortable.js 288c75389c0f45ecd974b7e05b6cfcde +ui/jquery.ui.spinner.js 1926c0d5fa6d453cbddd2adace7a0afd +ui/jquery.ui.tabs.js 8253514521d5ccd4195e29efcdb006a4 +ui/jquery.ui.tooltip.js 719ee6c85bc2a220fb129f570807dc8a +ui/jquery.ui.widget.js d1d42e7b1fa13faeeb3f1d9487107135 +ui/minified/i18n/jquery-ui-i18n.min.js 081863a48ea6643ab6b4809d18f82fd5 +ui/minified/i18n/jquery.ui.datepicker-af.min.js 6d46ae7f305749b63d220bb73d4c9186 +ui/minified/i18n/jquery.ui.datepicker-ar-DZ.min.js cf0c3c06e558a94258ba908e855a92a8 +ui/minified/i18n/jquery.ui.datepicker-ar.min.js 8fa9ec86c88764983a97342325801fd8 +ui/minified/i18n/jquery.ui.datepicker-az.min.js 2e46f558bcb1df06aaf0e4c77910a188 +ui/minified/i18n/jquery.ui.datepicker-be.min.js ef9a8d8df62a3602b08e087b32c0b81c +ui/minified/i18n/jquery.ui.datepicker-bg.min.js 1d55141704a057175018c6ca8f4b554e +ui/minified/i18n/jquery.ui.datepicker-bs.min.js c10afa055a18d503e87535b3344aaf43 +ui/minified/i18n/jquery.ui.datepicker-ca.min.js 73ebe4bf95c1ae755487d1f55a47cdec +ui/minified/i18n/jquery.ui.datepicker-cs.min.js 208fb3b8db3f0eabd7dac9c5bbf71b7d +ui/minified/i18n/jquery.ui.datepicker-cy-GB.min.js 5df4c8a534a9f6bfd13a14d5bf008023 +ui/minified/i18n/jquery.ui.datepicker-da.min.js 26b05aeb1571b66590d443b8c7ff55a7 +ui/minified/i18n/jquery.ui.datepicker-de.min.js 00c782111a9b0f8bf86dbcc6e30c892a +ui/minified/i18n/jquery.ui.datepicker-el.min.js a78b3b5866fd9e15c9c62b8ff13189d1 +ui/minified/i18n/jquery.ui.datepicker-en-AU.min.js 91b0f0f3738f3b2d4fc83d1438779ddb +ui/minified/i18n/jquery.ui.datepicker-en-GB.min.js 3d0c8e9fdc6fc9544fda9473d2a62f7f +ui/minified/i18n/jquery.ui.datepicker-en-NZ.min.js f84e57cc46ad800f578c398daa1dad0a +ui/minified/i18n/jquery.ui.datepicker-eo.min.js cc888280753aabb7b4f03f3028a1ff45 +ui/minified/i18n/jquery.ui.datepicker-es.min.js 1d017be6e2d29e9ff99572119898b7a9 +ui/minified/i18n/jquery.ui.datepicker-et.min.js c8fcbf3d715cf5df45bb64cac8277bb6 +ui/minified/i18n/jquery.ui.datepicker-eu.min.js 818c850c619409f98fad9314b699431c +ui/minified/i18n/jquery.ui.datepicker-fa.min.js c5b401e1805ca2b0bdd8e76bfcf28d0b +ui/minified/i18n/jquery.ui.datepicker-fi.min.js 891623753dab0faa6c50033bd6350866 +ui/minified/i18n/jquery.ui.datepicker-fo.min.js 234e04b9c32e4bb3649aea9f11ccdc78 +ui/minified/i18n/jquery.ui.datepicker-fr-CA.min.js a6877a2bfdc8f26646851abfba8c82a3 +ui/minified/i18n/jquery.ui.datepicker-fr-CH.min.js b86d712756c660e61454a62018774e7f +ui/minified/i18n/jquery.ui.datepicker-fr.min.js c37af6f1696800b60e8101358fad6606 +ui/minified/i18n/jquery.ui.datepicker-gl.min.js 9de0e22d2a65f6c6cf2e5115cd70d61d +ui/minified/i18n/jquery.ui.datepicker-he.min.js c4f9193a4328735c521c2d8e4b405d18 +ui/minified/i18n/jquery.ui.datepicker-hi.min.js cf8eab0aea15efcb0666060a3ac7d17d +ui/minified/i18n/jquery.ui.datepicker-hr.min.js 592d27b7df5574c5a72c3e8b87e9c499 +ui/minified/i18n/jquery.ui.datepicker-hu.min.js 993a2c549be2458fa76595c772613010 +ui/minified/i18n/jquery.ui.datepicker-hy.min.js 13de43eef466abad1cc3cfc291aff9c6 +ui/minified/i18n/jquery.ui.datepicker-id.min.js a41a84a620792bffccd8921b02ef4276 +ui/minified/i18n/jquery.ui.datepicker-is.min.js 9423cfd345c1dbbe7fe287ad5f048eac +ui/minified/i18n/jquery.ui.datepicker-it.min.js 0b58b8224d36a74141af24bf177bf0f3 +ui/minified/i18n/jquery.ui.datepicker-ja.min.js 9d096bf949a26718747f103994ef0090 +ui/minified/i18n/jquery.ui.datepicker-ka.min.js 1d7eec5d7a370ef07b5ed6b45ebfcd1e +ui/minified/i18n/jquery.ui.datepicker-kk.min.js 3602e5528d627f0560d6dbc9d5807bde +ui/minified/i18n/jquery.ui.datepicker-km.min.js 78ed24c42636e2c8f881cf6099d442d1 +ui/minified/i18n/jquery.ui.datepicker-ko.min.js 6758d2c96e074e6ffc7c613b3a5db4b8 +ui/minified/i18n/jquery.ui.datepicker-ky.min.js 8602839d72f6d53447625ce80365fbca +ui/minified/i18n/jquery.ui.datepicker-lb.min.js cc7e787517757398c69c82d517e79e67 +ui/minified/i18n/jquery.ui.datepicker-lt.min.js f6e0aa6d8d519ca73f18f19eb0ea19cf +ui/minified/i18n/jquery.ui.datepicker-lv.min.js 6e50334796856141ea1ae664480cd66b +ui/minified/i18n/jquery.ui.datepicker-mk.min.js c82f64c43ea9c9a59f73d743d2a855bb +ui/minified/i18n/jquery.ui.datepicker-ml.min.js 6d52ddaa70394bf515dc69ea9d99abd8 +ui/minified/i18n/jquery.ui.datepicker-ms.min.js b644245985a822d286e3c69399a32d9d +ui/minified/i18n/jquery.ui.datepicker-nb.min.js 5021ae89be277fb304992431681a7a30 +ui/minified/i18n/jquery.ui.datepicker-nl-BE.min.js 28020e7e824c30c525c4046b12c5cd65 +ui/minified/i18n/jquery.ui.datepicker-nl.min.js c1d1cc6dcd8c4c5f7c3b2b796062c894 +ui/minified/i18n/jquery.ui.datepicker-nn.min.js c39a15d5431e9602e894c0d754af2c1a +ui/minified/i18n/jquery.ui.datepicker-no.min.js a6424d67895d6e57b7cca4e3db2848a7 +ui/minified/i18n/jquery.ui.datepicker-pl.min.js 05b341946f5e04a41d32f66fc0242a34 +ui/minified/i18n/jquery.ui.datepicker-pt-BR.min.js 54c5ca3972ced1bfc595272ff8e2af6d +ui/minified/i18n/jquery.ui.datepicker-pt.min.js 8eeafa5028f6f3009f59943de85a2d04 +ui/minified/i18n/jquery.ui.datepicker-rm.min.js eac4f5e19a5bb86185a31d2efcb01100 +ui/minified/i18n/jquery.ui.datepicker-ro.min.js 20d991e2acd662fa5025b019632b0fb4 +ui/minified/i18n/jquery.ui.datepicker-ru.min.js d0c3d05091a31ebdd68627ce68536927 +ui/minified/i18n/jquery.ui.datepicker-sk.min.js d919df5dd16aed429b8b3800ab8984b7 +ui/minified/i18n/jquery.ui.datepicker-sl.min.js bb93fe008bd068f8795e9cbeed091c11 +ui/minified/i18n/jquery.ui.datepicker-sq.min.js f43fc30e61ec8dc1a2b80de3b91aae84 +ui/minified/i18n/jquery.ui.datepicker-sr-SR.min.js ac04485d461e7512f4d810ef24dfb3ff +ui/minified/i18n/jquery.ui.datepicker-sr.min.js 68422fa1a53df40e60e3385f5cb392c6 +ui/minified/i18n/jquery.ui.datepicker-sv.min.js 6a13b576b96b815f10005a49a8f17e23 +ui/minified/i18n/jquery.ui.datepicker-ta.min.js 35d97a4e47ee9c2ae875ad51ffe85051 +ui/minified/i18n/jquery.ui.datepicker-th.min.js 6c8e9f95d92d56c3619b9ad3c1efcb69 +ui/minified/i18n/jquery.ui.datepicker-tj.min.js 7006bf313a147d347efd05fdfd8eb235 +ui/minified/i18n/jquery.ui.datepicker-tr.min.js 08721944485f7bdcb781d5a90eeae277 +ui/minified/i18n/jquery.ui.datepicker-uk.min.js 39b0f4acc7c1bcd6eb92f34b0a47e4bc +ui/minified/i18n/jquery.ui.datepicker-vi.min.js 383d10923f77f68a200f5bdfc329e63e +ui/minified/i18n/jquery.ui.datepicker-zh-CN.min.js c6e90400a7e7adcd91b7498b82ec4069 +ui/minified/i18n/jquery.ui.datepicker-zh-HK.min.js bed6fd0c097a34a91308143d4c010b6c +ui/minified/i18n/jquery.ui.datepicker-zh-TW.min.js 399c2f81d7db6a9b3d7c118af23b3329 +ui/minified/jquery-ui.min.js 12a65fcb49c314e8dbbcf8d090d26b8a +ui/minified/jquery.ui.accordion.min.js 6b215c5f733a5bca4b177f9bda08f9f4 +ui/minified/jquery.ui.autocomplete.min.js baad8e5edee09423cfe9ee7bb80f7f4a +ui/minified/jquery.ui.button.min.js 13e7c6415ec4583e4b315e58ec4b7834 +ui/minified/jquery.ui.core.min.js 47a22779d977534304f6cb122c97941a +ui/minified/jquery.ui.datepicker.min.js 362c4b75ca21578fd5c432d32fc9f1e9 +ui/minified/jquery.ui.dialog.min.js a4ffef594374acd633876798ffea4b91 +ui/minified/jquery.ui.draggable.min.js 2f11b4228a5e5d7c7dbc5531759950cf +ui/minified/jquery.ui.droppable.min.js c86a22c5e36db0f80387ce5de67787e9 +ui/minified/jquery.ui.effect-blind.min.js 8780c4224e8780a782bf0cbd950730e3 +ui/minified/jquery.ui.effect-bounce.min.js 21cc68d16d1f76275ad082d7ddb3e178 +ui/minified/jquery.ui.effect-clip.min.js 38df21cba8ed00415b2229c3053f0a31 +ui/minified/jquery.ui.effect-drop.min.js 2115305b0244e5d8cfb9dc458c3e1697 +ui/minified/jquery.ui.effect-explode.min.js 6c1e41c026f4d9164e07a06acf53e297 +ui/minified/jquery.ui.effect-fade.min.js f61525a55b0447eff9182e652db51d93 +ui/minified/jquery.ui.effect-fold.min.js ae38de0e6df5afa3bedc421925ce7096 +ui/minified/jquery.ui.effect-highlight.min.js ad71fc19d449fe8ecd391a90dc4de8e0 +ui/minified/jquery.ui.effect-pulsate.min.js fe8fa2aa4dd64302aa4481758019ff12 +ui/minified/jquery.ui.effect-scale.min.js 517c49b86b5c4222824e33cf97a66d1b +ui/minified/jquery.ui.effect-shake.min.js 889151a84fe86e382bb7179f1206fe96 +ui/minified/jquery.ui.effect-slide.min.js 66bbb2f50ed3e02600c28fc7c859b05e +ui/minified/jquery.ui.effect-transfer.min.js 2fef9f5562e8443aa48377192b176cd4 +ui/minified/jquery.ui.effect.min.js 96f1e6bd9d9d042789d9b8f297e1ffe8 +ui/minified/jquery.ui.menu.min.js 023299ce8c17c78401167034e5b85450 +ui/minified/jquery.ui.mouse.min.js b05882cb208b67920eaa74118594be2d +ui/minified/jquery.ui.position.min.js 99dbb2ac7cccbbc1686ff85eaf708cbf +ui/minified/jquery.ui.progressbar.min.js 68e1e677a33fca5ac047a6a85166aef2 +ui/minified/jquery.ui.resizable.min.js e3530409f1b673099f3d157d6c76c204 +ui/minified/jquery.ui.selectable.min.js 1e412d9b7ffb5165882ec4ee9dca7706 +ui/minified/jquery.ui.slider.min.js 6c2a0e39e722f5d2a71050ee333fd2c5 +ui/minified/jquery.ui.sortable.min.js 765770c2918bd191e5ddb68675cc646c +ui/minified/jquery.ui.spinner.min.js e30fecf15dccffecff23eb28c1be77af +ui/minified/jquery.ui.tabs.min.js ae99e1c6db93d17a07dcce723c463239 +ui/minified/jquery.ui.tooltip.min.js 2e5eaa037be632c86345268ee8c1fe6b +ui/minified/jquery.ui.widget.min.js 6af6a92aebd26adca4ae22c3d09461f6 diff --git a/apps/it/static/js/ui/MIT-LICENSE.txt b/apps/it/static/js/ui/MIT-LICENSE.txt new file mode 100644 index 0000000..fc96cbd --- /dev/null +++ b/apps/it/static/js/ui/MIT-LICENSE.txt @@ -0,0 +1,26 @@ +Copyright 2014 jQuery Foundation and other contributors, +http://jqueryui.com/ + +This software consists of voluntary contributions made by many +individuals (AUTHORS.txt, http://jqueryui.com/about) For exact +contribution history, see the revision history and logs, available +at http://jquery-ui.googlecode.com/svn/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/apps/it/static/js/ui/README.md b/apps/it/static/js/ui/README.md new file mode 100644 index 0000000..7a99133 --- /dev/null +++ b/apps/it/static/js/ui/README.md @@ -0,0 +1,96 @@ +# [jQuery UI](http://jqueryui.com/) - Interactions and Widgets for the web + +jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Whether you're building highly interactive web applications, or you just need to add a date picker to a form control, jQuery UI is the perfect choice. + +If you want to use jQuery UI, go to [jqueryui.com](http://jqueryui.com) to get started, [jqueryui.com/demos/](http://jqueryui.com/demos/) for demos, [api.jqueryui.com](http://api.jqueryui.com/) for API documentation, or the [Using jQuery UI Forum](http://forum.jquery.com/using-jquery-ui) for discussions and questions. + +If you want to report a bug/issue, please visit [bugs.jqueryui.com](http://bugs.jqueryui.com). + +If you are interested in helping develop jQuery UI, you are in the right place. +To discuss development with team members and the community, visit the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui) or [#jqueryui-dev on irc.freenode.net](http://irc.jquery.org/). + + +## For contributors + +If you want to help and provide a patch for a bugfix or new feature, please take +a few minutes and look at [our Getting Involved guide](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved). +In particular check out the [Coding standards](http://wiki.jqueryui.com/w/page/12137737/Coding-standards) +and [Commit Message Style Guide](http://wiki.jqueryui.com/w/page/25941597/Commit-Message-Style-Guide). + +In general, fork the project, create a branch for a specific change and send a +pull request for that branch. Don't mix unrelated changes. You can use the commit +message as the description for the pull request. + + +## Running the Unit Tests + +Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options: + +- Windows: [WAMP download](http://www.wampserver.com/en/) +- Mac: [MAMP download](http://www.mamp.info/en/index.html) +- Linux: [Setting up LAMP](https://www.linux.com/learn/tutorials/288158-easy-lamp-server-installation) +- [Mongoose (most platforms)](http://code.google.com/p/mongoose/) + + +## Building jQuery UI + +jQuery UI uses the [Grunt](http://github.com/gruntjs/grunt) build system. + +To build jQuery UI, you must have [node.js](http://nodejs.org/) installed and then run the following commands: + +```sh + +# Install the Grunt CLI +npm install -g grunt-cli + +# Clone the jQuery UI git repo +git clone git://github.com/jquery/jquery-ui.git +cd jquery-ui + +# Install the node module dependencies +npm install + +# Run the build task +grunt build + +# There are many other tasks that can be run through Grunt. +# For a list of all tasks: +grunt --help +``` + + +## For committers + +When looking at pull requests, first check for [proper commit messages](http://wiki.jqueryui.com/w/page/12137724/Bug-Fixing-Guide). + +Do not merge pull requests directly through GitHub's interface. +Most pull requests are a single commit; cherry-picking will avoid creating a merge commit. +It's also common for contributors to make minor fixes in an additional one or two commits. +These should be squashed before landing in master. + +**Make sure the author has a valid name and email address associated with the commit.** + +Fetch the remote first: + + git fetch [their-fork.git] [their-branch] + +Then cherry-pick the commit(s): + + git cherry-pick [sha-of-commit] + +If you need to edit the commit message: + + git cherry-pick -e [sha-of-commit] + +If you need to edit the changes: + + git cherry-pick -n [sha-of-commit] + # make changes + git commit --author="[author-name-and-email]" + +If it should go to the stable branch, cherry-pick it to stable: + + git checkout 1-8-stable + git cherry-pick -x [sha-of-commit-from-master] + +*NOTE: Do not cherry-pick into 1-8-stable until you have pushed the commit from master upstream.* diff --git a/apps/it/static/js/ui/demos/accordion/collapsible.html b/apps/it/static/js/ui/demos/accordion/collapsible.html new file mode 100644 index 0000000..edee8cd --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/collapsible.html @@ -0,0 +1,50 @@ + + + + + jQuery UI Accordion - Collapse content + + + + + + + + + + +
+

Section 1

+
+

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

+
+

Section 2

+
+

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

+
+

Section 3

+
+

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

+
    +
  • List item one
  • +
  • List item two
  • +
  • List item three
  • +
+
+

Section 4

+
+

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

+
+
+ +
+

By default, accordions always keep one section open. To allow for all sections to be be collapsible, set the collapsible option to true. Click on the currently open section to collapse its content pane.

+
+ + diff --git a/apps/it/static/js/ui/demos/accordion/custom-icons.html b/apps/it/static/js/ui/demos/accordion/custom-icons.html new file mode 100644 index 0000000..eee872c --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/custom-icons.html @@ -0,0 +1,64 @@ + + + + + jQuery UI Accordion - Customize icons + + + + + + + + + + + +
+

Section 1

+
+

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

+
+

Section 2

+
+

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

+
+

Section 3

+
+

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

+
    +
  • List item one
  • +
  • List item two
  • +
  • List item three
  • +
+
+

Section 4

+
+

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

+
+
+ + + +
+

Customize the header icons with the icons option, which accepts classes for the header's default and active (open) state. Use any class from the UI CSS framework, or create custom classes with background images.

+
+ + diff --git a/apps/it/static/js/ui/demos/accordion/default.html b/apps/it/static/js/ui/demos/accordion/default.html new file mode 100644 index 0000000..03b3ae4 --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/default.html @@ -0,0 +1,80 @@ + + + + + jQuery UI Accordion - Default functionality + + + + + + + + + + +
+

Section 1

+
+

+ Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer + ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit + amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut + odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate. +

+
+

Section 2

+
+

+ Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet + purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor + velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In + suscipit faucibus urna. +

+
+

Section 3

+
+

+ Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. + Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero + ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis + lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. +

+
    +
  • List item one
  • +
  • List item two
  • +
  • List item three
  • +
+
+

Section 4

+
+

+ Cras dictum. Pellentesque habitant morbi tristique senectus et netus + et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in + faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia + mauris vel est. +

+

+ Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. + Class aptent taciti sociosqu ad litora torquent per conubia nostra, per + inceptos himenaeos. +

+
+
+ +
+

+Click headers to expand/collapse content that is broken into logical sections, much like tabs. +Optionally, toggle sections open/closed on mouseover. +

+

+The underlying HTML markup is a series of headers (H3 tags) and content divs so the content is +usable without JavaScript. +

+
+ + diff --git a/apps/it/static/js/ui/demos/accordion/fillspace.html b/apps/it/static/js/ui/demos/accordion/fillspace.html new file mode 100644 index 0000000..90eacf1 --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/fillspace.html @@ -0,0 +1,72 @@ + + + + + jQuery UI Accordion - Fill space + + + + + + + + + + + + + +

Resize the outer container:

+ +
+
+

Section 1

+
+

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

+
+

Section 2

+
+

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

+
+

Section 3

+
+

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

+
    +
  • List item one
  • +
  • List item two
  • +
  • List item three
  • +
+
+

Section 4

+
+

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

+
+
+
+ +
+

Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the heightStyle option to "fill", and the script will automatically set the dimensions of the accordion to the height of its parent container.

+
+ + diff --git a/apps/it/static/js/ui/demos/accordion/hoverintent.html b/apps/it/static/js/ui/demos/accordion/hoverintent.html new file mode 100644 index 0000000..3d845c5 --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/hoverintent.html @@ -0,0 +1,148 @@ + + + + + jQuery UI Accordion - Open on hoverintent + + + + + + + + + + +
+

Section 1

+
+

+ Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer + ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit + amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut + odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate. +

+
+

Section 2

+
+

+ Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet + purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor + velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In + suscipit faucibus urna. +

+
+

Section 3

+
+

+ Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. + Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero + ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis + lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. +

+
    +
  • List item one
  • +
  • List item two
  • +
  • List item three
  • +
+
+

Section 4

+
+

+ Cras dictum. Pellentesque habitant morbi tristique senectus et netus + et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in + faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia + mauris vel est. +

+

+ Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. + Class aptent taciti sociosqu ad litora torquent per conubia nostra, per + inceptos himenaeos. +

+
+
+ +
+

+Click headers to expand/collapse content that is broken into logical sections, much like tabs. +Optionally, toggle sections open/closed on mouseover. +

+

+The underlying HTML markup is a series of headers (H3 tags) and content divs so the content is +usable without JavaScript. +

+
+ + diff --git a/apps/it/static/js/ui/demos/accordion/index.html b/apps/it/static/js/ui/demos/accordion/index.html new file mode 100644 index 0000000..92bd33d --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/index.html @@ -0,0 +1,20 @@ + + + + + jQuery UI Accordion Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/accordion/no-auto-height.html b/apps/it/static/js/ui/demos/accordion/no-auto-height.html new file mode 100644 index 0000000..ddefaaa --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/no-auto-height.html @@ -0,0 +1,50 @@ + + + + + jQuery UI Accordion - No auto height + + + + + + + + + + +
+

Section 1

+
+

Mauris mauris ante, blandit et, ultrices a, susceros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

+
+

Section 2

+
+

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

+
+

Section 3

+
+

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

+
    +
  • List item
  • +
  • List item
  • +
  • List item
  • +
  • List item
  • +
  • List item
  • +
  • List item
  • +
  • List item
  • +
+
+
+ +
+

Setting heightStyle: "content" allows the accordion panels to keep their native height.

+
+ + diff --git a/apps/it/static/js/ui/demos/accordion/sortable.html b/apps/it/static/js/ui/demos/accordion/sortable.html new file mode 100644 index 0000000..a644f9f --- /dev/null +++ b/apps/it/static/js/ui/demos/accordion/sortable.html @@ -0,0 +1,74 @@ + + + + + jQuery UI Accordion - Sortable + + + + + + + + + + + + + +
+
+

Section 1

+
+

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

+
+
+
+

Section 2

+
+

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

+
+
+
+

Section 3

+
+

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

+
    +
  • List item one
  • +
  • List item two
  • +
  • List item three
  • +
+
+
+
+

Section 4

+
+

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

+
+
+
+ +
+

Drag the header to re-order panels.

+
+ + diff --git a/apps/it/static/js/ui/demos/addClass/default.html b/apps/it/static/js/ui/demos/addClass/default.html new file mode 100644 index 0000000..97eb2ff --- /dev/null +++ b/apps/it/static/js/ui/demos/addClass/default.html @@ -0,0 +1,45 @@ + + + + + jQuery UI Effects - addClass demo + + + + + + + + + +
+
+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. +
+
+ +Run Effect + +
+

This demo adds a class which animates: text-indent, letter-spacing, width, height, padding, margin, and font-size.

+
+ + diff --git a/apps/it/static/js/ui/demos/addClass/index.html b/apps/it/static/js/ui/demos/addClass/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/addClass/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/animate/default.html b/apps/it/static/js/ui/demos/animate/default.html new file mode 100644 index 0000000..ca05a08 --- /dev/null +++ b/apps/it/static/js/ui/demos/animate/default.html @@ -0,0 +1,55 @@ + + + + + jQuery UI Effects - Animate demo + + + + + + + + + +
+
+

Animate

+

+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. +

+
+
+ +Toggle Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/animate/index.html b/apps/it/static/js/ui/demos/animate/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/animate/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/autocomplete/categories.html b/apps/it/static/js/ui/demos/autocomplete/categories.html new file mode 100644 index 0000000..6601ebc --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/categories.html @@ -0,0 +1,67 @@ + + + + + jQuery UI Autocomplete - Categories + + + + + + + + + + + + + + + + + +
+

A categorized search result. Try typing "a" or "n".

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/combobox.html b/apps/it/static/js/ui/demos/autocomplete/combobox.html new file mode 100644 index 0000000..f4d3e3f --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/combobox.html @@ -0,0 +1,213 @@ + + + + + jQuery UI Autocomplete - Combobox + + + + + + + + + + + + + + + +
+ + +
+ + +
+

A custom widget built by composition of Autocomplete and Button. You can either type something into the field to get filtered suggestions based on your input, or use the button to get the full list of selections.

+

The input is read from an existing select-element for progressive enhancement, passed to Autocomplete with a customized source-option.

+

This is not a supported or even complete widget. Its purely for demoing what autocomplete can do with a bit of customization. For a detailed explanation of how the widget works, check out this Learning jQuery article.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/custom-data.html b/apps/it/static/js/ui/demos/autocomplete/custom-data.html new file mode 100644 index 0000000..d1c98ef --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/custom-data.html @@ -0,0 +1,90 @@ + + + + + jQuery UI Autocomplete - Custom data and display + + + + + + + + + + + + + +
Select a project (type "j" for a start):
+ + + +

+ +
+

You can use your own custom data formats and displays by simply overriding the default focus and select actions.

+

Try typing "j" to get a list of projects or just press the down arrow.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/default.html b/apps/it/static/js/ui/demos/autocomplete/default.html new file mode 100644 index 0000000..2a925dd --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/default.html @@ -0,0 +1,58 @@ + + + + + jQuery UI Autocomplete - Default functionality + + + + + + + + + + + + +
+ + +
+ +
+

The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.

+

The datasource is a simple JavaScript array, provided to the widget using the source-option.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/folding.html b/apps/it/static/js/ui/demos/autocomplete/folding.html new file mode 100644 index 0000000..d49abad --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/folding.html @@ -0,0 +1,56 @@ + + + + + jQuery UI Autocomplete - Accent folding + + + + + + + + + + + + +
+
+ + +
+
+ +
+

The autocomplete field uses a custom source option which will match results that have accented characters even when the text field doesn't contain accented characters. However if the you type in accented characters in the text field it is smart enough not to show results that aren't accented.

+

Try typing "Jo" to see "John" and "Jörn", then type "Jö" to see only "Jörn".

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/images/jquery_32x32.png b/apps/it/static/js/ui/demos/autocomplete/images/jquery_32x32.png new file mode 100644 index 0000000..9312f02 Binary files /dev/null and b/apps/it/static/js/ui/demos/autocomplete/images/jquery_32x32.png differ diff --git a/apps/it/static/js/ui/demos/autocomplete/images/jqueryui_32x32.png b/apps/it/static/js/ui/demos/autocomplete/images/jqueryui_32x32.png new file mode 100644 index 0000000..e003d16 Binary files /dev/null and b/apps/it/static/js/ui/demos/autocomplete/images/jqueryui_32x32.png differ diff --git a/apps/it/static/js/ui/demos/autocomplete/images/sizzlejs_32x32.png b/apps/it/static/js/ui/demos/autocomplete/images/sizzlejs_32x32.png new file mode 100644 index 0000000..4ce0704 Binary files /dev/null and b/apps/it/static/js/ui/demos/autocomplete/images/sizzlejs_32x32.png differ diff --git a/apps/it/static/js/ui/demos/autocomplete/images/transparent_1x1.png b/apps/it/static/js/ui/demos/autocomplete/images/transparent_1x1.png new file mode 100644 index 0000000..c2da5b8 Binary files /dev/null and b/apps/it/static/js/ui/demos/autocomplete/images/transparent_1x1.png differ diff --git a/apps/it/static/js/ui/demos/autocomplete/images/ui-anim_basic_16x16.gif b/apps/it/static/js/ui/demos/autocomplete/images/ui-anim_basic_16x16.gif new file mode 100644 index 0000000..084ecb8 Binary files /dev/null and b/apps/it/static/js/ui/demos/autocomplete/images/ui-anim_basic_16x16.gif differ diff --git a/apps/it/static/js/ui/demos/autocomplete/index.html b/apps/it/static/js/ui/demos/autocomplete/index.html new file mode 100644 index 0000000..faa18d4 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/index.html @@ -0,0 +1,25 @@ + + + + + jQuery UI Autocomplete Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/autocomplete/london.xml b/apps/it/static/js/ui/demos/autocomplete/london.xml new file mode 100644 index 0000000..2628549 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/london.xml @@ -0,0 +1,114 @@ + + +6987 + +London +51.5084152563931 +-0.125532746315002 +2643743 +GB +United Kingdom + +P +PPLC + + +London +42.983389283 +-81.233042387 +6058560 +CA +Canada + +P +PPL + + +East London +-33.0152850934643 +27.9116249084473 +1006984 +ZA +South Africa + +P +PPL + + +City +51.5133363996235 +-0.0890064239501953 +2643744 +GB +United Kingdom + +A +ADM2 + + +London +37.1289771 +-84.0832646 +4298960 +US +United States + +P +PPL + + +The Tower of London +51.5082349601834 +-0.0763034820556641 +6286786 +GB +United Kingdom + +S +CSTL + + +London Reefs +8.85 +112.5333333 +1879967 + + + +U +RFSU + + +Greater London +51.5 +-0.1666667 +2648110 +GB +United Kingdom + +A +ADM2 + + +London +46.1666667 +6.0166667 +2661811 +CH +Switzerland + +H +STM + + +London Borough of Islington +51.5333333 +-0.1333333 +3333156 +GB +United Kingdom + +A +ADM2 + + diff --git a/apps/it/static/js/ui/demos/autocomplete/maxheight.html b/apps/it/static/js/ui/demos/autocomplete/maxheight.html new file mode 100644 index 0000000..570bc7e --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/maxheight.html @@ -0,0 +1,71 @@ + + + + + jQuery UI Autocomplete - Scrollable results + + + + + + + + + + + + + +
+ + +
+ +
+

When displaying a long list of options, you can simply set the max-height for the autocomplete menu to prevent the menu from growing too large. Try typing "a" or "s" above to get a long list of results that you can scroll through.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/multiple-remote.html b/apps/it/static/js/ui/demos/autocomplete/multiple-remote.html new file mode 100644 index 0000000..4c798d0 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/multiple-remote.html @@ -0,0 +1,80 @@ + + + + + jQuery UI Autocomplete - Multiple, remote + + + + + + + + + + + + + +
+ + +
+ +
+

Usage: Enter at least two characters to get bird name suggestions. Select a value to continue adding more names.

+

This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/multiple.html b/apps/it/static/js/ui/demos/autocomplete/multiple.html new file mode 100644 index 0000000..104e321 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/multiple.html @@ -0,0 +1,93 @@ + + + + + jQuery UI Autocomplete - Multiple values + + + + + + + + + + + + +
+ + +
+ +
+

Usage: Type something, eg. "j" to see suggestions for tagging with programming languages. Select a value, then continue typing to add more.

+

This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/remote-jsonp.html b/apps/it/static/js/ui/demos/autocomplete/remote-jsonp.html new file mode 100644 index 0000000..a2b4cc4 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/remote-jsonp.html @@ -0,0 +1,82 @@ + + + + + jQuery UI Autocomplete - Remote JSONP datasource + + + + + + + + + + + + + +
+ + + Powered by geonames.org +
+ +
+ Result: +
+
+ +
+

The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are cities, displayed when at least two characters are entered into the field.

+

In this case, the datasource is the geonames.org webservice. While only the city name itself ends up in the input after selecting an element, more info is displayed in the suggestions to help find the right entry. That data is also available in callbacks, as illustrated by the Result area below the input.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/remote-with-cache.html b/apps/it/static/js/ui/demos/autocomplete/remote-with-cache.html new file mode 100644 index 0000000..a560ef9 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/remote-with-cache.html @@ -0,0 +1,52 @@ + + + + + jQuery UI Autocomplete - Remote with caching + + + + + + + + + + + + + +
+ + +
+ +
+

The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are bird names, displayed when at least two characters are entered into the field.

+

Similar to the remote datasource demo, though this adds some local caching to improve performance. The cache here saves just one query, and could be extended to cache multiple values, one for each term.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/remote.html b/apps/it/static/js/ui/demos/autocomplete/remote.html new file mode 100644 index 0000000..11c8160 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/remote.html @@ -0,0 +1,55 @@ + + + + + jQuery UI Autocomplete - Remote datasource + + + + + + + + + + + + + +
+ + +
+ +
+ Result: +
+
+ +
+

The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are bird names, displayed when at least two characters are entered into the field.

+

The datasource is a server-side script which returns JSON data, specified via a simple URL for the source-option. In addition, the minLength-option is set to 2 to avoid queries that would return too many results and the select-event is used to display some feedback.

+
+ + diff --git a/apps/it/static/js/ui/demos/autocomplete/search.php b/apps/it/static/js/ui/demos/autocomplete/search.php new file mode 100644 index 0000000..835772d --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/search.php @@ -0,0 +1,590 @@ +"Botaurus stellaris", +"Little Grebe"=>"Tachybaptus ruficollis", +"Black-necked Grebe"=>"Podiceps nigricollis", +"Little Bittern"=>"Ixobrychus minutus", +"Black-crowned Night Heron"=>"Nycticorax nycticorax", +"Purple Heron"=>"Ardea purpurea", +"White Stork"=>"Ciconia ciconia", +"Spoonbill"=>"Platalea leucorodia", +"Red-crested Pochard"=>"Netta rufina", +"Common Eider"=>"Somateria mollissima", +"Red Kite"=>"Milvus milvus", +"Hen Harrier"=>"Circus cyaneus", +"Montagu`s Harrier"=>"Circus pygargus", +"Black Grouse"=>"Tetrao tetrix", +"Grey Partridge"=>"Perdix perdix", +"Spotted Crake"=>"Porzana porzana", +"Corncrake"=>"Crex crex", +"Common Crane"=>"Grus grus", +"Avocet"=>"Recurvirostra avosetta", +"Stone Curlew"=>"Burhinus oedicnemus", +"Common Ringed Plover"=>"Charadrius hiaticula", +"Kentish Plover"=>"Charadrius alexandrinus", +"Ruff"=>"Philomachus pugnax", +"Common Snipe"=>"Gallinago gallinago", +"Black-tailed Godwit"=>"Limosa limosa", +"Common Redshank"=>"Tringa totanus", +"Sandwich Tern"=>"Sterna sandvicensis", +"Common Tern"=>"Sterna hirundo", +"Arctic Tern"=>"Sterna paradisaea", +"Little Tern"=>"Sternula albifrons", +"Black Tern"=>"Chlidonias niger", +"Barn Owl"=>"Tyto alba", +"Little Owl"=>"Athene noctua", +"Short-eared Owl"=>"Asio flammeus", +"European Nightjar"=>"Caprimulgus europaeus", +"Common Kingfisher"=>"Alcedo atthis", +"Eurasian Hoopoe"=>"Upupa epops", +"Eurasian Wryneck"=>"Jynx torquilla", +"European Green Woodpecker"=>"Picus viridis", +"Crested Lark"=>"Galerida cristata", +"White-headed Duck"=>"Oxyura leucocephala", +"Pale-bellied Brent Goose"=>"Branta hrota", +"Tawny Pipit"=>"Anthus campestris", +"Whinchat"=>"Saxicola rubetra", +"European Stonechat"=>"Saxicola rubicola", +"Northern Wheatear"=>"Oenanthe oenanthe", +"Savi`s Warbler"=>"Locustella luscinioides", +"Sedge Warbler"=>"Acrocephalus schoenobaenus", +"Great Reed Warbler"=>"Acrocephalus arundinaceus", +"Bearded Reedling"=>"Panurus biarmicus", +"Red-backed Shrike"=>"Lanius collurio", +"Great Grey Shrike"=>"Lanius excubitor", +"Woodchat Shrike"=>"Lanius senator", +"Common Raven"=>"Corvus corax", +"Yellowhammer"=>"Emberiza citrinella", +"Ortolan Bunting"=>"Emberiza hortulana", +"Corn Bunting"=>"Emberiza calandra", +"Great Cormorant"=>"Phalacrocorax carbo", +"Hawfinch"=>"Coccothraustes coccothraustes", +"Common Shelduck"=>"Tadorna tadorna", +"Bluethroat"=>"Luscinia svecica", +"Grey Heron"=>"Ardea cinerea", +"Barn Swallow"=>"Hirundo rustica", +"Hooded Crow"=>"Corvus cornix", +"Dunlin"=>"Calidris alpina", +"Eurasian Pied Flycatcher"=>"Ficedula hypoleuca", +"Eurasian Nuthatch"=>"Sitta europaea", +"Short-toed Tree Creeper"=>"Certhia brachydactyla", +"Wood Lark"=>"Lullula arborea", +"Tree Pipit"=>"Anthus trivialis", +"Eurasian Hobby"=>"Falco subbuteo", +"Marsh Warbler"=>"Acrocephalus palustris", +"Wood Sandpiper"=>"Tringa glareola", +"Tawny Owl"=>"Strix aluco", +"Lesser Whitethroat"=>"Sylvia curruca", +"Barnacle Goose"=>"Branta leucopsis", +"Common Goldeneye"=>"Bucephala clangula", +"Western Marsh Harrier"=>"Circus aeruginosus", +"Common Buzzard"=>"Buteo buteo", +"Sanderling"=>"Calidris alba", +"Little Gull"=>"Larus minutus", +"Eurasian Magpie"=>"Pica pica", +"Willow Warbler"=>"Phylloscopus trochilus", +"Wood Warbler"=>"Phylloscopus sibilatrix", +"Great Crested Grebe"=>"Podiceps cristatus", +"Eurasian Jay"=>"Garrulus glandarius", +"Common Redstart"=>"Phoenicurus phoenicurus", +"Blue-headed Wagtail"=>"Motacilla flava", +"Common Swift"=>"Apus apus", +"Marsh Tit"=>"Poecile palustris", +"Goldcrest"=>"Regulus regulus", +"European Golden Plover"=>"Pluvialis apricaria", +"Eurasian Bullfinch"=>"Pyrrhula pyrrhula", +"Common Whitethroat"=>"Sylvia communis", +"Meadow Pipit"=>"Anthus pratensis", +"Greylag Goose"=>"Anser anser", +"Spotted Flycatcher"=>"Muscicapa striata", +"European Greenfinch"=>"Carduelis chloris", +"Common Greenshank"=>"Tringa nebularia", +"Great Spotted Woodpecker"=>"Dendrocopos major", +"Greater Canada Goose"=>"Branta canadensis", +"Mistle Thrush"=>"Turdus viscivorus", +"Great Black-backed Gull"=>"Larus marinus", +"Goosander"=>"Mergus merganser", +"Great Egret"=>"Casmerodius albus", +"Northern Goshawk"=>"Accipiter gentilis", +"Dunnock"=>"Prunella modularis", +"Stock Dove"=>"Columba oenas", +"Common Wood Pigeon"=>"Columba palumbus", +"Eurasian Woodcock"=>"Scolopax rusticola", +"House Sparrow"=>"Passer domesticus", +"Common House Martin"=>"Delichon urbicum", +"Red Knot"=>"Calidris canutus", +"Western Jackdaw"=>"Corvus monedula", +"Brambling"=>"Fringilla montifringilla", +"Northern Lapwing"=>"Vanellus vanellus", +"European Reed Warbler"=>"Acrocephalus scirpaceus", +"Lesser Black-backed Gull"=>"Larus fuscus", +"Little Egret"=>"Egretta garzetta", +"Little Stint"=>"Calidris minuta", +"Common Linnet"=>"Carduelis cannabina", +"Mute Swan"=>"Cygnus olor", +"Common Cuckoo"=>"Cuculus canorus", +"Black-headed Gull"=>"Larus ridibundus", +"Greater White-fronted Goose"=>"Anser albifrons", +"Great Tit"=>"Parus major", +"Redwing"=>"Turdus iliacus", +"Gadwall"=>"Anas strepera", +"Fieldfare"=>"Turdus pilaris", +"Tufted Duck"=>"Aythya fuligula", +"Crested Tit"=>"Lophophanes cristatus", +"Willow Tit"=>"Poecile montanus", +"Eurasian Coot"=>"Fulica atra", +"Common Blackbird"=>"Turdus merula", +"Smew"=>"Mergus albellus", +"Common Sandpiper"=>"Actitis hypoleucos", +"Sand Martin"=>"Riparia riparia", +"Purple Sandpiper"=>"Calidris maritima", +"Northern Pintail"=>"Anas acuta", +"Blue Tit"=>"Cyanistes caeruleus", +"European Goldfinch"=>"Carduelis carduelis", +"Eurasian Whimbrel"=>"Numenius phaeopus", +"Common Reed Bunting"=>"Emberiza schoeniclus", +"Eurasian Tree Sparrow"=>"Passer montanus", +"Rook"=>"Corvus frugilegus", +"European Robin"=>"Erithacus rubecula", +"Bar-tailed Godwit"=>"Limosa lapponica", +"Dark-bellied Brent Goose"=>"Branta bernicla", +"Eurasian Oystercatcher"=>"Haematopus ostralegus", +"Eurasian Siskin"=>"Carduelis spinus", +"Northern Shoveler"=>"Anas clypeata", +"Eurasian Wigeon"=>"Anas penelope", +"Eurasian Sparrow Hawk"=>"Accipiter nisus", +"Icterine Warbler"=>"Hippolais icterina", +"Common Starling"=>"Sturnus vulgaris", +"Long-tailed Tit"=>"Aegithalos caudatus", +"Ruddy Turnstone"=>"Arenaria interpres", +"Mew Gull"=>"Larus canus", +"Common Pochard"=>"Aythya ferina", +"Common Chiffchaff"=>"Phylloscopus collybita", +"Greater Scaup"=>"Aythya marila", +"Common Kestrel"=>"Falco tinnunculus", +"Garden Warbler"=>"Sylvia borin", +"Eurasian Collared Dove"=>"Streptopelia decaocto", +"Eurasian Skylark"=>"Alauda arvensis", +"Common Chaffinch"=>"Fringilla coelebs", +"Common Moorhen"=>"Gallinula chloropus", +"Water Pipit"=>"Anthus spinoletta", +"Mallard"=>"Anas platyrhynchos", +"Winter Wren"=>"Troglodytes troglodytes", +"Common Teal"=>"Anas crecca", +"Green Sandpiper"=>"Tringa ochropus", +"White Wagtail"=>"Motacilla alba", +"Eurasian Curlew"=>"Numenius arquata", +"Song Thrush"=>"Turdus philomelos", +"European Herring Gull"=>"Larus argentatus", +"Grey Plover"=>"Pluvialis squatarola", +"Carrion Crow"=>"Corvus corone", +"Coal Tit"=>"Periparus ater", +"Spotted Redshank"=>"Tringa erythropus", +"Blackcap"=>"Sylvia atricapilla", +"Egyptian Vulture"=>"Neophron percnopterus", +"Razorbill"=>"Alca torda", +"Alpine Swift"=>"Apus melba", +"Long-legged Buzzard"=>"Buteo rufinus", +"Audouin`s Gull"=>"Larus audouinii", +"Balearic Shearwater"=>"Puffinus mauretanicus", +"Upland Sandpiper"=>"Bartramia longicauda", +"Greater Spotted Eagle"=>"Aquila clanga", +"Ring Ouzel"=>"Turdus torquatus", +"Yellow-browed Warbler"=>"Phylloscopus inornatus", +"Blue Rock Thrush"=>"Monticola solitarius", +"Buff-breasted Sandpiper"=>"Tryngites subruficollis", +"Jack Snipe"=>"Lymnocryptes minimus", +"White-rumped Sandpiper"=>"Calidris fuscicollis", +"Ruddy Shelduck"=>"Tadorna ferruginea", +"Cetti's Warbler"=>"Cettia cetti", +"Citrine Wagtail"=>"Motacilla citreola", +"Roseate Tern"=>"Sterna dougallii", +"Black-legged Kittiwake"=>"Rissa tridactyla", +"Pygmy Cormorant"=>"Phalacrocorax pygmeus", +"Booted Eagle"=>"Aquila pennata", +"Lesser White-fronted Goose"=>"Anser erythropus", +"Little Bunting"=>"Emberiza pusilla", +"Eleonora's Falcon"=>"Falco eleonorae", +"European Serin"=>"Serinus serinus", +"Twite"=>"Carduelis flavirostris", +"Yellow-legged Gull"=>"Larus michahellis", +"Gyr Falcon"=>"Falco rusticolus", +"Greenish Warbler"=>"Phylloscopus trochiloides", +"Red-necked Phalarope"=>"Phalaropus lobatus", +"Mealy Redpoll"=>"Carduelis flammea", +"Glaucous Gull"=>"Larus hyperboreus", +"Great Skua"=>"Stercorarius skua", +"Great Bustard"=>"Otis tarda", +"Velvet Scoter"=>"Melanitta fusca", +"Pine Grosbeak"=>"Pinicola enucleator", +"House Crow"=>"Corvus splendens", +"Hume`s Leaf Warbler"=>"Phylloscopus humei", +"Great Northern Loon"=>"Gavia immer", +"Long-tailed Duck"=>"Clangula hyemalis", +"Lapland Longspur"=>"Calcarius lapponicus", +"Northern Gannet"=>"Morus bassanus", +"Eastern Imperial Eagle"=>"Aquila heliaca", +"Little Auk"=>"Alle alle", +"Lesser Spotted Woodpecker"=>"Dendrocopos minor", +"Iceland Gull"=>"Larus glaucoides", +"Parasitic Jaeger"=>"Stercorarius parasiticus", +"Bewick`s Swan"=>"Cygnus bewickii", +"Little Bustard"=>"Tetrax tetrax", +"Little Crake"=>"Porzana parva", +"Baillon`s Crake"=>"Porzana pusilla", +"Long-tailed Jaeger"=>"Stercorarius longicaudus", +"King Eider"=>"Somateria spectabilis", +"Greater Short-toed Lark"=>"Calandrella brachydactyla", +"Houbara Bustard"=>"Chlamydotis undulata", +"Curlew Sandpiper"=>"Calidris ferruginea", +"Common Crossbill"=>"Loxia curvirostra", +"European Shag"=>"Phalacrocorax aristotelis", +"Horned Grebe"=>"Podiceps auritus", +"Common Quail"=>"Coturnix coturnix", +"Bearded Vulture"=>"Gypaetus barbatus", +"Lanner Falcon"=>"Falco biarmicus", +"Middle Spotted Woodpecker"=>"Dendrocopos medius", +"Pomarine Jaeger"=>"Stercorarius pomarinus", +"Red-breasted Merganser"=>"Mergus serrator", +"Eurasian Black Vulture"=>"Aegypius monachus", +"Eurasian Dotterel"=>"Charadrius morinellus", +"Common Nightingale"=>"Luscinia megarhynchos", +"Northern willow warbler"=>"Phylloscopus trochilus acredula", +"Manx Shearwater"=>"Puffinus puffinus", +"Northern Fulmar"=>"Fulmarus glacialis", +"Eurasian Eagle Owl"=>"Bubo bubo", +"Orphean Warbler"=>"Sylvia hortensis", +"Melodious Warbler"=>"Hippolais polyglotta", +"Pallas's Leaf Warbler"=>"Phylloscopus proregulus", +"Atlantic Puffin"=>"Fratercula arctica", +"Black-throated Loon"=>"Gavia arctica", +"Bohemian Waxwing"=>"Bombycilla garrulus", +"Marsh Sandpiper"=>"Tringa stagnatilis", +"Great Snipe"=>"Gallinago media", +"Squacco Heron"=>"Ardeola ralloides", +"Long-eared Owl"=>"Asio otus", +"Caspian Tern"=>"Hydroprogne caspia", +"Red-breasted Goose"=>"Branta ruficollis", +"Red-throated Loon"=>"Gavia stellata", +"Common Rosefinch"=>"Carpodacus erythrinus", +"Red-footed Falcon"=>"Falco vespertinus", +"Ross's Goose"=>"Anser rossii", +"Red Phalarope"=>"Phalaropus fulicarius", +"Pied Wagtail"=>"Motacilla yarrellii", +"Rose-coloured Starling"=>"Sturnus roseus", +"Rough-legged Buzzard"=>"Buteo lagopus", +"Saker Falcon"=>"Falco cherrug", +"European Roller"=>"Coracias garrulus", +"Short-toed Eagle"=>"Circaetus gallicus", +"Peregrine Falcon"=>"Falco peregrinus", +"Merlin"=>"Falco columbarius", +"Snow Goose"=>"Anser caerulescens", +"Snowy Owl"=>"Bubo scandiacus", +"Snow Bunting"=>"Plectrophenax nivalis", +"Common Grasshopper Warbler"=>"Locustella naevia", +"Golden Eagle"=>"Aquila chrysaetos", +"Black-winged Stilt"=>"Himantopus himantopus", +"Steppe Eagle"=>"Aquila nipalensis", +"Pallid Harrier"=>"Circus macrourus", +"European Storm-petrel"=>"Hydrobates pelagicus", +"Horned Lark"=>"Eremophila alpestris", +"Eurasian Treecreeper"=>"Certhia familiaris", +"Taiga Bean Goose"=>"Anser fabalis", +"Temminck`s Stint"=>"Calidris temminckii", +"Terek Sandpiper"=>"Xenus cinereus", +"Tundra Bean Goose"=>"Anser serrirostris", +"European Turtle Dove"=>"Streptopelia turtur", +"Leach`s Storm-petrel"=>"Oceanodroma leucorhoa", +"Eurasian Griffon Vulture"=>"Gyps fulvus", +"Paddyfield Warbler"=>"Acrocephalus agricola", +"Osprey"=>"Pandion haliaetus", +"Firecrest"=>"Regulus ignicapilla", +"Water Rail"=>"Rallus aquaticus", +"European Honey Buzzard"=>"Pernis apivorus", +"Eurasian Golden Oriole"=>"Oriolus oriolus", +"Whooper Swan"=>"Cygnus cygnus", +"Two-barred Crossbill"=>"Loxia leucoptera", +"White-tailed Eagle"=>"Haliaeetus albicilla", +"Atlantic Murre"=>"Uria aalge", +"Garganey"=>"Anas querquedula", +"Black Redstart"=>"Phoenicurus ochruros", +"Common Scoter"=>"Melanitta nigra", +"Rock Pipit"=>"Anthus petrosus", +"Lesser Spotted Eagle"=>"Aquila pomarina", +"Cattle Egret"=>"Bubulcus ibis", +"White-winged Black Tern"=>"Chlidonias leucopterus", +"Black Stork"=>"Ciconia nigra", +"Mediterranean Gull"=>"Larus melanocephalus", +"Black Kite"=>"Milvus migrans", +"Yellow Wagtail"=>"Motacilla flavissima", +"Red-necked Grebe"=>"Podiceps grisegena", +"Gull-billed Tern"=>"Gelochelidon nilotica", +"Pectoral Sandpiper"=>"Calidris melanotos", +"Barred Warbler"=>"Sylvia nisoria", +"Red-throated Pipit"=>"Anthus cervinus", +"Grey Wagtail"=>"Motacilla cinerea", +"Richard`s Pipit"=>"Anthus richardi", +"Black Woodpecker"=>"Dryocopus martius", +"Little Ringed Plover"=>"Charadrius dubius", +"Whiskered Tern"=>"Chlidonias hybrida", +"Lesser Redpoll"=>"Carduelis cabaret", +"Pallas' Bunting"=>"Emberiza pallasi", +"Ferruginous Duck"=>"Aythya nyroca", +"Whistling Swan"=>"Cygnus columbianus", +"Black Brant"=>"Branta nigricans", +"Marbled Teal"=>"Marmaronetta angustirostris", +"Canvasback"=>"Aythya valisineria", +"Redhead"=>"Aythya americana", +"Lesser Scaup"=>"Aythya affinis", +"Steller`s Eider"=>"Polysticta stelleri", +"Spectacled Eider"=>"Somateria fischeri", +"Harlequin Duck"=>"Histronicus histrionicus", +"Black Scoter"=>"Melanitta americana", +"Surf Scoter"=>"Melanitta perspicillata", +"Barrow`s Goldeneye"=>"Bucephala islandica", +"Falcated Duck"=>"Anas falcata", +"American Wigeon"=>"Anas americana", +"Blue-winged Teal"=>"Anas discors", +"American Black Duck"=>"Anas rubripes", +"Baikal Teal"=>"Anas formosa", +"Green-Winged Teal"=>"Anas carolinensis", +"Hazel Grouse"=>"Bonasa bonasia", +"Rock Partridge"=>"Alectoris graeca", +"Red-legged Partridge"=>"Alectoris rufa", +"Yellow-billed Loon"=>"Gavia adamsii", +"Cory`s Shearwater"=>"Calonectris borealis", +"Madeiran Storm-Petrel"=>"Oceanodroma castro", +"Great White Pelican"=>"Pelecanus onocrotalus", +"Dalmatian Pelican"=>"Pelecanus crispus", +"American Bittern"=>"Botaurus lentiginosus", +"Glossy Ibis"=>"Plegadis falcinellus", +"Spanish Imperial Eagle"=>"Aquila adalberti", +"Lesser Kestrel"=>"Falco naumanni", +"Houbara Bustard"=>"Chlamydotis undulata", +"Crab-Plover"=>"Dromas ardeola", +"Cream-coloured Courser"=>"Cursorius cursor", +"Collared Pratincole"=>"Glareola pratincola", +"Black-winged Pratincole"=>"Glareola nordmanni", +"Killdeer"=>"Charadrius vociferus", +"Lesser Sand Plover"=>"Charadrius mongolus", +"Greater Sand Plover"=>"Charadrius leschenaultii", +"Caspian Plover"=>"Charadrius asiaticus", +"American Golden Plover"=>"Pluvialis dominica", +"Pacific Golden Plover"=>"Pluvialis fulva", +"Sharp-tailed Sandpiper"=>"Calidris acuminata", +"Broad-billed Sandpiper"=>"Limicola falcinellus", +"Spoon-Billed Sandpiper"=>"Eurynorhynchus pygmaeus", +"Short-Billed Dowitcher"=>"Limnodromus griseus", +"Long-billed Dowitcher"=>"Limnodromus scolopaceus", +"Hudsonian Godwit"=>"Limosa haemastica", +"Little Curlew"=>"Numenius minutus", +"Lesser Yellowlegs"=>"Tringa flavipes", +"Wilson`s Phalarope"=>"Phalaropus tricolor", +"Pallas`s Gull"=>"Larus ichthyaetus", +"Laughing Gull"=>"Larus atricilla", +"Franklin`s Gull"=>"Larus pipixcan", +"Bonaparte`s Gull"=>"Larus philadelphia", +"Ring-billed Gull"=>"Larus delawarensis", +"American Herring Gull"=>"Larus smithsonianus", +"Caspian Gull"=>"Larus cachinnans", +"Ivory Gull"=>"Pagophila eburnea", +"Royal Tern"=>"Sterna maxima", +"Brünnich`s Murre"=>"Uria lomvia", +"Crested Auklet"=>"Aethia cristatella", +"Parakeet Auklet"=>"Cyclorrhynchus psittacula", +"Tufted Puffin"=>"Lunda cirrhata", +"Laughing Dove"=>"Streptopelia senegalensis", +"Great Spotted Cuckoo"=>"Clamator glandarius", +"Great Grey Owl"=>"Strix nebulosa", +"Tengmalm`s Owl"=>"Aegolius funereus", +"Red-Necked Nightjar"=>"Caprimulgus ruficollis", +"Chimney Swift"=>"Chaetura pelagica", +"Green Bea-Eater"=>"Merops orientalis", +"Grey-headed Woodpecker"=>"Picus canus", +"Lesser Short-Toed Lark"=>"Calandrella rufescens", +"Eurasian Crag Martin"=>"Hirundo rupestris", +"Red-rumped Swallow"=>"Cecropis daurica", +"Blyth`s Pipit"=>"Anthus godlewskii", +"Pechora Pipit"=>"Anthus gustavi", +"Grey-headed Wagtail"=>"Motacilla thunbergi", +"Yellow-Headed Wagtail"=>"Motacilla lutea", +"White-throated Dipper"=>"Cinclus cinclus", +"Rufous-Tailed Scrub Robin"=>"Cercotrichas galactotes", +"Thrush Nightingale"=>"Luscinia luscinia", +"White-throated Robin"=>"Irania gutturalis", +"Caspian Stonechat"=>"Saxicola maura variegata", +"Western Black-eared Wheatear"=>"Oenanthe hispanica", +"Rufous-tailed Rock Thrush"=>"Monticola saxatilis", +"Red-throated Thrush/Black-throated"=>"Turdus ruficollis", +"American Robin"=>"Turdus migratorius", +"Zitting Cisticola"=>"Cisticola juncidis", +"Lanceolated Warbler"=>"Locustella lanceolata", +"River Warbler"=>"Locustella fluviatilis", +"Blyth`s Reed Warbler"=>"Acrocephalus dumetorum", +"Caspian Reed Warbler"=>"Acrocephalus fuscus", +"Aquatic Warbler"=>"Acrocephalus paludicola", +"Booted Warbler"=>"Acrocephalus caligatus", +"Marmora's Warbler"=>"Sylvia sarda", +"Dartford Warbler"=>"Sylvia undata", +"Subalpine Warbler"=>"Sylvia cantillans", +"Ménétries's Warbler"=>"Sylvia mystacea", +"Rüppel's Warbler"=>"Sylvia rueppelli", +"Asian Desert Warbler"=>"Sylvia nana", +"Western Orphean Warbler"=>"Sylvia hortensis hortensis", +"Arctic Warbler"=>"Phylloscopus borealis", +"Radde`s Warbler"=>"Phylloscopus schwarzi", +"Western Bonelli`s Warbler"=>"Phylloscopus bonelli", +"Red-breasted Flycatcher"=>"Ficedula parva", +"Eurasian Penduline Tit"=>"Remiz pendulinus", +"Daurian Shrike"=>"Lanius isabellinus", +"Long-Tailed Shrike"=>"Lanius schach", +"Lesser Grey Shrike"=>"Lanius minor", +"Southern Grey Shrike"=>"Lanius meridionalis", +"Masked Shrike"=>"Lanius nubicus", +"Spotted Nutcracker"=>"Nucifraga caryocatactes", +"Daurian Jackdaw"=>"Corvus dauuricus", +"Purple-Backed Starling"=>"Sturnus sturninus", +"Red-Fronted Serin"=>"Serinus pusillus", +"Arctic Redpoll"=>"Carduelis hornemanni", +"Scottish Crossbill"=>"Loxia scotica", +"Parrot Crossbill"=>"Loxia pytyopsittacus", +"Black-faced Bunting"=>"Emberiza spodocephala", +"Pink-footed Goose"=>"Anser brachyrhynchus", +"Black-winged Kite"=>"Elanus caeruleus", +"European Bee-eater"=>"Merops apiaster", +"Sabine`s Gull"=>"Larus sabini", +"Sooty Shearwater"=>"Puffinus griseus", +"Lesser Canada Goose"=>"Branta hutchinsii", +"Ring-necked Duck"=>"Aythya collaris", +"Greater Flamingo"=>"Phoenicopterus roseus", +"Iberian Chiffchaff"=>"Phylloscopus ibericus", +"Ashy-headed Wagtail"=>"Motacilla cinereocapilla", +"Stilt Sandpiper"=>"Calidris himantopus", +"Siberian Stonechat"=>"Saxicola maurus", +"Greater Yellowlegs"=>"Tringa melanoleuca", +"Forster`s Tern"=>"Sterna forsteri", +"Dusky Warbler"=>"Phylloscopus fuscatus", +"Cirl Bunting"=>"Emberiza cirlus", +"Olive-backed Pipit"=>"Anthus hodgsoni", +"Sociable Lapwing"=>"Vanellus gregarius", +"Spotted Sandpiper"=>"Actitis macularius", +"Baird`s Sandpiper"=>"Calidris bairdii", +"Rustic Bunting"=>"Emberiza rustica", +"Yellow-browed Bunting"=>"Emberiza chrysophrys", +"Great Shearwater"=>"Puffinus gravis", +"Bonelli`s Eagle"=>"Aquila fasciata", +"Calandra Lark"=>"Melanocorypha calandra", +"Sardinian Warbler"=>"Sylvia melanocephala", +"Ross's Gull"=>"Larus roseus", +"Yellow-Breasted Bunting"=>"Emberiza aureola", +"Pine Bunting"=>"Emberiza leucocephalos", +"Black Guillemot"=>"Cepphus grylle", +"Pied-billed Grebe"=>"Podilymbus podiceps", +"Soft-plumaged Petrel"=>"Pterodroma mollis", +"Bulwer's Petrel"=>"Bulweria bulwerii", +"White-Faced Storm-Petrel"=>"Pelagodroma marina", +"Pallas’s Fish Eagle"=>"Haliaeetus leucoryphus", +"Sandhill Crane"=>"Grus canadensis", +"Macqueen’s Bustard"=>"Chlamydotis macqueenii", +"White-tailed Lapwing"=>"Vanellus leucurus", +"Great Knot"=>"Calidris tenuirostris", +"Semipalmated Sandpiper"=>"Calidris pusilla", +"Red-necked Stint"=>"Calidris ruficollis", +"Slender-billed Curlew"=>"Numenius tenuirostris", +"Bridled Tern"=>"Onychoprion anaethetus", +"Pallas’s Sandgrouse"=>"Syrrhaptes paradoxus", +"European Scops Owl"=>"Otus scops", +"Northern Hawk Owl"=>"Surnia ulula", +"White-Throated Needletail"=>"Hirundapus caudacutus", +"Belted Kingfisher"=>"Ceryle alcyon", +"Blue-cheeked Bee-eater"=>"Merops persicus", +"Black-headed Wagtail"=>"Motacilla feldegg", +"Northern Mockingbird"=>"Mimus polyglottos", +"Alpine Accentor"=>"Prunella collaris", +"Red-flanked Bluetail"=>"Tarsiger cyanurus", +"Isabelline Wheatear"=>"Oenanthe isabellina", +"Pied Wheatear"=>"Oenanthe pleschanka", +"Eastern Black-eared Wheatear"=>"Oenanthe melanoleuca", +"Desert Wheatear"=>"Oenanthe deserti", +"White`s Thrush"=>"Zoothera aurea", +"Siberian Thrush"=>"Zoothera sibirica", +"Eyebrowed Thrush"=>"Turdus obscurus", +"Dusky Thrush"=>"Turdus eunomus", +"Black-throated Thrush"=>"Turdus atrogularis", +"Pallas`s Grasshopper Warbler"=>"Locustella certhiola", +"Spectacled Warbler"=>"Sylvia conspicillata", +"Two-barred Warbler"=>"Phylloscopus plumbeitarsus", +"Eastern Bonelli’s Warbler"=>"Phylloscopus orientalis", +"Collared Flycatcher"=>"Ficedula albicollis", +"Wallcreeper"=>"Tichodroma muraria", +"Turkestan Shrike"=>"Lanius phoenicuroides", +"Steppe Grey Shrike"=>"Lanius pallidirostris", +"Spanish Sparrow"=>"Passer hispaniolensis", +"Red-eyed Vireo"=>"Vireo olivaceus", +"Myrtle Warbler"=>"Dendroica coronata", +"White-crowned Sparrow"=>"Zonotrichia leucophrys", +"White-throated Sparrow"=>"Zonotrichia albicollis", +"Cretzschmar`s Bunting"=>"Emberiza caesia", +"Chestnut Bunting"=>"Emberiza rutila", +"Red-headed Bunting"=>"Emberiza bruniceps", +"Black-headed Bunting"=>"Emberiza melanocephala", +"Indigo Bunting"=>"Passerina cyanea", +"Balearic Woodchat Shrike"=>"Lanius senator badius", +"Demoiselle Crane"=>"Grus virgo", +"Chough"=>"Pyrrhocorax pyrrhocorax", +"Red-Billed Chough"=>"Pyrrhocorax graculus", +"Elegant Tern"=>"Sterna elegans", +"Chukar"=>"Alectoris chukar", +"Yellow-Billed Cuckoo"=>"Coccyzus americanus", +"American Sandwich Tern"=>"Sterna sandvicensis acuflavida", +"Olive-Tree Warbler"=>"Hippolais olivetorum", +"Eastern Olivaceous Warbler"=>"Acrocephalus pallidus", +"Indian Cormorant"=>"Phalacrocorax fuscicollis", +"Spur-Winged Lapwing"=>"Vanellus spinosus", +"Yelkouan Shearwater"=>"Puffinus yelkouan", +"Trumpeter Finch"=>"Bucanetes githagineus", +"Red Grouse"=>"Lagopus scoticus", +"Rock Ptarmigan"=>"Lagopus mutus", +"Long-Tailed Cormorant"=>"Phalacrocorax africanus", +"Double-crested Cormorant"=>"Phalacrocorax auritus", +"Magnificent Frigatebird"=>"Fregata magnificens", +"Naumann's Thrush"=>"Turdus naumanni", +"Oriental Pratincole"=>"Glareola maldivarum", +"Bufflehead"=>"Bucephala albeola", +"Snowfinch"=>"Montifrigilla nivalis", +"Ural owl"=>"Strix uralensis", +"Spanish Wagtail"=>"Motacilla iberiae", +"Song Sparrow"=>"Melospiza melodia", +"Rock Bunting"=>"Emberiza cia", +"Siberian Rubythroat"=>"Luscinia calliope", +"Pallid Swift"=>"Apus pallidus", +"Eurasian Pygmy Owl"=>"Glaucidium passerinum", +"Madeira Little Shearwater"=>"Puffinus baroli", +"House Finch"=>"Carpodacus mexicanus", +"Green Heron"=>"Butorides virescens", +"Solitary Sandpiper"=>"Tringa solitaria", +"Heuglin's Gull"=>"Larus heuglini" +); + + +$result = array(); +foreach ($items as $key=>$value) { + if (strpos(strtolower($key), $q) !== false) { + array_push($result, array("id"=>$value, "label"=>$key, "value" => strip_tags($key))); + } + if (count($result) > 11) + break; +} + +// json_encode is available in PHP 5.2 and above, or you can install a PECL module in earlier versions +echo json_encode($result); + +?> \ No newline at end of file diff --git a/apps/it/static/js/ui/demos/autocomplete/xml.html b/apps/it/static/js/ui/demos/autocomplete/xml.html new file mode 100644 index 0000000..098bc28 --- /dev/null +++ b/apps/it/static/js/ui/demos/autocomplete/xml.html @@ -0,0 +1,66 @@ + + + + + jQuery UI Autocomplete - XML data parsed once + + + + + + + + + + + + + +
+ + +
+ +
+ Result: +
+
+ +
+

This demo shows how to retrieve some XML data, parse it using jQuery's methods, then provide it to the autocomplete as the datasource.

+

This should also serve as a reference on how to parse a remote XML datasource - the parsing would just happen for each request within the source-callback.

+
+ + diff --git a/apps/it/static/js/ui/demos/button/checkbox.html b/apps/it/static/js/ui/demos/button/checkbox.html new file mode 100644 index 0000000..704ae1e --- /dev/null +++ b/apps/it/static/js/ui/demos/button/checkbox.html @@ -0,0 +1,37 @@ + + + + + jQuery UI Button - Checkboxes + + + + + + + + + + + + + +
+ + + +
+ +
+

A checkbox is styled as a toggle button with the button widget. The label element associated with the checkbox is used for the button text.

+

This demo also demonstrates three checkboxes styled as a button set by calling .buttonset() on a common container.

+
+ + diff --git a/apps/it/static/js/ui/demos/button/default.html b/apps/it/static/js/ui/demos/button/default.html new file mode 100644 index 0000000..2318ecc --- /dev/null +++ b/apps/it/static/js/ui/demos/button/default.html @@ -0,0 +1,34 @@ + + + + + jQuery UI Button - Default functionality + + + + + + + + + + + + + + +An anchor + +
+

Examples of the markup that can be used for buttons: A button element, an input of type submit and an anchor.

+
+ + diff --git a/apps/it/static/js/ui/demos/button/icons.html b/apps/it/static/js/ui/demos/button/icons.html new file mode 100644 index 0000000..757a71c --- /dev/null +++ b/apps/it/static/js/ui/demos/button/icons.html @@ -0,0 +1,49 @@ + + + + + jQuery UI Button - Icons + + + + + + + + + + + + + + + +
+

Some buttons with various combinations of text and icons.

+
+ + diff --git a/apps/it/static/js/ui/demos/button/index.html b/apps/it/static/js/ui/demos/button/index.html new file mode 100644 index 0000000..7956059 --- /dev/null +++ b/apps/it/static/js/ui/demos/button/index.html @@ -0,0 +1,19 @@ + + + + + jQuery UI Button Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/button/radio.html b/apps/it/static/js/ui/demos/button/radio.html new file mode 100644 index 0000000..1674b7c --- /dev/null +++ b/apps/it/static/js/ui/demos/button/radio.html @@ -0,0 +1,32 @@ + + + + + jQuery UI Button - Radios + + + + + + + + + + +
+
+ + + +
+
+ +
+

A set of three radio buttons transformed into a button set.

+
+ + diff --git a/apps/it/static/js/ui/demos/button/splitbutton.html b/apps/it/static/js/ui/demos/button/splitbutton.html new file mode 100644 index 0000000..faf7f06 --- /dev/null +++ b/apps/it/static/js/ui/demos/button/splitbutton.html @@ -0,0 +1,69 @@ + + + + + jQuery UI Button - Split button + + + + + + + + + + + + + +
+
+ + +
+ +
+ +
+

An example of a split button built with two buttons: A plain button with just text, one with only a primary icon +and no text. Both are grouped together in a set.

+
+ + diff --git a/apps/it/static/js/ui/demos/button/toolbar.html b/apps/it/static/js/ui/demos/button/toolbar.html new file mode 100644 index 0000000..d5dcb26 --- /dev/null +++ b/apps/it/static/js/ui/demos/button/toolbar.html @@ -0,0 +1,118 @@ + + + + + jQuery UI Button - Toolbar + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+

+ A mediaplayer toolbar. Take a look at the underlying markup: A few button elements, + an input of type checkbox for the Shuffle button, and three inputs of type radio for the Repeat options. +

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/alt-field.html b/apps/it/static/js/ui/demos/datepicker/alt-field.html new file mode 100644 index 0000000..8742da2 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/alt-field.html @@ -0,0 +1,29 @@ + + + + + jQuery UI Datepicker - Populate alternate field + + + + + + + + + + +

Date:  

+ +
+

Populate an alternate field with its own date format whenever a date is selected using the altField and altFormat options. This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/animation.html b/apps/it/static/js/ui/demos/datepicker/animation.html new file mode 100644 index 0000000..da8193e --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/animation.html @@ -0,0 +1,51 @@ + + + + + jQuery UI Datepicker - Animations + + + + + + + + + + + + + + + + + +

Date:

+ +

Animations:
+ +

+ +
+

Use different animations when opening or closing the datepicker. Choose an animation from the dropdown, then click on the input to see its effect. You can use one of the three standard animations or any of the UI Effects.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/buttonbar.html b/apps/it/static/js/ui/demos/datepicker/buttonbar.html new file mode 100644 index 0000000..d815740 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/buttonbar.html @@ -0,0 +1,28 @@ + + + + + jQuery UI Datepicker - Display button bar + + + + + + + + + + +

Date:

+ +
+

Display a button for selecting Today's date and a Done button for closing the calendar with the boolean showButtonPanel option. Each button is enabled by default when the bar is displayed, but can be turned off with additional options. Button text is customizable.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/date-formats.html b/apps/it/static/js/ui/demos/datepicker/date-formats.html new file mode 100644 index 0000000..3a46308 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/date-formats.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Datepicker - Format date + + + + + + + + + + +

Date:

+ +

Format options:
+ +

+ +
+

Display date feedback in a variety of ways. Choose a date format from the dropdown, then click on the input and select a date to see it in that format.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/date-range.html b/apps/it/static/js/ui/demos/datepicker/date-range.html new file mode 100644 index 0000000..4d878a4 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/date-range.html @@ -0,0 +1,44 @@ + + + + + jQuery UI Datepicker - Select a Date Range + + + + + + + + + + + + + + + +
+

Select the date range to search for.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/default.html b/apps/it/static/js/ui/demos/datepicker/default.html new file mode 100644 index 0000000..2d66a6e --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/default.html @@ -0,0 +1,26 @@ + + + + + jQuery UI Datepicker - Default functionality + + + + + + + + + + +

Date:

+ +
+

The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/dropdown-month-year.html b/apps/it/static/js/ui/demos/datepicker/dropdown-month-year.html new file mode 100644 index 0000000..84b16c9 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/dropdown-month-year.html @@ -0,0 +1,29 @@ + + + + + jQuery UI Datepicker - Display month & year menus + + + + + + + + + + +

Date:

+ +
+

Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes. Add the boolean changeMonth and changeYear options.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/icon-trigger.html b/apps/it/static/js/ui/demos/datepicker/icon-trigger.html new file mode 100644 index 0000000..b5c74c8 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/icon-trigger.html @@ -0,0 +1,30 @@ + + + + + jQuery UI Datepicker - Icon trigger + + + + + + + + + + +

Date:

+ +
+

Click the icon next to the input field to show the datepicker. Set the datepicker to open on focus (default behavior), on icon click, or both.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/images/calendar.gif b/apps/it/static/js/ui/demos/datepicker/images/calendar.gif new file mode 100644 index 0000000..d0abaa7 Binary files /dev/null and b/apps/it/static/js/ui/demos/datepicker/images/calendar.gif differ diff --git a/apps/it/static/js/ui/demos/datepicker/index.html b/apps/it/static/js/ui/demos/datepicker/index.html new file mode 100644 index 0000000..eb903a2 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/index.html @@ -0,0 +1,27 @@ + + + + + jQuery UI Datepicker Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/datepicker/inline.html b/apps/it/static/js/ui/demos/datepicker/inline.html new file mode 100644 index 0000000..cd8f606 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/inline.html @@ -0,0 +1,26 @@ + + + + + jQuery UI Datepicker - Display inline + + + + + + + + + + +Date:
+ +
+

Display the datepicker embedded in the page instead of in an overlay. Simply call .datepicker() on a div instead of an input.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-ar.js b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-ar.js new file mode 100644 index 0000000..cef0f08 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-ar.js @@ -0,0 +1,23 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Alhourani -- me@khaledalhourani.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + closeText: 'إغلاق', + prevText: '<السابق', + nextText: 'التالي>', + currentText: 'اليوم', + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران', + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], + monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + weekHeader: 'أسبوع', + dateFormat: 'dd/mm/yy', + firstDay: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +}); diff --git a/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-fr.js b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-fr.js new file mode 100644 index 0000000..2d06743 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-fr.js @@ -0,0 +1,25 @@ +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood{at}iinet.com.au), + Stéphane Nahmani (sholby@sholby.net), + Stéphane Raimbault */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + closeText: 'Fermer', + prevText: 'Précédent', + nextText: 'Suivant', + currentText: 'Aujourd\'hui', + monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', + 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'], + monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin', + 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], + dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'], + dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], + dayNamesMin: ['D','L','M','M','J','V','S'], + weekHeader: 'Sem.', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +}); diff --git a/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-he.js b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-he.js new file mode 100644 index 0000000..b9e8dee --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-he.js @@ -0,0 +1,23 @@ +/* Hebrew initialisation for the UI Datepicker extension. */ +/* Written by Amir Hardon (ahardon at gmail dot com). */ +jQuery(function($){ + $.datepicker.regional['he'] = { + closeText: 'סגור', + prevText: '<הקודם', + nextText: 'הבא>', + currentText: 'היום', + monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', + 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], + monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני', + 'יולי','אוג','ספט','אוק','נוב','דצמ'], + dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], + dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['he']); +}); diff --git a/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js new file mode 100644 index 0000000..b9105ea --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Ressol (ressol@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-TW'] = { + closeText: '關閉', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'yy/mm/dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-TW']); +}); diff --git a/apps/it/static/js/ui/demos/datepicker/localization.html b/apps/it/static/js/ui/demos/datepicker/localization.html new file mode 100644 index 0000000..e2d2bb6 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/localization.html @@ -0,0 +1,41 @@ + + + + + jQuery UI Datepicker - Localize calendar + + + + + + + + + + + + + + +

Date:   +

+ +
+

Localize the datepicker calendar language and format (English / Western formatting is the default). The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/min-max.html b/apps/it/static/js/ui/demos/datepicker/min-max.html new file mode 100644 index 0000000..52bf8cb --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/min-max.html @@ -0,0 +1,26 @@ + + + + + jQuery UI Datepicker - Restrict date range + + + + + + + + + + +

Date:

+ +
+

Restrict the range of selectable dates with the minDate and maxDate options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)), as a numeric offset from today (-20), or as a string of periods and units ('+1M +10D'). For the last, use 'D' for days, 'W' for weeks, 'M' for months, or 'Y' for years.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/multiple-calendars.html b/apps/it/static/js/ui/demos/datepicker/multiple-calendars.html new file mode 100644 index 0000000..0b7350e --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/multiple-calendars.html @@ -0,0 +1,29 @@ + + + + + jQuery UI Datepicker - Display multiple months + + + + + + + + + + +

Date:

+ +
+

Set the numberOfMonths option to an integer of 2 or more to show multiple months in a single datepicker.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/other-months.html b/apps/it/static/js/ui/demos/datepicker/other-months.html new file mode 100644 index 0000000..eb7d774 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/other-months.html @@ -0,0 +1,30 @@ + + + + + jQuery UI Datepicker - Dates in other months + + + + + + + + + + +

Date:

+ +
+

The datepicker can show dates that come from other than the main month + being displayed. These other dates can also be made selectable.

+
+ + diff --git a/apps/it/static/js/ui/demos/datepicker/show-week.html b/apps/it/static/js/ui/demos/datepicker/show-week.html new file mode 100644 index 0000000..c6c21d3 --- /dev/null +++ b/apps/it/static/js/ui/demos/datepicker/show-week.html @@ -0,0 +1,32 @@ + + + + + jQuery UI Datepicker - Show week of the year + + + + + + + + + + +

Date:

+ +
+

The datepicker can show the week of the year. The default calculation follows + the ISO 8601 definition: the week starts on Monday, the first week of the year + contains the first Thursday of the year. This means that some days from one + year may be placed into weeks 'belonging' to another year.

+
+ + diff --git a/apps/it/static/js/ui/demos/demos.css b/apps/it/static/js/ui/demos/demos.css new file mode 100644 index 0000000..da9ad83 --- /dev/null +++ b/apps/it/static/js/ui/demos/demos.css @@ -0,0 +1,19 @@ +body { + font-size: 62.5%; + font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif"; +} + +table { + font-size: 1em; +} + +.demo-description { + clear: both; + padding: 12px; + font-size: 1.3em; + line-height: 1.4em; +} + +.ui-draggable, .ui-droppable { + background-position: top; +} diff --git a/apps/it/static/js/ui/demos/dialog/animated.html b/apps/it/static/js/ui/demos/dialog/animated.html new file mode 100644 index 0000000..7bc2620 --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/animated.html @@ -0,0 +1,52 @@ + + + + + jQuery UI Dialog - Animation + + + + + + + + + + + + + + + + + + +
+

This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.

+
+ + + +
+

Dialogs may be animated by specifying an effect for the show and/or hide properties. You must include the individual effects file for any effects you would like to use.

+
+ + diff --git a/apps/it/static/js/ui/demos/dialog/default.html b/apps/it/static/js/ui/demos/dialog/default.html new file mode 100644 index 0000000..4c45d62 --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/default.html @@ -0,0 +1,33 @@ + + + + + jQuery UI Dialog - Default functionality + + + + + + + + + + + + + + + +
+

This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.

+
+ +
+

The basic dialog window is an overlay positioned within the viewport and is protected from page content (like select elements) shining through with an iframe. It has a title bar and a content area, and can be moved, resized and closed with the 'x' icon by default.

+
+ + diff --git a/apps/it/static/js/ui/demos/dialog/index.html b/apps/it/static/js/ui/demos/dialog/index.html new file mode 100644 index 0000000..6aaa3ec --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/index.html @@ -0,0 +1,19 @@ + + + + + jQuery UI Dialog Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/dialog/modal-confirmation.html b/apps/it/static/js/ui/demos/dialog/modal-confirmation.html new file mode 100644 index 0000000..4bcc234 --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/modal-confirmation.html @@ -0,0 +1,46 @@ + + + + + jQuery UI Dialog - Modal confirmation + + + + + + + + + + + + + + +
+

These items will be permanently deleted and cannot be recovered. Are you sure?

+
+ +

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

+ +
+

Confirm an action that may be destructive or important. Set the modal option to true, and specify primary and secondary user actions with the buttons option.

+
+ + diff --git a/apps/it/static/js/ui/demos/dialog/modal-form.html b/apps/it/static/js/ui/demos/dialog/modal-form.html new file mode 100644 index 0000000..b7bc8f9 --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/modal-form.html @@ -0,0 +1,157 @@ + + + + + jQuery UI Dialog - Modal form + + + + + + + + + + + + + + + + + + +
+

All form fields are required.

+ +
+
+ + + + + + +
+
+
+ + +
+

Existing Users:

+ + + + + + + + + + + + + + + +
NameEmailPassword
John Doejohn.doe@example.comjohndoe1
+
+ + +
+

Use a modal dialog to require that the user enter data during a multi-step process. Embed form markup in the content area, set the modal option to true, and specify primary and secondary user actions with the buttons option.

+
+ + diff --git a/apps/it/static/js/ui/demos/dialog/modal-message.html b/apps/it/static/js/ui/demos/dialog/modal-message.html new file mode 100644 index 0000000..f463ee8 --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/modal-message.html @@ -0,0 +1,49 @@ + + + + + jQuery UI Dialog - Modal message + + + + + + + + + + + + + + + + +
+

+ + Your files have downloaded successfully into the My Downloads folder. +

+

+ Currently using 36% of your storage space. +

+
+ +

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

+ +
+

Use a modal dialog to explicitly acknowledge information or an action before continuing their work. Set the modal option to true, and specify a primary action (Ok) with the buttons option.

+
+ + diff --git a/apps/it/static/js/ui/demos/dialog/modal.html b/apps/it/static/js/ui/demos/dialog/modal.html new file mode 100644 index 0000000..af290d0 --- /dev/null +++ b/apps/it/static/js/ui/demos/dialog/modal.html @@ -0,0 +1,38 @@ + + + + + jQuery UI Dialog - Basic modal + + + + + + + + + + + + + + + +
+

Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.

+
+ +

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

+ +
+

A modal dialog prevents the user from interacting with the rest of the page until it is closed.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/constrain-movement.html b/apps/it/static/js/ui/demos/draggable/constrain-movement.html new file mode 100644 index 0000000..813fc50 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/constrain-movement.html @@ -0,0 +1,58 @@ + + + + + jQuery UI Draggable - Constrain movement + + + + + + + + + + + + +

Constrain movement along an axis:

+ +
+

I can be dragged only vertically

+
+ +
+

I can be dragged only horizontally

+
+ +

Or to within another DOM element:

+
+
+

I'm contained within the box

+
+ +
+

I'm contained within my parent

+
+
+ +
+

Constrain the movement of each draggable by defining the boundaries of the draggable area. Set the axis option to limit the draggable's path to the x- or y-axis, or use the containment option to specify a parent DOM element or a jQuery selector, like 'document.'

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/cursor-style.html b/apps/it/static/js/ui/demos/draggable/cursor-style.html new file mode 100644 index 0000000..e87c75d --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/cursor-style.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Draggable - Cursor style + + + + + + + + + + + + +
+

I will always stick to the center (relative to the mouse)

+
+ +
+

My cursor is at left -5 and top -5

+
+ +
+

My cursor position is only controlled for the 'bottom' value

+
+ +
+

Position the cursor while dragging the object. By default the cursor appears in the center of the dragged object; use the cursorAt option to specify another location relative to the draggable (specify a pixel value from the top, right, bottom, and/or left). Customize the cursor's appearance by supplying the cursor option with a valid CSS cursor value: default, move, pointer, crosshair, etc.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/default.html b/apps/it/static/js/ui/demos/draggable/default.html new file mode 100644 index 0000000..a1f7a91 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/default.html @@ -0,0 +1,32 @@ + + + + + jQuery UI Draggable - Default functionality + + + + + + + + + + + + +
+

Drag me around

+
+ +
+

Enable draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/delay-start.html b/apps/it/static/js/ui/demos/draggable/delay-start.html new file mode 100644 index 0000000..5f45e42 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/delay-start.html @@ -0,0 +1,38 @@ + + + + + jQuery UI Draggable - Delay start + + + + + + + + + + + + +
+

Only if you drag me by 20 pixels, the dragging will start

+
+ +
+

Regardless of the distance, you have to drag and wait for 1000ms before dragging starts

+
+ +
+

Delay the start of dragging for a number of milliseconds with the delay option; prevent dragging until the cursor is held down and dragged a specifed number of pixels with the distance option.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/events.html b/apps/it/static/js/ui/demos/draggable/events.html new file mode 100644 index 0000000..9949a4c --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/events.html @@ -0,0 +1,70 @@ + + + + + jQuery UI Draggable - Events + + + + + + + + + + + + +
+ +

Drag me to trigger the chain of events.

+ +
    +
  • "start" invoked 0x
  • +
  • "drag" invoked 0x
  • +
  • "stop" invoked 0x
  • +
+
+ +
+

Layer functionality onto the draggable using the start, drag, and stop events. Start is fired at the start of the drag; drag during the drag; and stop when dragging stops.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/handle.html b/apps/it/static/js/ui/demos/draggable/handle.html new file mode 100644 index 0000000..31dabc4 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/handle.html @@ -0,0 +1,41 @@ + + + + + jQuery UI Draggable - Handles + + + + + + + + + + + + +
+

I can be dragged only by this handle

+
+ +
+

You can drag me around…

+

…but you can't drag me by this handle.

+
+ +
+

Allow dragging only when the cursor is over a specific part of the draggable. Use the handle option to specify the jQuery selector of an element (or group of elements) used to drag the object.

+

Or prevent dragging when the cursor is over a specific element (or group of elements) within the draggable. Use the cancel option to specify a jQuery selector over which to "cancel" draggable functionality.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/index.html b/apps/it/static/js/ui/demos/draggable/index.html new file mode 100644 index 0000000..9385068 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/index.html @@ -0,0 +1,24 @@ + + + + + jQuery UI Draggable Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/draggable/revert.html b/apps/it/static/js/ui/demos/draggable/revert.html new file mode 100644 index 0000000..58282e7 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/revert.html @@ -0,0 +1,37 @@ + + + + + jQuery UI Draggable - Revert position + + + + + + + + + + + + +
+

Revert the original

+
+ +
+

Revert the helper

+
+ +
+

Return the draggable (or it's helper) to its original location when dragging stops with the boolean revert option.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/scroll.html b/apps/it/static/js/ui/demos/draggable/scroll.html new file mode 100644 index 0000000..38b4404 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/scroll.html @@ -0,0 +1,44 @@ + + + + + jQuery UI Draggable - Auto-scroll + + + + + + + + + + + + +
+

Scroll set to true, default settings

+
+ +
+

scrollSensitivity set to 100

+
+ +
+

scrollSpeed set to 100

+
+ +
+ +
+

Automatically scroll the document when the draggable is moved beyond the viewport. Set the scroll option to true to enable auto-scrolling, and fine-tune when scrolling is triggered and its speed with the scrollSensitivity and scrollSpeed options.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/snap-to.html b/apps/it/static/js/ui/demos/draggable/snap-to.html new file mode 100644 index 0000000..8b2a887 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/snap-to.html @@ -0,0 +1,61 @@ + + + + + jQuery UI Draggable - Snap to element or grid + + + + + + + + + + + + +
+

I'm a snap target

+
+ +
+ +
+

Default (snap: true), snaps to all other draggable elements

+
+ +
+

I only snap to the big box

+
+ +
+

I only snap to the outer edges of the big box

+
+ +
+

I snap to a 20 x 20 grid

+
+ +
+

I snap to a 80 x 80 grid

+
+ +
+

Snap the draggable to the inner or outer boundaries of a DOM element. Use the snap, snapMode (inner, outer, both), and snapTolerance (distance in pixels the draggable must be from the element when snapping is invoked) options.

+

Or snap the draggable to a grid. Set the dimensions of grid cells (height and width in pixels) with the grid option.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/sortable.html b/apps/it/static/js/ui/demos/draggable/sortable.html new file mode 100644 index 0000000..09bb6c4 --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/sortable.html @@ -0,0 +1,50 @@ + + + + + jQuery UI Draggable + Sortable + + + + + + + + + + + + + +
    +
  • Drag me down
  • +
+ +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+ +
+

Draggables are built to interact seamlessly with sortables.

+
+ + diff --git a/apps/it/static/js/ui/demos/draggable/visual-feedback.html b/apps/it/static/js/ui/demos/draggable/visual-feedback.html new file mode 100644 index 0000000..253a26d --- /dev/null +++ b/apps/it/static/js/ui/demos/draggable/visual-feedback.html @@ -0,0 +1,70 @@ + + + + + jQuery UI Draggable - Visual feedback + + + + + + + + + + + + +

With helpers:

+ +
+

Original

+
+ +
+

Semi-transparent clone

+
+ +
+

Custom helper (in combination with cursorAt)

+
+ +

Stacked:

+
+
+

We are draggables..

+
+ +
+

..whose z-indexes are controlled automatically..

+
+ +
+

..with the stack option.

+
+
+ +
+

Provide feedback to users as they drag an object in the form of a helper. The helper option accepts the values 'original' (the draggable object moves with the cursor), 'clone' (a duplicate of the draggable moves with the cursor), or a function that returns a DOM element (that element is shown near the cursor during drag). Control the helper's transparency with the opacity option.

+

To clarify which draggable is in play, bring the draggable in motion to front. Use the zIndex option to set a higher z-index for the helper, if in play, or use the stack option to ensure that the last item dragged will appear on top of others in the same group on drag stop.

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/accepted-elements.html b/apps/it/static/js/ui/demos/droppable/accepted-elements.html new file mode 100644 index 0000000..51a8f93 --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/accepted-elements.html @@ -0,0 +1,53 @@ + + + + + jQuery UI Droppable - Accept + + + + + + + + + + + + + +
+

I'm draggable but can't be dropped

+
+ +
+

Drag me to my target

+
+ +
+

accept: '#draggable'

+
+ +
+

Specify using the accept option which element (or group of elements) is accepted by the target droppable.

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/default.html b/apps/it/static/js/ui/demos/droppable/default.html new file mode 100644 index 0000000..56a7072 --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/default.html @@ -0,0 +1,46 @@ + + + + + jQuery UI Droppable - Default functionality + + + + + + + + + + + + + +
+

Drag me to my target

+
+ +
+

Drop here

+
+ +
+

Enable any DOM element to be droppable, a target for draggable elements.

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras.jpg new file mode 100644 index 0000000..5723680 Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras2.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras2.jpg new file mode 100644 index 0000000..1acad3a Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras2.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras2_min.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras2_min.jpg new file mode 100644 index 0000000..493e082 Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras2_min.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras3.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras3.jpg new file mode 100644 index 0000000..e158b1a Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras3.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras3_min.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras3_min.jpg new file mode 100644 index 0000000..4aa96b0 Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras3_min.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras4.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras4.jpg new file mode 100644 index 0000000..da4124d Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras4.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras4_min.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras4_min.jpg new file mode 100644 index 0000000..794dbdf Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras4_min.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/images/high_tatras_min.jpg b/apps/it/static/js/ui/demos/droppable/images/high_tatras_min.jpg new file mode 100644 index 0000000..51e0cde Binary files /dev/null and b/apps/it/static/js/ui/demos/droppable/images/high_tatras_min.jpg differ diff --git a/apps/it/static/js/ui/demos/droppable/index.html b/apps/it/static/js/ui/demos/droppable/index.html new file mode 100644 index 0000000..deca6e4 --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/index.html @@ -0,0 +1,20 @@ + + + + + jQuery UI Droppable Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/droppable/photo-manager.html b/apps/it/static/js/ui/demos/droppable/photo-manager.html new file mode 100644 index 0000000..08e2950 --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/photo-manager.html @@ -0,0 +1,182 @@ + + + + + jQuery UI Droppable - Simple photo manager + + + + + + + + + + + + + + + + +
+ + + +
+

Trash Trash

+
+ +
+ +
+

You can delete an image either by dragging it to the Trash or by clicking the trash icon.

+

You can "recycle" an image by dragging it back to the gallery or by clicking the recycle icon.

+

You can view larger image by clicking the zoom icon. jQuery UI dialog widget is used for the modal window.

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/propagation.html b/apps/it/static/js/ui/demos/droppable/propagation.html new file mode 100644 index 0000000..247ac1c --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/propagation.html @@ -0,0 +1,73 @@ + + + + + jQuery UI Droppable - Prevent propagation + + + + + + + + + + + + + +
+

Drag me to my target

+
+ +
+

Outer droppable

+
+

Inner droppable (not greedy)

+
+
+ +
+

Outer droppable

+
+

Inner droppable (greedy)

+
+
+ +
+

When working with nested droppables — for example, you may have an editable directory structure displayed as a tree, with folder and document nodes — the greedy option set to true prevents event propagation when a draggable is dropped on a child node (droppable).

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/revert.html b/apps/it/static/js/ui/demos/droppable/revert.html new file mode 100644 index 0000000..5b54101 --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/revert.html @@ -0,0 +1,54 @@ + + + + + jQuery UI Droppable - Revert draggable position + + + + + + + + + + + + + +
+

I revert when I'm dropped

+
+ +
+

I revert when I'm not dropped

+
+ +
+

Drop me here

+
+ +
+

Return the draggable (or it's helper) to its original location when dragging stops with the boolean revert option set on the draggable.

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/shopping-cart.html b/apps/it/static/js/ui/demos/droppable/shopping-cart.html new file mode 100644 index 0000000..aadaefe --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/shopping-cart.html @@ -0,0 +1,94 @@ + + + + + jQuery UI Droppable - Shopping Cart Demo + + + + + + + + + + + + + + + +
+

Products

+
+

T-Shirts

+
+
    +
  • Lolcat Shirt
  • +
  • Cheezeburger Shirt
  • +
  • Buckit Shirt
  • +
+
+

Bags

+
+
    +
  • Zebra Striped
  • +
  • Black Leather
  • +
  • Alligator Leather
  • +
+
+

Gadgets

+
+
    +
  • iPhone
  • +
  • iPod
  • +
  • iPad
  • +
+
+
+
+ +
+

Shopping Cart

+
+
    +
  1. Add your items here
  2. +
+
+
+ +
+

Demonstrate how to use an accordion to structure products into a catalog and make use of drag and drop for adding them to a shopping cart, where they are sortable.

+
+ + diff --git a/apps/it/static/js/ui/demos/droppable/visual-feedback.html b/apps/it/static/js/ui/demos/droppable/visual-feedback.html new file mode 100644 index 0000000..f105373 --- /dev/null +++ b/apps/it/static/js/ui/demos/droppable/visual-feedback.html @@ -0,0 +1,72 @@ + + + + + jQuery UI Droppable - Visual feedback + + + + + + + + + + + + + +

Feedback on hover:

+ +
+

Drag me to my target

+
+ +
+

Drop here

+
+ +

Feedback on activating draggable:

+ +
+

Drag me to my target

+
+ +
+

Drop here

+
+ +
+

Change the droppable's appearance on hover, or when the droppable is active (an acceptable draggable is dropped on it). Use the hoverClass or activeClass options to specify respective classes.

+
+ + diff --git a/apps/it/static/js/ui/demos/effect/default.html b/apps/it/static/js/ui/demos/effect/default.html new file mode 100644 index 0000000..2a4aea3 --- /dev/null +++ b/apps/it/static/js/ui/demos/effect/default.html @@ -0,0 +1,102 @@ + + + + + jQuery UI Effects - Effect demo + + + + + + + + + + + + + + + + + + + + + + +
+
+

Effect

+

+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. +

+
+
+ + + +Run Effect + +
+

Click the button above to show the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/effect/easing.html b/apps/it/static/js/ui/demos/effect/easing.html new file mode 100644 index 0000000..bd0d830 --- /dev/null +++ b/apps/it/static/js/ui/demos/effect/easing.html @@ -0,0 +1,102 @@ + + + + + jQuery UI Effects - Easing demo + + + + + + + + + +
+ +
+

All easings provided by jQuery UI are drawn above, using a HTML canvas element. Click a diagram to see the easing in action.

+
+ + diff --git a/apps/it/static/js/ui/demos/effect/index.html b/apps/it/static/js/ui/demos/effect/index.html new file mode 100644 index 0000000..5da6bc6 --- /dev/null +++ b/apps/it/static/js/ui/demos/effect/index.html @@ -0,0 +1,15 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/hide/default.html b/apps/it/static/js/ui/demos/hide/default.html new file mode 100644 index 0000000..3cacd2a --- /dev/null +++ b/apps/it/static/js/ui/demos/hide/default.html @@ -0,0 +1,95 @@ + + + + + jQuery UI Effects - Hide Demo + + + + + + + + + + + + + + + + + + + + +
+
+

Hide

+

+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. +

+
+
+ + + +Run Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/hide/index.html b/apps/it/static/js/ui/demos/hide/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/hide/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/images/calendar.gif b/apps/it/static/js/ui/demos/images/calendar.gif new file mode 100644 index 0000000..d0abaa7 Binary files /dev/null and b/apps/it/static/js/ui/demos/images/calendar.gif differ diff --git a/apps/it/static/js/ui/demos/images/demo-config-on-tile.gif b/apps/it/static/js/ui/demos/images/demo-config-on-tile.gif new file mode 100644 index 0000000..a96b5bf Binary files /dev/null and b/apps/it/static/js/ui/demos/images/demo-config-on-tile.gif differ diff --git a/apps/it/static/js/ui/demos/images/demo-config-on.gif b/apps/it/static/js/ui/demos/images/demo-config-on.gif new file mode 100644 index 0000000..e3b6d7c Binary files /dev/null and b/apps/it/static/js/ui/demos/images/demo-config-on.gif differ diff --git a/apps/it/static/js/ui/demos/images/demo-spindown-closed.gif b/apps/it/static/js/ui/demos/images/demo-spindown-closed.gif new file mode 100644 index 0000000..ad4bd37 Binary files /dev/null and b/apps/it/static/js/ui/demos/images/demo-spindown-closed.gif differ diff --git a/apps/it/static/js/ui/demos/images/demo-spindown-open.gif b/apps/it/static/js/ui/demos/images/demo-spindown-open.gif new file mode 100644 index 0000000..e1c60aa Binary files /dev/null and b/apps/it/static/js/ui/demos/images/demo-spindown-open.gif differ diff --git a/apps/it/static/js/ui/demos/images/icon-docs-info.gif b/apps/it/static/js/ui/demos/images/icon-docs-info.gif new file mode 100644 index 0000000..ea6d2be Binary files /dev/null and b/apps/it/static/js/ui/demos/images/icon-docs-info.gif differ diff --git a/apps/it/static/js/ui/demos/images/pbar-ani.gif b/apps/it/static/js/ui/demos/images/pbar-ani.gif new file mode 100644 index 0000000..cb59a04 Binary files /dev/null and b/apps/it/static/js/ui/demos/images/pbar-ani.gif differ diff --git a/apps/it/static/js/ui/demos/index.html b/apps/it/static/js/ui/demos/index.html new file mode 100644 index 0000000..4739d76 --- /dev/null +++ b/apps/it/static/js/ui/demos/index.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/menu/default.html b/apps/it/static/js/ui/demos/menu/default.html new file mode 100644 index 0000000..d44b18b --- /dev/null +++ b/apps/it/static/js/ui/demos/menu/default.html @@ -0,0 +1,67 @@ + + + + + jQuery UI Menu - Default functionality + + + + + + + + + + + + + + +
+

A menu with the default configuration, disabled items and nested menus. A list is transformed, adding theming, mouse and keyboard navigation support. Try to tab to the menu then use the cursor keys to navigate.

+
+ + diff --git a/apps/it/static/js/ui/demos/menu/icons.html b/apps/it/static/js/ui/demos/menu/icons.html new file mode 100644 index 0000000..daa66c3 --- /dev/null +++ b/apps/it/static/js/ui/demos/menu/icons.html @@ -0,0 +1,44 @@ + + + + + jQuery UI Menu - Icons + + + + + + + + + + + + + + +
+

A menu with the default configuration, showing how to use a menu with icons.

+
+ + diff --git a/apps/it/static/js/ui/demos/menu/index.html b/apps/it/static/js/ui/demos/menu/index.html new file mode 100644 index 0000000..40e9e0b --- /dev/null +++ b/apps/it/static/js/ui/demos/menu/index.html @@ -0,0 +1,15 @@ + + + + + jQuery UI Menu Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/position/cycler.html b/apps/it/static/js/ui/demos/position/cycler.html new file mode 100644 index 0000000..e33e3be --- /dev/null +++ b/apps/it/static/js/ui/demos/position/cycler.html @@ -0,0 +1,107 @@ + + + + + jQuery UI Position - Image Cycler + + + + + + + + + + + +
+ earth + flight + rocket + + + +
+ +
+

A photoviewer prototype using Position to place images at the center, left and right and cycle them. +
Use the links at the top to cycle, or click on the images on the left and right. +
Note how the images are repositioned when resizing the window. +

+ + diff --git a/apps/it/static/js/ui/demos/position/default.html b/apps/it/static/js/ui/demos/position/default.html new file mode 100644 index 0000000..6248c38 --- /dev/null +++ b/apps/it/static/js/ui/demos/position/default.html @@ -0,0 +1,137 @@ + + + + + jQuery UI Position - Default functionality + + + + + + + + + + + + + +
+

+ This is the position parent element. +

+
+ +
+

+ to position +

+
+ +
+

+ to position 2 +

+
+ +
+ position... +
+ my: + + +
+
+ at: + + +
+
+ collision: + + +
+
+ +
+

Use the form controls to configure the positioning, or drag the positioned element to modify its offset. +
Drag around the parent element to see collision detection in action.

+
+ + diff --git a/apps/it/static/js/ui/demos/position/images/earth.jpg b/apps/it/static/js/ui/demos/position/images/earth.jpg new file mode 100644 index 0000000..e5477f7 Binary files /dev/null and b/apps/it/static/js/ui/demos/position/images/earth.jpg differ diff --git a/apps/it/static/js/ui/demos/position/images/flight.jpg b/apps/it/static/js/ui/demos/position/images/flight.jpg new file mode 100644 index 0000000..362bd1a Binary files /dev/null and b/apps/it/static/js/ui/demos/position/images/flight.jpg differ diff --git a/apps/it/static/js/ui/demos/position/images/rocket.jpg b/apps/it/static/js/ui/demos/position/images/rocket.jpg new file mode 100644 index 0000000..9c0495c Binary files /dev/null and b/apps/it/static/js/ui/demos/position/images/rocket.jpg differ diff --git a/apps/it/static/js/ui/demos/position/index.html b/apps/it/static/js/ui/demos/position/index.html new file mode 100644 index 0000000..a7b7548 --- /dev/null +++ b/apps/it/static/js/ui/demos/position/index.html @@ -0,0 +1,15 @@ + + + + + jQuery UI Position Demo + + + + + + + diff --git a/apps/it/static/js/ui/demos/progressbar/default.html b/apps/it/static/js/ui/demos/progressbar/default.html new file mode 100644 index 0000000..3c66fdf --- /dev/null +++ b/apps/it/static/js/ui/demos/progressbar/default.html @@ -0,0 +1,28 @@ + + + + + jQuery UI Progressbar - Default functionality + + + + + + + + + + +
+ +
+

Default determinate progress bar.

+
+ + diff --git a/apps/it/static/js/ui/demos/progressbar/images/pbar-ani.gif b/apps/it/static/js/ui/demos/progressbar/images/pbar-ani.gif new file mode 100644 index 0000000..cb59a04 Binary files /dev/null and b/apps/it/static/js/ui/demos/progressbar/images/pbar-ani.gif differ diff --git a/apps/it/static/js/ui/demos/progressbar/indeterminate.html b/apps/it/static/js/ui/demos/progressbar/indeterminate.html new file mode 100644 index 0000000..7d070c2 --- /dev/null +++ b/apps/it/static/js/ui/demos/progressbar/indeterminate.html @@ -0,0 +1,53 @@ + + + + + jQuery UI Progressbar - Indeterminate Value + + + + + + + + + + + +
+ + + + +
+

Indeterminate progress bar and switching between determinate and indeterminate styles.

+
+ + diff --git a/apps/it/static/js/ui/demos/progressbar/index.html b/apps/it/static/js/ui/demos/progressbar/index.html new file mode 100644 index 0000000..cfc054a --- /dev/null +++ b/apps/it/static/js/ui/demos/progressbar/index.html @@ -0,0 +1,16 @@ + + + + + jQuery UI Progressbar Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/progressbar/label.html b/apps/it/static/js/ui/demos/progressbar/label.html new file mode 100644 index 0000000..06a5707 --- /dev/null +++ b/apps/it/static/js/ui/demos/progressbar/label.html @@ -0,0 +1,61 @@ + + + + + jQuery UI Progressbar - Custom Label + + + + + + + + + + + +
Loading...
+ +
+

Custom updated label demo.

+
+ + diff --git a/apps/it/static/js/ui/demos/removeClass/default.html b/apps/it/static/js/ui/demos/removeClass/default.html new file mode 100644 index 0000000..cbd788a --- /dev/null +++ b/apps/it/static/js/ui/demos/removeClass/default.html @@ -0,0 +1,45 @@ + + + + + jQuery UI Effects - removeClass Demo + + + + + + + + + +
+
+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. +
+
+ +Run Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/removeClass/index.html b/apps/it/static/js/ui/demos/removeClass/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/removeClass/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/resizable/animate.html b/apps/it/static/js/ui/demos/resizable/animate.html new file mode 100644 index 0000000..789a22f --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/animate.html @@ -0,0 +1,36 @@ + + + + + jQuery UI Resizable - Animate + + + + + + + + + + + + +
+

Animate

+
+ +
+

Animate the resize action using the animate option (boolean). When this option is set to true, drag the outline to the desired location; the element animates to that size on drag stop.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/aspect-ratio.html b/apps/it/static/js/ui/demos/resizable/aspect-ratio.html new file mode 100644 index 0000000..e5cf5ba --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/aspect-ratio.html @@ -0,0 +1,35 @@ + + + + + jQuery UI Resizable - Preserve aspect ratio + + + + + + + + + + + + +
+

Preserve aspect ratio

+
+ +
+

Maintain the existing aspect ratio or set a new one to constrain the proportions on resize. Set the aspectRatio option to true, and optionally pass in a new ratio (i.e., 4/3)

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/constrain-area.html b/apps/it/static/js/ui/demos/resizable/constrain-area.html new file mode 100644 index 0000000..c062752 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/constrain-area.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Resizable - Constrain resize area + + + + + + + + + + + + +
+

Containment

+
+

Resizable

+
+
+ +
+

Define the boundaries of the resizable area. Use the containment option to specify a parent DOM element or a jQuery selector, like 'document.'

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/default.html b/apps/it/static/js/ui/demos/resizable/default.html new file mode 100644 index 0000000..ab5deb4 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/default.html @@ -0,0 +1,33 @@ + + + + + jQuery UI Resizable - Default functionality + + + + + + + + + + + + +
+

Resizable

+
+ +
+

Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/delay-start.html b/apps/it/static/js/ui/demos/resizable/delay-start.html new file mode 100644 index 0000000..6ecd3b6 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/delay-start.html @@ -0,0 +1,45 @@ + + + + + jQuery UI Resizable - Delay start + + + + + + + + + + + + +

Time delay (ms):

+
+

Time

+
+ +

Distance delay (px):

+
+

Distance

+
+ +
+

Delay the start of resizing for a number of milliseconds with the delay option; prevent resizing until the cursor is held down and dragged a specifed number of pixels with the distance option.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/helper.html b/apps/it/static/js/ui/demos/resizable/helper.html new file mode 100644 index 0000000..b2d14d3 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/helper.html @@ -0,0 +1,36 @@ + + + + + jQuery UI Resizable - Helper + + + + + + + + + + + + +
+

Helper

+
+ +
+

Display only an outline of the element while resizing by setting the helper option to a CSS class.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/index.html b/apps/it/static/js/ui/demos/resizable/index.html new file mode 100644 index 0000000..7c626e2 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/index.html @@ -0,0 +1,24 @@ + + + + + jQuery UI Resizable Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/resizable/max-min.html b/apps/it/static/js/ui/demos/resizable/max-min.html new file mode 100644 index 0000000..521b305 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/max-min.html @@ -0,0 +1,38 @@ + + + + + jQuery UI Resizable - Maximum / minimum size + + + + + + + + + + + + +
+

Resize larger / smaller

+
+ +
+

Limit the resizable element to a maximum or minimum height or width using the maxHeight, maxWidth, minHeight, and minWidth options.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/snap-to-grid.html b/apps/it/static/js/ui/demos/resizable/snap-to-grid.html new file mode 100644 index 0000000..b55ec73 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/snap-to-grid.html @@ -0,0 +1,35 @@ + + + + + jQuery UI Resizable - Snap to grid + + + + + + + + + + + + +
+

Grid

+
+ +
+

Snap the resizable element to a grid. Set the dimensions of grid cells (height and width in pixels) with the grid option.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/synchronous-resize.html b/apps/it/static/js/ui/demos/resizable/synchronous-resize.html new file mode 100644 index 0000000..a4e24a4 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/synchronous-resize.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Resizable - Synchronous resize + + + + + + + + + + + + +
+

Resize

+
+ +
+

will also resize

+
+ +
+

Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the alsoResize option.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/textarea.html b/apps/it/static/js/ui/demos/resizable/textarea.html new file mode 100644 index 0000000..e82dae3 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/textarea.html @@ -0,0 +1,34 @@ + + + + + jQuery UI Resizable - Textarea + + + + + + + + + + + + + + +
+

Display only an outline of the element while resizing by setting the helper option to a CSS class.

+
+ + diff --git a/apps/it/static/js/ui/demos/resizable/visual-feedback.html b/apps/it/static/js/ui/demos/resizable/visual-feedback.html new file mode 100644 index 0000000..3532ba3 --- /dev/null +++ b/apps/it/static/js/ui/demos/resizable/visual-feedback.html @@ -0,0 +1,36 @@ + + + + + jQuery UI Resizable - Visual feedback + + + + + + + + + + + + +
+

Ghost

+
+ +
+

Instead of showing the actual element during resize, set the ghost option to true to show a semi-transparent part of the element.

+
+ + diff --git a/apps/it/static/js/ui/demos/selectable/default.html b/apps/it/static/js/ui/demos/selectable/default.html new file mode 100644 index 0000000..369b3ab --- /dev/null +++ b/apps/it/static/js/ui/demos/selectable/default.html @@ -0,0 +1,43 @@ + + + + + jQuery UI Selectable - Default functionality + + + + + + + + + + + + + +
    +
  1. Item 1
  2. +
  3. Item 2
  4. +
  5. Item 3
  6. +
  7. Item 4
  8. +
  9. Item 5
  10. +
  11. Item 6
  12. +
  13. Item 7
  14. +
+ +
+

Enable a DOM element (or group of elements) to be selectable. Draw a box with your cursor to select items. Hold down the Ctrl key to make multiple non-adjacent selections.

+
+ + diff --git a/apps/it/static/js/ui/demos/selectable/display-grid.html b/apps/it/static/js/ui/demos/selectable/display-grid.html new file mode 100644 index 0000000..0445cb3 --- /dev/null +++ b/apps/it/static/js/ui/demos/selectable/display-grid.html @@ -0,0 +1,48 @@ + + + + + jQuery UI Selectable - Display as grid + + + + + + + + + + + + + +
    +
  1. 1
  2. +
  3. 2
  4. +
  5. 3
  6. +
  7. 4
  8. +
  9. 5
  10. +
  11. 6
  12. +
  13. 7
  14. +
  15. 8
  16. +
  17. 9
  18. +
  19. 10
  20. +
  21. 11
  22. +
  23. 12
  24. +
+ +
+

To arrange selectable items as a grid, give them identical dimensions and float them using CSS.

+
+ + diff --git a/apps/it/static/js/ui/demos/selectable/index.html b/apps/it/static/js/ui/demos/selectable/index.html new file mode 100644 index 0000000..a82830c --- /dev/null +++ b/apps/it/static/js/ui/demos/selectable/index.html @@ -0,0 +1,16 @@ + + + + + jQuery UI Selectable Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/selectable/serialize.html b/apps/it/static/js/ui/demos/selectable/serialize.html new file mode 100644 index 0000000..38edde9 --- /dev/null +++ b/apps/it/static/js/ui/demos/selectable/serialize.html @@ -0,0 +1,54 @@ + + + + + jQuery UI Selectable - Serialize + + + + + + + + + + + + + +

+You've selected: none. +

+ +
    +
  1. Item 1
  2. +
  3. Item 2
  4. +
  5. Item 3
  6. +
  7. Item 4
  8. +
  9. Item 5
  10. +
  11. Item 6
  12. +
+ +
+

Write a function that fires on the stop event to collect the index values of selected items. Present values as feedback, or pass as a data string.

+
+ + diff --git a/apps/it/static/js/ui/demos/show/default.html b/apps/it/static/js/ui/demos/show/default.html new file mode 100644 index 0000000..dc3abd2 --- /dev/null +++ b/apps/it/static/js/ui/demos/show/default.html @@ -0,0 +1,97 @@ + + + + + jQuery UI Effects - Show Demo + + + + + + + + + + + + + + + + + + + + +
+
+

Show

+

+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. +

+
+
+ + + +Run Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/show/index.html b/apps/it/static/js/ui/demos/show/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/show/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/slider/colorpicker.html b/apps/it/static/js/ui/demos/slider/colorpicker.html new file mode 100644 index 0000000..bf74b41 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/colorpicker.html @@ -0,0 +1,87 @@ + + + + + jQuery UI Slider - Colorpicker + + + + + + + + + + + + +

+ + Simple Colorpicker +

+ +
+
+
+ +
+ +
+

Combine three sliders to create a simple RGB colorpicker.

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/default.html b/apps/it/static/js/ui/demos/slider/default.html new file mode 100644 index 0000000..d637412 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/default.html @@ -0,0 +1,27 @@ + + + + + jQuery UI Slider - Default functionality + + + + + + + + + + + +
+ +
+

The basic slider is horizontal and has a single handle that can be moved with the mouse or by using the arrow keys.

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/hotelrooms.html b/apps/it/static/js/ui/demos/slider/hotelrooms.html new file mode 100644 index 0000000..189f3d3 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/hotelrooms.html @@ -0,0 +1,49 @@ + + + + + jQuery UI Slider - Slider bound to select + + + + + + + + + + + +
+ + +
+ +
+

How to bind a slider to an existing select element. The select stays visible to display the change. When the select is changed, the slider is updated, too.

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/index.html b/apps/it/static/js/ui/demos/slider/index.html new file mode 100644 index 0000000..2d05bb5 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/index.html @@ -0,0 +1,24 @@ + + + + + jQuery UI Slider Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/slider/multiple-vertical.html b/apps/it/static/js/ui/demos/slider/multiple-vertical.html new file mode 100644 index 0000000..66a3ab8 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/multiple-vertical.html @@ -0,0 +1,69 @@ + + + + + jQuery UI Slider - Multiple sliders + + + + + + + + + + + + +

+ + Master volume +

+ +
+ +

+ + Graphic EQ +

+ +
+ 88 + 77 + 55 + 33 + 40 + 45 + 70 +
+ +
+

Combine horizontal and vertical sliders, each with their own options, to create the UI for a music player.

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/range-vertical.html b/apps/it/static/js/ui/demos/slider/range-vertical.html new file mode 100644 index 0000000..31ecdb0 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/range-vertical.html @@ -0,0 +1,41 @@ + + + + + jQuery UI Slider - Vertical range slider + + + + + + + + + + + +

+ + +

+ +
+ +
+

Change the orientation of the range slider to vertical. Assign a height value via .height() or by setting the height through CSS, and set the orientation option to "vertical."

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/range.html b/apps/it/static/js/ui/demos/slider/range.html new file mode 100644 index 0000000..afde36d --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/range.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Slider - Range slider + + + + + + + + + + + +

+ + +

+ +
+ +
+

Set the range option to true to capture a range of values with two drag handles. The space between the handles is filled with a different background color to indicate those values are selected.

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/rangemax.html b/apps/it/static/js/ui/demos/slider/rangemax.html new file mode 100644 index 0000000..d4cebe4 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/rangemax.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Slider - Range with fixed maximum + + + + + + + + + + + +

+ + +

+
+ +
+

Fix the maximum value of the range slider so that the user can only select a minimum. Set the range option to "max."

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/rangemin.html b/apps/it/static/js/ui/demos/slider/rangemin.html new file mode 100644 index 0000000..cd86f9c --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/rangemin.html @@ -0,0 +1,41 @@ + + + + + jQuery UI Slider - Range with fixed minimum + + + + + + + + + + + +

+ + +

+ +
+ +
+

Fix the minimum value of the range slider so that the user can only select a maximum. Set the range option to "min."

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/side-scroll.html b/apps/it/static/js/ui/demos/slider/side-scroll.html new file mode 100644 index 0000000..6c20a51 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/side-scroll.html @@ -0,0 +1,131 @@ + + + + + jQuery UI Slider - Slider scrollbar + + + + + + + + + + + + +
+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
+
+
+
+
+ +
+

Use a slider to manipulate the positioning of content on the page. In this case, it acts as a scrollbar with the potential to capture values if needed.

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/slider-vertical.html b/apps/it/static/js/ui/demos/slider/slider-vertical.html new file mode 100644 index 0000000..33fc8e0 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/slider-vertical.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Slider - Vertical slider + + + + + + + + + + + +

+ + +

+ +
+ +
+

Change the orientation of the slider to vertical. Assign a height value via .height() or by setting the height through CSS, and set the orientation option to "vertical."

+
+ + diff --git a/apps/it/static/js/ui/demos/slider/steps.html b/apps/it/static/js/ui/demos/slider/steps.html new file mode 100644 index 0000000..92b6a14 --- /dev/null +++ b/apps/it/static/js/ui/demos/slider/steps.html @@ -0,0 +1,41 @@ + + + + + jQuery UI Slider - Snap to increments + + + + + + + + + + + +

+ + +

+ +
+ +
+

Increment slider values with the step option set to an integer, commonly a dividend of the slider's maximum value. The default increment is 1.

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/connect-lists-through-tabs.html b/apps/it/static/js/ui/demos/sortable/connect-lists-through-tabs.html new file mode 100644 index 0000000..f82fd8d --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/connect-lists-through-tabs.html @@ -0,0 +1,72 @@ + + + + + jQuery UI Sortable - Connect lists with Tabs + + + + + + + + + + + + + + +
+ +
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+
+
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+
+
+ +
+

Sort items from one list into another and vice versa, by dropping the list item on the appropriate tab above.

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/connect-lists.html b/apps/it/static/js/ui/demos/sortable/connect-lists.html new file mode 100644 index 0000000..b28991f --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/connect-lists.html @@ -0,0 +1,52 @@ + + + + + jQuery UI Sortable - Connect lists + + + + + + + + + + + + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+ +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+ +
+

+ Sort items from one list into another and vice versa, by passing a selector into + the connectWith option. The simplest way to do this is to + group all related lists with a CSS class, and then pass that class into the + sortable function (i.e., connectWith: '.myclass'). +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/default.html b/apps/it/static/js/ui/demos/sortable/default.html new file mode 100644 index 0000000..34795ad --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/default.html @@ -0,0 +1,45 @@ + + + + + jQuery UI Sortable - Default functionality + + + + + + + + + + + + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
  • Item 6
  • +
  • Item 7
  • +
+ +
+

+ Enable a group of DOM elements to be sortable. Click on and drag an + element to a new spot within the list, and the other items will adjust to + fit. By default, sortable items share draggable properties. +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/delay-start.html b/apps/it/static/js/ui/demos/sortable/delay-start.html new file mode 100644 index 0000000..dad630a --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/delay-start.html @@ -0,0 +1,61 @@ + + + + + jQuery UI Sortable - Delay start + + + + + + + + + + + + +

Time delay of 300ms:

+ +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
+ +

Distance delay of 15px:

+ +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
+ +
+

+ Prevent accidental sorting either by delay (time) or distance. Set a number of + milliseconds the element needs to be dragged before sorting starts + with the delay option. Set a distance in pixels the element + needs to be dragged before sorting starts with the distance + option. +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/display-grid.html b/apps/it/static/js/ui/demos/sortable/display-grid.html new file mode 100644 index 0000000..91aaa8d --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/display-grid.html @@ -0,0 +1,48 @@ + + + + + jQuery UI Sortable - Display as grid + + + + + + + + + + + + +
    +
  • 1
  • +
  • 2
  • +
  • 3
  • +
  • 4
  • +
  • 5
  • +
  • 6
  • +
  • 7
  • +
  • 8
  • +
  • 9
  • +
  • 10
  • +
  • 11
  • +
  • 12
  • +
+ +
+

+ To arrange sortable items as a grid, give them identical dimensions and + float them using CSS. +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/empty-lists.html b/apps/it/static/js/ui/demos/sortable/empty-lists.html new file mode 100644 index 0000000..43a74ac --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/empty-lists.html @@ -0,0 +1,63 @@ + + + + + jQuery UI Sortable - Handle empty lists + + + + + + + + + + + + +
    +
  • Can be dropped..
  • +
  • ..on an empty list
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+ +
    +
  • Cannot be dropped..
  • +
  • ..on an empty list
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
+ +
    +
+ +
+ +
+

+ Prevent all items in a list from being dropped into a separate, empty list + using the dropOnEmpty option set to false. By default, + sortable items can be dropped on empty lists. +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/index.html b/apps/it/static/js/ui/demos/sortable/index.html new file mode 100644 index 0000000..66b0b5c --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/index.html @@ -0,0 +1,22 @@ + + + + + jQuery UI Sortable Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/sortable/items.html b/apps/it/static/js/ui/demos/sortable/items.html new file mode 100644 index 0000000..a370b08 --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/items.html @@ -0,0 +1,64 @@ + + + + + jQuery UI Sortable - Include / exclude items + + + + + + + + + + + + +

Specify which items are sortable:

+ +
    +
  • Item 1
  • +
  • (I'm not sortable or a drop target)
  • +
  • (I'm not sortable or a drop target)
  • +
  • Item 4
  • +
+ +

Cancel sorting (but keep as drop targets):

+ +
    +
  • Item 1
  • +
  • (I'm not sortable)
  • +
  • (I'm not sortable)
  • +
  • Item 4
  • +
+ +
+

+ Specify which items are eligible to sort by passing a jQuery selector into + the items option. Items excluded from this option are not + sortable, nor are they valid targets for sortable items. +

+

+ To only prevent sorting on certain items, pass a jQuery selector into the + cancel option. Cancelled items remain valid sort targets for + others. +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/placeholder.html b/apps/it/static/js/ui/demos/sortable/placeholder.html new file mode 100644 index 0000000..ff29cf6 --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/placeholder.html @@ -0,0 +1,50 @@ + + + + + jQuery UI Sortable - Drop placeholder + + + + + + + + + + + + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
  • Item 5
  • +
  • Item 6
  • +
  • Item 7
  • +
+ +
+

+ When dragging a sortable item to a new location, other items will make room + for the that item by shifting to allow white space between them. Pass a + class into the placeholder option to style that space to + be visible. Use the boolean forcePlaceholderSize option + to set dimensions on the placeholder. +

+
+ + diff --git a/apps/it/static/js/ui/demos/sortable/portlets.html b/apps/it/static/js/ui/demos/sortable/portlets.html new file mode 100644 index 0000000..546fe58 --- /dev/null +++ b/apps/it/static/js/ui/demos/sortable/portlets.html @@ -0,0 +1,115 @@ + + + + + jQuery UI Sortable - Portlets + + + + + + + + + + + + +
+ +
+
Feeds
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
+
+ +
+
News
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
+
+ +
+ +
+ +
+
Shopping
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
+
+ +
+ +
+ +
+
Links
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
+
+ +
+
Images
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
+
+ +
+ +
+

+ Enable portlets (styled divs) as sortables and use the connectWith + option to allow sorting between columns. +

+
+ + diff --git a/apps/it/static/js/ui/demos/spinner/currency.html b/apps/it/static/js/ui/demos/spinner/currency.html new file mode 100644 index 0000000..ebe8d66 --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/currency.html @@ -0,0 +1,52 @@ + + + + + jQuery UI Spinner - Currency + + + + + + + + + + + + + + + +

+ + +

+

+ + +

+ +
+

Example of a donation form, with currency selection and amount spinner.

+
+ + diff --git a/apps/it/static/js/ui/demos/spinner/decimal.html b/apps/it/static/js/ui/demos/spinner/decimal.html new file mode 100644 index 0000000..06ef567 --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/decimal.html @@ -0,0 +1,56 @@ + + + + + jQuery UI Spinner - Decimal + + + + + + + + + + + + + + + +

+ + +

+

+ + +

+ +
+

+ Example of a decimal spinner. Step is set to 0.01. +
The code handling the culture change reads the current spinner value, + then changes the culture, then sets the value again, resulting in an updated + formatting, based on the new culture. +

+
+ + diff --git a/apps/it/static/js/ui/demos/spinner/default.html b/apps/it/static/js/ui/demos/spinner/default.html new file mode 100644 index 0000000..ed46f96 --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/default.html @@ -0,0 +1,64 @@ + + + + + jQuery UI Spinner - Default functionality + + + + + + + + + + + + +

+ + +

+ +

+ + +

+ +

+ + +

+ +
+

Default spinner.

+
+ + diff --git a/apps/it/static/js/ui/demos/spinner/index.html b/apps/it/static/js/ui/demos/spinner/index.html new file mode 100644 index 0000000..f3c74d0 --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/index.html @@ -0,0 +1,19 @@ + + + + + jQuery UI Spinner Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/spinner/latlong.html b/apps/it/static/js/ui/demos/spinner/latlong.html new file mode 100644 index 0000000..1c419ad --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/latlong.html @@ -0,0 +1,57 @@ + + + + + jQuery UI Spinner - Map + + + + + + + + + + + + + + + + +
+ + + +
+ +
+

Google Maps integration, using spinners to change latitude and longitude.

+
+ + diff --git a/apps/it/static/js/ui/demos/spinner/overflow.html b/apps/it/static/js/ui/demos/spinner/overflow.html new file mode 100644 index 0000000..2d5dd16 --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/overflow.html @@ -0,0 +1,44 @@ + + + + + jQuery UI Spinner - Overflow + + + + + + + + + + + + +

+ + +

+ +
+

+Overflowing spinner restricted to a range of -10 to 10. +For anything above 10, it'll overflow to -10, and the other way round. +

+
+ + diff --git a/apps/it/static/js/ui/demos/spinner/time.html b/apps/it/static/js/ui/demos/spinner/time.html new file mode 100644 index 0000000..f5dab29 --- /dev/null +++ b/apps/it/static/js/ui/demos/spinner/time.html @@ -0,0 +1,74 @@ + + + + + jQuery UI Spinner - Time + + + + + + + + + + + + + + +

+ + +

+

+ + +

+ +
+

+ A custom widget extending spinner. Use the Globalization plugin to parse and output + a timestamp, with custom step and page options. Cursor up/down spins minutes, page up/down + spins hours. +

+
+ + diff --git a/apps/it/static/js/ui/demos/switchClass/default.html b/apps/it/static/js/ui/demos/switchClass/default.html new file mode 100644 index 0000000..1200699 --- /dev/null +++ b/apps/it/static/js/ui/demos/switchClass/default.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Effects - switchClass Demo + + + + + + + + + +
+
+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. +
+
+Run Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/switchClass/index.html b/apps/it/static/js/ui/demos/switchClass/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/switchClass/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/tabs/ajax.html b/apps/it/static/js/ui/demos/tabs/ajax.html new file mode 100644 index 0000000..873a6f1 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/ajax.html @@ -0,0 +1,46 @@ + + + + + jQuery UI Tabs - Content via Ajax + + + + + + + + + + +
+ +
+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+ +
+

Fetch external content via Ajax for the tabs by setting an href value in the tab links. While the Ajax request is waiting for a response, the tab label changes to say "Loading...", then returns to the normal label once loaded.

+

Tabs 3 and 4 demonstrate slow-loading and broken AJAX tabs, and how to handle serverside errors in those cases. Note: These two require a webserver to interpret PHP. They won't work from the filesystem.

+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/ajax/content1.html b/apps/it/static/js/ui/demos/tabs/ajax/content1.html new file mode 100644 index 0000000..472bdfb --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/ajax/content1.html @@ -0,0 +1,4 @@ +

This content was loaded via ajax.

+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+

Mauris vitae ante. Curabitur augue. Nulla purus nibh, lobortis ut, feugiat at, aliquam id, purus. Sed venenatis, lorem venenatis volutpat commodo, purus quam lacinia justo, mattis interdum pede pede a odio. Fusce nibh. Morbi nisl mauris, dapibus in, tristique eget, accumsan et, pede. Donec mauris risus, pulvinar ut, faucibus eu, mollis in, nunc. In augue massa, commodo a, cursus vehicula, varius eu, dui. Suspendisse sodales suscipit lorem. Morbi malesuada, eros quis condimentum dignissim, lectus nibh tristique urna, non bibendum diam massa vel risus. Morbi suscipit. Proin egestas, eros at scelerisque scelerisque, dolor lacus fringilla lacus, ut ullamcorper mi magna at quam. Aliquam sed elit. Aliquam turpis purus, congue quis, iaculis id, ullamcorper sit amet, justo. Maecenas sed mauris. Proin magna justo, interdum in, tincidunt eu, viverra eu, turpis. Suspendisse mollis. In magna. Phasellus pellentesque, urna pellentesque convallis pellentesque, augue sem blandit pede, at rhoncus libero nisl a odio.

+

Sed vitae nibh non magna semper tempor. Duis dolor. Nam congue laoreet arcu. Fusce lobortis enim quis ligula. Maecenas commodo odio id mi. Maecenas scelerisque tellus eu odio. Etiam dolor purus, lacinia a, imperdiet in, aliquam et, eros. In pellentesque. Nullam ac massa. Integer et turpis. Ut quam augue, congue non, imperdiet id, eleifend ac, nisi. Etiam ac arcu. Cras iaculis accumsan erat. Nullam vulputate sapien nec nisi pretium rhoncus. Aliquam a nibh. Vivamus est ante, fermentum a, tincidunt ut, imperdiet nec, velit. Aenean non tortor. Sed nec mauris eget tellus condimentum rutrum.

\ No newline at end of file diff --git a/apps/it/static/js/ui/demos/tabs/ajax/content2.html b/apps/it/static/js/ui/demos/tabs/ajax/content2.html new file mode 100644 index 0000000..18b03e4 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/ajax/content2.html @@ -0,0 +1,4 @@ +

This other content was loaded via ajax.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec turpis justo, et facilisis ligula. In congue interdum odio, a scelerisque eros posuere ac. Aenean massa tellus, dictum sit amet laoreet ut, aliquam in orci. Duis eu aliquam ligula. Nullam vel placerat ligula. Fusce venenatis viverra dictum. Phasellus dui dolor, imperdiet in sodales at, mattis sed libero. Morbi ac ipsum ligula. Quisque suscipit dui vel diam pretium nec cursus lacus malesuada. Donec sollicitudin, eros eget dignissim mollis, risus leo feugiat tellus, vel posuere nisl ipsum eu erat. Quisque posuere lacinia imperdiet. Quisque nunc leo, elementum quis ultricies et, vehicula sit amet turpis. Nullam sed nunc nec nibh condimentum mattis. Quisque sed ligula sit amet nisi ultricies bibendum eget id nisi.

+

Proin ut erat vel nunc tincidunt commodo. Curabitur feugiat, nisi et vehicula viverra, nisl orci eleifend arcu, sed blandit lectus nisl quis nisi. In hac habitasse platea dictumst. In hac habitasse platea dictumst. Aenean rutrum gravida velit ac imperdiet. Integer vitae arcu risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin tincidunt orci at leo egestas porta. Vivamus ac augue et enim bibendum hendrerit ut id urna. Donec sollicitudin pulvinar turpis vitae scelerisque. Etiam tempor porttitor est sed blandit. Phasellus varius consequat leo eget tincidunt. Aliquam ac dui lectus. In et consectetur orci. Duis posuere nulla ac turpis faucibus vestibulum. Sed ut velit et dolor rhoncus dapibus. Sed sit amet pellentesque est.

+

Nam in volutpat orci. Morbi sit amet orci in erat egestas dignissim. Etiam mi sapien, tempus sed iaculis a, adipiscing quis tellus. Suspendisse potenti. Nam malesuada tristique vestibulum. In tempor tellus dignissim neque consectetur eu vestibulum nisl pellentesque. Phasellus ultrices cursus velit, id aliquam nisl fringilla quis. Cras varius elit sed urna ultrices congue. Sed ornare odio sed velit pellentesque id varius nisl sodales. Sed auctor ligula egestas mi pharetra ut consectetur erat pharetra.

\ No newline at end of file diff --git a/apps/it/static/js/ui/demos/tabs/ajax/content3-slow.php b/apps/it/static/js/ui/demos/tabs/ajax/content3-slow.php new file mode 100644 index 0000000..7ad43ec --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/ajax/content3-slow.php @@ -0,0 +1,7 @@ + +

This content was loaded via ajax, though it took a second.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec turpis justo, et facilisis ligula. In congue interdum odio, a scelerisque eros posuere ac. Aenean massa tellus, dictum sit amet laoreet ut, aliquam in orci. Duis eu aliquam ligula. Nullam vel placerat ligula. Fusce venenatis viverra dictum. Phasellus dui dolor, imperdiet in sodales at, mattis sed libero. Morbi ac ipsum ligula. Quisque suscipit dui vel diam pretium nec cursus lacus malesuada. Donec sollicitudin, eros eget dignissim mollis, risus leo feugiat tellus, vel posuere nisl ipsum eu erat. Quisque posuere lacinia imperdiet. Quisque nunc leo, elementum quis ultricies et, vehicula sit amet turpis. Nullam sed nunc nec nibh condimentum mattis. Quisque sed ligula sit amet nisi ultricies bibendum eget id nisi.

+

Proin ut erat vel nunc tincidunt commodo. Curabitur feugiat, nisi et vehicula viverra, nisl orci eleifend arcu, sed blandit lectus nisl quis nisi. In hac habitasse platea dictumst. In hac habitasse platea dictumst. Aenean rutrum gravida velit ac imperdiet. Integer vitae arcu risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin tincidunt orci at leo egestas porta. Vivamus ac augue et enim bibendum hendrerit ut id urna. Donec sollicitudin pulvinar turpis vitae scelerisque. Etiam tempor porttitor est sed blandit. Phasellus varius consequat leo eget tincidunt. Aliquam ac dui lectus. In et consectetur orci. Duis posuere nulla ac turpis faucibus vestibulum. Sed ut velit et dolor rhoncus dapibus. Sed sit amet pellentesque est.

+

Nam in volutpat orci. Morbi sit amet orci in erat egestas dignissim. Etiam mi sapien, tempus sed iaculis a, adipiscing quis tellus. Suspendisse potenti. Nam malesuada tristique vestibulum. In tempor tellus dignissim neque consectetur eu vestibulum nisl pellentesque. Phasellus ultrices cursus velit, id aliquam nisl fringilla quis. Cras varius elit sed urna ultrices congue. Sed ornare odio sed velit pellentesque id varius nisl sodales. Sed auctor ligula egestas mi pharetra ut consectetur erat pharetra.

\ No newline at end of file diff --git a/apps/it/static/js/ui/demos/tabs/ajax/content4-broken.php b/apps/it/static/js/ui/demos/tabs/ajax/content4-broken.php new file mode 100644 index 0000000..55ea2fe --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/ajax/content4-broken.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/apps/it/static/js/ui/demos/tabs/bottom.html b/apps/it/static/js/ui/demos/tabs/bottom.html new file mode 100644 index 0000000..4841608 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/bottom.html @@ -0,0 +1,58 @@ + + + + + jQuery UI Tabs - Tabs at bottom + + + + + + + + + + + +
+ +
+
+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+

Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

+
+
+

Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.

+

Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.

+
+
+ +
+

With some additional CSS (for positioning) and JS (to put the right classes on elements) the tabs can be placed below their content.

+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/collapsible.html b/apps/it/static/js/ui/demos/tabs/collapsible.html new file mode 100644 index 0000000..1f01aa3 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/collapsible.html @@ -0,0 +1,48 @@ + + + + + jQuery UI Tabs - Collapse content + + + + + + + + + + +
+ +
+

Click this tab again to close the content pane.

+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+

Click this tab again to close the content pane.

+

Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

+
+
+

Click this tab again to close the content pane.

+

Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.

+
+
+ +
+

Click the selected tab to toggle its content closed/open. To enable this functionality, set the collapsible option to true.

+
collapsible: true
+
+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/default.html b/apps/it/static/js/ui/demos/tabs/default.html new file mode 100644 index 0000000..18e587e --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/default.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Tabs - Default functionality + + + + + + + + + + +
+ +
+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+

Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

+
+
+

Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.

+

Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.

+
+
+ +
+

Click tabs to swap between content that is broken into logical sections.

+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/index.html b/apps/it/static/js/ui/demos/tabs/index.html new file mode 100644 index 0000000..779dfd2 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/index.html @@ -0,0 +1,20 @@ + + + + + jQuery UI Tabs Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/tabs/manipulation.html b/apps/it/static/js/ui/demos/tabs/manipulation.html new file mode 100644 index 0000000..62239c4 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/manipulation.html @@ -0,0 +1,122 @@ + + + + + jQuery UI Tabs - Simple manipulation + + + + + + + + + + + + + + +
+
+
+ + + + +
+
+
+ + + +
+ +
+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+ +
+

Simple tabs adding and removing.

+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/mouseover.html b/apps/it/static/js/ui/demos/tabs/mouseover.html new file mode 100644 index 0000000..38e43d3 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/mouseover.html @@ -0,0 +1,44 @@ + + + + + jQuery UI Tabs - Open on mouseover + + + + + + + + + + +
+ +
+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+

Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

+
+
+

Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.

+

Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.

+
+
+ +
+

Toggle sections open/closed on mouseover with the event option. The default value for event is "click."

+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/sortable.html b/apps/it/static/js/ui/demos/tabs/sortable.html new file mode 100644 index 0000000..9eeba95 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/sortable.html @@ -0,0 +1,51 @@ + + + + + jQuery UI Tabs - Sortable + + + + + + + + + + + + +
+ +
+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+

Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

+
+
+

Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.

+

Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.

+
+
+ +
+

Drag the tabs above to re-order them.

+

Making tabs sortable is as simple as calling .sortable() on the .ui-tabs-nav element.

+
+ + diff --git a/apps/it/static/js/ui/demos/tabs/vertical.html b/apps/it/static/js/ui/demos/tabs/vertical.html new file mode 100644 index 0000000..874a127 --- /dev/null +++ b/apps/it/static/js/ui/demos/tabs/vertical.html @@ -0,0 +1,54 @@ + + + + + jQuery UI Tabs - Vertical Tabs functionality + + + + + + + + + + + +
+ +
+

Content heading 1

+

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

+
+
+

Content heading 2

+

Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

+
+
+

Content heading 3

+

Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.

+

Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.

+
+
+ +
+

Click tabs to swap between content that is broken into logical sections.

+
+ + diff --git a/apps/it/static/js/ui/demos/toggle/default.html b/apps/it/static/js/ui/demos/toggle/default.html new file mode 100644 index 0000000..5150116 --- /dev/null +++ b/apps/it/static/js/ui/demos/toggle/default.html @@ -0,0 +1,103 @@ + + + + + jQuery UI Effects - Toggle Demo + + + + + + + + + + + + + + + + + + + + +
+
+

Toggle

+

+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. +

+
+
+ + + +Run Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/toggle/index.html b/apps/it/static/js/ui/demos/toggle/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/toggle/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/toggleClass/default.html b/apps/it/static/js/ui/demos/toggleClass/default.html new file mode 100644 index 0000000..01fa1d5 --- /dev/null +++ b/apps/it/static/js/ui/demos/toggleClass/default.html @@ -0,0 +1,39 @@ + + + + + jQuery UI Effects - toggleClass Demo + + + + + + + + + +
+
+ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. +
+
+ +Run Effect + +
+

Click the button above to preview the effect.

+
+ + diff --git a/apps/it/static/js/ui/demos/toggleClass/index.html b/apps/it/static/js/ui/demos/toggleClass/index.html new file mode 100644 index 0000000..3620fd7 --- /dev/null +++ b/apps/it/static/js/ui/demos/toggleClass/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Effects Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/tooltip/ajax/content1.html b/apps/it/static/js/ui/demos/tooltip/ajax/content1.html new file mode 100644 index 0000000..a1401b2 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/ajax/content1.html @@ -0,0 +1 @@ +

This content was loaded via ajax.

\ No newline at end of file diff --git a/apps/it/static/js/ui/demos/tooltip/ajax/content2.html b/apps/it/static/js/ui/demos/tooltip/ajax/content2.html new file mode 100644 index 0000000..f4132d7 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/ajax/content2.html @@ -0,0 +1 @@ +

This other content was loaded via ajax.

\ No newline at end of file diff --git a/apps/it/static/js/ui/demos/tooltip/custom-animation.html b/apps/it/static/js/ui/demos/tooltip/custom-animation.html new file mode 100644 index 0000000..02f2003 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/custom-animation.html @@ -0,0 +1,54 @@ + + + + + jQuery UI Tooltip - Custom animation demo + + + + + + + + + + + + + +

There are various ways to customize the animation of a tooltip.

+

You can use the show and +hide options.

+

You can also use the open event.

+ +
+

This demo shows how to customize animations using the show and hide options, +as well as the open event.

+
+ + diff --git a/apps/it/static/js/ui/demos/tooltip/custom-content.html b/apps/it/static/js/ui/demos/tooltip/custom-content.html new file mode 100644 index 0000000..70e54e2 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/custom-content.html @@ -0,0 +1,83 @@ + + + + + jQuery UI Tooltip - Custom content + + + + + + + + + + + + +
+
+

St. Stephen's Cathedral

+

Vienna, Austria

+
+ + St. Stephen's Cathedral + +
+ +
+
+

Tower Bridge

+

London, England

+
+ + Tower Bridge + +
+ +

All images are part of Wikimedia Commons +and are licensed under CC BY-SA 3.0 by the copyright holder.

+ +
+

Shows how to combine different event delegated tooltips into a single instance, by customizing the items and content options.

+

We realize you may want to interact with the map tooltips. This is a planned feature for a future version.

+
+ + diff --git a/apps/it/static/js/ui/demos/tooltip/custom-style.html b/apps/it/static/js/ui/demos/tooltip/custom-style.html new file mode 100644 index 0000000..3cfc708 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/custom-style.html @@ -0,0 +1,95 @@ + + + + + jQuery UI Tooltip - Custom Styling + + + + + + + + + + + + +

Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

+

But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

+

Tooltips are also useful for form elements, to show some additional information in the context of each field.

+

+

Hover the field to see the tooltip.

+ +
+

Hover the links above or use the tab key to cycle the focus on each element.

+
+ + diff --git a/apps/it/static/js/ui/demos/tooltip/default.html b/apps/it/static/js/ui/demos/tooltip/default.html new file mode 100644 index 0000000..ef4e746 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/default.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Tooltip - Default functionality + + + + + + + + + + + + +

Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

+

But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

+

Tooltips are also useful for form elements, to show some additional information in the context of each field.

+

+

Hover the field to see the tooltip.

+ +
+

Hover the links above or use the tab key to cycle the focus on each element.

+
+ + diff --git a/apps/it/static/js/ui/demos/tooltip/forms.html b/apps/it/static/js/ui/demos/tooltip/forms.html new file mode 100644 index 0000000..ef7f0e2 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/forms.html @@ -0,0 +1,65 @@ + + + + + jQuery UI Tooltip - Forms + + + + + + + + + + + + + +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+

Use the button below to display the help texts, or just focus or mouseover the indivdual inputs.

+

A fixed width is defined in CSS to make the tooltips look consistent when displayed all at once.

+
+ + diff --git a/apps/it/static/js/ui/demos/tooltip/images/st-stephens.jpg b/apps/it/static/js/ui/demos/tooltip/images/st-stephens.jpg new file mode 100644 index 0000000..30fc36d Binary files /dev/null and b/apps/it/static/js/ui/demos/tooltip/images/st-stephens.jpg differ diff --git a/apps/it/static/js/ui/demos/tooltip/images/tower-bridge.jpg b/apps/it/static/js/ui/demos/tooltip/images/tower-bridge.jpg new file mode 100644 index 0000000..d1e14d6 Binary files /dev/null and b/apps/it/static/js/ui/demos/tooltip/images/tower-bridge.jpg differ diff --git a/apps/it/static/js/ui/demos/tooltip/index.html b/apps/it/static/js/ui/demos/tooltip/index.html new file mode 100644 index 0000000..cebedd0 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/index.html @@ -0,0 +1,20 @@ + + + + + jQuery UI Tooltip Demos + + + + + + + diff --git a/apps/it/static/js/ui/demos/tooltip/tracking.html b/apps/it/static/js/ui/demos/tooltip/tracking.html new file mode 100644 index 0000000..db2aaaf --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/tracking.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Tooltip - Track the mouse + + + + + + + + + + + + +

Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

+

But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

+

Tooltips are also useful for form elements, to show some additional information in the context of each field.

+

+

Hover the field to see the tooltip.

+ +
+

Here the tooltips are positioned relative to the mouse, and follow the mouse while it moves above the element.

+
+ + diff --git a/apps/it/static/js/ui/demos/tooltip/video-player.html b/apps/it/static/js/ui/demos/tooltip/video-player.html new file mode 100644 index 0000000..3a4bc77 --- /dev/null +++ b/apps/it/static/js/ui/demos/tooltip/video-player.html @@ -0,0 +1,117 @@ + + + + + jQuery UI Tooltip - Video Player demo + + + + + + + + + + + + + + + + +
Here Be Video (HTML5?)
+
+ + + + +
+ + +
+ + +
+ +
+

A fake video player with like/share/stats button, each with a custom-styled tooltip.

+
+ + diff --git a/apps/it/static/js/ui/demos/widget/default.html b/apps/it/static/js/ui/demos/widget/default.html new file mode 100644 index 0000000..0ffc671 --- /dev/null +++ b/apps/it/static/js/ui/demos/widget/default.html @@ -0,0 +1,178 @@ + + + + + jQuery UI Widget - Default functionality + + + + + + + + + + + + +
+
color me
+
color me
+
color me
+ + +
+ +
+

This demo shows a simple custom widget built using the widget factory (jquery.ui.widget.js).

+

The three boxes are initialized in different ways. Clicking them changes their background color. View source to see how it works, its heavily commented

+
+ + diff --git a/apps/it/static/js/ui/demos/widget/index.html b/apps/it/static/js/ui/demos/widget/index.html new file mode 100644 index 0000000..d518b07 --- /dev/null +++ b/apps/it/static/js/ui/demos/widget/index.html @@ -0,0 +1,14 @@ + + + + + jQuery UI Widget Demo + + + + + + + diff --git a/apps/it/static/js/ui/external/globalize.culture.de-DE.js b/apps/it/static/js/ui/external/globalize.culture.de-DE.js new file mode 100644 index 0000000..5466bd7 --- /dev/null +++ b/apps/it/static/js/ui/external/globalize.culture.de-DE.js @@ -0,0 +1,81 @@ +/* + * Globalize Culture de-DE + * + * http://github.com/jquery/globalize + * + * Copyright Software Freedom Conservancy, Inc. + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * This file was generated by the Globalize Culture Generator + * Translation: bugs found in this file need to be fixed in the generator + */ + +(function( window, undefined ) { + +var Globalize; + +if ( typeof require !== "undefined" + && typeof exports !== "undefined" + && typeof module !== "undefined" ) { + // Assume CommonJS + Globalize = require( "globalize" ); +} else { + // Global variable + Globalize = window.Globalize; +} + +Globalize.addCultureInfo( "de-DE", "default", { + name: "de-DE", + englishName: "German (Germany)", + nativeName: "Deutsch (Deutschland)", + language: "de", + numberFormat: { + ",": ".", + ".": ",", + NaN: "n. def.", + negativeInfinity: "-unendlich", + positiveInfinity: "+unendlich", + percent: { + pattern: ["-n%","n%"], + ",": ".", + ".": "," + }, + currency: { + pattern: ["-n $","n $"], + ",": ".", + ".": ",", + symbol: "€" + } + }, + calendars: { + standard: { + "/": ".", + firstDay: 1, + days: { + names: ["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"], + namesAbbr: ["So","Mo","Di","Mi","Do","Fr","Sa"], + namesShort: ["So","Mo","Di","Mi","Do","Fr","Sa"] + }, + months: { + names: ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""], + namesAbbr: ["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""] + }, + AM: null, + PM: null, + eras: [{"name":"n. Chr.","start":null,"offset":0}], + patterns: { + d: "dd.MM.yyyy", + D: "dddd, d. MMMM yyyy", + t: "HH:mm", + T: "HH:mm:ss", + f: "dddd, d. MMMM yyyy HH:mm", + F: "dddd, d. MMMM yyyy HH:mm:ss", + M: "dd MMMM", + Y: "MMMM yyyy" + } + } + } +}); + +}( this )); diff --git a/apps/it/static/js/ui/external/globalize.culture.ja-JP.js b/apps/it/static/js/ui/external/globalize.culture.ja-JP.js new file mode 100644 index 0000000..a9469d7 --- /dev/null +++ b/apps/it/static/js/ui/external/globalize.culture.ja-JP.js @@ -0,0 +1,100 @@ +/* + * Globalize Culture ja-JP + * + * http://github.com/jquery/globalize + * + * Copyright Software Freedom Conservancy, Inc. + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * This file was generated by the Globalize Culture Generator + * Translation: bugs found in this file need to be fixed in the generator + */ + +(function( window, undefined ) { + +var Globalize; + +if ( typeof require !== "undefined" + && typeof exports !== "undefined" + && typeof module !== "undefined" ) { + // Assume CommonJS + Globalize = require( "globalize" ); +} else { + // Global variable + Globalize = window.Globalize; +} + +Globalize.addCultureInfo( "ja-JP", "default", { + name: "ja-JP", + englishName: "Japanese (Japan)", + nativeName: "日本語 (日本)", + language: "ja", + numberFormat: { + NaN: "NaN (非数値)", + negativeInfinity: "-∞", + positiveInfinity: "+∞", + percent: { + pattern: ["-n%","n%"] + }, + currency: { + pattern: ["-$n","$n"], + decimals: 0, + symbol: "¥" + } + }, + calendars: { + standard: { + days: { + names: ["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"], + namesAbbr: ["日","月","火","水","木","金","土"], + namesShort: ["日","月","火","水","木","金","土"] + }, + months: { + names: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""], + namesAbbr: ["1","2","3","4","5","6","7","8","9","10","11","12",""] + }, + AM: ["午前","午前","午前"], + PM: ["午後","午後","午後"], + eras: [{"name":"西暦","start":null,"offset":0}], + patterns: { + d: "yyyy/MM/dd", + D: "yyyy'年'M'月'd'日'", + t: "H:mm", + T: "H:mm:ss", + f: "yyyy'年'M'月'd'日' H:mm", + F: "yyyy'年'M'月'd'日' H:mm:ss", + M: "M'月'd'日'", + Y: "yyyy'年'M'月'" + } + }, + Japanese: { + name: "Japanese", + days: { + names: ["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"], + namesAbbr: ["日","月","火","水","木","金","土"], + namesShort: ["日","月","火","水","木","金","土"] + }, + months: { + names: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""], + namesAbbr: ["1","2","3","4","5","6","7","8","9","10","11","12",""] + }, + AM: ["午前","午前","午前"], + PM: ["午後","午後","午後"], + eras: [{"name":"平成","start":null,"offset":1867},{"name":"昭和","start":-1812153600000,"offset":1911},{"name":"大正","start":-1357603200000,"offset":1925},{"name":"明治","start":60022080000,"offset":1988}], + twoDigitYearMax: 99, + patterns: { + d: "gg y/M/d", + D: "gg y'年'M'月'd'日'", + t: "H:mm", + T: "H:mm:ss", + f: "gg y'年'M'月'd'日' H:mm", + F: "gg y'年'M'月'd'日' H:mm:ss", + M: "M'月'd'日'", + Y: "gg y'年'M'月'" + } + } + } +}); + +}( this )); diff --git a/apps/it/static/js/ui/external/globalize.js b/apps/it/static/js/ui/external/globalize.js new file mode 100644 index 0000000..a38a326 --- /dev/null +++ b/apps/it/static/js/ui/external/globalize.js @@ -0,0 +1,1585 @@ +/*! + * Globalize + * + * http://github.com/jquery/globalize + * + * Copyright Software Freedom Conservancy, Inc. + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + */ + +(function( window, undefined ) { + +var Globalize, + // private variables + regexHex, + regexInfinity, + regexParseFloat, + regexTrim, + // private JavaScript utility functions + arrayIndexOf, + endsWith, + extend, + isArray, + isFunction, + isObject, + startsWith, + trim, + truncate, + zeroPad, + // private Globalization utility functions + appendPreOrPostMatch, + expandFormat, + formatDate, + formatNumber, + getTokenRegExp, + getEra, + getEraYear, + parseExact, + parseNegativePattern; + +// Global variable (Globalize) or CommonJS module (globalize) +Globalize = function( cultureSelector ) { + return new Globalize.prototype.init( cultureSelector ); +}; + +if ( typeof require !== "undefined" && + typeof exports !== "undefined" && + typeof module !== "undefined" ) { + // Assume CommonJS + module.exports = Globalize; +} else { + // Export as global variable + window.Globalize = Globalize; +} + +Globalize.cultures = {}; + +Globalize.prototype = { + constructor: Globalize, + init: function( cultureSelector ) { + this.cultures = Globalize.cultures; + this.cultureSelector = cultureSelector; + + return this; + } +}; +Globalize.prototype.init.prototype = Globalize.prototype; + +// 1. When defining a culture, all fields are required except the ones stated as optional. +// 2. Each culture should have a ".calendars" object with at least one calendar named "standard" +// which serves as the default calendar in use by that culture. +// 3. Each culture should have a ".calendar" object which is the current calendar being used, +// it may be dynamically changed at any time to one of the calendars in ".calendars". +Globalize.cultures[ "default" ] = { + // A unique name for the culture in the form - + name: "en", + // the name of the culture in the english language + englishName: "English", + // the name of the culture in its own language + nativeName: "English", + // whether the culture uses right-to-left text + isRTL: false, + // "language" is used for so-called "specific" cultures. + // For example, the culture "es-CL" means "Spanish, in Chili". + // It represents the Spanish-speaking culture as it is in Chili, + // which might have different formatting rules or even translations + // than Spanish in Spain. A "neutral" culture is one that is not + // specific to a region. For example, the culture "es" is the generic + // Spanish culture, which may be a more generalized version of the language + // that may or may not be what a specific culture expects. + // For a specific culture like "es-CL", the "language" field refers to the + // neutral, generic culture information for the language it is using. + // This is not always a simple matter of the string before the dash. + // For example, the "zh-Hans" culture is netural (Simplified Chinese). + // And the "zh-SG" culture is Simplified Chinese in Singapore, whose lanugage + // field is "zh-CHS", not "zh". + // This field should be used to navigate from a specific culture to it's + // more general, neutral culture. If a culture is already as general as it + // can get, the language may refer to itself. + language: "en", + // numberFormat defines general number formatting rules, like the digits in + // each grouping, the group separator, and how negative numbers are displayed. + numberFormat: { + // [negativePattern] + // Note, numberFormat.pattern has no "positivePattern" unlike percent and currency, + // but is still defined as an array for consistency with them. + // negativePattern: one of "(n)|-n|- n|n-|n -" + pattern: [ "-n" ], + // number of decimal places normally shown + decimals: 2, + // string that separates number groups, as in 1,000,000 + ",": ",", + // string that separates a number from the fractional portion, as in 1.99 + ".": ".", + // array of numbers indicating the size of each number group. + // TODO: more detailed description and example + groupSizes: [ 3 ], + // symbol used for positive numbers + "+": "+", + // symbol used for negative numbers + "-": "-", + // symbol used for NaN (Not-A-Number) + "NaN": "NaN", + // symbol used for Negative Infinity + negativeInfinity: "-Infinity", + // symbol used for Positive Infinity + positiveInfinity: "Infinity", + percent: { + // [negativePattern, positivePattern] + // negativePattern: one of "-n %|-n%|-%n|%-n|%n-|n-%|n%-|-% n|n %-|% n-|% -n|n- %" + // positivePattern: one of "n %|n%|%n|% n" + pattern: [ "-n %", "n %" ], + // number of decimal places normally shown + decimals: 2, + // array of numbers indicating the size of each number group. + // TODO: more detailed description and example + groupSizes: [ 3 ], + // string that separates number groups, as in 1,000,000 + ",": ",", + // string that separates a number from the fractional portion, as in 1.99 + ".": ".", + // symbol used to represent a percentage + symbol: "%" + }, + currency: { + // [negativePattern, positivePattern] + // negativePattern: one of "($n)|-$n|$-n|$n-|(n$)|-n$|n-$|n$-|-n $|-$ n|n $-|$ n-|$ -n|n- $|($ n)|(n $)" + // positivePattern: one of "$n|n$|$ n|n $" + pattern: [ "($n)", "$n" ], + // number of decimal places normally shown + decimals: 2, + // array of numbers indicating the size of each number group. + // TODO: more detailed description and example + groupSizes: [ 3 ], + // string that separates number groups, as in 1,000,000 + ",": ",", + // string that separates a number from the fractional portion, as in 1.99 + ".": ".", + // symbol used to represent currency + symbol: "$" + } + }, + // calendars defines all the possible calendars used by this culture. + // There should be at least one defined with name "standard", and is the default + // calendar used by the culture. + // A calendar contains information about how dates are formatted, information about + // the calendar's eras, a standard set of the date formats, + // translations for day and month names, and if the calendar is not based on the Gregorian + // calendar, conversion functions to and from the Gregorian calendar. + calendars: { + standard: { + // name that identifies the type of calendar this is + name: "Gregorian_USEnglish", + // separator of parts of a date (e.g. "/" in 11/05/1955) + "/": "/", + // separator of parts of a time (e.g. ":" in 05:44 PM) + ":": ":", + // the first day of the week (0 = Sunday, 1 = Monday, etc) + firstDay: 0, + days: { + // full day names + names: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], + // abbreviated day names + namesAbbr: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], + // shortest day names + namesShort: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ] + }, + months: { + // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar) + names: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "" ], + // abbreviated month names + namesAbbr: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "" ] + }, + // AM and PM designators in one of these forms: + // The usual view, and the upper and lower case versions + // [ standard, lowercase, uppercase ] + // The culture does not use AM or PM (likely all standard date formats use 24 hour time) + // null + AM: [ "AM", "am", "AM" ], + PM: [ "PM", "pm", "PM" ], + eras: [ + // eras in reverse chronological order. + // name: the name of the era in this culture (e.g. A.D., C.E.) + // start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era. + // offset: offset in years from gregorian calendar + { + "name": "A.D.", + "start": null, + "offset": 0 + } + ], + // when a two digit year is given, it will never be parsed as a four digit + // year greater than this year (in the appropriate era for the culture) + // Set it as a full year (e.g. 2029) or use an offset format starting from + // the current year: "+19" would correspond to 2029 if the current year 2010. + twoDigitYearMax: 2029, + // set of predefined date and time patterns used by the culture + // these represent the format someone in this culture would expect + // to see given the portions of the date that are shown. + patterns: { + // short date pattern + d: "M/d/yyyy", + // long date pattern + D: "dddd, MMMM dd, yyyy", + // short time pattern + t: "h:mm tt", + // long time pattern + T: "h:mm:ss tt", + // long date, short time pattern + f: "dddd, MMMM dd, yyyy h:mm tt", + // long date, long time pattern + F: "dddd, MMMM dd, yyyy h:mm:ss tt", + // month/day pattern + M: "MMMM dd", + // month/year pattern + Y: "yyyy MMMM", + // S is a sortable format that does not vary by culture + S: "yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss" + } + // optional fields for each calendar: + /* + monthsGenitive: + Same as months but used when the day preceeds the month. + Omit if the culture has no genitive distinction in month names. + For an explaination of genitive months, see http://blogs.msdn.com/michkap/archive/2004/12/25/332259.aspx + convert: + Allows for the support of non-gregorian based calendars. This convert object is used to + to convert a date to and from a gregorian calendar date to handle parsing and formatting. + The two functions: + fromGregorian( date ) + Given the date as a parameter, return an array with parts [ year, month, day ] + corresponding to the non-gregorian based year, month, and day for the calendar. + toGregorian( year, month, day ) + Given the non-gregorian year, month, and day, return a new Date() object + set to the corresponding date in the gregorian calendar. + */ + } + }, + // For localized strings + messages: {} +}; + +Globalize.cultures[ "default" ].calendar = Globalize.cultures[ "default" ].calendars.standard; + +Globalize.cultures.en = Globalize.cultures[ "default" ]; + +Globalize.cultureSelector = "en"; + +// +// private variables +// + +regexHex = /^0x[a-f0-9]+$/i; +regexInfinity = /^[+\-]?infinity$/i; +regexParseFloat = /^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/; +regexTrim = /^\s+|\s+$/g; + +// +// private JavaScript utility functions +// + +arrayIndexOf = function( array, item ) { + if ( array.indexOf ) { + return array.indexOf( item ); + } + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[i] === item ) { + return i; + } + } + return -1; +}; + +endsWith = function( value, pattern ) { + return value.substr( value.length - pattern.length ) === pattern; +}; + +extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !isFunction(target) ) { + target = {}; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( isObject(copy) || (copyIsArray = isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && isArray(src) ? src : []; + + } else { + clone = src && isObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +isArray = Array.isArray || function( obj ) { + return Object.prototype.toString.call( obj ) === "[object Array]"; +}; + +isFunction = function( obj ) { + return Object.prototype.toString.call( obj ) === "[object Function]"; +}; + +isObject = function( obj ) { + return Object.prototype.toString.call( obj ) === "[object Object]"; +}; + +startsWith = function( value, pattern ) { + return value.indexOf( pattern ) === 0; +}; + +trim = function( value ) { + return ( value + "" ).replace( regexTrim, "" ); +}; + +truncate = function( value ) { + if ( isNaN( value ) ) { + return NaN; + } + return Math[ value < 0 ? "ceil" : "floor" ]( value ); +}; + +zeroPad = function( str, count, left ) { + var l; + for ( l = str.length; l < count; l += 1 ) { + str = ( left ? ("0" + str) : (str + "0") ); + } + return str; +}; + +// +// private Globalization utility functions +// + +appendPreOrPostMatch = function( preMatch, strings ) { + // appends pre- and post- token match strings while removing escaped characters. + // Returns a single quote count which is used to determine if the token occurs + // in a string literal. + var quoteCount = 0, + escaped = false; + for ( var i = 0, il = preMatch.length; i < il; i++ ) { + var c = preMatch.charAt( i ); + switch ( c ) { + case "\'": + if ( escaped ) { + strings.push( "\'" ); + } + else { + quoteCount++; + } + escaped = false; + break; + case "\\": + if ( escaped ) { + strings.push( "\\" ); + } + escaped = !escaped; + break; + default: + strings.push( c ); + escaped = false; + break; + } + } + return quoteCount; +}; + +expandFormat = function( cal, format ) { + // expands unspecified or single character date formats into the full pattern. + format = format || "F"; + var pattern, + patterns = cal.patterns, + len = format.length; + if ( len === 1 ) { + pattern = patterns[ format ]; + if ( !pattern ) { + throw "Invalid date format string \'" + format + "\'."; + } + format = pattern; + } + else if ( len === 2 && format.charAt(0) === "%" ) { + // %X escape format -- intended as a custom format string that is only one character, not a built-in format. + format = format.charAt( 1 ); + } + return format; +}; + +formatDate = function( value, format, culture ) { + var cal = culture.calendar, + convert = cal.convert, + ret; + + if ( !format || !format.length || format === "i" ) { + if ( culture && culture.name.length ) { + if ( convert ) { + // non-gregorian calendar, so we cannot use built-in toLocaleString() + ret = formatDate( value, cal.patterns.F, culture ); + } + else { + var eraDate = new Date( value.getTime() ), + era = getEra( value, cal.eras ); + eraDate.setFullYear( getEraYear(value, cal, era) ); + ret = eraDate.toLocaleString(); + } + } + else { + ret = value.toString(); + } + return ret; + } + + var eras = cal.eras, + sortable = format === "s"; + format = expandFormat( cal, format ); + + // Start with an empty string + ret = []; + var hour, + zeros = [ "0", "00", "000" ], + foundDay, + checkedDay, + dayPartRegExp = /([^d]|^)(d|dd)([^d]|$)/g, + quoteCount = 0, + tokenRegExp = getTokenRegExp(), + converted; + + function padZeros( num, c ) { + var r, s = num + ""; + if ( c > 1 && s.length < c ) { + r = ( zeros[c - 2] + s); + return r.substr( r.length - c, c ); + } + else { + r = s; + } + return r; + } + + function hasDay() { + if ( foundDay || checkedDay ) { + return foundDay; + } + foundDay = dayPartRegExp.test( format ); + checkedDay = true; + return foundDay; + } + + function getPart( date, part ) { + if ( converted ) { + return converted[ part ]; + } + switch ( part ) { + case 0: + return date.getFullYear(); + case 1: + return date.getMonth(); + case 2: + return date.getDate(); + default: + throw "Invalid part value " + part; + } + } + + if ( !sortable && convert ) { + converted = convert.fromGregorian( value ); + } + + for ( ; ; ) { + // Save the current index + var index = tokenRegExp.lastIndex, + // Look for the next pattern + ar = tokenRegExp.exec( format ); + + // Append the text before the pattern (or the end of the string if not found) + var preMatch = format.slice( index, ar ? ar.index : format.length ); + quoteCount += appendPreOrPostMatch( preMatch, ret ); + + if ( !ar ) { + break; + } + + // do not replace any matches that occur inside a string literal. + if ( quoteCount % 2 ) { + ret.push( ar[0] ); + continue; + } + + var current = ar[ 0 ], + clength = current.length; + + switch ( current ) { + case "ddd": + //Day of the week, as a three-letter abbreviation + case "dddd": + // Day of the week, using the full name + var names = ( clength === 3 ) ? cal.days.namesAbbr : cal.days.names; + ret.push( names[value.getDay()] ); + break; + case "d": + // Day of month, without leading zero for single-digit days + case "dd": + // Day of month, with leading zero for single-digit days + foundDay = true; + ret.push( + padZeros( getPart(value, 2), clength ) + ); + break; + case "MMM": + // Month, as a three-letter abbreviation + case "MMMM": + // Month, using the full name + var part = getPart( value, 1 ); + ret.push( + ( cal.monthsGenitive && hasDay() ) ? + ( cal.monthsGenitive[ clength === 3 ? "namesAbbr" : "names" ][ part ] ) : + ( cal.months[ clength === 3 ? "namesAbbr" : "names" ][ part ] ) + ); + break; + case "M": + // Month, as digits, with no leading zero for single-digit months + case "MM": + // Month, as digits, with leading zero for single-digit months + ret.push( + padZeros( getPart(value, 1) + 1, clength ) + ); + break; + case "y": + // Year, as two digits, but with no leading zero for years less than 10 + case "yy": + // Year, as two digits, with leading zero for years less than 10 + case "yyyy": + // Year represented by four full digits + part = converted ? converted[ 0 ] : getEraYear( value, cal, getEra(value, eras), sortable ); + if ( clength < 4 ) { + part = part % 100; + } + ret.push( + padZeros( part, clength ) + ); + break; + case "h": + // Hours with no leading zero for single-digit hours, using 12-hour clock + case "hh": + // Hours with leading zero for single-digit hours, using 12-hour clock + hour = value.getHours() % 12; + if ( hour === 0 ) hour = 12; + ret.push( + padZeros( hour, clength ) + ); + break; + case "H": + // Hours with no leading zero for single-digit hours, using 24-hour clock + case "HH": + // Hours with leading zero for single-digit hours, using 24-hour clock + ret.push( + padZeros( value.getHours(), clength ) + ); + break; + case "m": + // Minutes with no leading zero for single-digit minutes + case "mm": + // Minutes with leading zero for single-digit minutes + ret.push( + padZeros( value.getMinutes(), clength ) + ); + break; + case "s": + // Seconds with no leading zero for single-digit seconds + case "ss": + // Seconds with leading zero for single-digit seconds + ret.push( + padZeros( value.getSeconds(), clength ) + ); + break; + case "t": + // One character am/pm indicator ("a" or "p") + case "tt": + // Multicharacter am/pm indicator + part = value.getHours() < 12 ? ( cal.AM ? cal.AM[0] : " " ) : ( cal.PM ? cal.PM[0] : " " ); + ret.push( clength === 1 ? part.charAt(0) : part ); + break; + case "f": + // Deciseconds + case "ff": + // Centiseconds + case "fff": + // Milliseconds + ret.push( + padZeros( value.getMilliseconds(), 3 ).substr( 0, clength ) + ); + break; + case "z": + // Time zone offset, no leading zero + case "zz": + // Time zone offset with leading zero + hour = value.getTimezoneOffset() / 60; + ret.push( + ( hour <= 0 ? "+" : "-" ) + padZeros( Math.floor(Math.abs(hour)), clength ) + ); + break; + case "zzz": + // Time zone offset with leading zero + hour = value.getTimezoneOffset() / 60; + ret.push( + ( hour <= 0 ? "+" : "-" ) + padZeros( Math.floor(Math.abs(hour)), 2 ) + + // Hard coded ":" separator, rather than using cal.TimeSeparator + // Repeated here for consistency, plus ":" was already assumed in date parsing. + ":" + padZeros( Math.abs(value.getTimezoneOffset() % 60), 2 ) + ); + break; + case "g": + case "gg": + if ( cal.eras ) { + ret.push( + cal.eras[ getEra(value, eras) ].name + ); + } + break; + case "/": + ret.push( cal["/"] ); + break; + default: + throw "Invalid date format pattern \'" + current + "\'."; + } + } + return ret.join( "" ); +}; + +// formatNumber +(function() { + var expandNumber; + + expandNumber = function( number, precision, formatInfo ) { + var groupSizes = formatInfo.groupSizes, + curSize = groupSizes[ 0 ], + curGroupIndex = 1, + factor = Math.pow( 10, precision ), + rounded = Math.round( number * factor ) / factor; + + if ( !isFinite(rounded) ) { + rounded = number; + } + number = rounded; + + var numberString = number+"", + right = "", + split = numberString.split( /e/i ), + exponent = split.length > 1 ? parseInt( split[1], 10 ) : 0; + numberString = split[ 0 ]; + split = numberString.split( "." ); + numberString = split[ 0 ]; + right = split.length > 1 ? split[ 1 ] : ""; + + if ( exponent > 0 ) { + right = zeroPad( right, exponent, false ); + numberString += right.slice( 0, exponent ); + right = right.substr( exponent ); + } + else if ( exponent < 0 ) { + exponent = -exponent; + numberString = zeroPad( numberString, exponent + 1, true ); + right = numberString.slice( -exponent, numberString.length ) + right; + numberString = numberString.slice( 0, -exponent ); + } + + if ( precision > 0 ) { + right = formatInfo[ "." ] + + ( (right.length > precision) ? right.slice(0, precision) : zeroPad(right, precision) ); + } + else { + right = ""; + } + + var stringIndex = numberString.length - 1, + sep = formatInfo[ "," ], + ret = ""; + + while ( stringIndex >= 0 ) { + if ( curSize === 0 || curSize > stringIndex ) { + return numberString.slice( 0, stringIndex + 1 ) + ( ret.length ? (sep + ret + right) : right ); + } + ret = numberString.slice( stringIndex - curSize + 1, stringIndex + 1 ) + ( ret.length ? (sep + ret) : "" ); + + stringIndex -= curSize; + + if ( curGroupIndex < groupSizes.length ) { + curSize = groupSizes[ curGroupIndex ]; + curGroupIndex++; + } + } + + return numberString.slice( 0, stringIndex + 1 ) + sep + ret + right; + }; + + formatNumber = function( value, format, culture ) { + if ( !isFinite(value) ) { + if ( value === Infinity ) { + return culture.numberFormat.positiveInfinity; + } + if ( value === -Infinity ) { + return culture.numberFormat.negativeInfinity; + } + return culture.numberFormat.NaN; + } + if ( !format || format === "i" ) { + return culture.name.length ? value.toLocaleString() : value.toString(); + } + format = format || "D"; + + var nf = culture.numberFormat, + number = Math.abs( value ), + precision = -1, + pattern; + if ( format.length > 1 ) precision = parseInt( format.slice(1), 10 ); + + var current = format.charAt( 0 ).toUpperCase(), + formatInfo; + + switch ( current ) { + case "D": + pattern = "n"; + number = truncate( number ); + if ( precision !== -1 ) { + number = zeroPad( "" + number, precision, true ); + } + if ( value < 0 ) number = "-" + number; + break; + case "N": + formatInfo = nf; + /* falls through */ + case "C": + formatInfo = formatInfo || nf.currency; + /* falls through */ + case "P": + formatInfo = formatInfo || nf.percent; + pattern = value < 0 ? formatInfo.pattern[ 0 ] : ( formatInfo.pattern[1] || "n" ); + if ( precision === -1 ) precision = formatInfo.decimals; + number = expandNumber( number * (current === "P" ? 100 : 1), precision, formatInfo ); + break; + default: + throw "Bad number format specifier: " + current; + } + + var patternParts = /n|\$|-|%/g, + ret = ""; + for ( ; ; ) { + var index = patternParts.lastIndex, + ar = patternParts.exec( pattern ); + + ret += pattern.slice( index, ar ? ar.index : pattern.length ); + + if ( !ar ) { + break; + } + + switch ( ar[0] ) { + case "n": + ret += number; + break; + case "$": + ret += nf.currency.symbol; + break; + case "-": + // don't make 0 negative + if ( /[1-9]/.test(number) ) { + ret += nf[ "-" ]; + } + break; + case "%": + ret += nf.percent.symbol; + break; + } + } + + return ret; + }; + +}()); + +getTokenRegExp = function() { + // regular expression for matching date and time tokens in format strings. + return (/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g); +}; + +getEra = function( date, eras ) { + if ( !eras ) return 0; + var start, ticks = date.getTime(); + for ( var i = 0, l = eras.length; i < l; i++ ) { + start = eras[ i ].start; + if ( start === null || ticks >= start ) { + return i; + } + } + return 0; +}; + +getEraYear = function( date, cal, era, sortable ) { + var year = date.getFullYear(); + if ( !sortable && cal.eras ) { + // convert normal gregorian year to era-shifted gregorian + // year by subtracting the era offset + year -= cal.eras[ era ].offset; + } + return year; +}; + +// parseExact +(function() { + var expandYear, + getDayIndex, + getMonthIndex, + getParseRegExp, + outOfRange, + toUpper, + toUpperArray; + + expandYear = function( cal, year ) { + // expands 2-digit year into 4 digits. + if ( year < 100 ) { + var now = new Date(), + era = getEra( now ), + curr = getEraYear( now, cal, era ), + twoDigitYearMax = cal.twoDigitYearMax; + twoDigitYearMax = typeof twoDigitYearMax === "string" ? new Date().getFullYear() % 100 + parseInt( twoDigitYearMax, 10 ) : twoDigitYearMax; + year += curr - ( curr % 100 ); + if ( year > twoDigitYearMax ) { + year -= 100; + } + } + return year; + }; + + getDayIndex = function ( cal, value, abbr ) { + var ret, + days = cal.days, + upperDays = cal._upperDays; + if ( !upperDays ) { + cal._upperDays = upperDays = [ + toUpperArray( days.names ), + toUpperArray( days.namesAbbr ), + toUpperArray( days.namesShort ) + ]; + } + value = toUpper( value ); + if ( abbr ) { + ret = arrayIndexOf( upperDays[1], value ); + if ( ret === -1 ) { + ret = arrayIndexOf( upperDays[2], value ); + } + } + else { + ret = arrayIndexOf( upperDays[0], value ); + } + return ret; + }; + + getMonthIndex = function( cal, value, abbr ) { + var months = cal.months, + monthsGen = cal.monthsGenitive || cal.months, + upperMonths = cal._upperMonths, + upperMonthsGen = cal._upperMonthsGen; + if ( !upperMonths ) { + cal._upperMonths = upperMonths = [ + toUpperArray( months.names ), + toUpperArray( months.namesAbbr ) + ]; + cal._upperMonthsGen = upperMonthsGen = [ + toUpperArray( monthsGen.names ), + toUpperArray( monthsGen.namesAbbr ) + ]; + } + value = toUpper( value ); + var i = arrayIndexOf( abbr ? upperMonths[1] : upperMonths[0], value ); + if ( i < 0 ) { + i = arrayIndexOf( abbr ? upperMonthsGen[1] : upperMonthsGen[0], value ); + } + return i; + }; + + getParseRegExp = function( cal, format ) { + // converts a format string into a regular expression with groups that + // can be used to extract date fields from a date string. + // check for a cached parse regex. + var re = cal._parseRegExp; + if ( !re ) { + cal._parseRegExp = re = {}; + } + else { + var reFormat = re[ format ]; + if ( reFormat ) { + return reFormat; + } + } + + // expand single digit formats, then escape regular expression characters. + var expFormat = expandFormat( cal, format ).replace( /([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g, "\\\\$1" ), + regexp = [ "^" ], + groups = [], + index = 0, + quoteCount = 0, + tokenRegExp = getTokenRegExp(), + match; + + // iterate through each date token found. + while ( (match = tokenRegExp.exec(expFormat)) !== null ) { + var preMatch = expFormat.slice( index, match.index ); + index = tokenRegExp.lastIndex; + + // don't replace any matches that occur inside a string literal. + quoteCount += appendPreOrPostMatch( preMatch, regexp ); + if ( quoteCount % 2 ) { + regexp.push( match[0] ); + continue; + } + + // add a regex group for the token. + var m = match[ 0 ], + len = m.length, + add; + switch ( m ) { + case "dddd": case "ddd": + case "MMMM": case "MMM": + case "gg": case "g": + add = "(\\D+)"; + break; + case "tt": case "t": + add = "(\\D*)"; + break; + case "yyyy": + case "fff": + case "ff": + case "f": + add = "(\\d{" + len + "})"; + break; + case "dd": case "d": + case "MM": case "M": + case "yy": case "y": + case "HH": case "H": + case "hh": case "h": + case "mm": case "m": + case "ss": case "s": + add = "(\\d\\d?)"; + break; + case "zzz": + add = "([+-]?\\d\\d?:\\d{2})"; + break; + case "zz": case "z": + add = "([+-]?\\d\\d?)"; + break; + case "/": + add = "(\\/)"; + break; + default: + throw "Invalid date format pattern \'" + m + "\'."; + } + if ( add ) { + regexp.push( add ); + } + groups.push( match[0] ); + } + appendPreOrPostMatch( expFormat.slice(index), regexp ); + regexp.push( "$" ); + + // allow whitespace to differ when matching formats. + var regexpStr = regexp.join( "" ).replace( /\s+/g, "\\s+" ), + parseRegExp = { "regExp": regexpStr, "groups": groups }; + + // cache the regex for this format. + return re[ format ] = parseRegExp; + }; + + outOfRange = function( value, low, high ) { + return value < low || value > high; + }; + + toUpper = function( value ) { + // "he-IL" has non-breaking space in weekday names. + return value.split( "\u00A0" ).join( " " ).toUpperCase(); + }; + + toUpperArray = function( arr ) { + var results = []; + for ( var i = 0, l = arr.length; i < l; i++ ) { + results[ i ] = toUpper( arr[i] ); + } + return results; + }; + + parseExact = function( value, format, culture ) { + // try to parse the date string by matching against the format string + // while using the specified culture for date field names. + value = trim( value ); + var cal = culture.calendar, + // convert date formats into regular expressions with groupings. + // use the regexp to determine the input format and extract the date fields. + parseInfo = getParseRegExp( cal, format ), + match = new RegExp( parseInfo.regExp ).exec( value ); + if ( match === null ) { + return null; + } + // found a date format that matches the input. + var groups = parseInfo.groups, + era = null, year = null, month = null, date = null, weekDay = null, + hour = 0, hourOffset, min = 0, sec = 0, msec = 0, tzMinOffset = null, + pmHour = false; + // iterate the format groups to extract and set the date fields. + for ( var j = 0, jl = groups.length; j < jl; j++ ) { + var matchGroup = match[ j + 1 ]; + if ( matchGroup ) { + var current = groups[ j ], + clength = current.length, + matchInt = parseInt( matchGroup, 10 ); + switch ( current ) { + case "dd": case "d": + // Day of month. + date = matchInt; + // check that date is generally in valid range, also checking overflow below. + if ( outOfRange(date, 1, 31) ) return null; + break; + case "MMM": case "MMMM": + month = getMonthIndex( cal, matchGroup, clength === 3 ); + if ( outOfRange(month, 0, 11) ) return null; + break; + case "M": case "MM": + // Month. + month = matchInt - 1; + if ( outOfRange(month, 0, 11) ) return null; + break; + case "y": case "yy": + case "yyyy": + year = clength < 4 ? expandYear( cal, matchInt ) : matchInt; + if ( outOfRange(year, 0, 9999) ) return null; + break; + case "h": case "hh": + // Hours (12-hour clock). + hour = matchInt; + if ( hour === 12 ) hour = 0; + if ( outOfRange(hour, 0, 11) ) return null; + break; + case "H": case "HH": + // Hours (24-hour clock). + hour = matchInt; + if ( outOfRange(hour, 0, 23) ) return null; + break; + case "m": case "mm": + // Minutes. + min = matchInt; + if ( outOfRange(min, 0, 59) ) return null; + break; + case "s": case "ss": + // Seconds. + sec = matchInt; + if ( outOfRange(sec, 0, 59) ) return null; + break; + case "tt": case "t": + // AM/PM designator. + // see if it is standard, upper, or lower case PM. If not, ensure it is at least one of + // the AM tokens. If not, fail the parse for this format. + pmHour = cal.PM && ( matchGroup === cal.PM[0] || matchGroup === cal.PM[1] || matchGroup === cal.PM[2] ); + if ( + !pmHour && ( + !cal.AM || ( matchGroup !== cal.AM[0] && matchGroup !== cal.AM[1] && matchGroup !== cal.AM[2] ) + ) + ) return null; + break; + case "f": + // Deciseconds. + case "ff": + // Centiseconds. + case "fff": + // Milliseconds. + msec = matchInt * Math.pow( 10, 3 - clength ); + if ( outOfRange(msec, 0, 999) ) return null; + break; + case "ddd": + // Day of week. + case "dddd": + // Day of week. + weekDay = getDayIndex( cal, matchGroup, clength === 3 ); + if ( outOfRange(weekDay, 0, 6) ) return null; + break; + case "zzz": + // Time zone offset in +/- hours:min. + var offsets = matchGroup.split( /:/ ); + if ( offsets.length !== 2 ) return null; + hourOffset = parseInt( offsets[0], 10 ); + if ( outOfRange(hourOffset, -12, 13) ) return null; + var minOffset = parseInt( offsets[1], 10 ); + if ( outOfRange(minOffset, 0, 59) ) return null; + tzMinOffset = ( hourOffset * 60 ) + ( startsWith(matchGroup, "-") ? -minOffset : minOffset ); + break; + case "z": case "zz": + // Time zone offset in +/- hours. + hourOffset = matchInt; + if ( outOfRange(hourOffset, -12, 13) ) return null; + tzMinOffset = hourOffset * 60; + break; + case "g": case "gg": + var eraName = matchGroup; + if ( !eraName || !cal.eras ) return null; + eraName = trim( eraName.toLowerCase() ); + for ( var i = 0, l = cal.eras.length; i < l; i++ ) { + if ( eraName === cal.eras[i].name.toLowerCase() ) { + era = i; + break; + } + } + // could not find an era with that name + if ( era === null ) return null; + break; + } + } + } + var result = new Date(), defaultYear, convert = cal.convert; + defaultYear = convert ? convert.fromGregorian( result )[ 0 ] : result.getFullYear(); + if ( year === null ) { + year = defaultYear; + } + else if ( cal.eras ) { + // year must be shifted to normal gregorian year + // but not if year was not specified, its already normal gregorian + // per the main if clause above. + year += cal.eras[( era || 0 )].offset; + } + // set default day and month to 1 and January, so if unspecified, these are the defaults + // instead of the current day/month. + if ( month === null ) { + month = 0; + } + if ( date === null ) { + date = 1; + } + // now have year, month, and date, but in the culture's calendar. + // convert to gregorian if necessary + if ( convert ) { + result = convert.toGregorian( year, month, date ); + // conversion failed, must be an invalid match + if ( result === null ) return null; + } + else { + // have to set year, month and date together to avoid overflow based on current date. + result.setFullYear( year, month, date ); + // check to see if date overflowed for specified month (only checked 1-31 above). + if ( result.getDate() !== date ) return null; + // invalid day of week. + if ( weekDay !== null && result.getDay() !== weekDay ) { + return null; + } + } + // if pm designator token was found make sure the hours fit the 24-hour clock. + if ( pmHour && hour < 12 ) { + hour += 12; + } + result.setHours( hour, min, sec, msec ); + if ( tzMinOffset !== null ) { + // adjust timezone to utc before applying local offset. + var adjustedMin = result.getMinutes() - ( tzMinOffset + result.getTimezoneOffset() ); + // Safari limits hours and minutes to the range of -127 to 127. We need to use setHours + // to ensure both these fields will not exceed this range. adjustedMin will range + // somewhere between -1440 and 1500, so we only need to split this into hours. + result.setHours( result.getHours() + parseInt(adjustedMin / 60, 10), adjustedMin % 60 ); + } + return result; + }; +}()); + +parseNegativePattern = function( value, nf, negativePattern ) { + var neg = nf[ "-" ], + pos = nf[ "+" ], + ret; + switch ( negativePattern ) { + case "n -": + neg = " " + neg; + pos = " " + pos; + /* falls through */ + case "n-": + if ( endsWith(value, neg) ) { + ret = [ "-", value.substr(0, value.length - neg.length) ]; + } + else if ( endsWith(value, pos) ) { + ret = [ "+", value.substr(0, value.length - pos.length) ]; + } + break; + case "- n": + neg += " "; + pos += " "; + /* falls through */ + case "-n": + if ( startsWith(value, neg) ) { + ret = [ "-", value.substr(neg.length) ]; + } + else if ( startsWith(value, pos) ) { + ret = [ "+", value.substr(pos.length) ]; + } + break; + case "(n)": + if ( startsWith(value, "(") && endsWith(value, ")") ) { + ret = [ "-", value.substr(1, value.length - 2) ]; + } + break; + } + return ret || [ "", value ]; +}; + +// +// public instance functions +// + +Globalize.prototype.findClosestCulture = function( cultureSelector ) { + return Globalize.findClosestCulture.call( this, cultureSelector ); +}; + +Globalize.prototype.format = function( value, format, cultureSelector ) { + return Globalize.format.call( this, value, format, cultureSelector ); +}; + +Globalize.prototype.localize = function( key, cultureSelector ) { + return Globalize.localize.call( this, key, cultureSelector ); +}; + +Globalize.prototype.parseInt = function( value, radix, cultureSelector ) { + return Globalize.parseInt.call( this, value, radix, cultureSelector ); +}; + +Globalize.prototype.parseFloat = function( value, radix, cultureSelector ) { + return Globalize.parseFloat.call( this, value, radix, cultureSelector ); +}; + +Globalize.prototype.culture = function( cultureSelector ) { + return Globalize.culture.call( this, cultureSelector ); +}; + +// +// public singleton functions +// + +Globalize.addCultureInfo = function( cultureName, baseCultureName, info ) { + + var base = {}, + isNew = false; + + if ( typeof cultureName !== "string" ) { + // cultureName argument is optional string. If not specified, assume info is first + // and only argument. Specified info deep-extends current culture. + info = cultureName; + cultureName = this.culture().name; + base = this.cultures[ cultureName ]; + } else if ( typeof baseCultureName !== "string" ) { + // baseCultureName argument is optional string. If not specified, assume info is second + // argument. Specified info deep-extends specified culture. + // If specified culture does not exist, create by deep-extending default + info = baseCultureName; + isNew = ( this.cultures[ cultureName ] == null ); + base = this.cultures[ cultureName ] || this.cultures[ "default" ]; + } else { + // cultureName and baseCultureName specified. Assume a new culture is being created + // by deep-extending an specified base culture + isNew = true; + base = this.cultures[ baseCultureName ]; + } + + this.cultures[ cultureName ] = extend(true, {}, + base, + info + ); + // Make the standard calendar the current culture if it's a new culture + if ( isNew ) { + this.cultures[ cultureName ].calendar = this.cultures[ cultureName ].calendars.standard; + } +}; + +Globalize.findClosestCulture = function( name ) { + var match; + if ( !name ) { + return this.findClosestCulture( this.cultureSelector ) || this.cultures[ "default" ]; + } + if ( typeof name === "string" ) { + name = name.split( "," ); + } + if ( isArray(name) ) { + var lang, + cultures = this.cultures, + list = name, + i, l = list.length, + prioritized = []; + for ( i = 0; i < l; i++ ) { + name = trim( list[i] ); + var pri, parts = name.split( ";" ); + lang = trim( parts[0] ); + if ( parts.length === 1 ) { + pri = 1; + } + else { + name = trim( parts[1] ); + if ( name.indexOf("q=") === 0 ) { + name = name.substr( 2 ); + pri = parseFloat( name ); + pri = isNaN( pri ) ? 0 : pri; + } + else { + pri = 1; + } + } + prioritized.push({ lang: lang, pri: pri }); + } + prioritized.sort(function( a, b ) { + if ( a.pri < b.pri ) { + return 1; + } else if ( a.pri > b.pri ) { + return -1; + } + return 0; + }); + // exact match + for ( i = 0; i < l; i++ ) { + lang = prioritized[ i ].lang; + match = cultures[ lang ]; + if ( match ) { + return match; + } + } + + // neutral language match + for ( i = 0; i < l; i++ ) { + lang = prioritized[ i ].lang; + do { + var index = lang.lastIndexOf( "-" ); + if ( index === -1 ) { + break; + } + // strip off the last part. e.g. en-US => en + lang = lang.substr( 0, index ); + match = cultures[ lang ]; + if ( match ) { + return match; + } + } + while ( 1 ); + } + + // last resort: match first culture using that language + for ( i = 0; i < l; i++ ) { + lang = prioritized[ i ].lang; + for ( var cultureKey in cultures ) { + var culture = cultures[ cultureKey ]; + if ( culture.language === lang ) { + return culture; + } + } + } + } + else if ( typeof name === "object" ) { + return name; + } + return match || null; +}; + +Globalize.format = function( value, format, cultureSelector ) { + var culture = this.findClosestCulture( cultureSelector ); + if ( value instanceof Date ) { + value = formatDate( value, format, culture ); + } + else if ( typeof value === "number" ) { + value = formatNumber( value, format, culture ); + } + return value; +}; + +Globalize.localize = function( key, cultureSelector ) { + return this.findClosestCulture( cultureSelector ).messages[ key ] || + this.cultures[ "default" ].messages[ key ]; +}; + +Globalize.parseDate = function( value, formats, culture ) { + culture = this.findClosestCulture( culture ); + + var date, prop, patterns; + if ( formats ) { + if ( typeof formats === "string" ) { + formats = [ formats ]; + } + if ( formats.length ) { + for ( var i = 0, l = formats.length; i < l; i++ ) { + var format = formats[ i ]; + if ( format ) { + date = parseExact( value, format, culture ); + if ( date ) { + break; + } + } + } + } + } else { + patterns = culture.calendar.patterns; + for ( prop in patterns ) { + date = parseExact( value, patterns[prop], culture ); + if ( date ) { + break; + } + } + } + + return date || null; +}; + +Globalize.parseInt = function( value, radix, cultureSelector ) { + return truncate( Globalize.parseFloat(value, radix, cultureSelector) ); +}; + +Globalize.parseFloat = function( value, radix, cultureSelector ) { + // radix argument is optional + if ( typeof radix !== "number" ) { + cultureSelector = radix; + radix = 10; + } + + var culture = this.findClosestCulture( cultureSelector ); + var ret = NaN, + nf = culture.numberFormat; + + if ( value.indexOf(culture.numberFormat.currency.symbol) > -1 ) { + // remove currency symbol + value = value.replace( culture.numberFormat.currency.symbol, "" ); + // replace decimal seperator + value = value.replace( culture.numberFormat.currency["."], culture.numberFormat["."] ); + } + + //Remove percentage character from number string before parsing + if ( value.indexOf(culture.numberFormat.percent.symbol) > -1){ + value = value.replace( culture.numberFormat.percent.symbol, "" ); + } + + // remove spaces: leading, trailing and between - and number. Used for negative currency pt-BR + value = value.replace( / /g, "" ); + + // allow infinity or hexidecimal + if ( regexInfinity.test(value) ) { + ret = parseFloat( value ); + } + else if ( !radix && regexHex.test(value) ) { + ret = parseInt( value, 16 ); + } + else { + + // determine sign and number + var signInfo = parseNegativePattern( value, nf, nf.pattern[0] ), + sign = signInfo[ 0 ], + num = signInfo[ 1 ]; + + // #44 - try parsing as "(n)" + if ( sign === "" && nf.pattern[0] !== "(n)" ) { + signInfo = parseNegativePattern( value, nf, "(n)" ); + sign = signInfo[ 0 ]; + num = signInfo[ 1 ]; + } + + // try parsing as "-n" + if ( sign === "" && nf.pattern[0] !== "-n" ) { + signInfo = parseNegativePattern( value, nf, "-n" ); + sign = signInfo[ 0 ]; + num = signInfo[ 1 ]; + } + + sign = sign || "+"; + + // determine exponent and number + var exponent, + intAndFraction, + exponentPos = num.indexOf( "e" ); + if ( exponentPos < 0 ) exponentPos = num.indexOf( "E" ); + if ( exponentPos < 0 ) { + intAndFraction = num; + exponent = null; + } + else { + intAndFraction = num.substr( 0, exponentPos ); + exponent = num.substr( exponentPos + 1 ); + } + // determine decimal position + var integer, + fraction, + decSep = nf[ "." ], + decimalPos = intAndFraction.indexOf( decSep ); + if ( decimalPos < 0 ) { + integer = intAndFraction; + fraction = null; + } + else { + integer = intAndFraction.substr( 0, decimalPos ); + fraction = intAndFraction.substr( decimalPos + decSep.length ); + } + // handle groups (e.g. 1,000,000) + var groupSep = nf[ "," ]; + integer = integer.split( groupSep ).join( "" ); + var altGroupSep = groupSep.replace( /\u00A0/g, " " ); + if ( groupSep !== altGroupSep ) { + integer = integer.split( altGroupSep ).join( "" ); + } + // build a natively parsable number string + var p = sign + integer; + if ( fraction !== null ) { + p += "." + fraction; + } + if ( exponent !== null ) { + // exponent itself may have a number patternd + var expSignInfo = parseNegativePattern( exponent, nf, "-n" ); + p += "e" + ( expSignInfo[0] || "+" ) + expSignInfo[ 1 ]; + } + if ( regexParseFloat.test(p) ) { + ret = parseFloat( p ); + } + } + return ret; +}; + +Globalize.culture = function( cultureSelector ) { + // setter + if ( typeof cultureSelector !== "undefined" ) { + this.cultureSelector = cultureSelector; + } + // getter + return this.findClosestCulture( cultureSelector ) || this.cultures[ "default" ]; +}; + +}( this )); \ No newline at end of file diff --git a/apps/it/static/js/ui/external/jquery.mousewheel.js b/apps/it/static/js/ui/external/jquery.mousewheel.js new file mode 100644 index 0000000..8c60304 --- /dev/null +++ b/apps/it/static/js/ui/external/jquery.mousewheel.js @@ -0,0 +1,101 @@ +/*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net) + * Licensed under the MIT License (LICENSE.txt). + * + * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. + * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. + * Thanks to: Seamus Leahy for adding deltaX and deltaY + * + * Version: 3.1.0 + * + * Requires: 1.2.2+ + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else { + // Browser globals + factory(jQuery); + } +}(function ($) { + + var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll']; + var toBind = 'onwheel' in document || document.documentMode >= 9 ? ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll']; + var lowestDelta, lowestDeltaXY; + + if ($.event.fixHooks) { + for ( var i=toFix.length; i; ) { + $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks; + } + } + + $.event.special.mousewheel = { + setup: function() { + if ( this.addEventListener ) { + for ( var i=toBind.length; i; ) { + this.addEventListener( toBind[--i], handler, false ); + } + } else { + this.onmousewheel = handler; + } + }, + + teardown: function() { + if ( this.removeEventListener ) { + for ( var i=toBind.length; i; ) { + this.removeEventListener( toBind[--i], handler, false ); + } + } else { + this.onmousewheel = null; + } + } + }; + + $.fn.extend({ + mousewheel: function(fn) { + return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel"); + }, + + unmousewheel: function(fn) { + return this.unbind("mousewheel", fn); + } + }); + + + function handler(event) { + var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, deltaX = 0, deltaY = 0, absDelta = 0, absDeltaXY = 0; + event = $.event.fix(orgEvent); + event.type = "mousewheel"; + + // Old school scrollwheel delta + if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta; } + if ( orgEvent.detail ) { delta = orgEvent.detail * -1; } + + // New school wheel delta (wheel event) + if ( orgEvent.deltaY ) { + deltaY = orgEvent.deltaY * -1; + delta = deltaY; + } + if ( orgEvent.deltaX ) { + deltaX = orgEvent.deltaX; + delta = deltaX * -1; + } + + // Webkit + if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY; } + if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = orgEvent.wheelDeltaX * -1; } + + absDelta = Math.abs(delta); + if ( !lowestDelta || absDelta < lowestDelta ) { lowestDelta = absDelta; } + + absDeltaXY = Math.max( Math.abs(deltaY), Math.abs(deltaX) ); + if ( !lowestDeltaXY || absDeltaXY < lowestDeltaXY ) { lowestDeltaXY = absDeltaXY; } + + // Add event and delta to the front of the arguments + args.unshift(event, Math.floor(delta/lowestDelta), Math.floor(deltaX/lowestDeltaXY), Math.floor(deltaY/lowestDeltaXY)); + + return ($.event.dispatch || $.event.handle).apply(this, args); + } + +})); diff --git a/apps/it/static/js/ui/external/jshint.js b/apps/it/static/js/ui/external/jshint.js new file mode 100644 index 0000000..8f06d9b --- /dev/null +++ b/apps/it/static/js/ui/external/jshint.js @@ -0,0 +1,4835 @@ +/*! + * JSHint, by JSHint Community. + * + * This file (and this file only) is licensed under the same slightly modified + * MIT license that JSLint is. It stops evil-doers everywhere. + * + * JSHint is a derivative work of JSLint: + * + * Copyright (c) 2002 Douglas Crockford (www.JSLint.com) + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom + * the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * The Software shall be used for Good, not Evil. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + +/* + JSHINT is a global function. It takes two parameters. + + var myResult = JSHINT(source, option); + + The first parameter is either a string or an array of strings. If it is a + string, it will be split on '\n' or '\r'. If it is an array of strings, it + is assumed that each string represents one line. The source can be a + JavaScript text or a JSON text. + + The second parameter is an optional object of options which control the + operation of JSHINT. Most of the options are booleans: They are all + optional and have a default value of false. One of the options, predef, + can be an array of names, which will be used to declare global variables, + or an object whose keys are used as global names, with a boolean value + that determines if they are assignable. + + If it checks out, JSHINT returns true. Otherwise, it returns false. + + If false, you can inspect JSHINT.errors to find out the problems. + JSHINT.errors is an array of objects containing these members: + + { + line : The line (relative to 1) at which the lint was found + character : The character (relative to 1) at which the lint was found + reason : The problem + evidence : The text line in which the problem occurred + raw : The raw message before the details were inserted + a : The first detail + b : The second detail + c : The third detail + d : The fourth detail + } + + If a fatal error was found, a null will be the last element of the + JSHINT.errors array. + + You can request a data structure which contains JSHint's results. + + var myData = JSHINT.data(); + + It returns a structure with this form: + + { + errors: [ + { + line: NUMBER, + character: NUMBER, + reason: STRING, + evidence: STRING + } + ], + functions: [ + name: STRING, + line: NUMBER, + character: NUMBER, + last: NUMBER, + lastcharacter: NUMBER, + param: [ + STRING + ], + closure: [ + STRING + ], + var: [ + STRING + ], + exception: [ + STRING + ], + outer: [ + STRING + ], + unused: [ + STRING + ], + global: [ + STRING + ], + label: [ + STRING + ] + ], + globals: [ + STRING + ], + member: { + STRING: NUMBER + }, + unused: [ + { + name: STRING, + line: NUMBER + } + ], + implieds: [ + { + name: STRING, + line: NUMBER + } + ], + urls: [ + STRING + ], + json: BOOLEAN + } + + Empty arrays will not be included. + +*/ + +/*jshint + evil: true, nomen: false, onevar: false, regexp: false, strict: true, boss: true, + undef: true, maxlen: 100, indent: 4, quotmark: double, unused: true +*/ + +/*members "\b", "\t", "\n", "\f", "\r", "!=", "!==", "\"", "%", "(begin)", + "(breakage)", "(character)", "(context)", "(error)", "(explicitNewcap)", "(global)", + "(identifier)", "(last)", "(lastcharacter)", "(line)", "(loopage)", "(metrics)", + "(name)", "(onevar)", "(params)", "(scope)", "(statement)", "(verb)", "(tokens)", "(catch)", + "*", "+", "++", "-", "--", "\/", "<", "<=", "==", + "===", ">", ">=", $, $$, $A, $F, $H, $R, $break, $continue, $w, Abstract, Ajax, + __filename, __dirname, ActiveXObject, Array, ArrayBuffer, ArrayBufferView, Audio, + Autocompleter, Asset, Boolean, Builder, Buffer, Browser, Blob, COM, CScript, Canvas, + CustomAnimation, Class, Control, ComplexityCount, Chain, Color, Cookie, Core, DataView, Date, + Debug, Draggable, Draggables, Droppables, Document, DomReady, DOMEvent, DOMReady, DOMParser, + Drag, E, Enumerator, Enumerable, Element, Elements, Error, Effect, EvalError, Event, + Events, FadeAnimation, Field, Flash, Float32Array, Float64Array, Form, + FormField, Frame, FormData, Function, Fx, GetObject, Group, Hash, HotKey, + HTMLElement, HTMLAnchorElement, HTMLBaseElement, HTMLBlockquoteElement, + HTMLBodyElement, HTMLBRElement, HTMLButtonElement, HTMLCanvasElement, HTMLDirectoryElement, + HTMLDivElement, HTMLDListElement, HTMLFieldSetElement, + HTMLFontElement, HTMLFormElement, HTMLFrameElement, HTMLFrameSetElement, + HTMLHeadElement, HTMLHeadingElement, HTMLHRElement, HTMLHtmlElement, + HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLIsIndexElement, + HTMLLabelElement, HTMLLayerElement, HTMLLegendElement, HTMLLIElement, + HTMLLinkElement, HTMLMapElement, HTMLMenuElement, HTMLMetaElement, + HTMLModElement, HTMLObjectElement, HTMLOListElement, HTMLOptGroupElement, + HTMLOptionElement, HTMLParagraphElement, HTMLParamElement, HTMLPreElement, + HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLStyleElement, + HtmlTable, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, + HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement, + HTMLTextAreaElement, HTMLTitleElement, HTMLUListElement, HTMLVideoElement, + Iframe, IframeShim, Image, importScripts, Int16Array, Int32Array, Int8Array, + Insertion, InputValidator, JSON, Keyboard, Locale, LN10, LN2, LOG10E, LOG2E, + MAX_VALUE, MIN_VALUE, Map, Mask, Math, MenuItem, MessageChannel, MessageEvent, MessagePort, + MoveAnimation, MooTools, MutationObserver, NaN, Native, NEGATIVE_INFINITY, Node, NodeFilter, + Number, Object, ObjectRange, + Option, Options, OverText, PI, POSITIVE_INFINITY, PeriodicalExecuter, Point, Position, Prototype, + RangeError, Rectangle, ReferenceError, RegExp, ResizeAnimation, Request, RotateAnimation, Set, + SQRT1_2, SQRT2, ScrollBar, ScriptEngine, ScriptEngineBuildVersion, + ScriptEngineMajorVersion, ScriptEngineMinorVersion, Scriptaculous, Scroller, + Slick, Slider, Selector, SharedWorker, String, Style, SyntaxError, Sortable, Sortables, + SortableObserver, Sound, Spinner, System, Swiff, Text, TextArea, Template, + Timer, Tips, Type, TypeError, Toggle, Try, "use strict", unescape, URI, URIError, URL, + VBArray, WeakMap, WSH, WScript, XDomainRequest, Web, Window, XMLDOM, XMLHttpRequest, XMLSerializer, + XPathEvaluator, XPathException, XPathExpression, XPathNamespace, XPathNSResolver, XPathResult, + "\\", a, abs, addEventListener, address, alert, apply, applicationCache, arguments, arity, + asi, atob, b, basic, basicToken, bitwise, blacklist, block, blur, boolOptions, boss, + browser, btoa, c, call, callee, caller, camelcase, cases, charAt, charCodeAt, character, + clearInterval, clearTimeout, close, closed, closure, comment, complexityCount, condition, + confirm, console, constructor, content, couch, create, css, curly, d, data, datalist, dd, debug, + decodeURI, decodeURIComponent, defaultStatus, defineClass, deserialize, devel, document, + dojo, dijit, dojox, define, else, emit, encodeURI, encodeURIComponent, elem, + eqeq, eqeqeq, eqnull, errors, es5, escape, esnext, eval, event, evidence, evil, + ex, exception, exec, exps, expr, exports, FileReader, first, floor, focus, forEach, + forin, fragment, frames, from, fromCharCode, fud, funcscope, funct, function, functions, + g, gc, getComputedStyle, getRow, getter, getterToken, GLOBAL, global, globals, globalstrict, + hasOwnProperty, help, history, i, id, identifier, immed, implieds, importPackage, include, + indent, indexOf, init, ins, internals, instanceOf, isAlpha, isApplicationRunning, isArray, + isDigit, isFinite, isNaN, iterator, java, join, jshint, + JSHINT, json, jquery, jQuery, keys, label, labelled, last, lastcharacter, lastsemic, laxbreak, + laxcomma, latedef, lbp, led, left, length, line, load, loadClass, localStorage, location, + log, loopfunc, m, match, max, maxcomplexity, maxdepth, maxerr, maxlen, maxstatements, maxparams, + member, message, meta, module, moveBy, moveTo, mootools, multistr, name, navigator, new, newcap, + nestedBlockDepth, noarg, node, noempty, nomen, nonew, nonstandard, nud, onbeforeunload, onblur, + onerror, onevar, onecase, onfocus, onload, onresize, onunload, open, openDatabase, openURL, + opener, opera, options, outer, param, parent, parseFloat, parseInt, passfail, plusplus, + postMessage, pop, predef, print, process, prompt, proto, prototype, prototypejs, provides, push, + quit, quotmark, range, raw, reach, reason, regexp, readFile, readUrl, regexdash, + removeEventListener, replace, report, require, reserved, resizeBy, resizeTo, resolvePath, + resumeUpdates, respond, rhino, right, runCommand, scroll, scope, screen, scripturl, scrollBy, + scrollTo, scrollbar, search, seal, self, send, serialize, sessionStorage, setInterval, setTimeout, + setter, setterToken, shift, slice, smarttabs, sort, spawn, split, statement, statementCount, stack, + status, start, strict, sub, substr, supernew, shadow, supplant, sum, sync, test, toLowerCase, + toString, toUpperCase, toint32, token, tokens, top, trailing, type, typeOf, Uint16Array, + Uint32Array, Uint8Array, undef, undefs, unused, urls, validthis, value, valueOf, var, vars, + version, verifyMaxParametersPerFunction, verifyMaxStatementsPerFunction, + verifyMaxComplexityPerFunction, verifyMaxNestedBlockDepthPerFunction, WebSocket, withstmt, white, + window, windows, Worker, worker, wsh, yui, YUI, Y, YUI_config*/ + +/*global exports: false */ + +// We build the application inside a function so that we produce only a single +// global variable. That function will be invoked immediately, and its return +// value is the JSHINT function itself. + +var JSHINT = (function () { + "use strict"; + + var anonname, // The guessed name for anonymous functions. + +// These are operators that should not be used with the ! operator. + + bang = { + "<" : true, + "<=" : true, + "==" : true, + "===": true, + "!==": true, + "!=" : true, + ">" : true, + ">=" : true, + "+" : true, + "-" : true, + "*" : true, + "/" : true, + "%" : true + }, + + // These are the JSHint boolean options. + boolOptions = { + asi : true, // if automatic semicolon insertion should be tolerated + bitwise : true, // if bitwise operators should not be allowed + boss : true, // if advanced usage of assignments should be allowed + browser : true, // if the standard browser globals should be predefined + camelcase : true, // if identifiers should be required in camel case + couch : true, // if CouchDB globals should be predefined + curly : true, // if curly braces around all blocks should be required + debug : true, // if debugger statements should be allowed + devel : true, // if logging globals should be predefined (console, + // alert, etc.) + dojo : true, // if Dojo Toolkit globals should be predefined + eqeqeq : true, // if === should be required + eqnull : true, // if == null comparisons should be tolerated + es5 : true, // if ES5 syntax should be allowed + esnext : true, // if es.next specific syntax should be allowed + evil : true, // if eval should be allowed + expr : true, // if ExpressionStatement should be allowed as Programs + forin : true, // if for in statements must filter + funcscope : true, // if only function scope should be used for scope tests + globalstrict: true, // if global "use strict"; should be allowed (also + // enables 'strict') + immed : true, // if immediate invocations must be wrapped in parens + iterator : true, // if the `__iterator__` property should be allowed + jquery : true, // if jQuery globals should be predefined + lastsemic : true, // if semicolons may be ommitted for the trailing + // statements inside of a one-line blocks. + latedef : true, // if the use before definition should not be tolerated + laxbreak : true, // if line breaks should not be checked + laxcomma : true, // if line breaks should not be checked around commas + loopfunc : true, // if functions should be allowed to be defined within + // loops + mootools : true, // if MooTools globals should be predefined + multistr : true, // allow multiline strings + newcap : true, // if constructor names must be capitalized + noarg : true, // if arguments.caller and arguments.callee should be + // disallowed + node : true, // if the Node.js environment globals should be + // predefined + noempty : true, // if empty blocks should be disallowed + nonew : true, // if using `new` for side-effects should be disallowed + nonstandard : true, // if non-standard (but widely adopted) globals should + // be predefined + nomen : true, // if names should be checked + onevar : true, // if only one var statement per function should be + // allowed + onecase : true, // if one case switch statements should be allowed + passfail : true, // if the scan should stop on first error + plusplus : true, // if increment/decrement should not be allowed + proto : true, // if the `__proto__` property should be allowed + prototypejs : true, // if Prototype and Scriptaculous globals should be + // predefined + regexdash : true, // if unescaped first/last dash (-) inside brackets + // should be tolerated + regexp : true, // if the . should not be allowed in regexp literals + rhino : true, // if the Rhino environment globals should be predefined + undef : true, // if variables should be declared before used + unused : true, // if variables should be always used + scripturl : true, // if script-targeted URLs should be tolerated + shadow : true, // if variable shadowing should be tolerated + smarttabs : true, // if smarttabs should be tolerated + // (http://www.emacswiki.org/emacs/SmartTabs) + strict : true, // require the "use strict"; pragma + sub : true, // if all forms of subscript notation are tolerated + supernew : true, // if `new function () { ... };` and `new Object;` + // should be tolerated + trailing : true, // if trailing whitespace rules apply + validthis : true, // if 'this' inside a non-constructor function is valid. + // This is a function scoped option only. + withstmt : true, // if with statements should be allowed + white : true, // if strict whitespace rules apply + worker : true, // if Web Worker script symbols should be allowed + wsh : true, // if the Windows Scripting Host environment globals + // should be predefined + yui : true // YUI variables should be predefined + }, + + // These are the JSHint options that can take any value + // (we use this object to detect invalid options) + valOptions = { + maxlen : false, + indent : false, + maxerr : false, + predef : false, + quotmark : false, //'single'|'double'|true + scope : false, + maxstatements: false, // {int} max statements per function + maxdepth : false, // {int} max nested block depth per function + maxparams : false, // {int} max params per function + maxcomplexity: false // {int} max cyclomatic complexity per function + }, + + // These are JSHint boolean options which are shared with JSLint + // where the definition in JSHint is opposite JSLint + invertedOptions = { + bitwise : true, + forin : true, + newcap : true, + nomen : true, + plusplus : true, + regexp : true, + undef : true, + white : true, + + // Inverted and renamed, use JSHint name here + eqeqeq : true, + onevar : true + }, + + // These are JSHint boolean options which are shared with JSLint + // where the name has been changed but the effect is unchanged + renamedOptions = { + eqeq : "eqeqeq", + vars : "onevar", + windows : "wsh" + }, + + + // browser contains a set of global names which are commonly provided by a + // web browser environment. + browser = { + ArrayBuffer : false, + ArrayBufferView : false, + Audio : false, + Blob : false, + addEventListener : false, + applicationCache : false, + atob : false, + blur : false, + btoa : false, + clearInterval : false, + clearTimeout : false, + close : false, + closed : false, + DataView : false, + DOMParser : false, + defaultStatus : false, + document : false, + event : false, + FileReader : false, + Float32Array : false, + Float64Array : false, + FormData : false, + focus : false, + frames : false, + getComputedStyle : false, + HTMLElement : false, + HTMLAnchorElement : false, + HTMLBaseElement : false, + HTMLBlockquoteElement : false, + HTMLBodyElement : false, + HTMLBRElement : false, + HTMLButtonElement : false, + HTMLCanvasElement : false, + HTMLDirectoryElement : false, + HTMLDivElement : false, + HTMLDListElement : false, + HTMLFieldSetElement : false, + HTMLFontElement : false, + HTMLFormElement : false, + HTMLFrameElement : false, + HTMLFrameSetElement : false, + HTMLHeadElement : false, + HTMLHeadingElement : false, + HTMLHRElement : false, + HTMLHtmlElement : false, + HTMLIFrameElement : false, + HTMLImageElement : false, + HTMLInputElement : false, + HTMLIsIndexElement : false, + HTMLLabelElement : false, + HTMLLayerElement : false, + HTMLLegendElement : false, + HTMLLIElement : false, + HTMLLinkElement : false, + HTMLMapElement : false, + HTMLMenuElement : false, + HTMLMetaElement : false, + HTMLModElement : false, + HTMLObjectElement : false, + HTMLOListElement : false, + HTMLOptGroupElement : false, + HTMLOptionElement : false, + HTMLParagraphElement : false, + HTMLParamElement : false, + HTMLPreElement : false, + HTMLQuoteElement : false, + HTMLScriptElement : false, + HTMLSelectElement : false, + HTMLStyleElement : false, + HTMLTableCaptionElement : false, + HTMLTableCellElement : false, + HTMLTableColElement : false, + HTMLTableElement : false, + HTMLTableRowElement : false, + HTMLTableSectionElement : false, + HTMLTextAreaElement : false, + HTMLTitleElement : false, + HTMLUListElement : false, + HTMLVideoElement : false, + history : false, + Int16Array : false, + Int32Array : false, + Int8Array : false, + Image : false, + length : false, + localStorage : false, + location : false, + MessageChannel : false, + MessageEvent : false, + MessagePort : false, + moveBy : false, + moveTo : false, + MutationObserver : false, + name : false, + Node : false, + NodeFilter : false, + navigator : false, + onbeforeunload : true, + onblur : true, + onerror : true, + onfocus : true, + onload : true, + onresize : true, + onunload : true, + open : false, + openDatabase : false, + opener : false, + Option : false, + parent : false, + print : false, + removeEventListener : false, + resizeBy : false, + resizeTo : false, + screen : false, + scroll : false, + scrollBy : false, + scrollTo : false, + sessionStorage : false, + setInterval : false, + setTimeout : false, + SharedWorker : false, + status : false, + top : false, + Uint16Array : false, + Uint32Array : false, + Uint8Array : false, + WebSocket : false, + window : false, + Worker : false, + XMLHttpRequest : false, + XMLSerializer : false, + XPathEvaluator : false, + XPathException : false, + XPathExpression : false, + XPathNamespace : false, + XPathNSResolver : false, + XPathResult : false + }, + + couch = { + "require" : false, + respond : false, + getRow : false, + emit : false, + send : false, + start : false, + sum : false, + log : false, + exports : false, + module : false, + provides : false + }, + + declared, // Globals that were declared using /*global ... */ syntax. + + devel = { + alert : false, + confirm : false, + console : false, + Debug : false, + opera : false, + prompt : false + }, + + dojo = { + dojo : false, + dijit : false, + dojox : false, + define : false, + "require" : false + }, + + funct, // The current function + + functionicity = [ + "closure", "exception", "global", "label", + "outer", "unused", "var" + ], + + functions, // All of the functions + + global, // The global scope + implied, // Implied globals + inblock, + indent, + jsonmode, + + jquery = { + "$" : false, + jQuery : false + }, + + lines, + lookahead, + member, + membersOnly, + + mootools = { + "$" : false, + "$$" : false, + Asset : false, + Browser : false, + Chain : false, + Class : false, + Color : false, + Cookie : false, + Core : false, + Document : false, + DomReady : false, + DOMEvent : false, + DOMReady : false, + Drag : false, + Element : false, + Elements : false, + Event : false, + Events : false, + Fx : false, + Group : false, + Hash : false, + HtmlTable : false, + Iframe : false, + IframeShim : false, + InputValidator : false, + instanceOf : false, + Keyboard : false, + Locale : false, + Mask : false, + MooTools : false, + Native : false, + Options : false, + OverText : false, + Request : false, + Scroller : false, + Slick : false, + Slider : false, + Sortables : false, + Spinner : false, + Swiff : false, + Tips : false, + Type : false, + typeOf : false, + URI : false, + Window : false + }, + + nexttoken, + + node = { + __filename : false, + __dirname : false, + Buffer : false, + console : false, + exports : true, // In Node it is ok to exports = module.exports = foo(); + GLOBAL : false, + global : false, + module : false, + process : false, + require : false, + setTimeout : false, + clearTimeout : false, + setInterval : false, + clearInterval : false + }, + + noreach, + option, + predefined, // Global variables defined by option + prereg, + prevtoken, + + prototypejs = { + "$" : false, + "$$" : false, + "$A" : false, + "$F" : false, + "$H" : false, + "$R" : false, + "$break" : false, + "$continue" : false, + "$w" : false, + Abstract : false, + Ajax : false, + Class : false, + Enumerable : false, + Element : false, + Event : false, + Field : false, + Form : false, + Hash : false, + Insertion : false, + ObjectRange : false, + PeriodicalExecuter: false, + Position : false, + Prototype : false, + Selector : false, + Template : false, + Toggle : false, + Try : false, + Autocompleter : false, + Builder : false, + Control : false, + Draggable : false, + Draggables : false, + Droppables : false, + Effect : false, + Sortable : false, + SortableObserver : false, + Sound : false, + Scriptaculous : false + }, + + quotmark, + + rhino = { + defineClass : false, + deserialize : false, + gc : false, + help : false, + importPackage: false, + "java" : false, + load : false, + loadClass : false, + print : false, + quit : false, + readFile : false, + readUrl : false, + runCommand : false, + seal : false, + serialize : false, + spawn : false, + sync : false, + toint32 : false, + version : false + }, + + scope, // The current scope + stack, + + // standard contains the global names that are provided by the + // ECMAScript standard. + standard = { + Array : false, + Boolean : false, + Date : false, + decodeURI : false, + decodeURIComponent : false, + encodeURI : false, + encodeURIComponent : false, + Error : false, + "eval" : false, + EvalError : false, + Function : false, + hasOwnProperty : false, + isFinite : false, + isNaN : false, + JSON : false, + Map : false, + Math : false, + NaN : false, + Number : false, + Object : false, + parseInt : false, + parseFloat : false, + RangeError : false, + ReferenceError : false, + RegExp : false, + Set : false, + String : false, + SyntaxError : false, + TypeError : false, + URIError : false, + WeakMap : false + }, + + // widely adopted global names that are not part of ECMAScript standard + nonstandard = { + escape : false, + unescape : false + }, + + directive, + syntax = {}, + tab, + token, + unuseds, + urls, + useESNextSyntax, + warnings, + + worker = { + importScripts : true, + postMessage : true, + self : true + }, + + wsh = { + ActiveXObject : true, + Enumerator : true, + GetObject : true, + ScriptEngine : true, + ScriptEngineBuildVersion : true, + ScriptEngineMajorVersion : true, + ScriptEngineMinorVersion : true, + VBArray : true, + WSH : true, + WScript : true, + XDomainRequest : true + }, + + yui = { + YUI : false, + Y : false, + YUI_config : false + }; + // Regular expressions. Some of these are stupidly long. + var ax, cx, tx, nx, nxg, lx, ix, jx, ft; + (function () { + /*jshint maxlen:300 */ + + // unsafe comment or string + ax = /@cc|<\/?|script|\]\s*\]|<\s*!|</i; + + // unsafe characters that are silently deleted by one or more browsers + cx = /[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/; + + // token + tx = /^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/=(?!(\S*\/[gim]?))|\/(\*(jshint|jslint|members?|global)?|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/; + + // characters in strings that need escapement + nx = /[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/; + nxg = /[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; + + // star slash + lx = /\*\//; + + // identifier + ix = /^([a-zA-Z_$][a-zA-Z0-9_$]*)$/; + + // javascript url + jx = /^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i; + + // catches /* falls through */ comments + ft = /^\s*\/\*\s*falls\sthrough\s*\*\/\s*$/; + }()); + + function F() {} // Used by Object.create + + function is_own(object, name) { + // The object.hasOwnProperty method fails when the property under consideration + // is named 'hasOwnProperty'. So we have to use this more convoluted form. + return Object.prototype.hasOwnProperty.call(object, name); + } + + function checkOption(name, t) { + if (valOptions[name] === undefined && boolOptions[name] === undefined) { + warning("Bad option: '" + name + "'.", t); + } + } + + function isString(obj) { + return Object.prototype.toString.call(obj) === "[object String]"; + } + + // Provide critical ES5 functions to ES3. + + if (typeof Array.isArray !== "function") { + Array.isArray = function (o) { + return Object.prototype.toString.apply(o) === "[object Array]"; + }; + } + + if (!Array.prototype.forEach) { + Array.prototype.forEach = function (fn, scope) { + var len = this.length; + + for (var i = 0; i < len; i++) { + fn.call(scope || this, this[i], i, this); + } + }; + } + + if (!Array.prototype.indexOf) { + Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { + if (this === null || this === undefined) { + throw new TypeError(); + } + + var t = new Object(this); + var len = t.length >>> 0; + + if (len === 0) { + return -1; + } + + var n = 0; + if (arguments.length > 0) { + n = Number(arguments[1]); + if (n != n) { // shortcut for verifying if it's NaN + n = 0; + } else if (n !== 0 && n != Infinity && n != -Infinity) { + n = (n > 0 || -1) * Math.floor(Math.abs(n)); + } + } + + if (n >= len) { + return -1; + } + + var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); + for (; k < len; k++) { + if (k in t && t[k] === searchElement) { + return k; + } + } + + return -1; + }; + } + + if (typeof Object.create !== "function") { + Object.create = function (o) { + F.prototype = o; + return new F(); + }; + } + + if (typeof Object.keys !== "function") { + Object.keys = function (o) { + var a = [], k; + for (k in o) { + if (is_own(o, k)) { + a.push(k); + } + } + return a; + }; + } + + // Non standard methods + + function isAlpha(str) { + return (str >= "a" && str <= "z\uffff") || + (str >= "A" && str <= "Z\uffff"); + } + + function isDigit(str) { + return (str >= "0" && str <= "9"); + } + + function isIdentifier(token, value) { + if (!token) + return false; + + if (!token.identifier || token.value !== value) + return false; + + return true; + } + + function supplant(str, data) { + return str.replace(/\{([^{}]*)\}/g, function (a, b) { + var r = data[b]; + return typeof r === "string" || typeof r === "number" ? r : a; + }); + } + + function combine(t, o) { + var n; + for (n in o) { + if (is_own(o, n) && !is_own(JSHINT.blacklist, n)) { + t[n] = o[n]; + } + } + } + + function updatePredefined() { + Object.keys(JSHINT.blacklist).forEach(function (key) { + delete predefined[key]; + }); + } + + function assume() { + if (option.couch) { + combine(predefined, couch); + } + + if (option.rhino) { + combine(predefined, rhino); + } + + if (option.prototypejs) { + combine(predefined, prototypejs); + } + + if (option.node) { + combine(predefined, node); + option.globalstrict = true; + } + + if (option.devel) { + combine(predefined, devel); + } + + if (option.dojo) { + combine(predefined, dojo); + } + + if (option.browser) { + combine(predefined, browser); + } + + if (option.nonstandard) { + combine(predefined, nonstandard); + } + + if (option.jquery) { + combine(predefined, jquery); + } + + if (option.mootools) { + combine(predefined, mootools); + } + + if (option.worker) { + combine(predefined, worker); + } + + if (option.wsh) { + combine(predefined, wsh); + } + + if (option.esnext) { + useESNextSyntax(); + } + + if (option.globalstrict && option.strict !== false) { + option.strict = true; + } + + if (option.yui) { + combine(predefined, yui); + } + } + + + // Produce an error warning. + function quit(message, line, chr) { + var percentage = Math.floor((line / lines.length) * 100); + + throw { + name: "JSHintError", + line: line, + character: chr, + message: message + " (" + percentage + "% scanned).", + raw: message + }; + } + + function isundef(scope, m, t, a) { + return JSHINT.undefs.push([scope, m, t, a]); + } + + function warning(m, t, a, b, c, d) { + var ch, l, w; + t = t || nexttoken; + if (t.id === "(end)") { // `~ + t = token; + } + l = t.line || 0; + ch = t.from || 0; + w = { + id: "(error)", + raw: m, + evidence: lines[l - 1] || "", + line: l, + character: ch, + scope: JSHINT.scope, + a: a, + b: b, + c: c, + d: d + }; + w.reason = supplant(m, w); + JSHINT.errors.push(w); + if (option.passfail) { + quit("Stopping. ", l, ch); + } + warnings += 1; + if (warnings >= option.maxerr) { + quit("Too many errors.", l, ch); + } + return w; + } + + function warningAt(m, l, ch, a, b, c, d) { + return warning(m, { + line: l, + from: ch + }, a, b, c, d); + } + + function error(m, t, a, b, c, d) { + warning(m, t, a, b, c, d); + } + + function errorAt(m, l, ch, a, b, c, d) { + return error(m, { + line: l, + from: ch + }, a, b, c, d); + } + + // Tracking of "internal" scripts, like eval containing a static string + function addInternalSrc(elem, src) { + var i; + i = { + id: "(internal)", + elem: elem, + value: src + }; + JSHINT.internals.push(i); + return i; + } + + +// lexical analysis and token construction + + var lex = (function lex() { + var character, from, line, s; + +// Private lex methods + + function nextLine() { + var at, + match, + tw; // trailing whitespace check + + if (line >= lines.length) + return false; + + character = 1; + s = lines[line]; + line += 1; + + // If smarttabs option is used check for spaces followed by tabs only. + // Otherwise check for any occurence of mixed tabs and spaces. + // Tabs and one space followed by block comment is allowed. + if (option.smarttabs) { + // negative look-behind for "//" + match = s.match(/(\/\/)? \t/); + at = match && !match[1] ? 0 : -1; + } else { + at = s.search(/ \t|\t [^\*]/); + } + + if (at >= 0) + warningAt("Mixed spaces and tabs.", line, at + 1); + + s = s.replace(/\t/g, tab); + at = s.search(cx); + + if (at >= 0) + warningAt("Unsafe character.", line, at); + + if (option.maxlen && option.maxlen < s.length) + warningAt("Line too long.", line, s.length); + + // Check for trailing whitespaces + tw = option.trailing && s.match(/^(.*?)\s+$/); + if (tw && !/^\s+$/.test(s)) { + warningAt("Trailing whitespace.", line, tw[1].length + 1); + } + return true; + } + +// Produce a token object. The token inherits from a syntax symbol. + + function it(type, value) { + var i, t; + + function checkName(name) { + if (!option.proto && name === "__proto__") { + warningAt("The '{a}' property is deprecated.", line, from, name); + return; + } + + if (!option.iterator && name === "__iterator__") { + warningAt("'{a}' is only available in JavaScript 1.7.", line, from, name); + return; + } + + // Check for dangling underscores unless we're in Node + // environment and this identifier represents built-in + // Node globals with underscores. + + var hasDangling = /^(_+.*|.*_+)$/.test(name); + + if (option.nomen && hasDangling && name !== "_") { + if (option.node && token.id !== "." && /^(__dirname|__filename)$/.test(name)) + return; + + warningAt("Unexpected {a} in '{b}'.", line, from, "dangling '_'", name); + return; + } + + // Check for non-camelcase names. Names like MY_VAR and + // _myVar are okay though. + + if (option.camelcase) { + if (name.replace(/^_+/, "").indexOf("_") > -1 && !name.match(/^[A-Z0-9_]*$/)) { + warningAt("Identifier '{a}' is not in camel case.", line, from, value); + } + } + } + + if (type === "(color)" || type === "(range)") { + t = {type: type}; + } else if (type === "(punctuator)" || + (type === "(identifier)" && is_own(syntax, value))) { + t = syntax[value] || syntax["(error)"]; + } else { + t = syntax[type]; + } + + t = Object.create(t); + + if (type === "(string)" || type === "(range)") { + if (!option.scripturl && jx.test(value)) { + warningAt("Script URL.", line, from); + } + } + + if (type === "(identifier)") { + t.identifier = true; + checkName(value); + } + + t.value = value; + t.line = line; + t.character = character; + t.from = from; + i = t.id; + if (i !== "(endline)") { + prereg = i && + (("(,=:[!&|?{};".indexOf(i.charAt(i.length - 1)) >= 0) || + i === "return" || + i === "case"); + } + return t; + } + + // Public lex methods + return { + init: function (source) { + if (typeof source === "string") { + lines = source + .replace(/\r\n/g, "\n") + .replace(/\r/g, "\n") + .split("\n"); + } else { + lines = source; + } + + // If the first line is a shebang (#!), make it a blank and move on. + // Shebangs are used by Node scripts. + if (lines[0] && lines[0].substr(0, 2) === "#!") + lines[0] = ""; + + line = 0; + nextLine(); + from = 1; + }, + + range: function (begin, end) { + var c, value = ""; + from = character; + if (s.charAt(0) !== begin) { + errorAt("Expected '{a}' and instead saw '{b}'.", + line, character, begin, s.charAt(0)); + } + for (;;) { + s = s.slice(1); + character += 1; + c = s.charAt(0); + switch (c) { + case "": + errorAt("Missing '{a}'.", line, character, c); + break; + case end: + s = s.slice(1); + character += 1; + return it("(range)", value); + case "\\": + warningAt("Unexpected '{a}'.", line, character, c); + } + value += c; + } + + }, + + + // token -- this is called by advance to get the next token + token: function () { + var b, c, captures, d, depth, high, i, l, low, q, t, isLiteral, isInRange, n; + + function match(x) { + var r = x.exec(s), r1; + + if (r) { + l = r[0].length; + r1 = r[1]; + c = r1.charAt(0); + s = s.substr(l); + from = character + l - r1.length; + character += l; + return r1; + } + } + + function string(x) { + var c, j, r = "", allowNewLine = false; + + if (jsonmode && x !== "\"") { + warningAt("Strings must use doublequote.", + line, character); + } + + if (option.quotmark) { + if (option.quotmark === "single" && x !== "'") { + warningAt("Strings must use singlequote.", + line, character); + } else if (option.quotmark === "double" && x !== "\"") { + warningAt("Strings must use doublequote.", + line, character); + } else if (option.quotmark === true) { + quotmark = quotmark || x; + if (quotmark !== x) { + warningAt("Mixed double and single quotes.", + line, character); + } + } + } + + function esc(n) { + var i = parseInt(s.substr(j + 1, n), 16); + j += n; + if (i >= 32 && i <= 126 && + i !== 34 && i !== 92 && i !== 39) { + warningAt("Unnecessary escapement.", line, character); + } + character += n; + c = String.fromCharCode(i); + } + + j = 0; + +unclosedString: + for (;;) { + while (j >= s.length) { + j = 0; + + var cl = line, cf = from; + if (!nextLine()) { + errorAt("Unclosed string.", cl, cf); + break unclosedString; + } + + if (allowNewLine) { + allowNewLine = false; + } else { + warningAt("Unclosed string.", cl, cf); + } + } + + c = s.charAt(j); + if (c === x) { + character += 1; + s = s.substr(j + 1); + return it("(string)", r, x); + } + + if (c < " ") { + if (c === "\n" || c === "\r") { + break; + } + warningAt("Control character in string: {a}.", + line, character + j, s.slice(0, j)); + } else if (c === "\\") { + j += 1; + character += 1; + c = s.charAt(j); + n = s.charAt(j + 1); + switch (c) { + case "\\": + case "\"": + case "/": + break; + case "\'": + if (jsonmode) { + warningAt("Avoid \\'.", line, character); + } + break; + case "b": + c = "\b"; + break; + case "f": + c = "\f"; + break; + case "n": + c = "\n"; + break; + case "r": + c = "\r"; + break; + case "t": + c = "\t"; + break; + case "0": + c = "\0"; + // Octal literals fail in strict mode + // check if the number is between 00 and 07 + // where 'n' is the token next to 'c' + if (n >= 0 && n <= 7 && directive["use strict"]) { + warningAt( + "Octal literals are not allowed in strict mode.", + line, character); + } + break; + case "u": + esc(4); + break; + case "v": + if (jsonmode) { + warningAt("Avoid \\v.", line, character); + } + c = "\v"; + break; + case "x": + if (jsonmode) { + warningAt("Avoid \\x-.", line, character); + } + esc(2); + break; + case "": + // last character is escape character + // always allow new line if escaped, but show + // warning if option is not set + allowNewLine = true; + if (option.multistr) { + if (jsonmode) { + warningAt("Avoid EOL escapement.", line, character); + } + c = ""; + character -= 1; + break; + } + warningAt("Bad escapement of EOL. Use option multistr if needed.", + line, character); + break; + case "!": + if (s.charAt(j - 2) === "<") + break; + /*falls through*/ + default: + warningAt("Bad escapement.", line, character); + } + } + r += c; + character += 1; + j += 1; + } + } + + for (;;) { + if (!s) { + return it(nextLine() ? "(endline)" : "(end)", ""); + } + + t = match(tx); + + if (!t) { + t = ""; + c = ""; + while (s && s < "!") { + s = s.substr(1); + } + if (s) { + errorAt("Unexpected '{a}'.", line, character, s.substr(0, 1)); + s = ""; + } + } else { + + // identifier + + if (isAlpha(c) || c === "_" || c === "$") { + return it("(identifier)", t); + } + + // number + + if (isDigit(c)) { + if (!isFinite(Number(t))) { + warningAt("Bad number '{a}'.", + line, character, t); + } + if (isAlpha(s.substr(0, 1))) { + warningAt("Missing space after '{a}'.", + line, character, t); + } + if (c === "0") { + d = t.substr(1, 1); + if (isDigit(d)) { + if (token.id !== ".") { + warningAt("Don't use extra leading zeros '{a}'.", + line, character, t); + } + } else if (jsonmode && (d === "x" || d === "X")) { + warningAt("Avoid 0x-. '{a}'.", + line, character, t); + } + } + if (t.substr(t.length - 1) === ".") { + warningAt( +"A trailing decimal point can be confused with a dot '{a}'.", line, character, t); + } + return it("(number)", t); + } + switch (t) { + + // string + + case "\"": + case "'": + return string(t); + + // // comment + + case "//": + s = ""; + token.comment = true; + break; + + // /* comment + + case "/*": + for (;;) { + i = s.search(lx); + if (i >= 0) { + break; + } + if (!nextLine()) { + errorAt("Unclosed comment.", line, character); + } + } + s = s.substr(i + 2); + token.comment = true; + break; + + // /*members /*jshint /*global + + case "/*members": + case "/*member": + case "/*jshint": + case "/*jslint": + case "/*global": + case "*/": + return { + value: t, + type: "special", + line: line, + character: character, + from: from + }; + + case "": + break; + // / + case "/": + if (s.charAt(0) === "=") { + errorAt("A regular expression literal can be confused with '/='.", + line, from); + } + + if (prereg) { + depth = 0; + captures = 0; + l = 0; + for (;;) { + b = true; + c = s.charAt(l); + l += 1; + switch (c) { + case "": + errorAt("Unclosed regular expression.", line, from); + return quit("Stopping.", line, from); + case "/": + if (depth > 0) { + warningAt("{a} unterminated regular expression " + + "group(s).", line, from + l, depth); + } + c = s.substr(0, l - 1); + q = { + g: true, + i: true, + m: true + }; + while (q[s.charAt(l)] === true) { + q[s.charAt(l)] = false; + l += 1; + } + character += l; + s = s.substr(l); + q = s.charAt(0); + if (q === "/" || q === "*") { + errorAt("Confusing regular expression.", + line, from); + } + return it("(regexp)", c); + case "\\": + c = s.charAt(l); + if (c < " ") { + warningAt( +"Unexpected control character in regular expression.", line, from + l); + } else if (c === "<") { + warningAt( +"Unexpected escaped character '{a}' in regular expression.", line, from + l, c); + } + l += 1; + break; + case "(": + depth += 1; + b = false; + if (s.charAt(l) === "?") { + l += 1; + switch (s.charAt(l)) { + case ":": + case "=": + case "!": + l += 1; + break; + default: + warningAt( +"Expected '{a}' and instead saw '{b}'.", line, from + l, ":", s.charAt(l)); + } + } else { + captures += 1; + } + break; + case "|": + b = false; + break; + case ")": + if (depth === 0) { + warningAt("Unescaped '{a}'.", + line, from + l, ")"); + } else { + depth -= 1; + } + break; + case " ": + q = 1; + while (s.charAt(l) === " ") { + l += 1; + q += 1; + } + if (q > 1) { + warningAt( +"Spaces are hard to count. Use {{a}}.", line, from + l, q); + } + break; + case "[": + c = s.charAt(l); + if (c === "^") { + l += 1; + if (s.charAt(l) === "]") { + errorAt("Unescaped '{a}'.", + line, from + l, "^"); + } + } + if (c === "]") { + warningAt("Empty class.", line, + from + l - 1); + } + isLiteral = false; + isInRange = false; +klass: + do { + c = s.charAt(l); + l += 1; + switch (c) { + case "[": + case "^": + warningAt("Unescaped '{a}'.", + line, from + l, c); + if (isInRange) { + isInRange = false; + } else { + isLiteral = true; + } + break; + case "-": + if (isLiteral && !isInRange) { + isLiteral = false; + isInRange = true; + } else if (isInRange) { + isInRange = false; + } else if (s.charAt(l) === "]") { + isInRange = true; + } else { + if (option.regexdash !== (l === 2 || (l === 3 && + s.charAt(1) === "^"))) { + warningAt("Unescaped '{a}'.", + line, from + l - 1, "-"); + } + isLiteral = true; + } + break; + case "]": + if (isInRange && !option.regexdash) { + warningAt("Unescaped '{a}'.", + line, from + l - 1, "-"); + } + break klass; + case "\\": + c = s.charAt(l); + if (c < " ") { + warningAt( +"Unexpected control character in regular expression.", line, from + l); + } else if (c === "<") { + warningAt( +"Unexpected escaped character '{a}' in regular expression.", line, from + l, c); + } + l += 1; + + // \w, \s and \d are never part of a character range + if (/[wsd]/i.test(c)) { + if (isInRange) { + warningAt("Unescaped '{a}'.", + line, from + l, "-"); + isInRange = false; + } + isLiteral = false; + } else if (isInRange) { + isInRange = false; + } else { + isLiteral = true; + } + break; + case "/": + warningAt("Unescaped '{a}'.", + line, from + l - 1, "/"); + + if (isInRange) { + isInRange = false; + } else { + isLiteral = true; + } + break; + case "<": + if (isInRange) { + isInRange = false; + } else { + isLiteral = true; + } + break; + default: + if (isInRange) { + isInRange = false; + } else { + isLiteral = true; + } + } + } while (c); + break; + case ".": + if (option.regexp) { + warningAt("Insecure '{a}'.", line, + from + l, c); + } + break; + case "]": + case "?": + case "{": + case "}": + case "+": + case "*": + warningAt("Unescaped '{a}'.", line, + from + l, c); + } + if (b) { + switch (s.charAt(l)) { + case "?": + case "+": + case "*": + l += 1; + if (s.charAt(l) === "?") { + l += 1; + } + break; + case "{": + l += 1; + c = s.charAt(l); + if (c < "0" || c > "9") { + warningAt( +"Expected a number and instead saw '{a}'.", line, from + l, c); + break; // No reason to continue checking numbers. + } + l += 1; + low = +c; + for (;;) { + c = s.charAt(l); + if (c < "0" || c > "9") { + break; + } + l += 1; + low = +c + (low * 10); + } + high = low; + if (c === ",") { + l += 1; + high = Infinity; + c = s.charAt(l); + if (c >= "0" && c <= "9") { + l += 1; + high = +c; + for (;;) { + c = s.charAt(l); + if (c < "0" || c > "9") { + break; + } + l += 1; + high = +c + (high * 10); + } + } + } + if (s.charAt(l) !== "}") { + warningAt( +"Expected '{a}' and instead saw '{b}'.", line, from + l, "}", c); + } else { + l += 1; + } + if (s.charAt(l) === "?") { + l += 1; + } + if (low > high) { + warningAt( +"'{a}' should not be greater than '{b}'.", line, from + l, low, high); + } + } + } + } + c = s.substr(0, l - 1); + character += l; + s = s.substr(l); + return it("(regexp)", c); + } + return it("(punctuator)", t); + + // punctuator + + case "#": + return it("(punctuator)", t); + default: + return it("(punctuator)", t); + } + } + } + } + }; + }()); + + + function addlabel(t, type, token) { + if (t === "hasOwnProperty") { + warning("'hasOwnProperty' is a really bad name."); + } + + // Define t in the current function in the current scope. + if (type === "exception") { + if (is_own(funct["(context)"], t)) { + if (funct[t] !== true && !option.node) { + warning("Value of '{a}' may be overwritten in IE.", nexttoken, t); + } + } + } + + if (is_own(funct, t) && !funct["(global)"]) { + if (funct[t] === true) { + if (option.latedef) + warning("'{a}' was used before it was defined.", nexttoken, t); + } else { + if (!option.shadow && type !== "exception") { + warning("'{a}' is already defined.", nexttoken, t); + } + } + } + + funct[t] = type; + + if (token) { + funct["(tokens)"][t] = token; + } + + if (funct["(global)"]) { + global[t] = funct; + if (is_own(implied, t)) { + if (option.latedef) + warning("'{a}' was used before it was defined.", nexttoken, t); + delete implied[t]; + } + } else { + scope[t] = funct; + } + } + + + function doOption() { + var nt = nexttoken; + var o = nt.value; + var quotmarkValue = option.quotmark; + var predef = {}; + var b, obj, filter, t, tn, v, minus; + + switch (o) { + case "*/": + error("Unbegun comment."); + break; + case "/*members": + case "/*member": + o = "/*members"; + if (!membersOnly) { + membersOnly = {}; + } + obj = membersOnly; + option.quotmark = false; + break; + case "/*jshint": + case "/*jslint": + obj = option; + filter = boolOptions; + break; + case "/*global": + obj = predef; + break; + default: + error("What?"); + } + + t = lex.token(); + +loop: + for (;;) { + minus = false; + for (;;) { + if (t.type === "special" && t.value === "*/") { + break loop; + } + if (t.id !== "(endline)" && t.id !== ",") { + break; + } + t = lex.token(); + } + + if (o === "/*global" && t.value === "-") { + minus = true; + t = lex.token(); + } + + if (t.type !== "(string)" && t.type !== "(identifier)" && o !== "/*members") { + error("Bad option.", t); + } + + v = lex.token(); + if (v.id === ":") { + v = lex.token(); + + if (obj === membersOnly) { + error("Expected '{a}' and instead saw '{b}'.", t, "*/", ":"); + } + + if (o === "/*jshint") { + checkOption(t.value, t); + } + + var numericVals = [ + "maxstatements", + "maxparams", + "maxdepth", + "maxcomplexity", + "maxerr", + "maxlen", + "indent" + ]; + + if (numericVals.indexOf(t.value) > -1 && (o === "/*jshint" || o === "/*jslint")) { + b = +v.value; + + if (typeof b !== "number" || !isFinite(b) || b <= 0 || Math.floor(b) !== b) { + error("Expected a small integer and instead saw '{a}'.", v, v.value); + } + + if (t.value === "indent") + obj.white = true; + + obj[t.value] = b; + } else if (t.value === "validthis") { + if (funct["(global)"]) { + error("Option 'validthis' can't be used in a global scope."); + } else { + if (v.value === "true" || v.value === "false") + obj[t.value] = v.value === "true"; + else + error("Bad option value.", v); + } + } else if (t.value === "quotmark" && (o === "/*jshint")) { + switch (v.value) { + case "true": + obj.quotmark = true; + break; + case "false": + obj.quotmark = false; + break; + case "double": + case "single": + obj.quotmark = v.value; + break; + default: + error("Bad option value.", v); + } + } else if (v.value === "true" || v.value === "false") { + if (o === "/*jslint") { + tn = renamedOptions[t.value] || t.value; + obj[tn] = v.value === "true"; + if (invertedOptions[tn] !== undefined) { + obj[tn] = !obj[tn]; + } + } else { + obj[t.value] = v.value === "true"; + } + + if (t.value === "newcap") + obj["(explicitNewcap)"] = true; + } else { + error("Bad option value.", v); + } + t = lex.token(); + } else { + if (o === "/*jshint" || o === "/*jslint") { + error("Missing option value.", t); + } + + obj[t.value] = false; + + if (o === "/*global" && minus === true) { + JSHINT.blacklist[t.value] = t.value; + updatePredefined(); + } + + t = v; + } + } + + if (o === "/*members") { + option.quotmark = quotmarkValue; + } + + combine(predefined, predef); + + for (var key in predef) { + if (is_own(predef, key)) { + declared[key] = nt; + } + } + + if (filter) { + assume(); + } + } + + +// We need a peek function. If it has an argument, it peeks that much farther +// ahead. It is used to distinguish +// for ( var i in ... +// from +// for ( var i = ... + + function peek(p) { + var i = p || 0, j = 0, t; + + while (j <= i) { + t = lookahead[j]; + if (!t) { + t = lookahead[j] = lex.token(); + } + j += 1; + } + return t; + } + + + +// Produce the next token. It looks for programming errors. + + function advance(id, t) { + switch (token.id) { + case "(number)": + if (nexttoken.id === ".") { + warning("A dot following a number can be confused with a decimal point.", token); + } + break; + case "-": + if (nexttoken.id === "-" || nexttoken.id === "--") { + warning("Confusing minusses."); + } + break; + case "+": + if (nexttoken.id === "+" || nexttoken.id === "++") { + warning("Confusing plusses."); + } + break; + } + + if (token.type === "(string)" || token.identifier) { + anonname = token.value; + } + + if (id && nexttoken.id !== id) { + if (t) { + if (nexttoken.id === "(end)") { + warning("Unmatched '{a}'.", t, t.id); + } else { + warning("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.", + nexttoken, id, t.id, t.line, nexttoken.value); + } + } else if (nexttoken.type !== "(identifier)" || + nexttoken.value !== id) { + warning("Expected '{a}' and instead saw '{b}'.", + nexttoken, id, nexttoken.value); + } + } + + prevtoken = token; + token = nexttoken; + for (;;) { + nexttoken = lookahead.shift() || lex.token(); + if (nexttoken.id === "(end)" || nexttoken.id === "(error)") { + return; + } + if (nexttoken.type === "special") { + doOption(); + } else { + if (nexttoken.id !== "(endline)") { + break; + } + } + } + } + + +// This is the heart of JSHINT, the Pratt parser. In addition to parsing, it +// is looking for ad hoc lint patterns. We add .fud to Pratt's model, which is +// like .nud except that it is only used on the first token of a statement. +// Having .fud makes it much easier to define statement-oriented languages like +// JavaScript. I retained Pratt's nomenclature. + +// .nud Null denotation +// .fud First null denotation +// .led Left denotation +// lbp Left binding power +// rbp Right binding power + +// They are elements of the parsing method called Top Down Operator Precedence. + + function expression(rbp, initial) { + var left, isArray = false, isObject = false; + + if (nexttoken.id === "(end)") + error("Unexpected early end of program.", token); + + advance(); + if (initial) { + anonname = "anonymous"; + funct["(verb)"] = token.value; + } + if (initial === true && token.fud) { + left = token.fud(); + } else { + if (token.nud) { + left = token.nud(); + } else { + if (nexttoken.type === "(number)" && token.id === ".") { + warning("A leading decimal point can be confused with a dot: '.{a}'.", + token, nexttoken.value); + advance(); + return token; + } else { + error("Expected an identifier and instead saw '{a}'.", + token, token.id); + } + } + while (rbp < nexttoken.lbp) { + isArray = token.value === "Array"; + isObject = token.value === "Object"; + + // #527, new Foo.Array(), Foo.Array(), new Foo.Object(), Foo.Object() + // Line breaks in IfStatement heads exist to satisfy the checkJSHint + // "Line too long." error. + if (left && (left.value || (left.first && left.first.value))) { + // If the left.value is not "new", or the left.first.value is a "." + // then safely assume that this is not "new Array()" and possibly + // not "new Object()"... + if (left.value !== "new" || + (left.first && left.first.value && left.first.value === ".")) { + isArray = false; + // ...In the case of Object, if the left.value and token.value + // are not equal, then safely assume that this not "new Object()" + if (left.value !== token.value) { + isObject = false; + } + } + } + + advance(); + if (isArray && token.id === "(" && nexttoken.id === ")") + warning("Use the array literal notation [].", token); + if (isObject && token.id === "(" && nexttoken.id === ")") + warning("Use the object literal notation {}.", token); + if (token.led) { + left = token.led(left); + } else { + error("Expected an operator and instead saw '{a}'.", + token, token.id); + } + } + } + return left; + } + + +// Functions for conformance of style. + + function adjacent(left, right) { + left = left || token; + right = right || nexttoken; + if (option.white) { + if (left.character !== right.from && left.line === right.line) { + left.from += (left.character - left.from); + warning("Unexpected space after '{a}'.", left, left.value); + } + } + } + + function nobreak(left, right) { + left = left || token; + right = right || nexttoken; + if (option.white && (left.character !== right.from || left.line !== right.line)) { + warning("Unexpected space before '{a}'.", right, right.value); + } + } + + function nospace(left, right) { + left = left || token; + right = right || nexttoken; + if (option.white && !left.comment) { + if (left.line === right.line) { + adjacent(left, right); + } + } + } + + function nonadjacent(left, right) { + if (option.white) { + left = left || token; + right = right || nexttoken; + if (left.value === ";" && right.value === ";") { + return; + } + if (left.line === right.line && left.character === right.from) { + left.from += (left.character - left.from); + warning("Missing space after '{a}'.", + left, left.value); + } + } + } + + function nobreaknonadjacent(left, right) { + left = left || token; + right = right || nexttoken; + if (!option.laxbreak && left.line !== right.line) { + warning("Bad line breaking before '{a}'.", right, right.id); + } else if (option.white) { + left = left || token; + right = right || nexttoken; + if (left.character === right.from) { + left.from += (left.character - left.from); + warning("Missing space after '{a}'.", + left, left.value); + } + } + } + + function indentation(bias) { + var i; + if (option.white && nexttoken.id !== "(end)") { + i = indent + (bias || 0); + if (nexttoken.from !== i) { + warning( +"Expected '{a}' to have an indentation at {b} instead at {c}.", + nexttoken, nexttoken.value, i, nexttoken.from); + } + } + } + + function nolinebreak(t) { + t = t || token; + if (t.line !== nexttoken.line) { + warning("Line breaking error '{a}'.", t, t.value); + } + } + + + function comma() { + if (token.line !== nexttoken.line) { + if (!option.laxcomma) { + if (comma.first) { + warning("Comma warnings can be turned off with 'laxcomma'"); + comma.first = false; + } + warning("Bad line breaking before '{a}'.", token, nexttoken.id); + } + } else if (!token.comment && token.character !== nexttoken.from && option.white) { + token.from += (token.character - token.from); + warning("Unexpected space after '{a}'.", token, token.value); + } + advance(","); + nonadjacent(token, nexttoken); + } + + +// Functional constructors for making the symbols that will be inherited by +// tokens. + + function symbol(s, p) { + var x = syntax[s]; + if (!x || typeof x !== "object") { + syntax[s] = x = { + id: s, + lbp: p, + value: s + }; + } + return x; + } + + + function delim(s) { + return symbol(s, 0); + } + + + function stmt(s, f) { + var x = delim(s); + x.identifier = x.reserved = true; + x.fud = f; + return x; + } + + + function blockstmt(s, f) { + var x = stmt(s, f); + x.block = true; + return x; + } + + + function reserveName(x) { + var c = x.id.charAt(0); + if ((c >= "a" && c <= "z") || (c >= "A" && c <= "Z")) { + x.identifier = x.reserved = true; + } + return x; + } + + + function prefix(s, f) { + var x = symbol(s, 150); + reserveName(x); + x.nud = (typeof f === "function") ? f : function () { + this.right = expression(150); + this.arity = "unary"; + if (this.id === "++" || this.id === "--") { + if (option.plusplus) { + warning("Unexpected use of '{a}'.", this, this.id); + } else if ((!this.right.identifier || this.right.reserved) && + this.right.id !== "." && this.right.id !== "[") { + warning("Bad operand.", this); + } + } + return this; + }; + return x; + } + + + function type(s, f) { + var x = delim(s); + x.type = s; + x.nud = f; + return x; + } + + + function reserve(s, f) { + var x = type(s, f); + x.identifier = x.reserved = true; + return x; + } + + + function reservevar(s, v) { + return reserve(s, function () { + if (typeof v === "function") { + v(this); + } + return this; + }); + } + + + function infix(s, f, p, w) { + var x = symbol(s, p); + reserveName(x); + x.led = function (left) { + if (!w) { + nobreaknonadjacent(prevtoken, token); + nonadjacent(token, nexttoken); + } + if (s === "in" && left.id === "!") { + warning("Confusing use of '{a}'.", left, "!"); + } + if (typeof f === "function") { + return f(left, this); + } else { + this.left = left; + this.right = expression(p); + return this; + } + }; + return x; + } + + + function relation(s, f) { + var x = symbol(s, 100); + x.led = function (left) { + nobreaknonadjacent(prevtoken, token); + nonadjacent(token, nexttoken); + var right = expression(100); + + if (isIdentifier(left, "NaN") || isIdentifier(right, "NaN")) { + warning("Use the isNaN function to compare with NaN.", this); + } else if (f) { + f.apply(this, [left, right]); + } + if (left.id === "!") { + warning("Confusing use of '{a}'.", left, "!"); + } + if (right.id === "!") { + warning("Confusing use of '{a}'.", right, "!"); + } + this.left = left; + this.right = right; + return this; + }; + return x; + } + + + function isPoorRelation(node) { + return node && + ((node.type === "(number)" && +node.value === 0) || + (node.type === "(string)" && node.value === "") || + (node.type === "null" && !option.eqnull) || + node.type === "true" || + node.type === "false" || + node.type === "undefined"); + } + + + function assignop(s) { + symbol(s, 20).exps = true; + + return infix(s, function (left, that) { + that.left = left; + + if (predefined[left.value] === false && + scope[left.value]["(global)"] === true) { + warning("Read only.", left); + } else if (left["function"]) { + warning("'{a}' is a function.", left, left.value); + } + + if (left) { + if (option.esnext && funct[left.value] === "const") { + warning("Attempting to override '{a}' which is a constant", left, left.value); + } + + if (left.id === "." || left.id === "[") { + if (!left.left || left.left.value === "arguments") { + warning("Bad assignment.", that); + } + that.right = expression(19); + return that; + } else if (left.identifier && !left.reserved) { + if (funct[left.value] === "exception") { + warning("Do not assign to the exception parameter.", left); + } + that.right = expression(19); + return that; + } + + if (left === syntax["function"]) { + warning( +"Expected an identifier in an assignment and instead saw a function invocation.", + token); + } + } + + error("Bad assignment.", that); + }, 20); + } + + + function bitwise(s, f, p) { + var x = symbol(s, p); + reserveName(x); + x.led = (typeof f === "function") ? f : function (left) { + if (option.bitwise) { + warning("Unexpected use of '{a}'.", this, this.id); + } + this.left = left; + this.right = expression(p); + return this; + }; + return x; + } + + + function bitwiseassignop(s) { + symbol(s, 20).exps = true; + return infix(s, function (left, that) { + if (option.bitwise) { + warning("Unexpected use of '{a}'.", that, that.id); + } + nonadjacent(prevtoken, token); + nonadjacent(token, nexttoken); + if (left) { + if (left.id === "." || left.id === "[" || + (left.identifier && !left.reserved)) { + expression(19); + return that; + } + if (left === syntax["function"]) { + warning( +"Expected an identifier in an assignment, and instead saw a function invocation.", + token); + } + return that; + } + error("Bad assignment.", that); + }, 20); + } + + + function suffix(s) { + var x = symbol(s, 150); + x.led = function (left) { + if (option.plusplus) { + warning("Unexpected use of '{a}'.", this, this.id); + } else if ((!left.identifier || left.reserved) && + left.id !== "." && left.id !== "[") { + warning("Bad operand.", this); + } + this.left = left; + return this; + }; + return x; + } + + + // fnparam means that this identifier is being defined as a function + // argument (see identifier()) + function optionalidentifier(fnparam) { + if (nexttoken.identifier) { + advance(); + if (token.reserved && !option.es5) { + // `undefined` as a function param is a common pattern to protect + // against the case when somebody does `undefined = true` and + // help with minification. More info: https://gist.github.com/315916 + if (!fnparam || token.value !== "undefined") { + warning("Expected an identifier and instead saw '{a}' (a reserved word).", + token, token.id); + } + } + return token.value; + } + } + + // fnparam means that this identifier is being defined as a function + // argument + function identifier(fnparam) { + var i = optionalidentifier(fnparam); + if (i) { + return i; + } + if (token.id === "function" && nexttoken.id === "(") { + warning("Missing name in function declaration."); + } else { + error("Expected an identifier and instead saw '{a}'.", + nexttoken, nexttoken.value); + } + } + + + function reachable(s) { + var i = 0, t; + if (nexttoken.id !== ";" || noreach) { + return; + } + for (;;) { + t = peek(i); + if (t.reach) { + return; + } + if (t.id !== "(endline)") { + if (t.id === "function") { + if (!option.latedef) { + break; + } + warning( +"Inner functions should be listed at the top of the outer function.", t); + break; + } + warning("Unreachable '{a}' after '{b}'.", t, t.value, s); + break; + } + i += 1; + } + } + + + function statement(noindent) { + var i = indent, r, s = scope, t = nexttoken; + + if (t.id === ";") { + advance(";"); + return; + } + + // Is this a labelled statement? + + if (t.identifier && !t.reserved && peek().id === ":") { + advance(); + advance(":"); + scope = Object.create(s); + addlabel(t.value, "label"); + + if (!nexttoken.labelled && nexttoken.value !== "{") { + warning("Label '{a}' on {b} statement.", nexttoken, t.value, nexttoken.value); + } + + if (jx.test(t.value + ":")) { + warning("Label '{a}' looks like a javascript url.", t, t.value); + } + + nexttoken.label = t.value; + t = nexttoken; + } + + // Is it a lonely block? + + if (t.id === "{") { + block(true, true); + return; + } + + // Parse the statement. + + if (!noindent) { + indentation(); + } + r = expression(0, true); + + // Look for the final semicolon. + + if (!t.block) { + if (!option.expr && (!r || !r.exps)) { + warning("Expected an assignment or function call and instead saw an expression.", + token); + } else if (option.nonew && r.id === "(" && r.left.id === "new") { + warning("Do not use 'new' for side effects.", t); + } + + if (nexttoken.id === ",") { + return comma(); + } + + if (nexttoken.id !== ";") { + if (!option.asi) { + // If this is the last statement in a block that ends on + // the same line *and* option lastsemic is on, ignore the warning. + // Otherwise, complain about missing semicolon. + if (!option.lastsemic || nexttoken.id !== "}" || + nexttoken.line !== token.line) { + warningAt("Missing semicolon.", token.line, token.character); + } + } + } else { + adjacent(token, nexttoken); + advance(";"); + nonadjacent(token, nexttoken); + } + } + +// Restore the indentation. + + indent = i; + scope = s; + return r; + } + + + function statements(startLine) { + var a = [], p; + + while (!nexttoken.reach && nexttoken.id !== "(end)") { + if (nexttoken.id === ";") { + p = peek(); + if (!p || p.id !== "(") { + warning("Unnecessary semicolon."); + } + advance(";"); + } else { + a.push(statement(startLine === nexttoken.line)); + } + } + return a; + } + + + /* + * read all directives + * recognizes a simple form of asi, but always + * warns, if it is used + */ + function directives() { + var i, p, pn; + + for (;;) { + if (nexttoken.id === "(string)") { + p = peek(0); + if (p.id === "(endline)") { + i = 1; + do { + pn = peek(i); + i = i + 1; + } while (pn.id === "(endline)"); + + if (pn.id !== ";") { + if (pn.id !== "(string)" && pn.id !== "(number)" && + pn.id !== "(regexp)" && pn.identifier !== true && + pn.id !== "}") { + break; + } + warning("Missing semicolon.", nexttoken); + } else { + p = pn; + } + } else if (p.id === "}") { + // directive with no other statements, warn about missing semicolon + warning("Missing semicolon.", p); + } else if (p.id !== ";") { + break; + } + + indentation(); + advance(); + if (directive[token.value]) { + warning("Unnecessary directive \"{a}\".", token, token.value); + } + + if (token.value === "use strict") { + if (!option["(explicitNewcap)"]) + option.newcap = true; + option.undef = true; + } + + // there's no directive negation, so always set to true + directive[token.value] = true; + + if (p.id === ";") { + advance(";"); + } + continue; + } + break; + } + } + + + /* + * Parses a single block. A block is a sequence of statements wrapped in + * braces. + * + * ordinary - true for everything but function bodies and try blocks. + * stmt - true if block can be a single statement (e.g. in if/for/while). + * isfunc - true if block is a function body + */ + function block(ordinary, stmt, isfunc) { + var a, + b = inblock, + old_indent = indent, + m, + s = scope, + t, + line, + d; + + inblock = ordinary; + + if (!ordinary || !option.funcscope) + scope = Object.create(scope); + + nonadjacent(token, nexttoken); + t = nexttoken; + + var metrics = funct["(metrics)"]; + metrics.nestedBlockDepth += 1; + metrics.verifyMaxNestedBlockDepthPerFunction(); + + if (nexttoken.id === "{") { + advance("{"); + line = token.line; + if (nexttoken.id !== "}") { + indent += option.indent; + while (!ordinary && nexttoken.from > indent) { + indent += option.indent; + } + + if (isfunc) { + m = {}; + for (d in directive) { + if (is_own(directive, d)) { + m[d] = directive[d]; + } + } + directives(); + + if (option.strict && funct["(context)"]["(global)"]) { + if (!m["use strict"] && !directive["use strict"]) { + warning("Missing \"use strict\" statement."); + } + } + } + + a = statements(line); + + metrics.statementCount += a.length; + + if (isfunc) { + directive = m; + } + + indent -= option.indent; + if (line !== nexttoken.line) { + indentation(); + } + } else if (line !== nexttoken.line) { + indentation(); + } + advance("}", t); + indent = old_indent; + } else if (!ordinary) { + error("Expected '{a}' and instead saw '{b}'.", + nexttoken, "{", nexttoken.value); + } else { + if (!stmt || option.curly) + warning("Expected '{a}' and instead saw '{b}'.", + nexttoken, "{", nexttoken.value); + + noreach = true; + indent += option.indent; + // test indentation only if statement is in new line + a = [statement(nexttoken.line === token.line)]; + indent -= option.indent; + noreach = false; + } + funct["(verb)"] = null; + if (!ordinary || !option.funcscope) scope = s; + inblock = b; + if (ordinary && option.noempty && (!a || a.length === 0)) { + warning("Empty block."); + } + metrics.nestedBlockDepth -= 1; + return a; + } + + + function countMember(m) { + if (membersOnly && typeof membersOnly[m] !== "boolean") { + warning("Unexpected /*member '{a}'.", token, m); + } + if (typeof member[m] === "number") { + member[m] += 1; + } else { + member[m] = 1; + } + } + + + function note_implied(token) { + var name = token.value, line = token.line, a = implied[name]; + if (typeof a === "function") { + a = false; + } + + if (!a) { + a = [line]; + implied[name] = a; + } else if (a[a.length - 1] !== line) { + a.push(line); + } + } + + + // Build the syntax table by declaring the syntactic elements of the language. + + type("(number)", function () { + return this; + }); + + type("(string)", function () { + return this; + }); + + syntax["(identifier)"] = { + type: "(identifier)", + lbp: 0, + identifier: true, + nud: function () { + var v = this.value, + s = scope[v], + f; + + if (typeof s === "function") { + // Protection against accidental inheritance. + s = undefined; + } else if (typeof s === "boolean") { + f = funct; + funct = functions[0]; + addlabel(v, "var"); + s = funct; + funct = f; + } + + // The name is in scope and defined in the current function. + if (funct === s) { + // Change 'unused' to 'var', and reject labels. + switch (funct[v]) { + case "unused": + funct[v] = "var"; + break; + case "unction": + funct[v] = "function"; + this["function"] = true; + break; + case "function": + this["function"] = true; + break; + case "label": + warning("'{a}' is a statement label.", token, v); + break; + } + } else if (funct["(global)"]) { + // The name is not defined in the function. If we are in the global + // scope, then we have an undefined variable. + // + // Operators typeof and delete do not raise runtime errors even if + // the base object of a reference is null so no need to display warning + // if we're inside of typeof or delete. + + if (option.undef && typeof predefined[v] !== "boolean") { + // Attempting to subscript a null reference will throw an + // error, even within the typeof and delete operators + if (!(anonname === "typeof" || anonname === "delete") || + (nexttoken && (nexttoken.value === "." || nexttoken.value === "["))) { + + isundef(funct, "'{a}' is not defined.", token, v); + } + } + + note_implied(token); + } else { + // If the name is already defined in the current + // function, but not as outer, then there is a scope error. + + switch (funct[v]) { + case "closure": + case "function": + case "var": + case "unused": + warning("'{a}' used out of scope.", token, v); + break; + case "label": + warning("'{a}' is a statement label.", token, v); + break; + case "outer": + case "global": + break; + default: + // If the name is defined in an outer function, make an outer entry, + // and if it was unused, make it var. + if (s === true) { + funct[v] = true; + } else if (s === null) { + warning("'{a}' is not allowed.", token, v); + note_implied(token); + } else if (typeof s !== "object") { + // Operators typeof and delete do not raise runtime errors even + // if the base object of a reference is null so no need to + // display warning if we're inside of typeof or delete. + if (option.undef) { + // Attempting to subscript a null reference will throw an + // error, even within the typeof and delete operators + if (!(anonname === "typeof" || anonname === "delete") || + (nexttoken && + (nexttoken.value === "." || nexttoken.value === "["))) { + + isundef(funct, "'{a}' is not defined.", token, v); + } + } + funct[v] = true; + note_implied(token); + } else { + switch (s[v]) { + case "function": + case "unction": + this["function"] = true; + s[v] = "closure"; + funct[v] = s["(global)"] ? "global" : "outer"; + break; + case "var": + case "unused": + s[v] = "closure"; + funct[v] = s["(global)"] ? "global" : "outer"; + break; + case "closure": + funct[v] = s["(global)"] ? "global" : "outer"; + break; + case "label": + warning("'{a}' is a statement label.", token, v); + } + } + } + } + return this; + }, + led: function () { + error("Expected an operator and instead saw '{a}'.", + nexttoken, nexttoken.value); + } + }; + + type("(regexp)", function () { + return this; + }); + + +// ECMAScript parser + + delim("(endline)"); + delim("(begin)"); + delim("(end)").reach = true; + delim(""); + delim("(error)").reach = true; + delim("}").reach = true; + delim(")"); + delim("]"); + delim("\"").reach = true; + delim("'").reach = true; + delim(";"); + delim(":").reach = true; + delim(","); + delim("#"); + delim("@"); + reserve("else"); + reserve("case").reach = true; + reserve("catch"); + reserve("default").reach = true; + reserve("finally"); + reservevar("arguments", function (x) { + if (directive["use strict"] && funct["(global)"]) { + warning("Strict violation.", x); + } + }); + reservevar("eval"); + reservevar("false"); + reservevar("Infinity"); + reservevar("null"); + reservevar("this", function (x) { + if (directive["use strict"] && !option.validthis && ((funct["(statement)"] && + funct["(name)"].charAt(0) > "Z") || funct["(global)"])) { + warning("Possible strict violation.", x); + } + }); + reservevar("true"); + reservevar("undefined"); + assignop("=", "assign", 20); + assignop("+=", "assignadd", 20); + assignop("-=", "assignsub", 20); + assignop("*=", "assignmult", 20); + assignop("/=", "assigndiv", 20).nud = function () { + error("A regular expression literal can be confused with '/='."); + }; + assignop("%=", "assignmod", 20); + bitwiseassignop("&=", "assignbitand", 20); + bitwiseassignop("|=", "assignbitor", 20); + bitwiseassignop("^=", "assignbitxor", 20); + bitwiseassignop("<<=", "assignshiftleft", 20); + bitwiseassignop(">>=", "assignshiftright", 20); + bitwiseassignop(">>>=", "assignshiftrightunsigned", 20); + infix("?", function (left, that) { + that.left = left; + that.right = expression(10); + advance(":"); + that["else"] = expression(10); + return that; + }, 30); + + infix("||", "or", 40); + infix("&&", "and", 50); + bitwise("|", "bitor", 70); + bitwise("^", "bitxor", 80); + bitwise("&", "bitand", 90); + relation("==", function (left, right) { + var eqnull = option.eqnull && (left.value === "null" || right.value === "null"); + + if (!eqnull && option.eqeqeq) + warning("Expected '{a}' and instead saw '{b}'.", this, "===", "=="); + else if (isPoorRelation(left)) + warning("Use '{a}' to compare with '{b}'.", this, "===", left.value); + else if (isPoorRelation(right)) + warning("Use '{a}' to compare with '{b}'.", this, "===", right.value); + + return this; + }); + relation("==="); + relation("!=", function (left, right) { + var eqnull = option.eqnull && + (left.value === "null" || right.value === "null"); + + if (!eqnull && option.eqeqeq) { + warning("Expected '{a}' and instead saw '{b}'.", + this, "!==", "!="); + } else if (isPoorRelation(left)) { + warning("Use '{a}' to compare with '{b}'.", + this, "!==", left.value); + } else if (isPoorRelation(right)) { + warning("Use '{a}' to compare with '{b}'.", + this, "!==", right.value); + } + return this; + }); + relation("!=="); + relation("<"); + relation(">"); + relation("<="); + relation(">="); + bitwise("<<", "shiftleft", 120); + bitwise(">>", "shiftright", 120); + bitwise(">>>", "shiftrightunsigned", 120); + infix("in", "in", 120); + infix("instanceof", "instanceof", 120); + infix("+", function (left, that) { + var right = expression(130); + if (left && right && left.id === "(string)" && right.id === "(string)") { + left.value += right.value; + left.character = right.character; + if (!option.scripturl && jx.test(left.value)) { + warning("JavaScript URL.", left); + } + return left; + } + that.left = left; + that.right = right; + return that; + }, 130); + prefix("+", "num"); + prefix("+++", function () { + warning("Confusing pluses."); + this.right = expression(150); + this.arity = "unary"; + return this; + }); + infix("+++", function (left) { + warning("Confusing pluses."); + this.left = left; + this.right = expression(130); + return this; + }, 130); + infix("-", "sub", 130); + prefix("-", "neg"); + prefix("---", function () { + warning("Confusing minuses."); + this.right = expression(150); + this.arity = "unary"; + return this; + }); + infix("---", function (left) { + warning("Confusing minuses."); + this.left = left; + this.right = expression(130); + return this; + }, 130); + infix("*", "mult", 140); + infix("/", "div", 140); + infix("%", "mod", 140); + + suffix("++", "postinc"); + prefix("++", "preinc"); + syntax["++"].exps = true; + + suffix("--", "postdec"); + prefix("--", "predec"); + syntax["--"].exps = true; + prefix("delete", function () { + var p = expression(0); + if (!p || (p.id !== "." && p.id !== "[")) { + warning("Variables should not be deleted."); + } + this.first = p; + return this; + }).exps = true; + + prefix("~", function () { + if (option.bitwise) { + warning("Unexpected '{a}'.", this, "~"); + } + expression(150); + return this; + }); + + prefix("!", function () { + this.right = expression(150); + this.arity = "unary"; + if (bang[this.right.id] === true) { + warning("Confusing use of '{a}'.", this, "!"); + } + return this; + }); + prefix("typeof", "typeof"); + prefix("new", function () { + var c = expression(155), i; + if (c && c.id !== "function") { + if (c.identifier) { + c["new"] = true; + switch (c.value) { + case "Number": + case "String": + case "Boolean": + case "Math": + case "JSON": + warning("Do not use {a} as a constructor.", prevtoken, c.value); + break; + case "Function": + if (!option.evil) { + warning("The Function constructor is eval."); + } + break; + case "Date": + case "RegExp": + break; + default: + if (c.id !== "function") { + i = c.value.substr(0, 1); + if (option.newcap && (i < "A" || i > "Z") && !is_own(global, c.value)) { + warning("A constructor name should start with an uppercase letter.", + token); + } + } + } + } else { + if (c.id !== "." && c.id !== "[" && c.id !== "(") { + warning("Bad constructor.", token); + } + } + } else { + if (!option.supernew) + warning("Weird construction. Delete 'new'.", this); + } + adjacent(token, nexttoken); + if (nexttoken.id !== "(" && !option.supernew) { + warning("Missing '()' invoking a constructor.", + token, token.value); + } + this.first = c; + return this; + }); + syntax["new"].exps = true; + + prefix("void").exps = true; + + infix(".", function (left, that) { + adjacent(prevtoken, token); + nobreak(); + var m = identifier(); + if (typeof m === "string") { + countMember(m); + } + that.left = left; + that.right = m; + if (left && left.value === "arguments" && (m === "callee" || m === "caller")) { + if (option.noarg) + warning("Avoid arguments.{a}.", left, m); + else if (directive["use strict"]) + error("Strict violation."); + } else if (!option.evil && left && left.value === "document" && + (m === "write" || m === "writeln")) { + warning("document.write can be a form of eval.", left); + } + if (!option.evil && (m === "eval" || m === "execScript")) { + warning("eval is evil."); + } + return that; + }, 160, true); + + infix("(", function (left, that) { + if (prevtoken.id !== "}" && prevtoken.id !== ")") { + nobreak(prevtoken, token); + } + nospace(); + if (option.immed && !left.immed && left.id === "function") { + warning("Wrap an immediate function invocation in parentheses " + + "to assist the reader in understanding that the expression " + + "is the result of a function, and not the function itself."); + } + var n = 0, + p = []; + if (left) { + if (left.type === "(identifier)") { + if (left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)) { + if ("Number String Boolean Date Object".indexOf(left.value) === -1) { + if (left.value === "Math") { + warning("Math is not a function.", left); + } else if (option.newcap) { + warning("Missing 'new' prefix when invoking a constructor.", left); + } + } + } + } + } + if (nexttoken.id !== ")") { + for (;;) { + p[p.length] = expression(10); + n += 1; + if (nexttoken.id !== ",") { + break; + } + comma(); + } + } + advance(")"); + nospace(prevtoken, token); + if (typeof left === "object") { + if (left.value === "parseInt" && n === 1) { + warning("Missing radix parameter.", token); + } + if (!option.evil) { + if (left.value === "eval" || left.value === "Function" || + left.value === "execScript") { + warning("eval is evil.", left); + + if (p[0] && [0].id === "(string)") { + addInternalSrc(left, p[0].value); + } + } else if (p[0] && p[0].id === "(string)" && + (left.value === "setTimeout" || + left.value === "setInterval")) { + warning( + "Implied eval is evil. Pass a function instead of a string.", left); + addInternalSrc(left, p[0].value); + + // window.setTimeout/setInterval + } else if (p[0] && p[0].id === "(string)" && + left.value === "." && + left.left.value === "window" && + (left.right === "setTimeout" || + left.right === "setInterval")) { + warning( + "Implied eval is evil. Pass a function instead of a string.", left); + addInternalSrc(left, p[0].value); + } + } + if (!left.identifier && left.id !== "." && left.id !== "[" && + left.id !== "(" && left.id !== "&&" && left.id !== "||" && + left.id !== "?") { + warning("Bad invocation.", left); + } + } + that.left = left; + return that; + }, 155, true).exps = true; + + prefix("(", function () { + nospace(); + if (nexttoken.id === "function") { + nexttoken.immed = true; + } + var v = expression(0); + advance(")", this); + nospace(prevtoken, token); + if (option.immed && v.id === "function") { + if (nexttoken.id !== "(" && + (nexttoken.id !== "." || (peek().value !== "call" && peek().value !== "apply"))) { + warning( +"Do not wrap function literals in parens unless they are to be immediately invoked.", + this); + } + } + + return v; + }); + + infix("[", function (left, that) { + nobreak(prevtoken, token); + nospace(); + var e = expression(0), s; + if (e && e.type === "(string)") { + if (!option.evil && (e.value === "eval" || e.value === "execScript")) { + warning("eval is evil.", that); + } + countMember(e.value); + if (!option.sub && ix.test(e.value)) { + s = syntax[e.value]; + if (!s || !s.reserved) { + warning("['{a}'] is better written in dot notation.", + prevtoken, e.value); + } + } + } + advance("]", that); + nospace(prevtoken, token); + that.left = left; + that.right = e; + return that; + }, 160, true); + + prefix("[", function () { + var b = token.line !== nexttoken.line; + this.first = []; + if (b) { + indent += option.indent; + if (nexttoken.from === indent + option.indent) { + indent += option.indent; + } + } + while (nexttoken.id !== "(end)") { + while (nexttoken.id === ",") { + if (!option.es5) + warning("Extra comma."); + advance(","); + } + if (nexttoken.id === "]") { + break; + } + if (b && token.line !== nexttoken.line) { + indentation(); + } + this.first.push(expression(10)); + if (nexttoken.id === ",") { + comma(); + if (nexttoken.id === "]" && !option.es5) { + warning("Extra comma.", token); + break; + } + } else { + break; + } + } + if (b) { + indent -= option.indent; + indentation(); + } + advance("]", this); + return this; + }, 160); + + + function property_name() { + var id = optionalidentifier(true); + if (!id) { + if (nexttoken.id === "(string)") { + id = nexttoken.value; + advance(); + } else if (nexttoken.id === "(number)") { + id = nexttoken.value.toString(); + advance(); + } + } + return id; + } + + + function functionparams() { + var next = nexttoken; + var params = []; + var ident; + + advance("("); + nospace(); + + if (nexttoken.id === ")") { + advance(")"); + return; + } + + for (;;) { + ident = identifier(true); + params.push(ident); + addlabel(ident, "unused", token); + if (nexttoken.id === ",") { + comma(); + } else { + advance(")", next); + nospace(prevtoken, token); + return params; + } + } + } + + + function doFunction(name, statement) { + var f; + var oldOption = option; + var oldScope = scope; + + option = Object.create(option); + scope = Object.create(scope); + + funct = { + "(name)" : name || "\"" + anonname + "\"", + "(line)" : nexttoken.line, + "(character)": nexttoken.character, + "(context)" : funct, + "(breakage)" : 0, + "(loopage)" : 0, + "(metrics)" : createMetrics(nexttoken), + "(scope)" : scope, + "(statement)": statement, + "(tokens)" : {} + }; + + f = funct; + token.funct = funct; + + functions.push(funct); + + if (name) { + addlabel(name, "function"); + } + + funct["(params)"] = functionparams(); + funct["(metrics)"].verifyMaxParametersPerFunction(funct["(params)"]); + + block(false, false, true); + + funct["(metrics)"].verifyMaxStatementsPerFunction(); + funct["(metrics)"].verifyMaxComplexityPerFunction(); + + scope = oldScope; + option = oldOption; + funct["(last)"] = token.line; + funct["(lastcharacter)"] = token.character; + funct = funct["(context)"]; + + return f; + } + + function createMetrics(functionStartToken) { + return { + statementCount: 0, + nestedBlockDepth: -1, + ComplexityCount: 1, + verifyMaxStatementsPerFunction: function () { + if (option.maxstatements && + this.statementCount > option.maxstatements) { + var message = "Too many statements per function (" + this.statementCount + ")."; + warning(message, functionStartToken); + } + }, + + verifyMaxParametersPerFunction: function (params) { + params = params || []; + + if (option.maxparams && params.length > option.maxparams) { + var message = "Too many parameters per function (" + params.length + ")."; + warning(message, functionStartToken); + } + }, + + verifyMaxNestedBlockDepthPerFunction: function () { + if (option.maxdepth && + this.nestedBlockDepth > 0 && + this.nestedBlockDepth === option.maxdepth + 1) { + var message = "Blocks are nested too deeply (" + this.nestedBlockDepth + ")."; + warning(message); + } + }, + + verifyMaxComplexityPerFunction: function () { + var max = option.maxcomplexity; + var cc = this.ComplexityCount; + if (max && cc > max) { + var message = "Cyclomatic complexity is too high per function (" + cc + ")."; + warning(message, functionStartToken); + } + } + }; + } + + function increaseComplexityCount() { + funct["(metrics)"].ComplexityCount += 1; + } + + + (function (x) { + x.nud = function () { + var b, f, i, p, t; + var props = {}; // All properties, including accessors + + function saveProperty(name, token) { + if (props[name] && is_own(props, name)) + warning("Duplicate member '{a}'.", nexttoken, i); + else + props[name] = {}; + + props[name].basic = true; + props[name].basicToken = token; + } + + function saveSetter(name, token) { + if (props[name] && is_own(props, name)) { + if (props[name].basic || props[name].setter) + warning("Duplicate member '{a}'.", nexttoken, i); + } else { + props[name] = {}; + } + + props[name].setter = true; + props[name].setterToken = token; + } + + function saveGetter(name) { + if (props[name] && is_own(props, name)) { + if (props[name].basic || props[name].getter) + warning("Duplicate member '{a}'.", nexttoken, i); + } else { + props[name] = {}; + } + + props[name].getter = true; + props[name].getterToken = token; + } + + b = token.line !== nexttoken.line; + if (b) { + indent += option.indent; + if (nexttoken.from === indent + option.indent) { + indent += option.indent; + } + } + for (;;) { + if (nexttoken.id === "}") { + break; + } + if (b) { + indentation(); + } + if (nexttoken.value === "get" && peek().id !== ":") { + advance("get"); + if (!option.es5) { + error("get/set are ES5 features."); + } + i = property_name(); + if (!i) { + error("Missing property name."); + } + saveGetter(i); + t = nexttoken; + adjacent(token, nexttoken); + f = doFunction(); + p = f["(params)"]; + if (p) { + warning("Unexpected parameter '{a}' in get {b} function.", t, p[0], i); + } + adjacent(token, nexttoken); + } else if (nexttoken.value === "set" && peek().id !== ":") { + advance("set"); + if (!option.es5) { + error("get/set are ES5 features."); + } + i = property_name(); + if (!i) { + error("Missing property name."); + } + saveSetter(i, nexttoken); + t = nexttoken; + adjacent(token, nexttoken); + f = doFunction(); + p = f["(params)"]; + if (!p || p.length !== 1) { + warning("Expected a single parameter in set {a} function.", t, i); + } + } else { + i = property_name(); + saveProperty(i, nexttoken); + if (typeof i !== "string") { + break; + } + advance(":"); + nonadjacent(token, nexttoken); + expression(10); + } + + countMember(i); + if (nexttoken.id === ",") { + comma(); + if (nexttoken.id === ",") { + warning("Extra comma.", token); + } else if (nexttoken.id === "}" && !option.es5) { + warning("Extra comma.", token); + } + } else { + break; + } + } + if (b) { + indent -= option.indent; + indentation(); + } + advance("}", this); + + // Check for lonely setters if in the ES5 mode. + if (option.es5) { + for (var name in props) { + if (is_own(props, name) && props[name].setter && !props[name].getter) { + warning("Setter is defined without getter.", props[name].setterToken); + } + } + } + return this; + }; + x.fud = function () { + error("Expected to see a statement and instead saw a block.", token); + }; + }(delim("{"))); + +// This Function is called when esnext option is set to true +// it adds the `const` statement to JSHINT + + useESNextSyntax = function () { + var conststatement = stmt("const", function (prefix) { + var id, name, value; + + this.first = []; + for (;;) { + nonadjacent(token, nexttoken); + id = identifier(); + if (funct[id] === "const") { + warning("const '" + id + "' has already been declared"); + } + if (funct["(global)"] && predefined[id] === false) { + warning("Redefinition of '{a}'.", token, id); + } + addlabel(id, "const"); + if (prefix) { + break; + } + name = token; + this.first.push(token); + + if (nexttoken.id !== "=") { + warning("const " + + "'{a}' is initialized to 'undefined'.", token, id); + } + + if (nexttoken.id === "=") { + nonadjacent(token, nexttoken); + advance("="); + nonadjacent(token, nexttoken); + if (nexttoken.id === "undefined") { + warning("It is not necessary to initialize " + + "'{a}' to 'undefined'.", token, id); + } + if (peek(0).id === "=" && nexttoken.identifier) { + error("Constant {a} was not declared correctly.", + nexttoken, nexttoken.value); + } + value = expression(0); + name.first = value; + } + + if (nexttoken.id !== ",") { + break; + } + comma(); + } + return this; + }); + conststatement.exps = true; + }; + + var varstatement = stmt("var", function (prefix) { + // JavaScript does not have block scope. It only has function scope. So, + // declaring a variable in a block can have unexpected consequences. + var id, name, value; + + if (funct["(onevar)"] && option.onevar) { + warning("Too many var statements."); + } else if (!funct["(global)"]) { + funct["(onevar)"] = true; + } + + this.first = []; + + for (;;) { + nonadjacent(token, nexttoken); + id = identifier(); + + if (option.esnext && funct[id] === "const") { + warning("const '" + id + "' has already been declared"); + } + + if (funct["(global)"] && predefined[id] === false) { + warning("Redefinition of '{a}'.", token, id); + } + + addlabel(id, "unused", token); + + if (prefix) { + break; + } + + name = token; + this.first.push(token); + + if (nexttoken.id === "=") { + nonadjacent(token, nexttoken); + advance("="); + nonadjacent(token, nexttoken); + if (nexttoken.id === "undefined") { + warning("It is not necessary to initialize '{a}' to 'undefined'.", token, id); + } + if (peek(0).id === "=" && nexttoken.identifier) { + error("Variable {a} was not declared correctly.", + nexttoken, nexttoken.value); + } + value = expression(0); + name.first = value; + } + if (nexttoken.id !== ",") { + break; + } + comma(); + } + return this; + }); + varstatement.exps = true; + + blockstmt("function", function () { + if (inblock) { + warning("Function declarations should not be placed in blocks. " + + "Use a function expression or move the statement to the top of " + + "the outer function.", token); + + } + var i = identifier(); + if (option.esnext && funct[i] === "const") { + warning("const '" + i + "' has already been declared"); + } + adjacent(token, nexttoken); + addlabel(i, "unction", token); + + doFunction(i, { statement: true }); + if (nexttoken.id === "(" && nexttoken.line === token.line) { + error( +"Function declarations are not invocable. Wrap the whole function invocation in parens."); + } + return this; + }); + + prefix("function", function () { + var i = optionalidentifier(); + if (i) { + adjacent(token, nexttoken); + } else { + nonadjacent(token, nexttoken); + } + doFunction(i); + if (!option.loopfunc && funct["(loopage)"]) { + warning("Don't make functions within a loop."); + } + return this; + }); + + blockstmt("if", function () { + var t = nexttoken; + increaseComplexityCount(); + advance("("); + nonadjacent(this, t); + nospace(); + expression(20); + if (nexttoken.id === "=") { + if (!option.boss) + warning("Expected a conditional expression and instead saw an assignment."); + advance("="); + expression(20); + } + advance(")", t); + nospace(prevtoken, token); + block(true, true); + if (nexttoken.id === "else") { + nonadjacent(token, nexttoken); + advance("else"); + if (nexttoken.id === "if" || nexttoken.id === "switch") { + statement(true); + } else { + block(true, true); + } + } + return this; + }); + + blockstmt("try", function () { + var b; + + function doCatch() { + var oldScope = scope; + var e; + + advance("catch"); + nonadjacent(token, nexttoken); + advance("("); + + scope = Object.create(oldScope); + + e = nexttoken.value; + if (nexttoken.type !== "(identifier)") { + e = null; + warning("Expected an identifier and instead saw '{a}'.", nexttoken, e); + } + + advance(); + advance(")"); + + funct = { + "(name)" : "(catch)", + "(line)" : nexttoken.line, + "(character)": nexttoken.character, + "(context)" : funct, + "(breakage)" : funct["(breakage)"], + "(loopage)" : funct["(loopage)"], + "(scope)" : scope, + "(statement)": false, + "(metrics)" : createMetrics(nexttoken), + "(catch)" : true, + "(tokens)" : {} + }; + + if (e) { + addlabel(e, "exception"); + } + + token.funct = funct; + functions.push(funct); + + block(false); + + scope = oldScope; + + funct["(last)"] = token.line; + funct["(lastcharacter)"] = token.character; + funct = funct["(context)"]; + } + + block(false); + + if (nexttoken.id === "catch") { + increaseComplexityCount(); + doCatch(); + b = true; + } + + if (nexttoken.id === "finally") { + advance("finally"); + block(false); + return; + } else if (!b) { + error("Expected '{a}' and instead saw '{b}'.", + nexttoken, "catch", nexttoken.value); + } + + return this; + }); + + blockstmt("while", function () { + var t = nexttoken; + funct["(breakage)"] += 1; + funct["(loopage)"] += 1; + increaseComplexityCount(); + advance("("); + nonadjacent(this, t); + nospace(); + expression(20); + if (nexttoken.id === "=") { + if (!option.boss) + warning("Expected a conditional expression and instead saw an assignment."); + advance("="); + expression(20); + } + advance(")", t); + nospace(prevtoken, token); + block(true, true); + funct["(breakage)"] -= 1; + funct["(loopage)"] -= 1; + return this; + }).labelled = true; + + blockstmt("with", function () { + var t = nexttoken; + if (directive["use strict"]) { + error("'with' is not allowed in strict mode.", token); + } else if (!option.withstmt) { + warning("Don't use 'with'.", token); + } + + advance("("); + nonadjacent(this, t); + nospace(); + expression(0); + advance(")", t); + nospace(prevtoken, token); + block(true, true); + + return this; + }); + + blockstmt("switch", function () { + var t = nexttoken, + g = false; + funct["(breakage)"] += 1; + advance("("); + nonadjacent(this, t); + nospace(); + this.condition = expression(20); + advance(")", t); + nospace(prevtoken, token); + nonadjacent(token, nexttoken); + t = nexttoken; + advance("{"); + nonadjacent(token, nexttoken); + indent += option.indent; + this.cases = []; + for (;;) { + switch (nexttoken.id) { + case "case": + switch (funct["(verb)"]) { + case "break": + case "case": + case "continue": + case "return": + case "switch": + case "throw": + break; + default: + // You can tell JSHint that you don't use break intentionally by + // adding a comment /* falls through */ on a line just before + // the next `case`. + if (!ft.test(lines[nexttoken.line - 2])) { + warning( + "Expected a 'break' statement before 'case'.", + token); + } + } + indentation(-option.indent); + advance("case"); + this.cases.push(expression(20)); + increaseComplexityCount(); + g = true; + advance(":"); + funct["(verb)"] = "case"; + break; + case "default": + switch (funct["(verb)"]) { + case "break": + case "continue": + case "return": + case "throw": + break; + default: + if (!ft.test(lines[nexttoken.line - 2])) { + warning( + "Expected a 'break' statement before 'default'.", + token); + } + } + indentation(-option.indent); + advance("default"); + g = true; + advance(":"); + break; + case "}": + indent -= option.indent; + indentation(); + advance("}", t); + if (this.cases.length === 1 || this.condition.id === "true" || + this.condition.id === "false") { + if (!option.onecase) + warning("This 'switch' should be an 'if'.", this); + } + funct["(breakage)"] -= 1; + funct["(verb)"] = undefined; + return; + case "(end)": + error("Missing '{a}'.", nexttoken, "}"); + return; + default: + if (g) { + switch (token.id) { + case ",": + error("Each value should have its own case label."); + return; + case ":": + g = false; + statements(); + break; + default: + error("Missing ':' on a case clause.", token); + return; + } + } else { + if (token.id === ":") { + advance(":"); + error("Unexpected '{a}'.", token, ":"); + statements(); + } else { + error("Expected '{a}' and instead saw '{b}'.", + nexttoken, "case", nexttoken.value); + return; + } + } + } + } + }).labelled = true; + + stmt("debugger", function () { + if (!option.debug) { + warning("All 'debugger' statements should be removed."); + } + return this; + }).exps = true; + + (function () { + var x = stmt("do", function () { + funct["(breakage)"] += 1; + funct["(loopage)"] += 1; + increaseComplexityCount(); + + this.first = block(true); + advance("while"); + var t = nexttoken; + nonadjacent(token, t); + advance("("); + nospace(); + expression(20); + if (nexttoken.id === "=") { + if (!option.boss) + warning("Expected a conditional expression and instead saw an assignment."); + advance("="); + expression(20); + } + advance(")", t); + nospace(prevtoken, token); + funct["(breakage)"] -= 1; + funct["(loopage)"] -= 1; + return this; + }); + x.labelled = true; + x.exps = true; + }()); + + blockstmt("for", function () { + var s, t = nexttoken; + funct["(breakage)"] += 1; + funct["(loopage)"] += 1; + increaseComplexityCount(); + advance("("); + nonadjacent(this, t); + nospace(); + if (peek(nexttoken.id === "var" ? 1 : 0).id === "in") { + if (nexttoken.id === "var") { + advance("var"); + varstatement.fud.call(varstatement, true); + } else { + switch (funct[nexttoken.value]) { + case "unused": + funct[nexttoken.value] = "var"; + break; + case "var": + break; + default: + warning("Bad for in variable '{a}'.", + nexttoken, nexttoken.value); + } + advance(); + } + advance("in"); + expression(20); + advance(")", t); + s = block(true, true); + if (option.forin && s && (s.length > 1 || typeof s[0] !== "object" || + s[0].value !== "if")) { + warning("The body of a for in should be wrapped in an if statement to filter " + + "unwanted properties from the prototype.", this); + } + funct["(breakage)"] -= 1; + funct["(loopage)"] -= 1; + return this; + } else { + if (nexttoken.id !== ";") { + if (nexttoken.id === "var") { + advance("var"); + varstatement.fud.call(varstatement); + } else { + for (;;) { + expression(0, "for"); + if (nexttoken.id !== ",") { + break; + } + comma(); + } + } + } + nolinebreak(token); + advance(";"); + if (nexttoken.id !== ";") { + expression(20); + if (nexttoken.id === "=") { + if (!option.boss) + warning("Expected a conditional expression and instead saw an assignment."); + advance("="); + expression(20); + } + } + nolinebreak(token); + advance(";"); + if (nexttoken.id === ";") { + error("Expected '{a}' and instead saw '{b}'.", + nexttoken, ")", ";"); + } + if (nexttoken.id !== ")") { + for (;;) { + expression(0, "for"); + if (nexttoken.id !== ",") { + break; + } + comma(); + } + } + advance(")", t); + nospace(prevtoken, token); + block(true, true); + funct["(breakage)"] -= 1; + funct["(loopage)"] -= 1; + return this; + } + }).labelled = true; + + + stmt("break", function () { + var v = nexttoken.value; + + if (funct["(breakage)"] === 0) + warning("Unexpected '{a}'.", nexttoken, this.value); + + if (!option.asi) + nolinebreak(this); + + if (nexttoken.id !== ";") { + if (token.line === nexttoken.line) { + if (funct[v] !== "label") { + warning("'{a}' is not a statement label.", nexttoken, v); + } else if (scope[v] !== funct) { + warning("'{a}' is out of scope.", nexttoken, v); + } + this.first = nexttoken; + advance(); + } + } + reachable("break"); + return this; + }).exps = true; + + + stmt("continue", function () { + var v = nexttoken.value; + + if (funct["(breakage)"] === 0) + warning("Unexpected '{a}'.", nexttoken, this.value); + + if (!option.asi) + nolinebreak(this); + + if (nexttoken.id !== ";") { + if (token.line === nexttoken.line) { + if (funct[v] !== "label") { + warning("'{a}' is not a statement label.", nexttoken, v); + } else if (scope[v] !== funct) { + warning("'{a}' is out of scope.", nexttoken, v); + } + this.first = nexttoken; + advance(); + } + } else if (!funct["(loopage)"]) { + warning("Unexpected '{a}'.", nexttoken, this.value); + } + reachable("continue"); + return this; + }).exps = true; + + + stmt("return", function () { + if (this.line === nexttoken.line) { + if (nexttoken.id === "(regexp)") + warning("Wrap the /regexp/ literal in parens to disambiguate the slash operator."); + + if (nexttoken.id !== ";" && !nexttoken.reach) { + nonadjacent(token, nexttoken); + if (peek().value === "=" && !option.boss) { + warningAt("Did you mean to return a conditional instead of an assignment?", + token.line, token.character + 1); + } + this.first = expression(0); + } + } else if (!option.asi) { + nolinebreak(this); // always warn (Line breaking error) + } + reachable("return"); + return this; + }).exps = true; + + + stmt("throw", function () { + nolinebreak(this); + nonadjacent(token, nexttoken); + this.first = expression(20); + reachable("throw"); + return this; + }).exps = true; + +// Superfluous reserved words + + reserve("class"); + reserve("const"); + reserve("enum"); + reserve("export"); + reserve("extends"); + reserve("import"); + reserve("super"); + + reserve("let"); + reserve("yield"); + reserve("implements"); + reserve("interface"); + reserve("package"); + reserve("private"); + reserve("protected"); + reserve("public"); + reserve("static"); + + +// Parse JSON + + function jsonValue() { + + function jsonObject() { + var o = {}, t = nexttoken; + advance("{"); + if (nexttoken.id !== "}") { + for (;;) { + if (nexttoken.id === "(end)") { + error("Missing '}' to match '{' from line {a}.", + nexttoken, t.line); + } else if (nexttoken.id === "}") { + warning("Unexpected comma.", token); + break; + } else if (nexttoken.id === ",") { + error("Unexpected comma.", nexttoken); + } else if (nexttoken.id !== "(string)") { + warning("Expected a string and instead saw {a}.", + nexttoken, nexttoken.value); + } + if (o[nexttoken.value] === true) { + warning("Duplicate key '{a}'.", + nexttoken, nexttoken.value); + } else if ((nexttoken.value === "__proto__" && + !option.proto) || (nexttoken.value === "__iterator__" && + !option.iterator)) { + warning("The '{a}' key may produce unexpected results.", + nexttoken, nexttoken.value); + } else { + o[nexttoken.value] = true; + } + advance(); + advance(":"); + jsonValue(); + if (nexttoken.id !== ",") { + break; + } + advance(","); + } + } + advance("}"); + } + + function jsonArray() { + var t = nexttoken; + advance("["); + if (nexttoken.id !== "]") { + for (;;) { + if (nexttoken.id === "(end)") { + error("Missing ']' to match '[' from line {a}.", + nexttoken, t.line); + } else if (nexttoken.id === "]") { + warning("Unexpected comma.", token); + break; + } else if (nexttoken.id === ",") { + error("Unexpected comma.", nexttoken); + } + jsonValue(); + if (nexttoken.id !== ",") { + break; + } + advance(","); + } + } + advance("]"); + } + + switch (nexttoken.id) { + case "{": + jsonObject(); + break; + case "[": + jsonArray(); + break; + case "true": + case "false": + case "null": + case "(number)": + case "(string)": + advance(); + break; + case "-": + advance("-"); + if (token.character !== nexttoken.from) { + warning("Unexpected space after '-'.", token); + } + adjacent(token, nexttoken); + advance("(number)"); + break; + default: + error("Expected a JSON value.", nexttoken); + } + } + + + // The actual JSHINT function itself. + var itself = function (s, o, g) { + var a, i, k, x; + var optionKeys; + var newOptionObj = {}; + + if (o && o.scope) { + JSHINT.scope = o.scope; + } else { + JSHINT.errors = []; + JSHINT.undefs = []; + JSHINT.internals = []; + JSHINT.blacklist = {}; + JSHINT.scope = "(main)"; + } + + predefined = Object.create(standard); + declared = Object.create(null); + combine(predefined, g || {}); + + if (o) { + a = o.predef; + if (a) { + if (!Array.isArray(a) && typeof a === "object") { + a = Object.keys(a); + } + a.forEach(function (item) { + var slice; + if (item[0] === "-") { + slice = item.slice(1); + JSHINT.blacklist[slice] = slice; + } else { + predefined[item] = true; + } + }); + } + + optionKeys = Object.keys(o); + for (x = 0; x < optionKeys.length; x++) { + newOptionObj[optionKeys[x]] = o[optionKeys[x]]; + + if (optionKeys[x] === "newcap" && o[optionKeys[x]] === false) + newOptionObj["(explicitNewcap)"] = true; + + if (optionKeys[x] === "indent") + newOptionObj.white = true; + } + } + + option = newOptionObj; + + option.indent = option.indent || 4; + option.maxerr = option.maxerr || 50; + + tab = ""; + for (i = 0; i < option.indent; i += 1) { + tab += " "; + } + indent = 1; + global = Object.create(predefined); + scope = global; + funct = { + "(global)": true, + "(name)": "(global)", + "(scope)": scope, + "(breakage)": 0, + "(loopage)": 0, + "(tokens)": {}, + "(metrics)": createMetrics(nexttoken) + }; + functions = [funct]; + urls = []; + stack = null; + member = {}; + membersOnly = null; + implied = {}; + inblock = false; + lookahead = []; + jsonmode = false; + warnings = 0; + lines = []; + unuseds = []; + + if (!isString(s) && !Array.isArray(s)) { + errorAt("Input is neither a string nor an array of strings.", 0); + return false; + } + + if (isString(s) && /^\s*$/g.test(s)) { + errorAt("Input is an empty string.", 0); + return false; + } + + if (s.length === 0) { + errorAt("Input is an empty array.", 0); + return false; + } + + lex.init(s); + + prereg = true; + directive = {}; + + prevtoken = token = nexttoken = syntax["(begin)"]; + + // Check options + for (var name in o) { + if (is_own(o, name)) { + checkOption(name, token); + } + } + + assume(); + + // combine the passed globals after we've assumed all our options + combine(predefined, g || {}); + + //reset values + comma.first = true; + quotmark = undefined; + + try { + advance(); + switch (nexttoken.id) { + case "{": + case "[": + option.laxbreak = true; + jsonmode = true; + jsonValue(); + break; + default: + directives(); + if (directive["use strict"] && !option.globalstrict) { + warning("Use the function form of \"use strict\".", prevtoken); + } + + statements(); + } + advance((nexttoken && nexttoken.value !== ".") ? "(end)" : undefined); + + var markDefined = function (name, context) { + do { + if (typeof context[name] === "string") { + // JSHINT marks unused variables as 'unused' and + // unused function declaration as 'unction'. This + // code changes such instances back 'var' and + // 'closure' so that the code in JSHINT.data() + // doesn't think they're unused. + + if (context[name] === "unused") + context[name] = "var"; + else if (context[name] === "unction") + context[name] = "closure"; + + return true; + } + + context = context["(context)"]; + } while (context); + + return false; + }; + + var clearImplied = function (name, line) { + if (!implied[name]) + return; + + var newImplied = []; + for (var i = 0; i < implied[name].length; i += 1) { + if (implied[name][i] !== line) + newImplied.push(implied[name][i]); + } + + if (newImplied.length === 0) + delete implied[name]; + else + implied[name] = newImplied; + }; + + var warnUnused = function (name, token) { + var line = token.line; + var chr = token.character; + + if (option.unused) + warningAt("'{a}' is defined but never used.", line, chr, name); + + unuseds.push({ + name: name, + line: line, + character: chr + }); + }; + + var checkUnused = function (func, key) { + var type = func[key]; + var token = func["(tokens)"][key]; + + if (key.charAt(0) === "(") + return; + + if (type !== "unused" && type !== "unction") + return; + + // Params are checked separately from other variables. + if (func["(params)"] && func["(params)"].indexOf(key) !== -1) + return; + + warnUnused(key, token); + }; + + // Check queued 'x is not defined' instances to see if they're still undefined. + for (i = 0; i < JSHINT.undefs.length; i += 1) { + k = JSHINT.undefs[i].slice(0); + + if (markDefined(k[2].value, k[0])) { + clearImplied(k[2].value, k[2].line); + } else { + warning.apply(warning, k.slice(1)); + } + } + + functions.forEach(function (func) { + for (var key in func) { + if (is_own(func, key)) { + checkUnused(func, key); + } + } + + if (!func["(params)"]) + return; + + var params = func["(params)"].slice(); + var param = params.pop(); + var type; + + while (param) { + type = func[param]; + + // 'undefined' is a special case for (function (window, undefined) { ... })(); + // patterns. + + if (param === "undefined") + return; + + if (type !== "unused" && type !== "unction") + return; + + warnUnused(param, func["(tokens)"][param]); + param = params.pop(); + } + }); + + for (var key in declared) { + if (is_own(declared, key) && !is_own(global, key)) { + warnUnused(key, declared[key]); + } + } + } catch (e) { + if (e) { + var nt = nexttoken || {}; + JSHINT.errors.push({ + raw : e.raw, + reason : e.message, + line : e.line || nt.line, + character : e.character || nt.from + }, null); + } + } + + // Loop over the listed "internals", and check them as well. + + if (JSHINT.scope === "(main)") { + o = o || {}; + + for (i = 0; i < JSHINT.internals.length; i += 1) { + k = JSHINT.internals[i]; + o.scope = k.elem; + itself(k.value, o, g); + } + } + + return JSHINT.errors.length === 0; + }; + + // Data summary. + itself.data = function () { + var data = { + functions: [], + options: option + }; + var implieds = []; + var members = []; + var fu, f, i, j, n, globals; + + if (itself.errors.length) { + data.errors = itself.errors; + } + + if (jsonmode) { + data.json = true; + } + + for (n in implied) { + if (is_own(implied, n)) { + implieds.push({ + name: n, + line: implied[n] + }); + } + } + + if (implieds.length > 0) { + data.implieds = implieds; + } + + if (urls.length > 0) { + data.urls = urls; + } + + globals = Object.keys(scope); + if (globals.length > 0) { + data.globals = globals; + } + + for (i = 1; i < functions.length; i += 1) { + f = functions[i]; + fu = {}; + + for (j = 0; j < functionicity.length; j += 1) { + fu[functionicity[j]] = []; + } + + for (j = 0; j < functionicity.length; j += 1) { + if (fu[functionicity[j]].length === 0) { + delete fu[functionicity[j]]; + } + } + + fu.name = f["(name)"]; + fu.param = f["(params)"]; + fu.line = f["(line)"]; + fu.character = f["(character)"]; + fu.last = f["(last)"]; + fu.lastcharacter = f["(lastcharacter)"]; + data.functions.push(fu); + } + + if (unuseds.length > 0) { + data.unused = unuseds; + } + + members = []; + for (n in member) { + if (typeof member[n] === "number") { + data.member = member; + break; + } + } + + return data; + }; + + itself.jshint = itself; + + return itself; +}()); + +// Make JSHINT a Node module, if possible. +if (typeof exports === "object" && exports) { + exports.JSHINT = JSHINT; +} \ No newline at end of file diff --git a/apps/it/static/js/ui/external/qunit.css b/apps/it/static/js/ui/external/qunit.css new file mode 100644 index 0000000..d7fc0c8 --- /dev/null +++ b/apps/it/static/js/ui/external/qunit.css @@ -0,0 +1,244 @@ +/** + * QUnit v1.11.0 - A JavaScript Unit Testing Framework + * + * http://qunitjs.com + * + * Copyright 2012 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +/** Font Family and Sizes */ + +#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult { + font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; +} + +#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; } +#qunit-tests { font-size: smaller; } + + +/** Resets */ + +#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter { + margin: 0; + padding: 0; +} + + +/** Header */ + +#qunit-header { + padding: 0.5em 0 0.5em 1em; + + color: #8699a4; + background-color: #0d3349; + + font-size: 1.5em; + line-height: 1em; + font-weight: normal; + + border-radius: 5px 5px 0 0; + -moz-border-radius: 5px 5px 0 0; + -webkit-border-top-right-radius: 5px; + -webkit-border-top-left-radius: 5px; +} + +#qunit-header a { + text-decoration: none; + color: #c2ccd1; +} + +#qunit-header a:hover, +#qunit-header a:focus { + color: #fff; +} + +#qunit-testrunner-toolbar label { + display: inline-block; + padding: 0 .5em 0 .1em; +} + +#qunit-banner { + height: 5px; +} + +#qunit-testrunner-toolbar { + padding: 0.5em 0 0.5em 2em; + color: #5E740B; + background-color: #eee; + overflow: hidden; +} + +#qunit-userAgent { + padding: 0.5em 0 0.5em 2.5em; + background-color: #2b81af; + color: #fff; + text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; +} + +#qunit-modulefilter-container { + float: right; +} + +/** Tests: Pass/Fail */ + +#qunit-tests { + list-style-position: inside; +} + +#qunit-tests li { + padding: 0.4em 0.5em 0.4em 2.5em; + border-bottom: 1px solid #fff; + list-style-position: inside; +} + +#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running { + display: none; +} + +#qunit-tests li strong { + cursor: pointer; +} + +#qunit-tests li a { + padding: 0.5em; + color: #c2ccd1; + text-decoration: none; +} +#qunit-tests li a:hover, +#qunit-tests li a:focus { + color: #000; +} + +#qunit-tests li .runtime { + float: right; + font-size: smaller; +} + +.qunit-assert-list { + margin-top: 0.5em; + padding: 0.5em; + + background-color: #fff; + + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} + +.qunit-collapsed { + display: none; +} + +#qunit-tests table { + border-collapse: collapse; + margin-top: .2em; +} + +#qunit-tests th { + text-align: right; + vertical-align: top; + padding: 0 .5em 0 0; +} + +#qunit-tests td { + vertical-align: top; +} + +#qunit-tests pre { + margin: 0; + white-space: pre-wrap; + word-wrap: break-word; +} + +#qunit-tests del { + background-color: #e0f2be; + color: #374e0c; + text-decoration: none; +} + +#qunit-tests ins { + background-color: #ffcaca; + color: #500; + text-decoration: none; +} + +/*** Test Counts */ + +#qunit-tests b.counts { color: black; } +#qunit-tests b.passed { color: #5E740B; } +#qunit-tests b.failed { color: #710909; } + +#qunit-tests li li { + padding: 5px; + background-color: #fff; + border-bottom: none; + list-style-position: inside; +} + +/*** Passing Styles */ + +#qunit-tests li li.pass { + color: #3c510c; + background-color: #fff; + border-left: 10px solid #C6E746; +} + +#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; } +#qunit-tests .pass .test-name { color: #366097; } + +#qunit-tests .pass .test-actual, +#qunit-tests .pass .test-expected { color: #999999; } + +#qunit-banner.qunit-pass { background-color: #C6E746; } + +/*** Failing Styles */ + +#qunit-tests li li.fail { + color: #710909; + background-color: #fff; + border-left: 10px solid #EE5757; + white-space: pre; +} + +#qunit-tests > li:last-child { + border-radius: 0 0 5px 5px; + -moz-border-radius: 0 0 5px 5px; + -webkit-border-bottom-right-radius: 5px; + -webkit-border-bottom-left-radius: 5px; +} + +#qunit-tests .fail { color: #000000; background-color: #EE5757; } +#qunit-tests .fail .test-name, +#qunit-tests .fail .module-name { color: #000000; } + +#qunit-tests .fail .test-actual { color: #EE5757; } +#qunit-tests .fail .test-expected { color: green; } + +#qunit-banner.qunit-fail { background-color: #EE5757; } + + +/** Result */ + +#qunit-testresult { + padding: 0.5em 0.5em 0.5em 2.5em; + + color: #2b81af; + background-color: #D2E0E6; + + border-bottom: 1px solid white; +} +#qunit-testresult .module-name { + font-weight: bold; +} + +/** Fixture */ + +#qunit-fixture { + position: absolute; + top: -10000px; + left: -10000px; + width: 1000px; + height: 1000px; +} diff --git a/apps/it/static/js/ui/external/qunit.js b/apps/it/static/js/ui/external/qunit.js new file mode 100644 index 0000000..302545f --- /dev/null +++ b/apps/it/static/js/ui/external/qunit.js @@ -0,0 +1,2152 @@ +/** + * QUnit v1.11.0 - A JavaScript Unit Testing Framework + * + * http://qunitjs.com + * + * Copyright 2012 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +(function( window ) { + +var QUnit, + assert, + config, + onErrorFnPrev, + testId = 0, + fileName = (sourceFromStacktrace( 0 ) || "" ).replace(/(:\d+)+\)?/, "").replace(/.+\//, ""), + toString = Object.prototype.toString, + hasOwn = Object.prototype.hasOwnProperty, + // Keep a local reference to Date (GH-283) + Date = window.Date, + defined = { + setTimeout: typeof window.setTimeout !== "undefined", + sessionStorage: (function() { + var x = "qunit-test-string"; + try { + sessionStorage.setItem( x, x ); + sessionStorage.removeItem( x ); + return true; + } catch( e ) { + return false; + } + }()) + }, + /** + * Provides a normalized error string, correcting an issue + * with IE 7 (and prior) where Error.prototype.toString is + * not properly implemented + * + * Based on http://es5.github.com/#x15.11.4.4 + * + * @param {String|Error} error + * @return {String} error message + */ + errorString = function( error ) { + var name, message, + errorString = error.toString(); + if ( errorString.substring( 0, 7 ) === "[object" ) { + name = error.name ? error.name.toString() : "Error"; + message = error.message ? error.message.toString() : ""; + if ( name && message ) { + return name + ": " + message; + } else if ( name ) { + return name; + } else if ( message ) { + return message; + } else { + return "Error"; + } + } else { + return errorString; + } + }, + /** + * Makes a clone of an object using only Array or Object as base, + * and copies over the own enumerable properties. + * + * @param {Object} obj + * @return {Object} New object with only the own properties (recursively). + */ + objectValues = function( obj ) { + // Grunt 0.3.x uses an older version of jshint that still has jshint/jshint#392. + /*jshint newcap: false */ + var key, val, + vals = QUnit.is( "array", obj ) ? [] : {}; + for ( key in obj ) { + if ( hasOwn.call( obj, key ) ) { + val = obj[key]; + vals[key] = val === Object(val) ? objectValues(val) : val; + } + } + return vals; + }; + +function Test( settings ) { + extend( this, settings ); + this.assertions = []; + this.testNumber = ++Test.count; +} + +Test.count = 0; + +Test.prototype = { + init: function() { + var a, b, li, + tests = id( "qunit-tests" ); + + if ( tests ) { + b = document.createElement( "strong" ); + b.innerHTML = this.nameHtml; + + // `a` initialized at top of scope + a = document.createElement( "a" ); + a.innerHTML = "Rerun"; + a.href = QUnit.url({ testNumber: this.testNumber }); + + li = document.createElement( "li" ); + li.appendChild( b ); + li.appendChild( a ); + li.className = "running"; + li.id = this.id = "qunit-test-output" + testId++; + + tests.appendChild( li ); + } + }, + setup: function() { + if ( this.module !== config.previousModule ) { + if ( config.previousModule ) { + runLoggingCallbacks( "moduleDone", QUnit, { + name: config.previousModule, + failed: config.moduleStats.bad, + passed: config.moduleStats.all - config.moduleStats.bad, + total: config.moduleStats.all + }); + } + config.previousModule = this.module; + config.moduleStats = { all: 0, bad: 0 }; + runLoggingCallbacks( "moduleStart", QUnit, { + name: this.module + }); + } else if ( config.autorun ) { + runLoggingCallbacks( "moduleStart", QUnit, { + name: this.module + }); + } + + config.current = this; + + this.testEnvironment = extend({ + setup: function() {}, + teardown: function() {} + }, this.moduleTestEnvironment ); + + this.started = +new Date(); + runLoggingCallbacks( "testStart", QUnit, { + name: this.testName, + module: this.module + }); + + // allow utility functions to access the current test environment + // TODO why?? + QUnit.current_testEnvironment = this.testEnvironment; + + if ( !config.pollution ) { + saveGlobal(); + } + if ( config.notrycatch ) { + this.testEnvironment.setup.call( this.testEnvironment ); + return; + } + try { + this.testEnvironment.setup.call( this.testEnvironment ); + } catch( e ) { + QUnit.pushFailure( "Setup failed on " + this.testName + ": " + ( e.message || e ), extractStacktrace( e, 1 ) ); + } + }, + run: function() { + config.current = this; + + var running = id( "qunit-testresult" ); + + if ( running ) { + running.innerHTML = "Running:
" + this.nameHtml; + } + + if ( this.async ) { + QUnit.stop(); + } + + this.callbackStarted = +new Date(); + + if ( config.notrycatch ) { + this.callback.call( this.testEnvironment, QUnit.assert ); + this.callbackRuntime = +new Date() - this.callbackStarted; + return; + } + + try { + this.callback.call( this.testEnvironment, QUnit.assert ); + this.callbackRuntime = +new Date() - this.callbackStarted; + } catch( e ) { + this.callbackRuntime = +new Date() - this.callbackStarted; + + QUnit.pushFailure( "Died on test #" + (this.assertions.length + 1) + " " + this.stack + ": " + ( e.message || e ), extractStacktrace( e, 0 ) ); + // else next test will carry the responsibility + saveGlobal(); + + // Restart the tests if they're blocking + if ( config.blocking ) { + QUnit.start(); + } + } + }, + teardown: function() { + config.current = this; + if ( config.notrycatch ) { + if ( typeof this.callbackRuntime === "undefined" ) { + this.callbackRuntime = +new Date() - this.callbackStarted; + } + this.testEnvironment.teardown.call( this.testEnvironment ); + return; + } else { + try { + this.testEnvironment.teardown.call( this.testEnvironment ); + } catch( e ) { + QUnit.pushFailure( "Teardown failed on " + this.testName + ": " + ( e.message || e ), extractStacktrace( e, 1 ) ); + } + } + checkPollution(); + }, + finish: function() { + config.current = this; + if ( config.requireExpects && this.expected === null ) { + QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack ); + } else if ( this.expected !== null && this.expected !== this.assertions.length ) { + QUnit.pushFailure( "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack ); + } else if ( this.expected === null && !this.assertions.length ) { + QUnit.pushFailure( "Expected at least one assertion, but none were run - call expect(0) to accept zero assertions.", this.stack ); + } + + var i, assertion, a, b, time, li, ol, + test = this, + good = 0, + bad = 0, + tests = id( "qunit-tests" ); + + this.runtime = +new Date() - this.started; + config.stats.all += this.assertions.length; + config.moduleStats.all += this.assertions.length; + + if ( tests ) { + ol = document.createElement( "ol" ); + ol.className = "qunit-assert-list"; + + for ( i = 0; i < this.assertions.length; i++ ) { + assertion = this.assertions[i]; + + li = document.createElement( "li" ); + li.className = assertion.result ? "pass" : "fail"; + li.innerHTML = assertion.message || ( assertion.result ? "okay" : "failed" ); + ol.appendChild( li ); + + if ( assertion.result ) { + good++; + } else { + bad++; + config.stats.bad++; + config.moduleStats.bad++; + } + } + + // store result when possible + if ( QUnit.config.reorder && defined.sessionStorage ) { + if ( bad ) { + sessionStorage.setItem( "qunit-test-" + this.module + "-" + this.testName, bad ); + } else { + sessionStorage.removeItem( "qunit-test-" + this.module + "-" + this.testName ); + } + } + + if ( bad === 0 ) { + addClass( ol, "qunit-collapsed" ); + } + + // `b` initialized at top of scope + b = document.createElement( "strong" ); + b.innerHTML = this.nameHtml + " (" + bad + ", " + good + ", " + this.assertions.length + ")"; + + addEvent(b, "click", function() { + var next = b.parentNode.lastChild, + collapsed = hasClass( next, "qunit-collapsed" ); + ( collapsed ? removeClass : addClass )( next, "qunit-collapsed" ); + }); + + addEvent(b, "dblclick", function( e ) { + var target = e && e.target ? e.target : window.event.srcElement; + if ( target.nodeName.toLowerCase() === "span" || target.nodeName.toLowerCase() === "b" ) { + target = target.parentNode; + } + if ( window.location && target.nodeName.toLowerCase() === "strong" ) { + window.location = QUnit.url({ testNumber: test.testNumber }); + } + }); + + // `time` initialized at top of scope + time = document.createElement( "span" ); + time.className = "runtime"; + time.innerHTML = this.runtime + " ms"; + + // `li` initialized at top of scope + li = id( this.id ); + li.className = bad ? "fail" : "pass"; + li.removeChild( li.firstChild ); + a = li.firstChild; + li.appendChild( b ); + li.appendChild( a ); + li.appendChild( time ); + li.appendChild( ol ); + + } else { + for ( i = 0; i < this.assertions.length; i++ ) { + if ( !this.assertions[i].result ) { + bad++; + config.stats.bad++; + config.moduleStats.bad++; + } + } + } + + runLoggingCallbacks( "testDone", QUnit, { + name: this.testName, + module: this.module, + failed: bad, + passed: this.assertions.length - bad, + total: this.assertions.length, + duration: this.runtime + }); + + QUnit.reset(); + + config.current = undefined; + }, + + queue: function() { + var bad, + test = this; + + synchronize(function() { + test.init(); + }); + function run() { + // each of these can by async + synchronize(function() { + test.setup(); + }); + synchronize(function() { + test.run(); + }); + synchronize(function() { + test.teardown(); + }); + synchronize(function() { + test.finish(); + }); + } + + // `bad` initialized at top of scope + // defer when previous test run passed, if storage is available + bad = QUnit.config.reorder && defined.sessionStorage && + +sessionStorage.getItem( "qunit-test-" + this.module + "-" + this.testName ); + + if ( bad ) { + run(); + } else { + synchronize( run, true ); + } + } +}; + +// Root QUnit object. +// `QUnit` initialized at top of scope +QUnit = { + + // call on start of module test to prepend name to all tests + module: function( name, testEnvironment ) { + config.currentModule = name; + config.currentModuleTestEnvironment = testEnvironment; + config.modules[name] = true; + }, + + asyncTest: function( testName, expected, callback ) { + if ( arguments.length === 2 ) { + callback = expected; + expected = null; + } + + QUnit.test( testName, expected, callback, true ); + }, + + test: function( testName, expected, callback, async ) { + var test, + nameHtml = "" + escapeText( testName ) + ""; + + if ( arguments.length === 2 ) { + callback = expected; + expected = null; + } + + if ( config.currentModule ) { + nameHtml = "" + escapeText( config.currentModule ) + ": " + nameHtml; + } + + test = new Test({ + nameHtml: nameHtml, + testName: testName, + expected: expected, + async: async, + callback: callback, + module: config.currentModule, + moduleTestEnvironment: config.currentModuleTestEnvironment, + stack: sourceFromStacktrace( 2 ) + }); + + if ( !validTest( test ) ) { + return; + } + + test.queue(); + }, + + // Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through. + expect: function( asserts ) { + if (arguments.length === 1) { + config.current.expected = asserts; + } else { + return config.current.expected; + } + }, + + start: function( count ) { + // QUnit hasn't been initialized yet. + // Note: RequireJS (et al) may delay onLoad + if ( config.semaphore === undefined ) { + QUnit.begin(function() { + // This is triggered at the top of QUnit.load, push start() to the event loop, to allow QUnit.load to finish first + setTimeout(function() { + QUnit.start( count ); + }); + }); + return; + } + + config.semaphore -= count || 1; + // don't start until equal number of stop-calls + if ( config.semaphore > 0 ) { + return; + } + // ignore if start is called more often then stop + if ( config.semaphore < 0 ) { + config.semaphore = 0; + QUnit.pushFailure( "Called start() while already started (QUnit.config.semaphore was 0 already)", null, sourceFromStacktrace(2) ); + return; + } + // A slight delay, to avoid any current callbacks + if ( defined.setTimeout ) { + window.setTimeout(function() { + if ( config.semaphore > 0 ) { + return; + } + if ( config.timeout ) { + clearTimeout( config.timeout ); + } + + config.blocking = false; + process( true ); + }, 13); + } else { + config.blocking = false; + process( true ); + } + }, + + stop: function( count ) { + config.semaphore += count || 1; + config.blocking = true; + + if ( config.testTimeout && defined.setTimeout ) { + clearTimeout( config.timeout ); + config.timeout = window.setTimeout(function() { + QUnit.ok( false, "Test timed out" ); + config.semaphore = 1; + QUnit.start(); + }, config.testTimeout ); + } + } +}; + +// `assert` initialized at top of scope +// Asssert helpers +// All of these must either call QUnit.push() or manually do: +// - runLoggingCallbacks( "log", .. ); +// - config.current.assertions.push({ .. }); +// We attach it to the QUnit object *after* we expose the public API, +// otherwise `assert` will become a global variable in browsers (#341). +assert = { + /** + * Asserts rough true-ish result. + * @name ok + * @function + * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" ); + */ + ok: function( result, msg ) { + if ( !config.current ) { + throw new Error( "ok() assertion outside test context, was " + sourceFromStacktrace(2) ); + } + result = !!result; + + var source, + details = { + module: config.current.module, + name: config.current.testName, + result: result, + message: msg + }; + + msg = escapeText( msg || (result ? "okay" : "failed" ) ); + msg = "" + msg + ""; + + if ( !result ) { + source = sourceFromStacktrace( 2 ); + if ( source ) { + details.source = source; + msg += "
Source:
" + escapeText( source ) + "
"; + } + } + runLoggingCallbacks( "log", QUnit, details ); + config.current.assertions.push({ + result: result, + message: msg + }); + }, + + /** + * Assert that the first two arguments are equal, with an optional message. + * Prints out both actual and expected values. + * @name equal + * @function + * @example equal( format( "Received {0} bytes.", 2), "Received 2 bytes.", "format() replaces {0} with next argument" ); + */ + equal: function( actual, expected, message ) { + /*jshint eqeqeq:false */ + QUnit.push( expected == actual, actual, expected, message ); + }, + + /** + * @name notEqual + * @function + */ + notEqual: function( actual, expected, message ) { + /*jshint eqeqeq:false */ + QUnit.push( expected != actual, actual, expected, message ); + }, + + /** + * @name propEqual + * @function + */ + propEqual: function( actual, expected, message ) { + actual = objectValues(actual); + expected = objectValues(expected); + QUnit.push( QUnit.equiv(actual, expected), actual, expected, message ); + }, + + /** + * @name notPropEqual + * @function + */ + notPropEqual: function( actual, expected, message ) { + actual = objectValues(actual); + expected = objectValues(expected); + QUnit.push( !QUnit.equiv(actual, expected), actual, expected, message ); + }, + + /** + * @name deepEqual + * @function + */ + deepEqual: function( actual, expected, message ) { + QUnit.push( QUnit.equiv(actual, expected), actual, expected, message ); + }, + + /** + * @name notDeepEqual + * @function + */ + notDeepEqual: function( actual, expected, message ) { + QUnit.push( !QUnit.equiv(actual, expected), actual, expected, message ); + }, + + /** + * @name strictEqual + * @function + */ + strictEqual: function( actual, expected, message ) { + QUnit.push( expected === actual, actual, expected, message ); + }, + + /** + * @name notStrictEqual + * @function + */ + notStrictEqual: function( actual, expected, message ) { + QUnit.push( expected !== actual, actual, expected, message ); + }, + + "throws": function( block, expected, message ) { + var actual, + expectedOutput = expected, + ok = false; + + // 'expected' is optional + if ( typeof expected === "string" ) { + message = expected; + expected = null; + } + + config.current.ignoreGlobalErrors = true; + try { + block.call( config.current.testEnvironment ); + } catch (e) { + actual = e; + } + config.current.ignoreGlobalErrors = false; + + if ( actual ) { + // we don't want to validate thrown error + if ( !expected ) { + ok = true; + expectedOutput = null; + // expected is a regexp + } else if ( QUnit.objectType( expected ) === "regexp" ) { + ok = expected.test( errorString( actual ) ); + // expected is a constructor + } else if ( actual instanceof expected ) { + ok = true; + // expected is a validation function which returns true is validation passed + } else if ( expected.call( {}, actual ) === true ) { + expectedOutput = null; + ok = true; + } + + QUnit.push( ok, actual, expectedOutput, message ); + } else { + QUnit.pushFailure( message, null, 'No exception was thrown.' ); + } + } +}; + +/** + * @deprecate since 1.8.0 + * Kept assertion helpers in root for backwards compatibility. + */ +extend( QUnit, assert ); + +/** + * @deprecated since 1.9.0 + * Kept root "raises()" for backwards compatibility. + * (Note that we don't introduce assert.raises). + */ +QUnit.raises = assert[ "throws" ]; + +/** + * @deprecated since 1.0.0, replaced with error pushes since 1.3.0 + * Kept to avoid TypeErrors for undefined methods. + */ +QUnit.equals = function() { + QUnit.push( false, false, false, "QUnit.equals has been deprecated since 2009 (e88049a0), use QUnit.equal instead" ); +}; +QUnit.same = function() { + QUnit.push( false, false, false, "QUnit.same has been deprecated since 2009 (e88049a0), use QUnit.deepEqual instead" ); +}; + +// We want access to the constructor's prototype +(function() { + function F() {} + F.prototype = QUnit; + QUnit = new F(); + // Make F QUnit's constructor so that we can add to the prototype later + QUnit.constructor = F; +}()); + +/** + * Config object: Maintain internal state + * Later exposed as QUnit.config + * `config` initialized at top of scope + */ +config = { + // The queue of tests to run + queue: [], + + // block until document ready + blocking: true, + + // when enabled, show only failing tests + // gets persisted through sessionStorage and can be changed in UI via checkbox + hidepassed: false, + + // by default, run previously failed tests first + // very useful in combination with "Hide passed tests" checked + reorder: true, + + // by default, modify document.title when suite is done + altertitle: true, + + // when enabled, all tests must call expect() + requireExpects: false, + + // add checkboxes that are persisted in the query-string + // when enabled, the id is set to `true` as a `QUnit.config` property + urlConfig: [ + { + id: "noglobals", + label: "Check for Globals", + tooltip: "Enabling this will test if any test introduces new properties on the `window` object. Stored as query-strings." + }, + { + id: "notrycatch", + label: "No try-catch", + tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging exceptions in IE reasonable. Stored as query-strings." + } + ], + + // Set of all modules. + modules: {}, + + // logging callback queues + begin: [], + done: [], + log: [], + testStart: [], + testDone: [], + moduleStart: [], + moduleDone: [] +}; + +// Export global variables, unless an 'exports' object exists, +// in that case we assume we're in CommonJS (dealt with on the bottom of the script) +if ( typeof exports === "undefined" ) { + extend( window, QUnit ); + + // Expose QUnit object + window.QUnit = QUnit; +} + +// Initialize more QUnit.config and QUnit.urlParams +(function() { + var i, + location = window.location || { search: "", protocol: "file:" }, + params = location.search.slice( 1 ).split( "&" ), + length = params.length, + urlParams = {}, + current; + + if ( params[ 0 ] ) { + for ( i = 0; i < length; i++ ) { + current = params[ i ].split( "=" ); + current[ 0 ] = decodeURIComponent( current[ 0 ] ); + // allow just a key to turn on a flag, e.g., test.html?noglobals + current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true; + urlParams[ current[ 0 ] ] = current[ 1 ]; + } + } + + QUnit.urlParams = urlParams; + + // String search anywhere in moduleName+testName + config.filter = urlParams.filter; + + // Exact match of the module name + config.module = urlParams.module; + + config.testNumber = parseInt( urlParams.testNumber, 10 ) || null; + + // Figure out if we're running the tests from a server or not + QUnit.isLocal = location.protocol === "file:"; +}()); + +// Extend QUnit object, +// these after set here because they should not be exposed as global functions +extend( QUnit, { + assert: assert, + + config: config, + + // Initialize the configuration options + init: function() { + extend( config, { + stats: { all: 0, bad: 0 }, + moduleStats: { all: 0, bad: 0 }, + started: +new Date(), + updateRate: 1000, + blocking: false, + autostart: true, + autorun: false, + filter: "", + queue: [], + semaphore: 1 + }); + + var tests, banner, result, + qunit = id( "qunit" ); + + if ( qunit ) { + qunit.innerHTML = + "

" + escapeText( document.title ) + "

" + + "

" + + "
" + + "

" + + "
    "; + } + + tests = id( "qunit-tests" ); + banner = id( "qunit-banner" ); + result = id( "qunit-testresult" ); + + if ( tests ) { + tests.innerHTML = ""; + } + + if ( banner ) { + banner.className = ""; + } + + if ( result ) { + result.parentNode.removeChild( result ); + } + + if ( tests ) { + result = document.createElement( "p" ); + result.id = "qunit-testresult"; + result.className = "result"; + tests.parentNode.insertBefore( result, tests ); + result.innerHTML = "Running...
     "; + } + }, + + // Resets the test setup. Useful for tests that modify the DOM. + reset: function() { + var fixture = id( "qunit-fixture" ); + if ( fixture ) { + fixture.innerHTML = config.fixture; + } + }, + + // Trigger an event on an element. + // @example triggerEvent( document.body, "click" ); + triggerEvent: function( elem, type, event ) { + if ( document.createEvent ) { + event = document.createEvent( "MouseEvents" ); + event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView, + 0, 0, 0, 0, 0, false, false, false, false, 0, null); + + elem.dispatchEvent( event ); + } else if ( elem.fireEvent ) { + elem.fireEvent( "on" + type ); + } + }, + + // Safe object type checking + is: function( type, obj ) { + return QUnit.objectType( obj ) === type; + }, + + objectType: function( obj ) { + if ( typeof obj === "undefined" ) { + return "undefined"; + // consider: typeof null === object + } + if ( obj === null ) { + return "null"; + } + + var match = toString.call( obj ).match(/^\[object\s(.*)\]$/), + type = match && match[1] || ""; + + switch ( type ) { + case "Number": + if ( isNaN(obj) ) { + return "nan"; + } + return "number"; + case "String": + case "Boolean": + case "Array": + case "Date": + case "RegExp": + case "Function": + return type.toLowerCase(); + } + if ( typeof obj === "object" ) { + return "object"; + } + return undefined; + }, + + push: function( result, actual, expected, message ) { + if ( !config.current ) { + throw new Error( "assertion outside test context, was " + sourceFromStacktrace() ); + } + + var output, source, + details = { + module: config.current.module, + name: config.current.testName, + result: result, + message: message, + actual: actual, + expected: expected + }; + + message = escapeText( message ) || ( result ? "okay" : "failed" ); + message = "" + message + ""; + output = message; + + if ( !result ) { + expected = escapeText( QUnit.jsDump.parse(expected) ); + actual = escapeText( QUnit.jsDump.parse(actual) ); + output += ""; + + if ( actual !== expected ) { + output += ""; + output += ""; + } + + source = sourceFromStacktrace(); + + if ( source ) { + details.source = source; + output += ""; + } + + output += "
    Expected:
    " + expected + "
    Result:
    " + actual + "
    Diff:
    " + QUnit.diff( expected, actual ) + "
    Source:
    " + escapeText( source ) + "
    "; + } + + runLoggingCallbacks( "log", QUnit, details ); + + config.current.assertions.push({ + result: !!result, + message: output + }); + }, + + pushFailure: function( message, source, actual ) { + if ( !config.current ) { + throw new Error( "pushFailure() assertion outside test context, was " + sourceFromStacktrace(2) ); + } + + var output, + details = { + module: config.current.module, + name: config.current.testName, + result: false, + message: message + }; + + message = escapeText( message ) || "error"; + message = "" + message + ""; + output = message; + + output += ""; + + if ( actual ) { + output += ""; + } + + if ( source ) { + details.source = source; + output += ""; + } + + output += "
    Result:
    " + escapeText( actual ) + "
    Source:
    " + escapeText( source ) + "
    "; + + runLoggingCallbacks( "log", QUnit, details ); + + config.current.assertions.push({ + result: false, + message: output + }); + }, + + url: function( params ) { + params = extend( extend( {}, QUnit.urlParams ), params ); + var key, + querystring = "?"; + + for ( key in params ) { + if ( !hasOwn.call( params, key ) ) { + continue; + } + querystring += encodeURIComponent( key ) + "=" + + encodeURIComponent( params[ key ] ) + "&"; + } + return window.location.protocol + "//" + window.location.host + + window.location.pathname + querystring.slice( 0, -1 ); + }, + + extend: extend, + id: id, + addEvent: addEvent + // load, equiv, jsDump, diff: Attached later +}); + +/** + * @deprecated: Created for backwards compatibility with test runner that set the hook function + * into QUnit.{hook}, instead of invoking it and passing the hook function. + * QUnit.constructor is set to the empty F() above so that we can add to it's prototype here. + * Doing this allows us to tell if the following methods have been overwritten on the actual + * QUnit object. + */ +extend( QUnit.constructor.prototype, { + + // Logging callbacks; all receive a single argument with the listed properties + // run test/logs.html for any related changes + begin: registerLoggingCallback( "begin" ), + + // done: { failed, passed, total, runtime } + done: registerLoggingCallback( "done" ), + + // log: { result, actual, expected, message } + log: registerLoggingCallback( "log" ), + + // testStart: { name } + testStart: registerLoggingCallback( "testStart" ), + + // testDone: { name, failed, passed, total, duration } + testDone: registerLoggingCallback( "testDone" ), + + // moduleStart: { name } + moduleStart: registerLoggingCallback( "moduleStart" ), + + // moduleDone: { name, failed, passed, total } + moduleDone: registerLoggingCallback( "moduleDone" ) +}); + +if ( typeof document === "undefined" || document.readyState === "complete" ) { + config.autorun = true; +} + +QUnit.load = function() { + runLoggingCallbacks( "begin", QUnit, {} ); + + // Initialize the config, saving the execution queue + var banner, filter, i, label, len, main, ol, toolbar, userAgent, val, + urlConfigCheckboxesContainer, urlConfigCheckboxes, moduleFilter, + numModules = 0, + moduleFilterHtml = "", + urlConfigHtml = "", + oldconfig = extend( {}, config ); + + QUnit.init(); + extend(config, oldconfig); + + config.blocking = false; + + len = config.urlConfig.length; + + for ( i = 0; i < len; i++ ) { + val = config.urlConfig[i]; + if ( typeof val === "string" ) { + val = { + id: val, + label: val, + tooltip: "[no tooltip available]" + }; + } + config[ val.id ] = QUnit.urlParams[ val.id ]; + urlConfigHtml += ""; + } + + moduleFilterHtml += ""; + + // `userAgent` initialized at top of scope + userAgent = id( "qunit-userAgent" ); + if ( userAgent ) { + userAgent.innerHTML = navigator.userAgent; + } + + // `banner` initialized at top of scope + banner = id( "qunit-header" ); + if ( banner ) { + banner.innerHTML = "" + banner.innerHTML + " "; + } + + // `toolbar` initialized at top of scope + toolbar = id( "qunit-testrunner-toolbar" ); + if ( toolbar ) { + // `filter` initialized at top of scope + filter = document.createElement( "input" ); + filter.type = "checkbox"; + filter.id = "qunit-filter-pass"; + + addEvent( filter, "click", function() { + var tmp, + ol = document.getElementById( "qunit-tests" ); + + if ( filter.checked ) { + ol.className = ol.className + " hidepass"; + } else { + tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " "; + ol.className = tmp.replace( / hidepass /, " " ); + } + if ( defined.sessionStorage ) { + if (filter.checked) { + sessionStorage.setItem( "qunit-filter-passed-tests", "true" ); + } else { + sessionStorage.removeItem( "qunit-filter-passed-tests" ); + } + } + }); + + if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem( "qunit-filter-passed-tests" ) ) { + filter.checked = true; + // `ol` initialized at top of scope + ol = document.getElementById( "qunit-tests" ); + ol.className = ol.className + " hidepass"; + } + toolbar.appendChild( filter ); + + // `label` initialized at top of scope + label = document.createElement( "label" ); + label.setAttribute( "for", "qunit-filter-pass" ); + label.setAttribute( "title", "Only show tests and assertons that fail. Stored in sessionStorage." ); + label.innerHTML = "Hide passed tests"; + toolbar.appendChild( label ); + + urlConfigCheckboxesContainer = document.createElement("span"); + urlConfigCheckboxesContainer.innerHTML = urlConfigHtml; + urlConfigCheckboxes = urlConfigCheckboxesContainer.getElementsByTagName("input"); + // For oldIE support: + // * Add handlers to the individual elements instead of the container + // * Use "click" instead of "change" + // * Fallback from event.target to event.srcElement + addEvents( urlConfigCheckboxes, "click", function( event ) { + var params = {}, + target = event.target || event.srcElement; + params[ target.name ] = target.checked ? true : undefined; + window.location = QUnit.url( params ); + }); + toolbar.appendChild( urlConfigCheckboxesContainer ); + + if (numModules > 1) { + moduleFilter = document.createElement( 'span' ); + moduleFilter.setAttribute( 'id', 'qunit-modulefilter-container' ); + moduleFilter.innerHTML = moduleFilterHtml; + addEvent( moduleFilter.lastChild, "change", function() { + var selectBox = moduleFilter.getElementsByTagName("select")[0], + selectedModule = decodeURIComponent(selectBox.options[selectBox.selectedIndex].value); + + window.location = QUnit.url( { module: ( selectedModule === "" ) ? undefined : selectedModule } ); + }); + toolbar.appendChild(moduleFilter); + } + } + + // `main` initialized at top of scope + main = id( "qunit-fixture" ); + if ( main ) { + config.fixture = main.innerHTML; + } + + if ( config.autostart ) { + QUnit.start(); + } +}; + +addEvent( window, "load", QUnit.load ); + +// `onErrorFnPrev` initialized at top of scope +// Preserve other handlers +onErrorFnPrev = window.onerror; + +// Cover uncaught exceptions +// Returning true will surpress the default browser handler, +// returning false will let it run. +window.onerror = function ( error, filePath, linerNr ) { + var ret = false; + if ( onErrorFnPrev ) { + ret = onErrorFnPrev( error, filePath, linerNr ); + } + + // Treat return value as window.onerror itself does, + // Only do our handling if not surpressed. + if ( ret !== true ) { + if ( QUnit.config.current ) { + if ( QUnit.config.current.ignoreGlobalErrors ) { + return true; + } + QUnit.pushFailure( error, filePath + ":" + linerNr ); + } else { + QUnit.test( "global failure", extend( function() { + QUnit.pushFailure( error, filePath + ":" + linerNr ); + }, { validTest: validTest } ) ); + } + return false; + } + + return ret; +}; + +function done() { + config.autorun = true; + + // Log the last module results + if ( config.currentModule ) { + runLoggingCallbacks( "moduleDone", QUnit, { + name: config.currentModule, + failed: config.moduleStats.bad, + passed: config.moduleStats.all - config.moduleStats.bad, + total: config.moduleStats.all + }); + } + + var i, key, + banner = id( "qunit-banner" ), + tests = id( "qunit-tests" ), + runtime = +new Date() - config.started, + passed = config.stats.all - config.stats.bad, + html = [ + "Tests completed in ", + runtime, + " milliseconds.
    ", + "", + passed, + " assertions of ", + config.stats.all, + " passed, ", + config.stats.bad, + " failed." + ].join( "" ); + + if ( banner ) { + banner.className = ( config.stats.bad ? "qunit-fail" : "qunit-pass" ); + } + + if ( tests ) { + id( "qunit-testresult" ).innerHTML = html; + } + + if ( config.altertitle && typeof document !== "undefined" && document.title ) { + // show ✖ for good, ✔ for bad suite result in title + // use escape sequences in case file gets loaded with non-utf-8-charset + document.title = [ + ( config.stats.bad ? "\u2716" : "\u2714" ), + document.title.replace( /^[\u2714\u2716] /i, "" ) + ].join( " " ); + } + + // clear own sessionStorage items if all tests passed + if ( config.reorder && defined.sessionStorage && config.stats.bad === 0 ) { + // `key` & `i` initialized at top of scope + for ( i = 0; i < sessionStorage.length; i++ ) { + key = sessionStorage.key( i++ ); + if ( key.indexOf( "qunit-test-" ) === 0 ) { + sessionStorage.removeItem( key ); + } + } + } + + // scroll back to top to show results + if ( window.scrollTo ) { + window.scrollTo(0, 0); + } + + runLoggingCallbacks( "done", QUnit, { + failed: config.stats.bad, + passed: passed, + total: config.stats.all, + runtime: runtime + }); +} + +/** @return Boolean: true if this test should be ran */ +function validTest( test ) { + var include, + filter = config.filter && config.filter.toLowerCase(), + module = config.module && config.module.toLowerCase(), + fullName = (test.module + ": " + test.testName).toLowerCase(); + + // Internally-generated tests are always valid + if ( test.callback && test.callback.validTest === validTest ) { + delete test.callback.validTest; + return true; + } + + if ( config.testNumber ) { + return test.testNumber === config.testNumber; + } + + if ( module && ( !test.module || test.module.toLowerCase() !== module ) ) { + return false; + } + + if ( !filter ) { + return true; + } + + include = filter.charAt( 0 ) !== "!"; + if ( !include ) { + filter = filter.slice( 1 ); + } + + // If the filter matches, we need to honour include + if ( fullName.indexOf( filter ) !== -1 ) { + return include; + } + + // Otherwise, do the opposite + return !include; +} + +// so far supports only Firefox, Chrome and Opera (buggy), Safari (for real exceptions) +// Later Safari and IE10 are supposed to support error.stack as well +// See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack +function extractStacktrace( e, offset ) { + offset = offset === undefined ? 3 : offset; + + var stack, include, i; + + if ( e.stacktrace ) { + // Opera + return e.stacktrace.split( "\n" )[ offset + 3 ]; + } else if ( e.stack ) { + // Firefox, Chrome + stack = e.stack.split( "\n" ); + if (/^error$/i.test( stack[0] ) ) { + stack.shift(); + } + if ( fileName ) { + include = []; + for ( i = offset; i < stack.length; i++ ) { + if ( stack[ i ].indexOf( fileName ) !== -1 ) { + break; + } + include.push( stack[ i ] ); + } + if ( include.length ) { + return include.join( "\n" ); + } + } + return stack[ offset ]; + } else if ( e.sourceURL ) { + // Safari, PhantomJS + // hopefully one day Safari provides actual stacktraces + // exclude useless self-reference for generated Error objects + if ( /qunit.js$/.test( e.sourceURL ) ) { + return; + } + // for actual exceptions, this is useful + return e.sourceURL + ":" + e.line; + } +} +function sourceFromStacktrace( offset ) { + try { + throw new Error(); + } catch ( e ) { + return extractStacktrace( e, offset ); + } +} + +/** + * Escape text for attribute or text content. + */ +function escapeText( s ) { + if ( !s ) { + return ""; + } + s = s + ""; + // Both single quotes and double quotes (for attributes) + return s.replace( /['"<>&]/g, function( s ) { + switch( s ) { + case '\'': + return '''; + case '"': + return '"'; + case '<': + return '<'; + case '>': + return '>'; + case '&': + return '&'; + } + }); +} + +function synchronize( callback, last ) { + config.queue.push( callback ); + + if ( config.autorun && !config.blocking ) { + process( last ); + } +} + +function process( last ) { + function next() { + process( last ); + } + var start = new Date().getTime(); + config.depth = config.depth ? config.depth + 1 : 1; + + while ( config.queue.length && !config.blocking ) { + if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) { + config.queue.shift()(); + } else { + window.setTimeout( next, 13 ); + break; + } + } + config.depth--; + if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) { + done(); + } +} + +function saveGlobal() { + config.pollution = []; + + if ( config.noglobals ) { + for ( var key in window ) { + // in Opera sometimes DOM element ids show up here, ignore them + if ( !hasOwn.call( window, key ) || /^qunit-test-output/.test( key ) ) { + continue; + } + config.pollution.push( key ); + } + } +} + +function checkPollution() { + var newGlobals, + deletedGlobals, + old = config.pollution; + + saveGlobal(); + + newGlobals = diff( config.pollution, old ); + if ( newGlobals.length > 0 ) { + QUnit.pushFailure( "Introduced global variable(s): " + newGlobals.join(", ") ); + } + + deletedGlobals = diff( old, config.pollution ); + if ( deletedGlobals.length > 0 ) { + QUnit.pushFailure( "Deleted global variable(s): " + deletedGlobals.join(", ") ); + } +} + +// returns a new Array with the elements that are in a but not in b +function diff( a, b ) { + var i, j, + result = a.slice(); + + for ( i = 0; i < result.length; i++ ) { + for ( j = 0; j < b.length; j++ ) { + if ( result[i] === b[j] ) { + result.splice( i, 1 ); + i--; + break; + } + } + } + return result; +} + +function extend( a, b ) { + for ( var prop in b ) { + if ( b[ prop ] === undefined ) { + delete a[ prop ]; + + // Avoid "Member not found" error in IE8 caused by setting window.constructor + } else if ( prop !== "constructor" || a !== window ) { + a[ prop ] = b[ prop ]; + } + } + + return a; +} + +/** + * @param {HTMLElement} elem + * @param {string} type + * @param {Function} fn + */ +function addEvent( elem, type, fn ) { + // Standards-based browsers + if ( elem.addEventListener ) { + elem.addEventListener( type, fn, false ); + // IE + } else { + elem.attachEvent( "on" + type, fn ); + } +} + +/** + * @param {Array|NodeList} elems + * @param {string} type + * @param {Function} fn + */ +function addEvents( elems, type, fn ) { + var i = elems.length; + while ( i-- ) { + addEvent( elems[i], type, fn ); + } +} + +function hasClass( elem, name ) { + return (" " + elem.className + " ").indexOf(" " + name + " ") > -1; +} + +function addClass( elem, name ) { + if ( !hasClass( elem, name ) ) { + elem.className += (elem.className ? " " : "") + name; + } +} + +function removeClass( elem, name ) { + var set = " " + elem.className + " "; + // Class name may appear multiple times + while ( set.indexOf(" " + name + " ") > -1 ) { + set = set.replace(" " + name + " " , " "); + } + // If possible, trim it for prettiness, but not neccecarily + elem.className = window.jQuery ? jQuery.trim( set ) : ( set.trim ? set.trim() : set ); +} + +function id( name ) { + return !!( typeof document !== "undefined" && document && document.getElementById ) && + document.getElementById( name ); +} + +function registerLoggingCallback( key ) { + return function( callback ) { + config[key].push( callback ); + }; +} + +// Supports deprecated method of completely overwriting logging callbacks +function runLoggingCallbacks( key, scope, args ) { + var i, callbacks; + if ( QUnit.hasOwnProperty( key ) ) { + QUnit[ key ].call(scope, args ); + } else { + callbacks = config[ key ]; + for ( i = 0; i < callbacks.length; i++ ) { + callbacks[ i ].call( scope, args ); + } + } +} + +// Test for equality any JavaScript type. +// Author: Philippe Rathé +QUnit.equiv = (function() { + + // Call the o related callback with the given arguments. + function bindCallbacks( o, callbacks, args ) { + var prop = QUnit.objectType( o ); + if ( prop ) { + if ( QUnit.objectType( callbacks[ prop ] ) === "function" ) { + return callbacks[ prop ].apply( callbacks, args ); + } else { + return callbacks[ prop ]; // or undefined + } + } + } + + // the real equiv function + var innerEquiv, + // stack to decide between skip/abort functions + callers = [], + // stack to avoiding loops from circular referencing + parents = [], + + getProto = Object.getPrototypeOf || function ( obj ) { + return obj.__proto__; + }, + callbacks = (function () { + + // for string, boolean, number and null + function useStrictEquality( b, a ) { + /*jshint eqeqeq:false */ + if ( b instanceof a.constructor || a instanceof b.constructor ) { + // to catch short annotaion VS 'new' annotation of a + // declaration + // e.g. var i = 1; + // var j = new Number(1); + return a == b; + } else { + return a === b; + } + } + + return { + "string": useStrictEquality, + "boolean": useStrictEquality, + "number": useStrictEquality, + "null": useStrictEquality, + "undefined": useStrictEquality, + + "nan": function( b ) { + return isNaN( b ); + }, + + "date": function( b, a ) { + return QUnit.objectType( b ) === "date" && a.valueOf() === b.valueOf(); + }, + + "regexp": function( b, a ) { + return QUnit.objectType( b ) === "regexp" && + // the regex itself + a.source === b.source && + // and its modifers + a.global === b.global && + // (gmi) ... + a.ignoreCase === b.ignoreCase && + a.multiline === b.multiline && + a.sticky === b.sticky; + }, + + // - skip when the property is a method of an instance (OOP) + // - abort otherwise, + // initial === would have catch identical references anyway + "function": function() { + var caller = callers[callers.length - 1]; + return caller !== Object && typeof caller !== "undefined"; + }, + + "array": function( b, a ) { + var i, j, len, loop; + + // b could be an object literal here + if ( QUnit.objectType( b ) !== "array" ) { + return false; + } + + len = a.length; + if ( len !== b.length ) { + // safe and faster + return false; + } + + // track reference to avoid circular references + parents.push( a ); + for ( i = 0; i < len; i++ ) { + loop = false; + for ( j = 0; j < parents.length; j++ ) { + if ( parents[j] === a[i] ) { + loop = true;// dont rewalk array + } + } + if ( !loop && !innerEquiv(a[i], b[i]) ) { + parents.pop(); + return false; + } + } + parents.pop(); + return true; + }, + + "object": function( b, a ) { + var i, j, loop, + // Default to true + eq = true, + aProperties = [], + bProperties = []; + + // comparing constructors is more strict than using + // instanceof + if ( a.constructor !== b.constructor ) { + // Allow objects with no prototype to be equivalent to + // objects with Object as their constructor. + if ( !(( getProto(a) === null && getProto(b) === Object.prototype ) || + ( getProto(b) === null && getProto(a) === Object.prototype ) ) ) { + return false; + } + } + + // stack constructor before traversing properties + callers.push( a.constructor ); + // track reference to avoid circular references + parents.push( a ); + + for ( i in a ) { // be strict: don't ensures hasOwnProperty + // and go deep + loop = false; + for ( j = 0; j < parents.length; j++ ) { + if ( parents[j] === a[i] ) { + // don't go down the same path twice + loop = true; + } + } + aProperties.push(i); // collect a's properties + + if (!loop && !innerEquiv( a[i], b[i] ) ) { + eq = false; + break; + } + } + + callers.pop(); // unstack, we are done + parents.pop(); + + for ( i in b ) { + bProperties.push( i ); // collect b's properties + } + + // Ensures identical properties name + return eq && innerEquiv( aProperties.sort(), bProperties.sort() ); + } + }; + }()); + + innerEquiv = function() { // can take multiple arguments + var args = [].slice.apply( arguments ); + if ( args.length < 2 ) { + return true; // end transition + } + + return (function( a, b ) { + if ( a === b ) { + return true; // catch the most you can + } else if ( a === null || b === null || typeof a === "undefined" || + typeof b === "undefined" || + QUnit.objectType(a) !== QUnit.objectType(b) ) { + return false; // don't lose time with error prone cases + } else { + return bindCallbacks(a, callbacks, [ b, a ]); + } + + // apply transition with (1..n) arguments + }( args[0], args[1] ) && arguments.callee.apply( this, args.splice(1, args.length - 1 )) ); + }; + + return innerEquiv; +}()); + +/** + * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | + * http://flesler.blogspot.com Licensed under BSD + * (http://www.opensource.org/licenses/bsd-license.php) Date: 5/15/2008 + * + * @projectDescription Advanced and extensible data dumping for Javascript. + * @version 1.0.0 + * @author Ariel Flesler + * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html} + */ +QUnit.jsDump = (function() { + function quote( str ) { + return '"' + str.toString().replace( /"/g, '\\"' ) + '"'; + } + function literal( o ) { + return o + ""; + } + function join( pre, arr, post ) { + var s = jsDump.separator(), + base = jsDump.indent(), + inner = jsDump.indent(1); + if ( arr.join ) { + arr = arr.join( "," + s + inner ); + } + if ( !arr ) { + return pre + post; + } + return [ pre, inner + arr, base + post ].join(s); + } + function array( arr, stack ) { + var i = arr.length, ret = new Array(i); + this.up(); + while ( i-- ) { + ret[i] = this.parse( arr[i] , undefined , stack); + } + this.down(); + return join( "[", ret, "]" ); + } + + var reName = /^function (\w+)/, + jsDump = { + // type is used mostly internally, you can fix a (custom)type in advance + parse: function( obj, type, stack ) { + stack = stack || [ ]; + var inStack, res, + parser = this.parsers[ type || this.typeOf(obj) ]; + + type = typeof parser; + inStack = inArray( obj, stack ); + + if ( inStack !== -1 ) { + return "recursion(" + (inStack - stack.length) + ")"; + } + if ( type === "function" ) { + stack.push( obj ); + res = parser.call( this, obj, stack ); + stack.pop(); + return res; + } + return ( type === "string" ) ? parser : this.parsers.error; + }, + typeOf: function( obj ) { + var type; + if ( obj === null ) { + type = "null"; + } else if ( typeof obj === "undefined" ) { + type = "undefined"; + } else if ( QUnit.is( "regexp", obj) ) { + type = "regexp"; + } else if ( QUnit.is( "date", obj) ) { + type = "date"; + } else if ( QUnit.is( "function", obj) ) { + type = "function"; + } else if ( typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined" ) { + type = "window"; + } else if ( obj.nodeType === 9 ) { + type = "document"; + } else if ( obj.nodeType ) { + type = "node"; + } else if ( + // native arrays + toString.call( obj ) === "[object Array]" || + // NodeList objects + ( typeof obj.length === "number" && typeof obj.item !== "undefined" && ( obj.length ? obj.item(0) === obj[0] : ( obj.item( 0 ) === null && typeof obj[0] === "undefined" ) ) ) + ) { + type = "array"; + } else if ( obj.constructor === Error.prototype.constructor ) { + type = "error"; + } else { + type = typeof obj; + } + return type; + }, + separator: function() { + return this.multiline ? this.HTML ? "
    " : "\n" : this.HTML ? " " : " "; + }, + // extra can be a number, shortcut for increasing-calling-decreasing + indent: function( extra ) { + if ( !this.multiline ) { + return ""; + } + var chr = this.indentChar; + if ( this.HTML ) { + chr = chr.replace( /\t/g, " " ).replace( / /g, " " ); + } + return new Array( this._depth_ + (extra||0) ).join(chr); + }, + up: function( a ) { + this._depth_ += a || 1; + }, + down: function( a ) { + this._depth_ -= a || 1; + }, + setParser: function( name, parser ) { + this.parsers[name] = parser; + }, + // The next 3 are exposed so you can use them + quote: quote, + literal: literal, + join: join, + // + _depth_: 1, + // This is the list of parsers, to modify them, use jsDump.setParser + parsers: { + window: "[Window]", + document: "[Document]", + error: function(error) { + return "Error(\"" + error.message + "\")"; + }, + unknown: "[Unknown]", + "null": "null", + "undefined": "undefined", + "function": function( fn ) { + var ret = "function", + // functions never have name in IE + name = "name" in fn ? fn.name : (reName.exec(fn) || [])[1]; + + if ( name ) { + ret += " " + name; + } + ret += "( "; + + ret = [ ret, QUnit.jsDump.parse( fn, "functionArgs" ), "){" ].join( "" ); + return join( ret, QUnit.jsDump.parse(fn,"functionCode" ), "}" ); + }, + array: array, + nodelist: array, + "arguments": array, + object: function( map, stack ) { + var ret = [ ], keys, key, val, i; + QUnit.jsDump.up(); + keys = []; + for ( key in map ) { + keys.push( key ); + } + keys.sort(); + for ( i = 0; i < keys.length; i++ ) { + key = keys[ i ]; + val = map[ key ]; + ret.push( QUnit.jsDump.parse( key, "key" ) + ": " + QUnit.jsDump.parse( val, undefined, stack ) ); + } + QUnit.jsDump.down(); + return join( "{", ret, "}" ); + }, + node: function( node ) { + var len, i, val, + open = QUnit.jsDump.HTML ? "<" : "<", + close = QUnit.jsDump.HTML ? ">" : ">", + tag = node.nodeName.toLowerCase(), + ret = open + tag, + attrs = node.attributes; + + if ( attrs ) { + for ( i = 0, len = attrs.length; i < len; i++ ) { + val = attrs[i].nodeValue; + // IE6 includes all attributes in .attributes, even ones not explicitly set. + // Those have values like undefined, null, 0, false, "" or "inherit". + if ( val && val !== "inherit" ) { + ret += " " + attrs[i].nodeName + "=" + QUnit.jsDump.parse( val, "attribute" ); + } + } + } + ret += close; + + // Show content of TextNode or CDATASection + if ( node.nodeType === 3 || node.nodeType === 4 ) { + ret += node.nodeValue; + } + + return ret + open + "/" + tag + close; + }, + // function calls it internally, it's the arguments part of the function + functionArgs: function( fn ) { + var args, + l = fn.length; + + if ( !l ) { + return ""; + } + + args = new Array(l); + while ( l-- ) { + // 97 is 'a' + args[l] = String.fromCharCode(97+l); + } + return " " + args.join( ", " ) + " "; + }, + // object calls it internally, the key part of an item in a map + key: quote, + // function calls it internally, it's the content of the function + functionCode: "[code]", + // node calls it internally, it's an html attribute value + attribute: quote, + string: quote, + date: quote, + regexp: literal, + number: literal, + "boolean": literal + }, + // if true, entities are escaped ( <, >, \t, space and \n ) + HTML: false, + // indentation unit + indentChar: " ", + // if true, items in a collection, are separated by a \n, else just a space. + multiline: true + }; + + return jsDump; +}()); + +// from jquery.js +function inArray( elem, array ) { + if ( array.indexOf ) { + return array.indexOf( elem ); + } + + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[ i ] === elem ) { + return i; + } + } + + return -1; +} + +/* + * Javascript Diff Algorithm + * By John Resig (http://ejohn.org/) + * Modified by Chu Alan "sprite" + * + * Released under the MIT license. + * + * More Info: + * http://ejohn.org/projects/javascript-diff-algorithm/ + * + * Usage: QUnit.diff(expected, actual) + * + * QUnit.diff( "the quick brown fox jumped over", "the quick fox jumps over" ) == "the quick brown fox jumped jumps over" + */ +QUnit.diff = (function() { + /*jshint eqeqeq:false, eqnull:true */ + function diff( o, n ) { + var i, + ns = {}, + os = {}; + + for ( i = 0; i < n.length; i++ ) { + if ( !hasOwn.call( ns, n[i] ) ) { + ns[ n[i] ] = { + rows: [], + o: null + }; + } + ns[ n[i] ].rows.push( i ); + } + + for ( i = 0; i < o.length; i++ ) { + if ( !hasOwn.call( os, o[i] ) ) { + os[ o[i] ] = { + rows: [], + n: null + }; + } + os[ o[i] ].rows.push( i ); + } + + for ( i in ns ) { + if ( !hasOwn.call( ns, i ) ) { + continue; + } + if ( ns[i].rows.length === 1 && hasOwn.call( os, i ) && os[i].rows.length === 1 ) { + n[ ns[i].rows[0] ] = { + text: n[ ns[i].rows[0] ], + row: os[i].rows[0] + }; + o[ os[i].rows[0] ] = { + text: o[ os[i].rows[0] ], + row: ns[i].rows[0] + }; + } + } + + for ( i = 0; i < n.length - 1; i++ ) { + if ( n[i].text != null && n[ i + 1 ].text == null && n[i].row + 1 < o.length && o[ n[i].row + 1 ].text == null && + n[ i + 1 ] == o[ n[i].row + 1 ] ) { + + n[ i + 1 ] = { + text: n[ i + 1 ], + row: n[i].row + 1 + }; + o[ n[i].row + 1 ] = { + text: o[ n[i].row + 1 ], + row: i + 1 + }; + } + } + + for ( i = n.length - 1; i > 0; i-- ) { + if ( n[i].text != null && n[ i - 1 ].text == null && n[i].row > 0 && o[ n[i].row - 1 ].text == null && + n[ i - 1 ] == o[ n[i].row - 1 ]) { + + n[ i - 1 ] = { + text: n[ i - 1 ], + row: n[i].row - 1 + }; + o[ n[i].row - 1 ] = { + text: o[ n[i].row - 1 ], + row: i - 1 + }; + } + } + + return { + o: o, + n: n + }; + } + + return function( o, n ) { + o = o.replace( /\s+$/, "" ); + n = n.replace( /\s+$/, "" ); + + var i, pre, + str = "", + out = diff( o === "" ? [] : o.split(/\s+/), n === "" ? [] : n.split(/\s+/) ), + oSpace = o.match(/\s+/g), + nSpace = n.match(/\s+/g); + + if ( oSpace == null ) { + oSpace = [ " " ]; + } + else { + oSpace.push( " " ); + } + + if ( nSpace == null ) { + nSpace = [ " " ]; + } + else { + nSpace.push( " " ); + } + + if ( out.n.length === 0 ) { + for ( i = 0; i < out.o.length; i++ ) { + str += "" + out.o[i] + oSpace[i] + ""; + } + } + else { + if ( out.n[0].text == null ) { + for ( n = 0; n < out.o.length && out.o[n].text == null; n++ ) { + str += "" + out.o[n] + oSpace[n] + ""; + } + } + + for ( i = 0; i < out.n.length; i++ ) { + if (out.n[i].text == null) { + str += "" + out.n[i] + nSpace[i] + ""; + } + else { + // `pre` initialized at top of scope + pre = ""; + + for ( n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++ ) { + pre += "" + out.o[n] + oSpace[n] + ""; + } + str += " " + out.n[i].text + nSpace[i] + pre; + } + } + } + + return str; + }; +}()); + +// for CommonJS enviroments, export everything +if ( typeof exports !== "undefined" ) { + extend( exports, QUnit ); +} + +// get at whatever the global object is, like window in browsers +}( (function() {return this;}.call()) )); diff --git a/apps/it/static/js/ui/jquery-1.10.2.js b/apps/it/static/js/ui/jquery-1.10.2.js new file mode 100644 index 0000000..c5c6482 --- /dev/null +++ b/apps/it/static/js/ui/jquery-1.10.2.js @@ -0,0 +1,9789 @@ +/*! + * jQuery JavaScript Library v1.10.2 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2013-07-03T13:48Z + */ +(function( window, undefined ) { + +// Can't do this because several apps including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +// Support: Firefox 18+ +//"use strict"; +var + // The deferred used on DOM ready + readyList, + + // A central reference to the root jQuery(document) + rootjQuery, + + // Support: IE<10 + // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` + core_strundefined = typeof undefined, + + // Use the correct document accordingly with window argument (sandbox) + location = window.location, + document = window.document, + docElem = document.documentElement, + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$, + + // [[Class]] -> type pairs + class2type = {}, + + // List of deleted data cache ids, so we can reuse them + core_deletedIds = [], + + core_version = "1.10.2", + + // Save a reference to some core methods + core_concat = core_deletedIds.concat, + core_push = core_deletedIds.push, + core_slice = core_deletedIds.slice, + core_indexOf = core_deletedIds.indexOf, + core_toString = class2type.toString, + core_hasOwn = class2type.hasOwnProperty, + core_trim = core_version.trim, + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }, + + // Used for matching numbers + core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, + + // Used for splitting on whitespace + core_rnotwhite = /\S+/g, + + // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + + // Match a standalone tag + rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, + + // JSON RegExp + rvalidchars = /^[\],:{}\s]*$/, + rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, + rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, + rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }, + + // The ready event handler + completed = function( event ) { + + // readyState === "complete" is good enough for us to call the dom ready in oldIE + if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { + detach(); + jQuery.ready(); + } + }, + // Clean-up method for dom ready events + detach = function() { + if ( document.addEventListener ) { + document.removeEventListener( "DOMContentLoaded", completed, false ); + window.removeEventListener( "load", completed, false ); + + } else { + document.detachEvent( "onreadystatechange", completed ); + window.detachEvent( "onload", completed ); + } + }; + +jQuery.fn = jQuery.prototype = { + // The current version of jQuery being used + jquery: core_version, + + constructor: jQuery, + init: function( selector, context, rootjQuery ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + + // scripts is true for back-compat + jQuery.merge( this, jQuery.parseHTML( + match[1], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || rootjQuery ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return core_slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + ready: function( fn ) { + // Add the callback + jQuery.ready.promise().done( fn ); + + return this; + }, + + slice: function() { + return this.pushStack( core_slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: core_push, + sort: [].sort, + splice: [].splice +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +jQuery.extend = jQuery.fn.extend = function() { + var src, copyIsArray, copy, name, options, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + // Unique for each copy of jQuery on the page + // Non-digits removed to match rinlinejQuery + expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), + + noConflict: function( deep ) { + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }, + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger("ready").off("ready"); + } + }, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type(obj) === "array"; + }, + + isWindow: function( obj ) { + /* jshint eqeqeq: false */ + return obj != null && obj == obj.window; + }, + + isNumeric: function( obj ) { + return !isNaN( parseFloat(obj) ) && isFinite( obj ); + }, + + type: function( obj ) { + if ( obj == null ) { + return String( obj ); + } + return typeof obj === "object" || typeof obj === "function" ? + class2type[ core_toString.call(obj) ] || "object" : + typeof obj; + }, + + isPlainObject: function( obj ) { + var key; + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !core_hasOwn.call(obj, "constructor") && + !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Support: IE<9 + // Handle iteration over inherited properties before own properties. + if ( jQuery.support.ownLast ) { + for ( key in obj ) { + return core_hasOwn.call( obj, key ); + } + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + for ( key in obj ) {} + + return key === undefined || core_hasOwn.call( obj, key ); + }, + + isEmptyObject: function( obj ) { + var name; + for ( name in obj ) { + return false; + } + return true; + }, + + error: function( msg ) { + throw new Error( msg ); + }, + + // data: string of html + // context (optional): If specified, the fragment will be created in this context, defaults to document + // keepScripts (optional): If true, will include scripts passed in the html string + parseHTML: function( data, context, keepScripts ) { + if ( !data || typeof data !== "string" ) { + return null; + } + if ( typeof context === "boolean" ) { + keepScripts = context; + context = false; + } + context = context || document; + + var parsed = rsingleTag.exec( data ), + scripts = !keepScripts && []; + + // Single tag + if ( parsed ) { + return [ context.createElement( parsed[1] ) ]; + } + + parsed = jQuery.buildFragment( [ data ], context, scripts ); + if ( scripts ) { + jQuery( scripts ).remove(); + } + return jQuery.merge( [], parsed.childNodes ); + }, + + parseJSON: function( data ) { + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + if ( data === null ) { + return data; + } + + if ( typeof data === "string" ) { + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + if ( data ) { + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return ( new Function( "return " + data ) )(); + } + } + } + + jQuery.error( "Invalid JSON: " + data ); + }, + + // Cross-browser xml parsing + parseXML: function( data ) { + var xml, tmp; + if ( !data || typeof data !== "string" ) { + return null; + } + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }, + + noop: function() {}, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && jQuery.trim( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + }, + + // args is for internal usage only + each: function( obj, callback, args ) { + var value, + i = 0, + length = obj.length, + isArray = isArraylike( obj ); + + if ( args ) { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } + } + + return obj; + }, + + // Use native String.trim function wherever possible + trim: core_trim && !core_trim.call("\uFEFF\xA0") ? + function( text ) { + return text == null ? + "" : + core_trim.call( text ); + } : + + // Otherwise use our own trimming functionality + function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArraylike( Object(arr) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + core_push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + var len; + + if ( arr ) { + if ( core_indexOf ) { + return core_indexOf.call( arr, elem, i ); + } + + len = arr.length; + i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; + + for ( ; i < len; i++ ) { + // Skip accessing in sparse arrays + if ( i in arr && arr[ i ] === elem ) { + return i; + } + } + } + + return -1; + }, + + merge: function( first, second ) { + var l = second.length, + i = first.length, + j = 0; + + if ( typeof l === "number" ) { + for ( ; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, inv ) { + var retVal, + ret = [], + i = 0, + length = elems.length; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, + i = 0, + length = elems.length, + isArray = isArraylike( elems ), + ret = []; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return core_concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var args, proxy, tmp; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = core_slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + // Multifunctional method to get and set values of a collection + // The value/s can optionally be executed if it's a function + access: function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + length = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < length; i++ ) { + fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); + } + } + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + length ? fn( elems[0], key ) : emptyGet; + }, + + now: function() { + return ( new Date() ).getTime(); + }, + + // A method for quickly swapping in/out CSS properties to get correct calculations. + // Note: this method belongs to the css module but it's needed here for the support module. + // If support gets modularized, this method should be moved back to the css module. + swap: function( elem, options, callback, args ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.apply( elem, args || [] ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; + } +}); + +jQuery.ready.promise = function( obj ) { + if ( !readyList ) { + + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called after the browser event has already occurred. + // we once tried to use readyState "interactive" here, but it caused issues like the one + // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + setTimeout( jQuery.ready ); + + // Standards-based browsers support DOMContentLoaded + } else if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed, false ); + + // If IE event model is used + } else { + // Ensure firing before onload, maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", completed ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", completed ); + + // If IE and not a frame + // continually check to see if the document is ready + var top = false; + + try { + top = window.frameElement == null && document.documentElement; + } catch(e) {} + + if ( top && top.doScroll ) { + (function doScrollCheck() { + if ( !jQuery.isReady ) { + + try { + // Use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + top.doScroll("left"); + } catch(e) { + return setTimeout( doScrollCheck, 50 ); + } + + // detach all dom ready events + detach(); + + // and execute any waiting functions + jQuery.ready(); + } + })(); + } + } + } + return readyList.promise( obj ); +}; + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +function isArraylike( obj ) { + var length = obj.length, + type = jQuery.type( obj ); + + if ( jQuery.isWindow( obj ) ) { + return false; + } + + if ( obj.nodeType === 1 && length ) { + return true; + } + + return type === "array" || type !== "function" && + ( length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj ); +} + +// All jQuery objects should point back to these +rootjQuery = jQuery(document); +/*! + * Sizzle CSS Selector Engine v1.10.2 + * http://sizzlejs.com/ + * + * Copyright 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2013-07-03 + */ +(function( window, undefined ) { + +var i, + support, + cachedruns, + Expr, + getText, + isXML, + compile, + outermostContext, + sortInput, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + -(new Date()), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + hasDuplicate = false, + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + return 0; + }, + + // General-purpose constants + strundefined = typeof undefined, + MAX_NEGATIVE = 1 << 31, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf if we can't use a native one + indexOf = arr.indexOf || function( elem ) { + var i = 0, + len = this.length; + for ( ; i < len; i++ ) { + if ( this[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + // http://www.w3.org/TR/css3-syntax/#characters + characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + // Loosely modeled on CSS identifier characters + // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors + // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = characterEncoding.replace( "w", "w#" ), + + // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", + + // Prefer arguments quoted, + // then not containing pseudos/brackets, + // then attribute selectors/non-parenthetical expressions, + // then anything else + // These preferences are here to reduce the number of selectors + // needing tokenize in the PSEUDO preFilter + pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rsibling = new RegExp( whitespace + "*[+~]" ), + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + characterEncoding + ")" ), + "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), + "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rescape = /'|\\/g, + + // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + // BMP codepoint + high < 0 ? + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }; + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var match, elem, m, nodeType, + // QSA vars + i, groups, old, nid, newContext, newSelector; + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + + context = context || document; + results = results || []; + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { + return []; + } + + if ( documentIsHTML && !seed ) { + + // Shortcuts + if ( (match = rquickExpr.exec( selector )) ) { + // Speed-up: Sizzle("#ID") + if ( (m = match[1]) ) { + if ( nodeType === 9 ) { + elem = context.getElementById( m ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE, Opera, and Webkit return items + // by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + } else { + // Context is not a document + if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && + contains( context, elem ) && elem.id === m ) { + results.push( elem ); + return results; + } + } + + // Speed-up: Sizzle("TAG") + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Speed-up: Sizzle(".CLASS") + } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // QSA path + if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + nid = old = expando; + newContext = context; + newSelector = nodeType === 9 && selector; + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + groups = tokenize( selector ); + + if ( (old = context.getAttribute("id")) ) { + nid = old.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", nid ); + } + nid = "[id='" + nid + "'] "; + + i = groups.length; + while ( i-- ) { + groups[i] = nid + toSelector( groups[i] ); + } + newContext = rsibling.test( selector ) && context.parentNode || context; + newSelector = groups.join(","); + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch(qsaError) { + } finally { + if ( !old ) { + context.removeAttribute("id"); + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {Function(string, Object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key += " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ +function assert( fn ) { + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + // release memory in IE + div = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = attrs.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Detect xml + * @param {Element|Object} elem An element or a document + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var doc = node ? node.ownerDocument || node : preferredDoc, + parent = doc.defaultView; + + // If no document and documentElement is available, return + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Set our document + document = doc; + docElem = doc.documentElement; + + // Support tests + documentIsHTML = !isXML( doc ); + + // Support: IE>8 + // If iframe document is assigned to "document" variable and if iframe has been reloaded, + // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 + // IE6-8 do not support the defaultView property so parent will be undefined + if ( parent && parent.attachEvent && parent !== parent.top ) { + parent.attachEvent( "onbeforeunload", function() { + setDocument(); + }); + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( div ) { + div.appendChild( doc.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + // Check if getElementsByClassName can be trusted + support.getElementsByClassName = assert(function( div ) { + div.innerHTML = "
    "; + + // Support: Safari<4 + // Catch class over-caching + div.firstChild.className = "i"; + // Support: Opera<10 + // Catch gEBCN failure to find non-leading classes + return div.getElementsByClassName("i").length === 2; + }); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !doc.getElementsByName || !doc.getElementsByName( expando ).length; + }); + + // ID find and filter + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== strundefined && documentIsHTML ) { + var m = context.getElementById( id ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== strundefined ) { + return context.getElementsByTagName( tag ); + } + } : + function( tag, context ) { + var elem, + tmp = [], + i = 0, + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See http://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( div ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // http://bugs.jquery.com/ticket/12359 + div.innerHTML = ""; + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + }); + + assert(function( div ) { + + // Support: Opera 10-12/IE8 + // ^= $= *= and empty values + // Should not select anything + // Support: Windows 8 Native Apps + // The type attribute is restricted during .innerHTML assignment + var input = doc.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "t", "" ); + + if ( div.querySelectorAll("[t^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( div, "div" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + + // Element contains another + // Purposefully does not implement inclusive descendent + // As in, an element does not contain itself + contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = docElem.compareDocumentPosition ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); + + if ( compare ) { + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === doc || contains(preferredDoc, a) ) { + return -1; + } + if ( b === doc || contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } + + // Not directly comparable, sort on existence of method + return a.compareDocumentPosition ? -1 : 1; + } : + function( a, b ) { + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + + // Parentless nodes are either documents or disconnected + } else if ( !aup || !bup ) { + return a === doc ? -1 : + b === doc ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return doc; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch(e) {} + } + + return Sizzle( expr, document, null, [elem] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val === undefined ? + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null : + val; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + for ( ; (node = elem[i]); i++ ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (see #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[5] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] && match[4] !== undefined ) { + match[2] = match[4]; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, outerCache, node, diff, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + // Seek `elem` from a previously-cached index + outerCache = parent[ expando ] || (parent[ expando ] = {}); + cache = outerCache[ type ] || []; + nodeIndex = cache[0] === dirruns && cache[1]; + diff = cache[0] === dirruns && cache[2]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + outerCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + // Use previously-cached element index if available + } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { + diff = cache[1]; + + // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) + } else { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { + // Cache the index of each encountered element + if ( useCache ) { + (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf.call( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), + // not comment, processing instructions, or others + // Thanks to Diego Perini for the nodeName shortcut + // Greater than "@" means alpha characters (specifically not starting with "#" or "?") + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) + // use getAttribute instead to test this case + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +function tokenize( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( tokens = [] ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +} + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var data, cache, outerCache, + dirkey = dirruns + " " + doneName; + + // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { + if ( (data = cache[1]) === true || data === cachedruns ) { + return data === true; + } + } else { + cache = outerCache[ dir ] = [ dirkey ]; + cache[1] = matcher( elem, context, xml ) || cachedruns; + if ( cache[1] === true ) { + return true; + } + } + } + } + } + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf.call( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + // A counter to specify which element is currently being matched + var matcherCachedRuns = 0, + bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, expandContext ) { + var elem, j, matcher, + setMatched = [], + matchedCount = 0, + i = "0", + unmatched = seed && [], + outermost = expandContext != null, + contextBackup = outermostContext, + // We must always have either seed elements or context + elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); + + if ( outermost ) { + outermostContext = context !== document && context; + cachedruns = matcherCachedRuns; + } + + // Add elements passing elementMatchers directly to results + // Keep `i` a string if there are no elements so `matchedCount` will be "00" below + for ( ; (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context, xml ) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + cachedruns = ++matcherCachedRuns; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // Apply set filters to unmatched elements + matchedCount += i; + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !group ) { + group = tokenize( selector ); + } + i = group.length; + while ( i-- ) { + cached = matcherFromTokens( group[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + } + return cached; +}; + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function select( selector, context, results, seed ) { + var i, tokens, token, type, find, + match = tokenize( selector ); + + if ( !seed ) { + // Try to minimize operations if there is only one group + if ( match.length === 1 ) { + + // Take a shortcut and set the context if the root selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + } + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && context.parentNode || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + } + + // Compile and execute a filtering function + // Provide `match` to avoid retokenization if we modified the selector above + compile( selector, match )( + seed, + context, + !documentIsHTML, + results, + rsibling.test( selector ) + ); + return results; +} + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome<14 +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( div1 ) { + // Should return 1, but returns 4 (following) + return div1.compareDocumentPosition( document.createElement("div") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( div ) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( div ) { + div.innerHTML = ""; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( div ) { + return div.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + elem[ name ] === true ? name.toLowerCase() : null; + } + }); +} + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.pseudos; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + +})( window ); +// String to Object options format cache +var optionsCache = {}; + +// Convert String-formatted options into Object-formatted ones and store in cache +function createOptions( options ) { + var object = optionsCache[ options ] = {}; + jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { + object[ flag ] = true; + }); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + ( optionsCache[ options ] || createOptions( options ) ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + // Last fire value (for non-forgettable lists) + memory, + // Flag to know if list was already fired + fired, + // End of the loop when firing + firingLength, + // Index of currently firing callback (modified by remove if needed) + firingIndex, + // First callback to fire (used internally by add and fireWith) + firingStart, + // Actual callback list + list = [], + // Stack of fire calls for repeatable lists + stack = !options.once && [], + // Fire callbacks + fire = function( data ) { + memory = options.memory && data; + fired = true; + firingIndex = firingStart || 0; + firingStart = 0; + firingLength = list.length; + firing = true; + for ( ; list && firingIndex < firingLength; firingIndex++ ) { + if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { + memory = false; // To prevent further calls using add + break; + } + } + firing = false; + if ( list ) { + if ( stack ) { + if ( stack.length ) { + fire( stack.shift() ); + } + } else if ( memory ) { + list = []; + } else { + self.disable(); + } + } + }, + // Actual Callbacks object + self = { + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + // First, we save the current length + var start = list.length; + (function add( args ) { + jQuery.each( args, function( _, arg ) { + var type = jQuery.type( arg ); + if ( type === "function" ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && type !== "string" ) { + // Inspect recursively + add( arg ); + } + }); + })( arguments ); + // Do we need to add the callbacks to the + // current firing batch? + if ( firing ) { + firingLength = list.length; + // With memory, if we're not firing then + // we should call right away + } else if ( memory ) { + firingStart = start; + fire( memory ); + } + } + return this; + }, + // Remove a callback from the list + remove: function() { + if ( list ) { + jQuery.each( arguments, function( _, arg ) { + var index; + while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + // Handle firing indexes + if ( firing ) { + if ( index <= firingLength ) { + firingLength--; + } + if ( index <= firingIndex ) { + firingIndex--; + } + } + } + }); + } + return this; + }, + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); + }, + // Remove all callbacks from the list + empty: function() { + list = []; + firingLength = 0; + return this; + }, + // Have the list do nothing anymore + disable: function() { + list = stack = memory = undefined; + return this; + }, + // Is it disabled? + disabled: function() { + return !list; + }, + // Lock the list in its current state + lock: function() { + stack = undefined; + if ( !memory ) { + self.disable(); + } + return this; + }, + // Is it locked? + locked: function() { + return !stack; + }, + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( list && ( !fired || stack ) ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + if ( firing ) { + stack.push( args ); + } else { + fire( args ); + } + } + return this; + }, + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; +jQuery.extend({ + + Deferred: function( func ) { + var tuples = [ + // action, add listener, listener list, final state + [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], + [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], + [ "notify", "progress", jQuery.Callbacks("memory") ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + then: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + return jQuery.Deferred(function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + var action = tuple[ 0 ], + fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[ tuple[1] ](function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .done( newDefer.resolve ) + .fail( newDefer.reject ) + .progress( newDefer.notify ); + } else { + newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); + } + }); + }); + fns = null; + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 3 ]; + + // promise[ done | fail | progress ] = list.add + promise[ tuple[1] ] = list.add; + + // Handle state + if ( stateString ) { + list.add(function() { + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + } + + // deferred[ resolve | reject | notify ] + deferred[ tuple[0] ] = function() { + deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); + return this; + }; + deferred[ tuple[0] + "With" ] = list.fireWith; + }); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( subordinate /* , ..., subordinateN */ ) { + var i = 0, + resolveValues = core_slice.call( arguments ), + length = resolveValues.length, + + // the count of uncompleted subordinates + remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, + + // the master Deferred. If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + + // Update function for both resolve and progress values + updateFunc = function( i, contexts, values ) { + return function( value ) { + contexts[ i ] = this; + values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; + if( values === progressValues ) { + deferred.notifyWith( contexts, values ); + } else if ( !( --remaining ) ) { + deferred.resolveWith( contexts, values ); + } + }; + }, + + progressValues, progressContexts, resolveContexts; + + // add listeners to Deferred subordinates; treat others as resolved + if ( length > 1 ) { + progressValues = new Array( length ); + progressContexts = new Array( length ); + resolveContexts = new Array( length ); + for ( ; i < length; i++ ) { + if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { + resolveValues[ i ].promise() + .done( updateFunc( i, resolveContexts, resolveValues ) ) + .fail( deferred.reject ) + .progress( updateFunc( i, progressContexts, progressValues ) ); + } else { + --remaining; + } + } + } + + // if we're not waiting on anything, resolve the master + if ( !remaining ) { + deferred.resolveWith( resolveContexts, resolveValues ); + } + + return deferred.promise(); + } +}); +jQuery.support = (function( support ) { + + var all, a, input, select, fragment, opt, eventName, isSupported, i, + div = document.createElement("div"); + + // Setup + div.setAttribute( "className", "t" ); + div.innerHTML = "
    a"; + + // Finish early in limited (non-browser) environments + all = div.getElementsByTagName("*") || []; + a = div.getElementsByTagName("a")[ 0 ]; + if ( !a || !a.style || !all.length ) { + return support; + } + + // First batch of tests + select = document.createElement("select"); + opt = select.appendChild( document.createElement("option") ); + input = div.getElementsByTagName("input")[ 0 ]; + + a.style.cssText = "top:1px;float:left;opacity:.5"; + + // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) + support.getSetAttribute = div.className !== "t"; + + // IE strips leading whitespace when .innerHTML is used + support.leadingWhitespace = div.firstChild.nodeType === 3; + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + support.tbody = !div.getElementsByTagName("tbody").length; + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + support.htmlSerialize = !!div.getElementsByTagName("link").length; + + // Get the style information from getAttribute + // (IE uses .cssText instead) + support.style = /top/.test( a.getAttribute("style") ); + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + support.hrefNormalized = a.getAttribute("href") === "/a"; + + // Make sure that element opacity exists + // (IE uses filter instead) + // Use a regex to work around a WebKit issue. See #5145 + support.opacity = /^0.5/.test( a.style.opacity ); + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + support.cssFloat = !!a.style.cssFloat; + + // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) + support.checkOn = !!input.value; + + // Make sure that a selected-by-default option has a working selected property. + // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) + support.optSelected = opt.selected; + + // Tests for enctype support on a form (#6743) + support.enctype = !!document.createElement("form").enctype; + + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; + + // Will be defined later + support.inlineBlockNeedsLayout = false; + support.shrinkWrapBlocks = false; + support.pixelPosition = false; + support.deleteExpando = true; + support.noCloneEvent = true; + support.reliableMarginRight = true; + support.boxSizingReliable = true; + + // Make sure checked status is properly cloned + input.checked = true; + support.noCloneChecked = input.cloneNode( true ).checked; + + // Make sure that the options inside disabled selects aren't marked as disabled + // (WebKit marks them as disabled) + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Support: IE<9 + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + + // Check if we can trust getAttribute("value") + input = document.createElement("input"); + input.setAttribute( "value", "" ); + support.input = input.getAttribute( "value" ) === ""; + + // Check if an input maintains its value after becoming a radio + input.value = "t"; + input.setAttribute( "type", "radio" ); + support.radioValue = input.value === "t"; + + // #11217 - WebKit loses check when the name is after the checked attribute + input.setAttribute( "checked", "t" ); + input.setAttribute( "name", "t" ); + + fragment = document.createDocumentFragment(); + fragment.appendChild( input ); + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + support.appendChecked = input.checked; + + // WebKit doesn't clone checked state correctly in fragments + support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE<9 + // Opera does not clone events (and typeof div.attachEvent === undefined). + // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() + if ( div.attachEvent ) { + div.attachEvent( "onclick", function() { + support.noCloneEvent = false; + }); + + div.cloneNode( true ).click(); + } + + // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) + for ( i in { submit: true, change: true, focusin: true }) { + div.setAttribute( eventName = "on" + i, "t" ); + + support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; + } + + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + // Support: IE<9 + // Iteration over object's inherited properties before its own. + for ( i in jQuery( support ) ) { + break; + } + support.ownLast = i !== "0"; + + // Run tests that need a body at doc ready + jQuery(function() { + var container, marginDiv, tds, + divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", + body = document.getElementsByTagName("body")[0]; + + if ( !body ) { + // Return for frameset docs that don't have a body + return; + } + + container = document.createElement("div"); + container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; + + body.appendChild( container ).appendChild( div ); + + // Support: IE8 + // Check if table cells still have offsetWidth/Height when they are set + // to display:none and there are still other visible table cells in a + // table row; if so, offsetWidth/Height are not reliable for use when + // determining if an element has been hidden directly using + // display:none (it is still safe to use offsets if a parent element is + // hidden; don safety goggles and see bug #4512 for more information). + div.innerHTML = "
    t
    "; + tds = div.getElementsByTagName("td"); + tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; + isSupported = ( tds[ 0 ].offsetHeight === 0 ); + + tds[ 0 ].style.display = ""; + tds[ 1 ].style.display = "none"; + + // Support: IE8 + // Check if empty table cells still have offsetWidth/Height + support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); + + // Check box-sizing and margin behavior. + div.innerHTML = ""; + div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; + + // Workaround failing boxSizing test due to offsetWidth returning wrong value + // with some non-1 values of body zoom, ticket #13543 + jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { + support.boxSizing = div.offsetWidth === 4; + }); + + // Use window.getComputedStyle because jsdom on node.js will break without it. + if ( window.getComputedStyle ) { + support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; + support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; + + // Check if div with explicit width and no margin-right incorrectly + // gets computed margin-right based on width of container. (#3333) + // Fails in WebKit before Feb 2011 nightlies + // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right + marginDiv = div.appendChild( document.createElement("div") ); + marginDiv.style.cssText = div.style.cssText = divReset; + marginDiv.style.marginRight = marginDiv.style.width = "0"; + div.style.width = "1px"; + + support.reliableMarginRight = + !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); + } + + if ( typeof div.style.zoom !== core_strundefined ) { + // Support: IE<8 + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + div.innerHTML = ""; + div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; + support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); + + // Support: IE6 + // Check if elements with layout shrink-wrap their children + div.style.display = "block"; + div.innerHTML = "
    "; + div.firstChild.style.width = "5px"; + support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); + + if ( support.inlineBlockNeedsLayout ) { + // Prevent IE 6 from affecting layout for positioned elements #11048 + // Prevent IE from shrinking the body in IE 7 mode #12869 + // Support: IE<8 + body.style.zoom = 1; + } + } + + body.removeChild( container ); + + // Null elements to avoid leaks in IE + container = div = tds = marginDiv = null; + }); + + // Null elements to avoid leaks in IE + all = select = fragment = opt = a = input = null; + + return support; +})({}); + +var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, + rmultiDash = /([A-Z])/g; + +function internalData( elem, name, data, pvt /* Internal Use Only */ ){ + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var ret, thisCache, + internalKey = jQuery.expando, + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; + } else { + id = internalKey; + } + } + + if ( !cache[ id ] ) { + // Avoid exposing jQuery metadata on plain JS objects when the object + // is serialized using JSON.stringify + cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ] = jQuery.extend( cache[ id ], name ); + } else { + cache[ id ].data = jQuery.extend( cache[ id ].data, name ); + } + } + + thisCache = cache[ id ]; + + // jQuery data() is stored in a separate object inside the object's internal data + // cache in order to avoid key collisions between internal data and user-defined + // data. + if ( !pvt ) { + if ( !thisCache.data ) { + thisCache.data = {}; + } + + thisCache = thisCache.data; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( typeof name === "string" ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; +} + +function internalRemoveData( elem, name, pvt ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, i, + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ] : cache[ id ].data; + + if ( thisCache ) { + + // Support array or space separated string names for data keys + if ( !jQuery.isArray( name ) ) { + + // try the string as a key before any manipulation + if ( name in thisCache ) { + name = [ name ]; + } else { + + // split the camel cased version by spaces unless a key with the spaces exists + name = jQuery.camelCase( name ); + if ( name in thisCache ) { + name = [ name ]; + } else { + name = name.split(" "); + } + } + } else { + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = name.concat( jQuery.map( name, jQuery.camelCase ) ); + } + + i = name.length; + while ( i-- ) { + delete thisCache[ name[i] ]; + } + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( !pvt ) { + delete cache[ id ].data; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject( cache[ id ] ) ) { + return; + } + } + + // Destroy the cache + if ( isNode ) { + jQuery.cleanData( [ elem ], true ); + + // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) + /* jshint eqeqeq: false */ + } else if ( jQuery.support.deleteExpando || cache != cache.window ) { + /* jshint eqeqeq: true */ + delete cache[ id ]; + + // When all else fails, null + } else { + cache[ id ] = null; + } +} + +jQuery.extend({ + cache: {}, + + // The following elements throw uncatchable exceptions if you + // attempt to add expando properties to them. + noData: { + "applet": true, + "embed": true, + // Ban all objects except for Flash (which handle expandos) + "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data ) { + return internalData( elem, name, data ); + }, + + removeData: function( elem, name ) { + return internalRemoveData( elem, name ); + }, + + // For internal use only. + _data: function( elem, name, data ) { + return internalData( elem, name, data, true ); + }, + + _removeData: function( elem, name ) { + return internalRemoveData( elem, name, true ); + }, + + // A method for determining if a DOM node can handle the data expando + acceptData: function( elem ) { + // Do not set data on non-element because it will not be cleared (#8335). + if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { + return false; + } + + var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; + + // nodes accept data unless otherwise specified; rejection can be conditional + return !noData || noData !== true && elem.getAttribute("classid") === noData; + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var attrs, name, + data = null, + i = 0, + elem = this[0]; + + // Special expections of .data basically thwart jQuery.access, + // so implement the relevant behavior ourselves + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = jQuery.data( elem ); + + if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { + attrs = elem.attributes; + for ( ; i < attrs.length; i++ ) { + name = attrs[i].name; + + if ( name.indexOf("data-") === 0 ) { + name = jQuery.camelCase( name.slice(5) ); + + dataAttr( elem, name, data[ name ] ); + } + } + jQuery._data( elem, "parsedAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + return arguments.length > 1 ? + + // Sets one value + this.each(function() { + jQuery.data( this, key, value ); + }) : + + // Gets one value + // Try to fetch any internally stored data first + elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); + +function dataAttr( elem, key, data ) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + + var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + // Only convert to a number if it doesn't change the string + +data + "" === data ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// checks a cache object for emptiness +function isEmptyDataObject( obj ) { + var name; + for ( name in obj ) { + + // if the public data object is empty, the private is still empty + if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { + continue; + } + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} +jQuery.extend({ + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = jQuery._data( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || jQuery.isArray(data) ) { + queue = jQuery._data( elem, type, jQuery.makeArray(data) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // not intended for public consumption - generates a queueHooks object, or returns the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return jQuery._data( elem, key ) || jQuery._data( elem, key, { + empty: jQuery.Callbacks("once memory").add(function() { + jQuery._removeData( elem, type + "queue" ); + jQuery._removeData( elem, key ); + }) + }); + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[0], type ); + } + + return data === undefined ? + this : + this.each(function() { + var queue = jQuery.queue( this, type, data ); + + // ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + // Based off of the plugin by Clint Helfers, with permission. + // http://blindsignals.com/index.php/2009/07/jquery-delay/ + delay: function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = setTimeout( next, time ); + hooks.stop = function() { + clearTimeout( timeout ); + }; + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while( i-- ) { + tmp = jQuery._data( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +}); +var nodeHook, boolHook, + rclass = /[\t\r\n\f]/g, + rreturn = /\r/g, + rfocusable = /^(?:input|select|textarea|button|object)$/i, + rclickable = /^(?:a|area)$/i, + ruseDefault = /^(?:checked|selected)$/i, + getSetAttribute = jQuery.support.getSetAttribute, + getSetInput = jQuery.support.input; + +jQuery.fn.extend({ + attr: function( name, value ) { + return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }, + + prop: function( name, value ) { + return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }, + + addClass: function( value ) { + var classes, elem, cur, clazz, j, + i = 0, + len = this.length, + proceed = typeof value === "string" && value; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call( this, j, this.className ) ); + }); + } + + if ( proceed ) { + // The disjunction here is for better compressibility (see removeClass) + classes = ( value || "" ).match( core_rnotwhite ) || []; + + for ( ; i < len; i++ ) { + elem = this[ i ]; + cur = elem.nodeType === 1 && ( elem.className ? + ( " " + elem.className + " " ).replace( rclass, " " ) : + " " + ); + + if ( cur ) { + j = 0; + while ( (clazz = classes[j++]) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + elem.className = jQuery.trim( cur ); + + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, clazz, j, + i = 0, + len = this.length, + proceed = arguments.length === 0 || typeof value === "string" && value; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call( this, j, this.className ) ); + }); + } + if ( proceed ) { + classes = ( value || "" ).match( core_rnotwhite ) || []; + + for ( ; i < len; i++ ) { + elem = this[ i ]; + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( elem.className ? + ( " " + elem.className + " " ).replace( rclass, " " ) : + "" + ); + + if ( cur ) { + j = 0; + while ( (clazz = classes[j++]) ) { + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + elem.className = value ? jQuery.trim( cur ) : ""; + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value; + + if ( typeof stateVal === "boolean" && type === "string" ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + classNames = value.match( core_rnotwhite ) || []; + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( type === core_strundefined || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // If the element has a class name or if we're passed "false", + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }, + + hasClass: function( selector ) { + var className = " " + selector + " ", + i = 0, + l = this.length; + for ( ; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { + return true; + } + } + + return false; + }, + + val: function( value ) { + var ret, hooks, isFunction, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return; + } + + isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + } +}); + +jQuery.extend({ + valHooks: { + option: { + get: function( elem ) { + // Use proper attribute retrieval(#6932, #12072) + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + elem.text; + } + }, + select: { + get: function( elem ) { + var value, option, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one" || index < 0, + values = one ? null : [], + max = one ? index + 1 : options.length, + i = index < 0 ? + max : + one ? index : 0; + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // oldIE doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + // Don't return options that are disabled or in a disabled optgroup + ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && + ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { + optionSet = true; + } + } + + // force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + }, + + attr: function( elem, name, value ) { + var hooks, ret, + nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === core_strundefined ) { + return jQuery.prop( elem, name, value ); + } + + // All attributes are lowercase + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + name = name.toLowerCase(); + hooks = jQuery.attrHooks[ name ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + + } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, value + "" ); + return value; + } + + } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? + undefined : + ret; + } + }, + + removeAttr: function( elem, value ) { + var name, propName, + i = 0, + attrNames = value && value.match( core_rnotwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( (name = attrNames[i++]) ) { + propName = jQuery.propFix[ name ] || name; + + // Boolean attributes get special treatment (#10870) + if ( jQuery.expr.match.bool.test( name ) ) { + // Set corresponding property to false + if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { + elem[ propName ] = false; + // Support: IE<9 + // Also clear defaultChecked/defaultSelected (if appropriate) + } else { + elem[ jQuery.camelCase( "default-" + name ) ] = + elem[ propName ] = false; + } + + // See #9699 for explanation of this approach (setting first, then removal) + } else { + jQuery.attr( elem, name, "" ); + } + + elem.removeAttribute( getSetAttribute ? name : propName ); + } + } + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { + // Setting the type on a radio button after the value resets the value in IE6-9 + // Reset value to default in case type is set after value during creation + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + }, + + prop: function( elem, name, value ) { + var ret, hooks, notxml, + nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? + ret : + ( elem[ name ] = value ); + + } else { + return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? + ret : + elem[ name ]; + } + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set + // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + return tabindex ? + parseInt( tabindex, 10 ) : + rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? + 0 : + -1; + } + } + } +}); + +// Hooks for boolean attributes +boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { + // IE<8 needs the *property* name + elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); + + // Use defaultChecked and defaultSelected for oldIE + } else { + elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; + } + + return name; + } +}; +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { + var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; + + jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? + function( elem, name, isXML ) { + var fn = jQuery.expr.attrHandle[ name ], + ret = isXML ? + undefined : + /* jshint eqeqeq: false */ + (jQuery.expr.attrHandle[ name ] = undefined) != + getter( elem, name, isXML ) ? + + name.toLowerCase() : + null; + jQuery.expr.attrHandle[ name ] = fn; + return ret; + } : + function( elem, name, isXML ) { + return isXML ? + undefined : + elem[ jQuery.camelCase( "default-" + name ) ] ? + name.toLowerCase() : + null; + }; +}); + +// fix oldIE attroperties +if ( !getSetInput || !getSetAttribute ) { + jQuery.attrHooks.value = { + set: function( elem, value, name ) { + if ( jQuery.nodeName( elem, "input" ) ) { + // Does not return so that setAttribute is also used + elem.defaultValue = value; + } else { + // Use nodeHook if defined (#1954); otherwise setAttribute is fine + return nodeHook && nodeHook.set( elem, value, name ); + } + } + }; +} + +// IE6/7 do not support getting/setting some attributes with get/setAttribute +if ( !getSetAttribute ) { + + // Use this for any attribute in IE6/7 + // This fixes almost every IE6/7 issue + nodeHook = { + set: function( elem, value, name ) { + // Set the existing or create a new attribute node + var ret = elem.getAttributeNode( name ); + if ( !ret ) { + elem.setAttributeNode( + (ret = elem.ownerDocument.createAttribute( name )) + ); + } + + ret.value = value += ""; + + // Break association with cloned elements by also using setAttribute (#9646) + return name === "value" || value === elem.getAttribute( name ) ? + value : + undefined; + } + }; + jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = + // Some attributes are constructed with empty-string values when not defined + function( elem, name, isXML ) { + var ret; + return isXML ? + undefined : + (ret = elem.getAttributeNode( name )) && ret.value !== "" ? + ret.value : + null; + }; + jQuery.valHooks.button = { + get: function( elem, name ) { + var ret = elem.getAttributeNode( name ); + return ret && ret.specified ? + ret.value : + undefined; + }, + set: nodeHook.set + }; + + // Set contenteditable to false on removals(#10429) + // Setting to empty string throws an error as an invalid value + jQuery.attrHooks.contenteditable = { + set: function( elem, value, name ) { + nodeHook.set( elem, value === "" ? false : value, name ); + } + }; + + // Set width and height to auto instead of 0 on empty string( Bug #8150 ) + // This is for removals + jQuery.each([ "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = { + set: function( elem, value ) { + if ( value === "" ) { + elem.setAttribute( name, "auto" ); + return value; + } + } + }; + }); +} + + +// Some attributes require a special call on IE +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !jQuery.support.hrefNormalized ) { + // href/src property should get the full normalized URL (#10299/#12915) + jQuery.each([ "href", "src" ], function( i, name ) { + jQuery.propHooks[ name ] = { + get: function( elem ) { + return elem.getAttribute( name, 4 ); + } + }; + }); +} + +if ( !jQuery.support.style ) { + jQuery.attrHooks.style = { + get: function( elem ) { + // Return undefined in the case of empty string + // Note: IE uppercases css property names, but if we were to .toLowerCase() + // .cssText, that would destroy case senstitivity in URL's, like in "background" + return elem.style.cssText || undefined; + }, + set: function( elem, value ) { + return ( elem.style.cssText = value + "" ); + } + }; +} + +// Safari mis-reports the default selected property of an option +// Accessing the parent's selectedIndex property fixes it +if ( !jQuery.support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + var parent = elem.parentNode; + + if ( parent ) { + parent.selectedIndex; + + // Make sure that it also works with optgroups, see #5701 + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + return null; + } + }; +} + +jQuery.each([ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" +], function() { + jQuery.propFix[ this.toLowerCase() ] = this; +}); + +// IE6/7 call enctype encoding +if ( !jQuery.support.enctype ) { + jQuery.propFix.enctype = "encoding"; +} + +// Radios and checkboxes getter/setter +jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( jQuery.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); + } + } + }; + if ( !jQuery.support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + // Support: Webkit + // "" is returned instead of "on" if a value isn't specified + return elem.getAttribute("value") === null ? "on" : elem.value; + }; + } +}); +var rformElems = /^(?:input|select|textarea)$/i, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + var tmp, events, t, handleObjIn, + special, eventHandle, handleObj, + handlers, type, namespaces, origType, + elemData = jQuery._data( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !(events = elemData.events) ) { + events = elemData.events = {}; + } + if ( !(eventHandle = elemData.handle) ) { + eventHandle = elemData.handle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : + undefined; + }; + // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( core_rnotwhite ) || [""]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend({ + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join(".") + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !(handlers = events[ type ]) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + var j, handleObj, tmp, + origCount, t, events, + special, handlers, type, + namespaces, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ); + + if ( !elemData || !(events = elemData.events) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( core_rnotwhite ) || [""]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + delete elemData.handle; + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery._removeData( elem, "events" ); + } + }, + + trigger: function( event, data, elem, onlyHandlers ) { + var handle, ontype, cur, + bubbleType, special, tmp, i, + eventPath = [ elem || document ], + type = core_hasOwn.call( event, "type" ) ? event.type : event, + namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf(":") < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join("."); + event.namespace_re = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === (elem.ownerDocument || document) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { + event.preventDefault(); + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && + jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + try { + elem[ type ](); + } catch ( e ) { + // IE<9 dies on focus/blur to hidden element (#1486,#12518) + // only reproducible on winXP IE8 native, not IE9 in IE8 mode + } + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, ret, handleObj, matched, j, + handlerQueue = [], + args = core_slice.call( arguments ), + handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) + .apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( (event.result = ret) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var sel, handleObj, matches, i, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // Avoid non-left-click bubbling in Firefox (#3861) + if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { + + /* jshint eqeqeq: false */ + for ( ; cur != this; cur = cur.parentNode || this ) { + /* jshint eqeqeq: true */ + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) >= 0 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push({ elem: cur, handlers: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); + } + + return handlerQueue; + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: IE<9 + // Fix target property (#1925) + if ( !event.target ) { + event.target = originalEvent.srcElement || document; + } + + // Support: Chrome 23+, Safari? + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Support: IE<9 + // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) + event.metaKey = !!event.metaKey; + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function( event, original ) { + var body, eventDoc, doc, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && fromElement ) { + event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + special: { + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + try { + this.focus(); + return false; + } catch ( e ) { + // Support: IE<9 + // If we error on focus to hidden element (#1486, #12518), + // let .trigger() run the handlers + } + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Even when returnValue equals to undefined Firefox will still show alert + if ( event.result !== undefined ) { + event.originalEvent.returnValue = event.result; + } + } + } + }, + + simulate: function( type, elem, event, bubble ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true, + originalEvent: {} + } + ); + if ( bubble ) { + jQuery.event.trigger( e, null, elem ); + } else { + jQuery.event.dispatch.call( elem, e ); + } + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + var name = "on" + type; + + if ( elem.detachEvent ) { + + // #8545, #7054, preventing memory leaks for custom events in IE6-8 + // detachEvent needed property on element, by name of that event, to properly expose it to GC + if ( typeof elem[ name ] === core_strundefined ) { + elem[ name ] = null; + } + + elem.detachEvent( name, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !(this instanceof jQuery.Event) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + if ( !e ) { + return; + } + + // If preventDefault exists, run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // Support: IE + // Otherwise set the returnValue property of the original event to false + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + if ( !e ) { + return; + } + // If stopPropagation exists, run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + + // Support: IE + // Set the cancelBubble property of the original event to true + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || (related !== target && !jQuery.contains( target, related )) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +}); + +// IE submit delegation +if ( !jQuery.support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( this, "click._submit keypress._submit", function( e ) { + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; + if ( form && !jQuery._data( form, "submitBubbles" ) ) { + jQuery.event.add( form, "submit._submit", function( event ) { + event._submit_bubble = true; + }); + jQuery._data( form, "submitBubbles", true ); + } + }); + // return undefined since we don't need an event listener + }, + + postDispatch: function( event ) { + // If form was submitted by the user, bubble the event up the tree + if ( event._submit_bubble ) { + delete event._submit_bubble; + if ( this.parentNode && !event.isTrigger ) { + jQuery.event.simulate( "submit", this.parentNode, event, true ); + } + } + }, + + teardown: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove( this, "._submit" ); + } + }; +} + +// IE change delegation and checkbox/radio fix +if ( !jQuery.support.changeBubbles ) { + + jQuery.event.special.change = { + + setup: function() { + + if ( rformElems.test( this.nodeName ) ) { + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if ( this.type === "checkbox" || this.type === "radio" ) { + jQuery.event.add( this, "propertychange._change", function( event ) { + if ( event.originalEvent.propertyName === "checked" ) { + this._just_changed = true; + } + }); + jQuery.event.add( this, "click._change", function( event ) { + if ( this._just_changed && !event.isTrigger ) { + this._just_changed = false; + } + // Allow triggered, simulated change events (#11500) + jQuery.event.simulate( "change", this, event, true ); + }); + } + return false; + } + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add( this, "beforeactivate._change", function( e ) { + var elem = e.target; + + if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { + jQuery.event.add( elem, "change._change", function( event ) { + if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { + jQuery.event.simulate( "change", this.parentNode, event, true ); + } + }); + jQuery._data( elem, "changeBubbles", true ); + } + }); + }, + + handle: function( event ) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { + return event.handleObj.handler.apply( this, arguments ); + } + }, + + teardown: function() { + jQuery.event.remove( this, "._change" ); + + return !rformElems.test( this.nodeName ); + } + }; +} + +// Create "bubbling" focus and blur events +if ( !jQuery.support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler while someone wants focusin/focusout + var attaches = 0, + handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + if ( attaches++ === 0 ) { + document.addEventListener( orig, handler, true ); + } + }, + teardown: function() { + if ( --attaches === 0 ) { + document.removeEventListener( orig, handler, true ); + } + } + }; + }); +} + +jQuery.fn.extend({ + + on: function( types, selector, data, fn, /*INTERNAL*/ one ) { + var type, origFn; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + this.on( type, selector, data, types[ type ], one ); + } + return this; + } + + if ( data == null && fn == null ) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return this.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + }); + }, + one: function( types, selector, data, fn ) { + return this.on( types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each(function() { + jQuery.event.remove( this, types, fn, selector ); + }); + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + triggerHandler: function( type, data ) { + var elem = this[0]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +}); +var isSimple = /^.[^:#\[\.,]*$/, + rparentsprev = /^(?:parents|prev(?:Until|All))/, + rneedsContext = jQuery.expr.match.needsContext, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend({ + find: function( selector ) { + var i, + ret = [], + self = this, + len = self.length; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }) ); + } + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; + }, + + has: function( target ) { + var i, + targets = jQuery( target, this ), + len = targets.length; + + return this.filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + not: function( selector ) { + return this.pushStack( winnow(this, selector || [], true) ); + }, + + filter: function( selector ) { + return this.pushStack( winnow(this, selector || [], false) ); + }, + + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + ret = [], + pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( ; i < l; i++ ) { + for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { + // Always skip document fragments + if ( cur.nodeType < 11 && (pos ? + pos.index(cur) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector(cur, selectors)) ) { + + cur = ret.push( cur ); + break; + } + } + } + + return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( jQuery.unique(all) ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter(selector) + ); + } +}); + +function sibling( cur, dir ) { + do { + cur = cur[ dir ]; + } while ( cur && cur.nodeType !== 1 ); + + return cur; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + if ( this.length > 1 ) { + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + ret = jQuery.unique( ret ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + } + + return this.pushStack( ret ); + }; +}); + +jQuery.extend({ + filter: function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 ? + jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : + jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + })); + }, + + dir: function( elem, dir, until ) { + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + /* jshint -W018 */ + return !!qualifier.call( elem, i, elem ) !== not; + }); + + } + + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + }); + + } + + if ( typeof qualifier === "string" ) { + if ( isSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + qualifier = jQuery.filter( qualifier, elements ); + } + + return jQuery.grep( elements, function( elem ) { + return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; + }); +} +function createSafeFragment( document ) { + var list = nodeNames.split( "|" ), + safeFrag = document.createDocumentFragment(); + + if ( safeFrag.createElement ) { + while ( list.length ) { + safeFrag.createElement( + list.pop() + ); + } + } + return safeFrag; +} + +var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", + rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, + rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + rtagName = /<([\w:]+)/, + rtbody = /\s*$/g, + + // We have to close these tags to support XHTML (#13200) + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
    ", "
    " ], + area: [ 1, "", "" ], + param: [ 1, "", "" ], + thead: [ 1, "", "
    " ], + tr: [ 2, "", "
    " ], + col: [ 2, "", "
    " ], + td: [ 3, "", "
    " ], + + // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, + // unless wrapped in a div with non-breaking characters in front of it. + _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
    ", "
    " ] + }, + safeFragment = createSafeFragment( document ), + fragmentDiv = safeFragment.appendChild( document.createElement("div") ); + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +jQuery.fn.extend({ + text: function( value ) { + return jQuery.access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); + }, null, value, arguments.length ); + }, + + append: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + }); + }, + + prepend: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + }); + }, + + before: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + }); + }, + + after: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + }); + }, + + // keepData is for internal use only--do not document + remove: function( selector, keepData ) { + var elem, + elems = selector ? jQuery.filter( selector, this ) : this, + i = 0; + + for ( ; (elem = elems[i]) != null; i++ ) { + + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem ) ); + } + + if ( elem.parentNode ) { + if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { + setGlobalEval( getAll( elem, "script" ) ); + } + elem.parentNode.removeChild( elem ); + } + } + + return this; + }, + + empty: function() { + var elem, + i = 0; + + for ( ; (elem = this[i]) != null; i++ ) { + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + + // If this is a select, ensure that it displays empty (#12336) + // Support: IE<9 + if ( elem.options && jQuery.nodeName( elem, "select" ) ) { + elem.options.length = 0; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function () { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }, + + html: function( value ) { + return jQuery.access( this, function( value ) { + var elem = this[0] || {}, + i = 0, + l = this.length; + + if ( value === undefined ) { + return elem.nodeType === 1 ? + elem.innerHTML.replace( rinlinejQuery, "" ) : + undefined; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && + ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && + !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { + + value = value.replace( rxhtmlTag, "<$1>" ); + + try { + for (; i < l; i++ ) { + // Remove element nodes and prevent memory leaks + elem = this[i] || {}; + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch(e) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var + // Snapshot the DOM in case .domManip sweeps something relevant into its fragment + args = jQuery.map( this, function( elem ) { + return [ elem.nextSibling, elem.parentNode ]; + }), + i = 0; + + // Make the changes, replacing each context element with the new content + this.domManip( arguments, function( elem ) { + var next = args[ i++ ], + parent = args[ i++ ]; + + if ( parent ) { + // Don't use the snapshot next if it has moved (#13810) + if ( next && next.parentNode !== parent ) { + next = this.nextSibling; + } + jQuery( this ).remove(); + parent.insertBefore( elem, next ); + } + // Allow new content to include elements from the context set + }, true ); + + // Force removal if there was no new content (e.g., from empty arguments) + return i ? this : this.remove(); + }, + + detach: function( selector ) { + return this.remove( selector, true ); + }, + + domManip: function( args, callback, allowIntersection ) { + + // Flatten any nested arrays + args = core_concat.apply( [], args ); + + var first, node, hasScripts, + scripts, doc, fragment, + i = 0, + l = this.length, + set = this, + iNoClone = l - 1, + value = args[0], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { + return this.each(function( index ) { + var self = set.eq( index ); + if ( isFunction ) { + args[0] = value.call( this, index, self.html() ); + } + self.domManip( args, callback, allowIntersection ); + }); + } + + if ( l ) { + fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + if ( first ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( this[i], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { + + if ( node.src ) { + // Hope ajax is available... + jQuery._evalUrl( node.src ); + } else { + jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); + } + } + } + } + + // Fix #11809: Avoid leaking memory + fragment = first = null; + } + } + + return this; + } +}); + +// Support: IE<8 +// Manipulating tables requires a tbody +function manipulationTarget( elem, content ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? + + elem.getElementsByTagName("tbody")[0] || + elem.appendChild( elem.ownerDocument.createElement("tbody") ) : + elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + if ( match ) { + elem.type = match[1]; + } else { + elem.removeAttribute("type"); + } + return elem; +} + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var elem, + i = 0; + for ( ; (elem = elems[i]) != null; i++ ) { + jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); + } +} + +function cloneCopyEvent( src, dest ) { + + if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { + return; + } + + var type, i, l, + oldData = jQuery._data( src ), + curData = jQuery._data( dest, oldData ), + events = oldData.events; + + if ( events ) { + delete curData.handle; + curData.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + + // make the cloned public data object a copy from the original + if ( curData.data ) { + curData.data = jQuery.extend( {}, curData.data ); + } +} + +function fixCloneNodeIssues( src, dest ) { + var nodeName, e, data; + + // We do not need to do anything for non-Elements + if ( dest.nodeType !== 1 ) { + return; + } + + nodeName = dest.nodeName.toLowerCase(); + + // IE6-8 copies events bound via attachEvent when using cloneNode. + if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { + data = jQuery._data( dest ); + + for ( e in data.events ) { + jQuery.removeEvent( dest, e, data.handle ); + } + + // Event data gets referenced instead of copied if the expando gets copied too + dest.removeAttribute( jQuery.expando ); + } + + // IE blanks contents when cloning scripts, and tries to evaluate newly-set text + if ( nodeName === "script" && dest.text !== src.text ) { + disableScript( dest ).text = src.text; + restoreScript( dest ); + + // IE6-10 improperly clones children of object elements using classid. + // IE10 throws NoModificationAllowedError if parent is null, #12132. + } else if ( nodeName === "object" ) { + if ( dest.parentNode ) { + dest.outerHTML = src.outerHTML; + } + + // This path appears unavoidable for IE9. When cloning an object + // element in IE9, the outerHTML strategy above is not sufficient. + // If the src has innerHTML and the destination does not, + // copy the src.innerHTML into the dest.innerHTML. #10324 + if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { + dest.innerHTML = src.innerHTML; + } + + } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { + // IE6-8 fails to persist the checked state of a cloned checkbox + // or radio button. Worse, IE6-7 fail to give the cloned element + // a checked appearance if the defaultChecked value isn't also set + + dest.defaultChecked = dest.checked = src.checked; + + // IE6-7 get confused and end up setting the value of a cloned + // checkbox/radio button to an empty string instead of "on" + if ( dest.value !== src.value ) { + dest.value = src.value; + } + + // IE6-8 fails to return the selected option to the default selected + // state when cloning options + } else if ( nodeName === "option" ) { + dest.defaultSelected = dest.selected = src.defaultSelected; + + // IE6-8 fails to set the defaultValue to the correct value when + // cloning other types of input fields + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +jQuery.each({ + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + i = 0, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone(true); + jQuery( insert[i] )[ original ]( elems ); + + // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + core_push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +}); + +function getAll( context, tag ) { + var elems, elem, + i = 0, + found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : + typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : + undefined; + + if ( !found ) { + for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { + if ( !tag || jQuery.nodeName( elem, tag ) ) { + found.push( elem ); + } else { + jQuery.merge( found, getAll( elem, tag ) ); + } + } + } + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], found ) : + found; +} + +// Used in buildFragment, fixes the defaultChecked property +function fixDefaultChecked( elem ) { + if ( manipulation_rcheckableType.test( elem.type ) ) { + elem.defaultChecked = elem.checked; + } +} + +jQuery.extend({ + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var destElements, node, clone, i, srcElements, + inPage = jQuery.contains( elem.ownerDocument, elem ); + + if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { + clone = elem.cloneNode( true ); + + // IE<=8 does not properly clone detached, unknown element nodes + } else { + fragmentDiv.innerHTML = elem.outerHTML; + fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); + } + + if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { + + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + // Fix all IE cloning issues + for ( i = 0; (node = srcElements[i]) != null; ++i ) { + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + fixCloneNodeIssues( node, destElements[i] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0; (node = srcElements[i]) != null; i++ ) { + cloneCopyEvent( node, destElements[i] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + destElements = srcElements = node = null; + + // Return the cloned set + return clone; + }, + + buildFragment: function( elems, context, scripts, selection ) { + var j, elem, contains, + tmp, tag, tbody, wrap, + l = elems.length, + + // Ensure a safe fragment + safe = createSafeFragment( context ), + + nodes = [], + i = 0; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || safe.appendChild( context.createElement("div") ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + + tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; + + // Descend through wrappers to the right content + j = wrap[0]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Manually add leading whitespace removed by IE + if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { + nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); + } + + // Remove IE's autoinserted from table fragments + if ( !jQuery.support.tbody ) { + + // String was a , *may* have spurious + elem = tag === "table" && !rtbody.test( elem ) ? + tmp.firstChild : + + // String was a bare or + wrap[1] === "
    " && !rtbody.test( elem ) ? + tmp : + 0; + + j = elem && elem.childNodes.length; + while ( j-- ) { + if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { + elem.removeChild( tbody ); + } + } + } + + jQuery.merge( nodes, tmp.childNodes ); + + // Fix #12392 for WebKit and IE > 9 + tmp.textContent = ""; + + // Fix #12392 for oldIE + while ( tmp.firstChild ) { + tmp.removeChild( tmp.firstChild ); + } + + // Remember the top-level container for proper cleanup + tmp = safe.lastChild; + } + } + } + + // Fix #11356: Clear elements from fragment + if ( tmp ) { + safe.removeChild( tmp ); + } + + // Reset defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + if ( !jQuery.support.appendChecked ) { + jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); + } + + i = 0; + while ( (elem = nodes[ i++ ]) ) { + + // #4087 - If origin and destination elements are the same, and this is + // that element, do not do anything + if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( safe.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( (elem = tmp[ j++ ]) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + tmp = null; + + return safe; + }, + + cleanData: function( elems, /* internal */ acceptData ) { + var elem, type, id, data, + i = 0, + internalKey = jQuery.expando, + cache = jQuery.cache, + deleteExpando = jQuery.support.deleteExpando, + special = jQuery.event.special; + + for ( ; (elem = elems[i]) != null; i++ ) { + + if ( acceptData || jQuery.acceptData( elem ) ) { + + id = elem[ internalKey ]; + data = id && cache[ id ]; + + if ( data ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Remove cache only if it was not already removed by jQuery.event.remove + if ( cache[ id ] ) { + + delete cache[ id ]; + + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( deleteExpando ) { + delete elem[ internalKey ]; + + } else if ( typeof elem.removeAttribute !== core_strundefined ) { + elem.removeAttribute( internalKey ); + + } else { + elem[ internalKey ] = null; + } + + core_deletedIds.push( id ); + } + } + } + } + }, + + _evalUrl: function( url ) { + return jQuery.ajax({ + url: url, + type: "GET", + dataType: "script", + async: false, + global: false, + "throws": true + }); + } +}); +jQuery.fn.extend({ + wrapAll: function( html ) { + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapAll( html.call(this, i) ); + }); + } + + if ( this[0] ) { + // The elements to wrap the target around + var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); + + if ( this[0].parentNode ) { + wrap.insertBefore( this[0] ); + } + + wrap.map(function() { + var elem = this; + + while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { + elem = elem.firstChild; + } + + return elem; + }).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapInner( html.call(this, i) ); + }); + } + + return this.each(function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + }); + }, + + wrap: function( html ) { + var isFunction = jQuery.isFunction( html ); + + return this.each(function(i) { + jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); + }); + }, + + unwrap: function() { + return this.parent().each(function() { + if ( !jQuery.nodeName( this, "body" ) ) { + jQuery( this ).replaceWith( this.childNodes ); + } + }).end(); + } +}); +var iframe, getStyles, curCSS, + ralpha = /alpha\([^)]*\)/i, + ropacity = /opacity\s*=\s*([^)]*)/, + rposition = /^(top|right|bottom|left)$/, + // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" + // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rmargin = /^margin/, + rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), + rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), + rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), + elemdisplay = { BODY: "block" }, + + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: 0, + fontWeight: 400 + }, + + cssExpand = [ "Top", "Right", "Bottom", "Left" ], + cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; + +// return a css property mapped to a potentially vendor prefixed property +function vendorPropName( style, name ) { + + // shortcut for names that are not vendor prefixed + if ( name in style ) { + return name; + } + + // check for vendor prefixed names + var capName = name.charAt(0).toUpperCase() + name.slice(1), + origName = name, + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in style ) { + return name; + } + } + + return origName; +} + +function isHidden( elem, el ) { + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); +} + +function showHide( elements, show ) { + var display, elem, hidden, + values = [], + index = 0, + length = elements.length; + + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + + values[ index ] = jQuery._data( elem, "olddisplay" ); + display = elem.style.display; + if ( show ) { + // Reset the inline display of this element to learn if it is + // being hidden by cascaded rules or not + if ( !values[ index ] && display === "none" ) { + elem.style.display = ""; + } + + // Set elements which have been overridden with display: none + // in a stylesheet to whatever the default browser style is + // for such an element + if ( elem.style.display === "" && isHidden( elem ) ) { + values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); + } + } else { + + if ( !values[ index ] ) { + hidden = isHidden( elem ); + + if ( display && display !== "none" || !hidden ) { + jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); + } + } + } + } + + // Set the display of most of the elements in a second loop + // to avoid the constant reflow + for ( index = 0; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + if ( !show || elem.style.display === "none" || elem.style.display === "" ) { + elem.style.display = show ? values[ index ] || "" : "none"; + } + } + + return elements; +} + +jQuery.fn.extend({ + css: function( name, value ) { + return jQuery.access( this, function( elem, name, value ) { + var len, styles, + map = {}, + i = 0; + + if ( jQuery.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + }, + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } + + return this.each(function() { + if ( isHidden( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + }); + } +}); + +jQuery.extend({ + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "columnCount": true, + "fillOpacity": true, + "fontWeight": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: { + // normalize float css property + "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" + }, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = jQuery.camelCase( name ), + style = elem.style; + + name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); + + // gets hook for the prefixed version + // followed by the unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // convert relative number strings (+= or -=) to relative numbers. #7345 + if ( type === "string" && (ret = rrelNum.exec( value )) ) { + value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); + // Fixes bug #9237 + type = "number"; + } + + // Make sure that NaN and null values aren't set. See: #7116 + if ( value == null || type === "number" && isNaN( value ) ) { + return; + } + + // If a number was passed in, add 'px' to the (except for certain CSS properties) + if ( type === "number" && !jQuery.cssNumber[ origName ] ) { + value += "px"; + } + + // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, + // but it would mean to define eight (for every problematic property) identical functions + if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { + + // Wrapped to prevent IE from throwing errors when 'invalid' values are provided + // Fixes bug #5509 + try { + style[ name ] = value; + } catch(e) {} + } + + } else { + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var num, val, hooks, + origName = jQuery.camelCase( name ); + + // Make sure that we're working with the right name + name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); + + // gets hook for the prefixed version + // followed by the unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + //convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Return, converting to number if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; + } + return val; + } +}); + +// NOTE: we've included the "window" in window.getComputedStyle +// because jsdom on node.js will break without it. +if ( window.getComputedStyle ) { + getStyles = function( elem ) { + return window.getComputedStyle( elem, null ); + }; + + curCSS = function( elem, name, _computed ) { + var width, minWidth, maxWidth, + computed = _computed || getStyles( elem ), + + // getPropertyValue is only needed for .css('filter') in IE9, see #12537 + ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, + style = elem.style; + + if ( computed ) { + + if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right + // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels + // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values + if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret; + }; +} else if ( document.documentElement.currentStyle ) { + getStyles = function( elem ) { + return elem.currentStyle; + }; + + curCSS = function( elem, name, _computed ) { + var left, rs, rsLeft, + computed = _computed || getStyles( elem ), + ret = computed ? computed[ name ] : undefined, + style = elem.style; + + // Avoid setting ret to empty string here + // so we don't default to auto + if ( ret == null && style && style[ name ] ) { + ret = style[ name ]; + } + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // but not position css attributes, as those are proportional to the parent element instead + // and we can't measure the parent instead because it might trigger a "stacking dolls" problem + if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { + + // Remember the original values + left = style.left; + rs = elem.runtimeStyle; + rsLeft = rs && rs.left; + + // Put in the new values to get a computed value out + if ( rsLeft ) { + rs.left = elem.currentStyle.left; + } + style.left = name === "fontSize" ? "1em" : ret; + ret = style.pixelLeft + "px"; + + // Revert the changed values + style.left = left; + if ( rsLeft ) { + rs.left = rsLeft; + } + } + + return ret === "" ? "auto" : ret; + }; +} + +function setPositiveNumber( elem, value, subtract ) { + var matches = rnumsplit.exec( value ); + return matches ? + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : + value; +} + +function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { + var i = extra === ( isBorderBox ? "border" : "content" ) ? + // If we already have the right measurement, avoid augmentation + 4 : + // Otherwise initialize for horizontal or vertical properties + name === "width" ? 1 : 0, + + val = 0; + + for ( ; i < 4; i += 2 ) { + // both box models exclude margin, so add it if we want it + if ( extra === "margin" ) { + val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); + } + + if ( isBorderBox ) { + // border-box includes padding, so remove it if we want content + if ( extra === "content" ) { + val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // at this point, extra isn't border nor margin, so remove border + if ( extra !== "margin" ) { + val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } else { + // at this point, extra isn't content, so add padding + val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // at this point, extra isn't content nor padding, so add border + if ( extra !== "padding" ) { + val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + return val; +} + +function getWidthOrHeight( elem, name, extra ) { + + // Start with offset property, which is equivalent to the border-box value + var valueIsBorderBox = true, + val = name === "width" ? elem.offsetWidth : elem.offsetHeight, + styles = getStyles( elem ), + isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; + + // some non-html elements return undefined for offsetWidth, so check for null/undefined + // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 + // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 + if ( val <= 0 || val == null ) { + // Fall back to computed then uncomputed css if necessary + val = curCSS( elem, name, styles ); + if ( val < 0 || val == null ) { + val = elem.style[ name ]; + } + + // Computed unit is not pixels. Stop here and return. + if ( rnumnonpx.test(val) ) { + return val; + } + + // we need the check for style in case a browser which returns unreliable values + // for getComputedStyle silently falls back to the reliable elem.style + valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); + + // Normalize "", auto, and prepare for extra + val = parseFloat( val ) || 0; + } + + // use the active box-sizing model to add/subtract irrelevant styles + return ( val + + augmentWidthOrHeight( + elem, + name, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles + ) + ) + "px"; +} + +// Try to determine the default display value of an element +function css_defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + // Use the already-created iframe if possible + iframe = ( iframe || + jQuery("