From: Sam Moore Date: Sun, 29 Sep 2013 16:00:02 +0000 (+0800) Subject: Remove jQuery-UI X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=cabd25b727d3899ece1232aac0e59d8ec22f1f69;p=matches%2FMCTX3420.git Remove jQuery-UI My god that's a lot of cruft --- diff --git a/.gitignore b/.gitignore index 729e81b..ae7115d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,6 @@ Thumbs.db __pycache__ server/win32 -**/nbproject/private/ \ No newline at end of file +**/nbproject/private/ + +*jquery-ui* diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/animated-overlay.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/animated-overlay.gif deleted file mode 100755 index d441f75..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/animated-overlay.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_diagonals-thick_8_333333_40x40.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_diagonals-thick_8_333333_40x40.png deleted file mode 100755 index 7f06c85..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_diagonals-thick_8_333333_40x40.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_flat_65_ffffff_40x100.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_flat_65_ffffff_40x100.png deleted file mode 100755 index 3c0d288..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_flat_65_ffffff_40x100.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_glass_40_111111_1x400.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_glass_40_111111_1x400.png deleted file mode 100755 index 6c687de..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_glass_40_111111_1x400.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png deleted file mode 100755 index 7a7823d..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png deleted file mode 100755 index c8a8268..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png deleted file mode 100755 index 794c756..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png deleted file mode 100755 index 5f13c46..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png deleted file mode 100755 index 44f8914..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png deleted file mode 100755 index 445dc31..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_222222_256x240.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_222222_256x240.png deleted file mode 100755 index c1cb117..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_222222_256x240.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_4ca300_256x240.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_4ca300_256x240.png deleted file mode 100755 index f615080..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_4ca300_256x240.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_bbbbbb_256x240.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_bbbbbb_256x240.png deleted file mode 100755 index e5572e2..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_bbbbbb_256x240.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ededed_256x240.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ededed_256x240.png deleted file mode 100755 index 0469d63..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ededed_256x240.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ffcf29_256x240.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ffcf29_256x240.png deleted file mode 100755 index 373928a..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ffcf29_256x240.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ffffff_256x240.png b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ffffff_256x240.png deleted file mode 100755 index 4f624bb..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/images/ui-icons_ffffff_256x240.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/jquery-ui-1.10.3.custom.css b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/jquery-ui-1.10.3.custom.css deleted file mode 100755 index edc2cf7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/jquery-ui-1.10.3.custom.css +++ /dev/null @@ -1,1177 +0,0 @@ -/*! jQuery UI - v1.10.3 - 2013-08-18 -* http://jqueryui.com -* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css -* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=333333&bgTextureHeader=diagonals_thick&bgImgOpacityHeader=8&borderColorHeader=a3a3a3&fcHeader=eeeeee&iconColorHeader=bbbbbb&bgColorContent=f9f9f9&bgTextureContent=highlight_hard&bgImgOpacityContent=100&borderColorContent=cccccc&fcContent=222222&iconColorContent=222222&bgColorDefault=111111&bgTextureDefault=glass&bgImgOpacityDefault=40&borderColorDefault=777777&fcDefault=e3e3e3&iconColorDefault=ededed&bgColorHover=1c1c1c&bgTextureHover=glass&bgImgOpacityHover=55&borderColorHover=000000&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=ffffff&bgTextureActive=flat&bgImgOpacityActive=65&borderColorActive=cccccc&fcActive=222222&iconColorActive=222222&bgColorHighlight=ffeb80&bgTextureHighlight=inset_hard&bgImgOpacityHighlight=55&borderColorHighlight=ffde2e&fcHighlight=363636&iconColorHighlight=4ca300&bgColorError=cd0a0a&bgTextureError=inset_hard&bgImgOpacityError=45&borderColorError=9e0505&fcError=ffffff&iconColorError=ffcf29&bgColorOverlay=aaaaaa&bgTextureOverlay=highlight_hard&bgImgOpacityOverlay=40&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=highlight_soft&bgImgOpacityShadow=50&opacityShadow=20&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px -* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */ - -/* Layout helpers -----------------------------------*/ -.ui-helper-hidden { - display: none; -} -.ui-helper-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} -.ui-helper-reset { - margin: 0; - padding: 0; - border: 0; - outline: 0; - line-height: 1.3; - text-decoration: none; - font-size: 100%; - list-style: none; -} -.ui-helper-clearfix:before, -.ui-helper-clearfix:after { - content: ""; - display: table; - border-collapse: collapse; -} -.ui-helper-clearfix:after { - clear: both; -} -.ui-helper-clearfix { - min-height: 0; /* support: IE7 */ -} -.ui-helper-zfix { - width: 100%; - height: 100%; - top: 0; - left: 0; - position: absolute; - opacity: 0; - filter:Alpha(Opacity=0); -} - -.ui-front { - z-index: 100; -} - - -/* Interaction Cues -----------------------------------*/ -.ui-state-disabled { - cursor: default !important; -} - - -/* Icons -----------------------------------*/ - -/* states and images */ -.ui-icon { - display: block; - text-indent: -99999px; - overflow: hidden; - background-repeat: no-repeat; -} - - -/* Misc visuals -----------------------------------*/ - -/* Overlays */ -.ui-widget-overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.ui-resizable { - position: relative; -} -.ui-resizable-handle { - position: absolute; - font-size: 0.1px; - display: block; -} -.ui-resizable-disabled .ui-resizable-handle, -.ui-resizable-autohide .ui-resizable-handle { - display: none; -} -.ui-resizable-n { - cursor: n-resize; - height: 7px; - width: 100%; - top: -5px; - left: 0; -} -.ui-resizable-s { - cursor: s-resize; - height: 7px; - width: 100%; - bottom: -5px; - left: 0; -} -.ui-resizable-e { - cursor: e-resize; - width: 7px; - right: -5px; - top: 0; - height: 100%; -} -.ui-resizable-w { - cursor: w-resize; - width: 7px; - left: -5px; - top: 0; - height: 100%; -} -.ui-resizable-se { - cursor: se-resize; - width: 12px; - height: 12px; - right: 1px; - bottom: 1px; -} -.ui-resizable-sw { - cursor: sw-resize; - width: 9px; - height: 9px; - left: -5px; - bottom: -5px; -} -.ui-resizable-nw { - cursor: nw-resize; - width: 9px; - height: 9px; - left: -5px; - top: -5px; -} -.ui-resizable-ne { - cursor: ne-resize; - width: 9px; - height: 9px; - right: -5px; - top: -5px; -} -.ui-selectable-helper { - position: absolute; - z-index: 100; - border: 1px dotted black; -} -.ui-accordion .ui-accordion-header { - display: block; - cursor: pointer; - position: relative; - margin-top: 2px; - padding: .5em .5em .5em .7em; - min-height: 0; /* support: IE7 */ -} -.ui-accordion .ui-accordion-icons { - padding-left: 2.2em; -} -.ui-accordion .ui-accordion-noicons { - padding-left: .7em; -} -.ui-accordion .ui-accordion-icons .ui-accordion-icons { - padding-left: 2.2em; -} -.ui-accordion .ui-accordion-header .ui-accordion-header-icon { - position: absolute; - left: .5em; - top: 50%; - margin-top: -8px; -} -.ui-accordion .ui-accordion-content { - padding: 1em 2.2em; - border-top: 0; - overflow: auto; -} -.ui-autocomplete { - position: absolute; - top: 0; - left: 0; - cursor: default; -} -.ui-button { - display: inline-block; - position: relative; - padding: 0; - line-height: normal; - margin-right: .1em; - cursor: pointer; - vertical-align: middle; - text-align: center; - overflow: visible; /* removes extra width in IE */ -} -.ui-button, -.ui-button:link, -.ui-button:visited, -.ui-button:hover, -.ui-button:active { - text-decoration: none; -} -/* to make room for the icon, a width needs to be set here */ -.ui-button-icon-only { - width: 2.2em; -} -/* button elements seem to need a little more width */ -button.ui-button-icon-only { - width: 2.4em; -} -.ui-button-icons-only { - width: 3.4em; -} -button.ui-button-icons-only { - width: 3.7em; -} - -/* button text element */ -.ui-button .ui-button-text { - display: block; - line-height: normal; -} -.ui-button-text-only .ui-button-text { - padding: .4em 1em; -} -.ui-button-icon-only .ui-button-text, -.ui-button-icons-only .ui-button-text { - padding: .4em; - text-indent: -9999999px; -} -.ui-button-text-icon-primary .ui-button-text, -.ui-button-text-icons .ui-button-text { - padding: .4em 1em .4em 2.1em; -} -.ui-button-text-icon-secondary .ui-button-text, -.ui-button-text-icons .ui-button-text { - padding: .4em 2.1em .4em 1em; -} -.ui-button-text-icons .ui-button-text { - padding-left: 2.1em; - padding-right: 2.1em; -} -/* no icon support for input elements, provide padding by default */ -input.ui-button { - padding: .4em 1em; -} - -/* button icon element(s) */ -.ui-button-icon-only .ui-icon, -.ui-button-text-icon-primary .ui-icon, -.ui-button-text-icon-secondary .ui-icon, -.ui-button-text-icons .ui-icon, -.ui-button-icons-only .ui-icon { - position: absolute; - top: 50%; - margin-top: -8px; -} -.ui-button-icon-only .ui-icon { - left: 50%; - margin-left: -8px; -} -.ui-button-text-icon-primary .ui-button-icon-primary, -.ui-button-text-icons .ui-button-icon-primary, -.ui-button-icons-only .ui-button-icon-primary { - left: .5em; -} -.ui-button-text-icon-secondary .ui-button-icon-secondary, -.ui-button-text-icons .ui-button-icon-secondary, -.ui-button-icons-only .ui-button-icon-secondary { - right: .5em; -} - -/* button sets */ -.ui-buttonset { - margin-right: 7px; -} -.ui-buttonset .ui-button { - margin-left: 0; - margin-right: -.3em; -} - -/* workarounds */ -/* reset extra padding in Firefox, see h5bp.com/l */ -input.ui-button::-moz-focus-inner, -button.ui-button::-moz-focus-inner { - border: 0; - padding: 0; -} -.ui-datepicker { - width: 17em; - padding: .2em .2em 0; - display: none; -} -.ui-datepicker .ui-datepicker-header { - position: relative; - padding: .2em 0; -} -.ui-datepicker .ui-datepicker-prev, -.ui-datepicker .ui-datepicker-next { - position: absolute; - top: 2px; - width: 1.8em; - height: 1.8em; -} -.ui-datepicker .ui-datepicker-prev-hover, -.ui-datepicker .ui-datepicker-next-hover { - top: 1px; -} -.ui-datepicker .ui-datepicker-prev { - left: 2px; -} -.ui-datepicker .ui-datepicker-next { - right: 2px; -} -.ui-datepicker .ui-datepicker-prev-hover { - left: 1px; -} -.ui-datepicker .ui-datepicker-next-hover { - right: 1px; -} -.ui-datepicker .ui-datepicker-prev span, -.ui-datepicker .ui-datepicker-next span { - display: block; - position: absolute; - left: 50%; - margin-left: -8px; - top: 50%; - margin-top: -8px; -} -.ui-datepicker .ui-datepicker-title { - margin: 0 2.3em; - line-height: 1.8em; - text-align: center; -} -.ui-datepicker .ui-datepicker-title select { - font-size: 1em; - margin: 1px 0; -} -.ui-datepicker select.ui-datepicker-month-year { - width: 100%; -} -.ui-datepicker select.ui-datepicker-month, -.ui-datepicker select.ui-datepicker-year { - width: 49%; -} -.ui-datepicker table { - width: 100%; - font-size: .9em; - border-collapse: collapse; - margin: 0 0 .4em; -} -.ui-datepicker th { - padding: .7em .3em; - text-align: center; - font-weight: bold; - border: 0; -} -.ui-datepicker td { - border: 0; - padding: 1px; -} -.ui-datepicker td span, -.ui-datepicker td a { - display: block; - padding: .2em; - text-align: right; - text-decoration: none; -} -.ui-datepicker .ui-datepicker-buttonpane { - background-image: none; - margin: .7em 0 0 0; - padding: 0 .2em; - border-left: 0; - border-right: 0; - border-bottom: 0; -} -.ui-datepicker .ui-datepicker-buttonpane button { - float: right; - margin: .5em .2em .4em; - cursor: pointer; - padding: .2em .6em .3em .6em; - width: auto; - overflow: visible; -} -.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { - float: left; -} - -/* with multiple calendars */ -.ui-datepicker.ui-datepicker-multi { - width: auto; -} -.ui-datepicker-multi .ui-datepicker-group { - float: left; -} -.ui-datepicker-multi .ui-datepicker-group table { - width: 95%; - margin: 0 auto .4em; -} -.ui-datepicker-multi-2 .ui-datepicker-group { - width: 50%; -} -.ui-datepicker-multi-3 .ui-datepicker-group { - width: 33.3%; -} -.ui-datepicker-multi-4 .ui-datepicker-group { - width: 25%; -} -.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, -.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { - border-left-width: 0; -} -.ui-datepicker-multi .ui-datepicker-buttonpane { - clear: left; -} -.ui-datepicker-row-break { - clear: both; - width: 100%; - font-size: 0; -} - -/* RTL support */ -.ui-datepicker-rtl { - direction: rtl; -} -.ui-datepicker-rtl .ui-datepicker-prev { - right: 2px; - left: auto; -} -.ui-datepicker-rtl .ui-datepicker-next { - left: 2px; - right: auto; -} -.ui-datepicker-rtl .ui-datepicker-prev:hover { - right: 1px; - left: auto; -} -.ui-datepicker-rtl .ui-datepicker-next:hover { - left: 1px; - right: auto; -} -.ui-datepicker-rtl .ui-datepicker-buttonpane { - clear: right; -} -.ui-datepicker-rtl .ui-datepicker-buttonpane button { - float: left; -} -.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current, -.ui-datepicker-rtl .ui-datepicker-group { - float: right; -} -.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header, -.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { - border-right-width: 0; - border-left-width: 1px; -} -.ui-dialog { - position: absolute; - top: 0; - left: 0; - padding: .2em; - outline: 0; -} -.ui-dialog .ui-dialog-titlebar { - padding: .4em 1em; - position: relative; -} -.ui-dialog .ui-dialog-title { - float: left; - margin: .1em 0; - white-space: nowrap; - width: 90%; - overflow: hidden; - text-overflow: ellipsis; -} -.ui-dialog .ui-dialog-titlebar-close { - position: absolute; - right: .3em; - top: 50%; - width: 21px; - margin: -10px 0 0 0; - padding: 1px; - height: 20px; -} -.ui-dialog .ui-dialog-content { - position: relative; - border: 0; - padding: .5em 1em; - background: none; - overflow: auto; -} -.ui-dialog .ui-dialog-buttonpane { - text-align: left; - border-width: 1px 0 0 0; - background-image: none; - margin-top: .5em; - padding: .3em 1em .5em .4em; -} -.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { - float: right; -} -.ui-dialog .ui-dialog-buttonpane button { - margin: .5em .4em .5em 0; - cursor: pointer; -} -.ui-dialog .ui-resizable-se { - width: 12px; - height: 12px; - right: -5px; - bottom: -5px; - background-position: 16px 16px; -} -.ui-draggable .ui-dialog-titlebar { - cursor: move; -} -.ui-menu { - list-style: none; - padding: 2px; - margin: 0; - display: block; - outline: none; -} -.ui-menu .ui-menu { - margin-top: -3px; - position: absolute; -} -.ui-menu .ui-menu-item { - margin: 0; - padding: 0; - width: 100%; - /* support: IE10, see #8844 */ - list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); -} -.ui-menu .ui-menu-divider { - margin: 5px -2px 5px -2px; - height: 0; - font-size: 0; - line-height: 0; - border-width: 1px 0 0 0; -} -.ui-menu .ui-menu-item a { - text-decoration: none; - display: block; - padding: 2px .4em; - line-height: 1.5; - min-height: 0; /* support: IE7 */ - font-weight: normal; -} -.ui-menu .ui-menu-item a.ui-state-focus, -.ui-menu .ui-menu-item a.ui-state-active { - font-weight: normal; - margin: -1px; -} - -.ui-menu .ui-state-disabled { - font-weight: normal; - margin: .4em 0 .2em; - line-height: 1.5; -} -.ui-menu .ui-state-disabled a { - cursor: default; -} - -/* icon support */ -.ui-menu-icons { - position: relative; -} -.ui-menu-icons .ui-menu-item a { - position: relative; - padding-left: 2em; -} - -/* left-aligned */ -.ui-menu .ui-icon { - position: absolute; - top: .2em; - left: .2em; -} - -/* right-aligned */ -.ui-menu .ui-menu-icon { - position: static; - float: right; -} -.ui-progressbar { - height: 2em; - text-align: left; - overflow: hidden; -} -.ui-progressbar .ui-progressbar-value { - margin: -1px; - height: 100%; -} -.ui-progressbar .ui-progressbar-overlay { - background: url("images/animated-overlay.gif"); - height: 100%; - filter: alpha(opacity=25); - opacity: 0.25; -} -.ui-progressbar-indeterminate .ui-progressbar-value { - background-image: none; -} -.ui-slider { - position: relative; - text-align: left; -} -.ui-slider .ui-slider-handle { - position: absolute; - z-index: 2; - width: 1.2em; - height: 1.2em; - cursor: default; -} -.ui-slider .ui-slider-range { - position: absolute; - z-index: 1; - font-size: .7em; - display: block; - border: 0; - background-position: 0 0; -} - -/* For IE8 - See #6727 */ -.ui-slider.ui-state-disabled .ui-slider-handle, -.ui-slider.ui-state-disabled .ui-slider-range { - filter: inherit; -} - -.ui-slider-horizontal { - height: .8em; -} -.ui-slider-horizontal .ui-slider-handle { - top: -.3em; - margin-left: -.6em; -} -.ui-slider-horizontal .ui-slider-range { - top: 0; - height: 100%; -} -.ui-slider-horizontal .ui-slider-range-min { - left: 0; -} -.ui-slider-horizontal .ui-slider-range-max { - right: 0; -} - -.ui-slider-vertical { - width: .8em; - height: 100px; -} -.ui-slider-vertical .ui-slider-handle { - left: -.3em; - margin-left: 0; - margin-bottom: -.6em; -} -.ui-slider-vertical .ui-slider-range { - left: 0; - width: 100%; -} -.ui-slider-vertical .ui-slider-range-min { - bottom: 0; -} -.ui-slider-vertical .ui-slider-range-max { - top: 0; -} -.ui-spinner { - position: relative; - display: inline-block; - overflow: hidden; - padding: 0; - vertical-align: middle; -} -.ui-spinner-input { - border: none; - background: none; - color: inherit; - padding: 0; - margin: .2em 0; - vertical-align: middle; - margin-left: .4em; - margin-right: 22px; -} -.ui-spinner-button { - width: 16px; - height: 50%; - font-size: .5em; - padding: 0; - margin: 0; - text-align: center; - position: absolute; - cursor: default; - display: block; - overflow: hidden; - right: 0; -} -/* more specificity required here to overide default borders */ -.ui-spinner a.ui-spinner-button { - border-top: none; - border-bottom: none; - border-right: none; -} -/* vertical centre icon */ -.ui-spinner .ui-icon { - position: absolute; - margin-top: -8px; - top: 50%; - left: 0; -} -.ui-spinner-up { - top: 0; -} -.ui-spinner-down { - bottom: 0; -} - -/* TR overrides */ -.ui-spinner .ui-icon-triangle-1-s { - /* need to fix icons sprite */ - background-position: -65px -16px; -} -.ui-tabs { - position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ - padding: .2em; -} -.ui-tabs .ui-tabs-nav { - margin: 0; - padding: .2em .2em 0; -} -.ui-tabs .ui-tabs-nav li { - list-style: none; - float: left; - position: relative; - top: 0; - margin: 1px .2em 0 0; - border-bottom-width: 0; - padding: 0; - white-space: nowrap; -} -.ui-tabs .ui-tabs-nav li a { - float: left; - padding: .5em 1em; - text-decoration: none; -} -.ui-tabs .ui-tabs-nav li.ui-tabs-active { - margin-bottom: -1px; - padding-bottom: 1px; -} -.ui-tabs .ui-tabs-nav li.ui-tabs-active a, -.ui-tabs .ui-tabs-nav li.ui-state-disabled a, -.ui-tabs .ui-tabs-nav li.ui-tabs-loading a { - cursor: text; -} -.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ -.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { - cursor: pointer; -} -.ui-tabs .ui-tabs-panel { - display: block; - border-width: 0; - padding: 1em 1.4em; - background: none; -} -.ui-tooltip { - padding: 8px; - position: absolute; - z-index: 9999; - max-width: 300px; - -webkit-box-shadow: 0 0 5px #aaa; - box-shadow: 0 0 5px #aaa; -} -body .ui-tooltip { - border-width: 2px; -} - -/* Component containers -----------------------------------*/ -.ui-widget { - font-family: Verdana,Arial,sans-serif; - font-size: 1.1em; -} -.ui-widget .ui-widget { - font-size: 1em; -} -.ui-widget input, -.ui-widget select, -.ui-widget textarea, -.ui-widget button { - font-family: Verdana,Arial,sans-serif; - font-size: 1em; -} -.ui-widget-content { - border: 1px solid #cccccc; - background: #f9f9f9 url(images/ui-bg_highlight-hard_100_f9f9f9_1x100.png) 50% top repeat-x; - color: #222222; -} -.ui-widget-content a { - color: #222222; -} -.ui-widget-header { - border: 1px solid #a3a3a3; - background: #333333 url(images/ui-bg_diagonals-thick_8_333333_40x40.png) 50% 50% repeat; - color: #eeeeee; - font-weight: bold; -} -.ui-widget-header a { - color: #eeeeee; -} - -/* Interaction states -----------------------------------*/ -.ui-state-default, -.ui-widget-content .ui-state-default, -.ui-widget-header .ui-state-default { - border: 1px solid #777777; - background: #111111 url(images/ui-bg_glass_40_111111_1x400.png) 50% 50% repeat-x; - font-weight: normal; - color: #e3e3e3; -} -.ui-state-default a, -.ui-state-default a:link, -.ui-state-default a:visited { - color: #e3e3e3; - text-decoration: none; -} -.ui-state-hover, -.ui-widget-content .ui-state-hover, -.ui-widget-header .ui-state-hover, -.ui-state-focus, -.ui-widget-content .ui-state-focus, -.ui-widget-header .ui-state-focus { - border: 1px solid #000000; - background: #1c1c1c url(images/ui-bg_glass_55_1c1c1c_1x400.png) 50% 50% repeat-x; - font-weight: normal; - color: #ffffff; -} -.ui-state-hover a, -.ui-state-hover a:hover, -.ui-state-hover a:link, -.ui-state-hover a:visited { - color: #ffffff; - text-decoration: none; -} -.ui-state-active, -.ui-widget-content .ui-state-active, -.ui-widget-header .ui-state-active { - border: 1px solid #cccccc; - background: #ffffff url(images/ui-bg_flat_65_ffffff_40x100.png) 50% 50% repeat-x; - font-weight: normal; - color: #222222; -} -.ui-state-active a, -.ui-state-active a:link, -.ui-state-active a:visited { - color: #222222; - text-decoration: none; -} - -/* Interaction Cues -----------------------------------*/ -.ui-state-highlight, -.ui-widget-content .ui-state-highlight, -.ui-widget-header .ui-state-highlight { - border: 1px solid #ffde2e; - background: #ffeb80 url(images/ui-bg_inset-hard_55_ffeb80_1x100.png) 50% bottom repeat-x; - color: #363636; -} -.ui-state-highlight a, -.ui-widget-content .ui-state-highlight a, -.ui-widget-header .ui-state-highlight a { - color: #363636; -} -.ui-state-error, -.ui-widget-content .ui-state-error, -.ui-widget-header .ui-state-error { - border: 1px solid #9e0505; - background: #cd0a0a url(images/ui-bg_inset-hard_45_cd0a0a_1x100.png) 50% bottom repeat-x; - color: #ffffff; -} -.ui-state-error a, -.ui-widget-content .ui-state-error a, -.ui-widget-header .ui-state-error a { - color: #ffffff; -} -.ui-state-error-text, -.ui-widget-content .ui-state-error-text, -.ui-widget-header .ui-state-error-text { - color: #ffffff; -} -.ui-priority-primary, -.ui-widget-content .ui-priority-primary, -.ui-widget-header .ui-priority-primary { - font-weight: bold; -} -.ui-priority-secondary, -.ui-widget-content .ui-priority-secondary, -.ui-widget-header .ui-priority-secondary { - opacity: .7; - filter:Alpha(Opacity=70); - font-weight: normal; -} -.ui-state-disabled, -.ui-widget-content .ui-state-disabled, -.ui-widget-header .ui-state-disabled { - opacity: .35; - filter:Alpha(Opacity=35); - background-image: none; -} -.ui-state-disabled .ui-icon { - filter:Alpha(Opacity=35); /* For IE8 - See #6059 */ -} - -/* Icons -----------------------------------*/ - -/* states and images */ -.ui-icon { - width: 16px; - height: 16px; -} -.ui-icon, -.ui-widget-content .ui-icon { - background-image: url(images/ui-icons_222222_256x240.png); -} -.ui-widget-header .ui-icon { - background-image: url(images/ui-icons_bbbbbb_256x240.png); -} -.ui-state-default .ui-icon { - background-image: url(images/ui-icons_ededed_256x240.png); -} -.ui-state-hover .ui-icon, -.ui-state-focus .ui-icon { - background-image: url(images/ui-icons_ffffff_256x240.png); -} -.ui-state-active .ui-icon { - background-image: url(images/ui-icons_222222_256x240.png); -} -.ui-state-highlight .ui-icon { - background-image: url(images/ui-icons_4ca300_256x240.png); -} -.ui-state-error .ui-icon, -.ui-state-error-text .ui-icon { - background-image: url(images/ui-icons_ffcf29_256x240.png); -} - -/* positioning */ -.ui-icon-blank { background-position: 16px 16px; } -.ui-icon-carat-1-n { background-position: 0 0; } -.ui-icon-carat-1-ne { background-position: -16px 0; } -.ui-icon-carat-1-e { background-position: -32px 0; } -.ui-icon-carat-1-se { background-position: -48px 0; } -.ui-icon-carat-1-s { background-position: -64px 0; } -.ui-icon-carat-1-sw { background-position: -80px 0; } -.ui-icon-carat-1-w { background-position: -96px 0; } -.ui-icon-carat-1-nw { background-position: -112px 0; } -.ui-icon-carat-2-n-s { background-position: -128px 0; } -.ui-icon-carat-2-e-w { background-position: -144px 0; } -.ui-icon-triangle-1-n { background-position: 0 -16px; } -.ui-icon-triangle-1-ne { background-position: -16px -16px; } -.ui-icon-triangle-1-e { background-position: -32px -16px; } -.ui-icon-triangle-1-se { background-position: -48px -16px; } -.ui-icon-triangle-1-s { background-position: -64px -16px; } -.ui-icon-triangle-1-sw { background-position: -80px -16px; } -.ui-icon-triangle-1-w { background-position: -96px -16px; } -.ui-icon-triangle-1-nw { background-position: -112px -16px; } -.ui-icon-triangle-2-n-s { background-position: -128px -16px; } -.ui-icon-triangle-2-e-w { background-position: -144px -16px; } -.ui-icon-arrow-1-n { background-position: 0 -32px; } -.ui-icon-arrow-1-ne { background-position: -16px -32px; } -.ui-icon-arrow-1-e { background-position: -32px -32px; } -.ui-icon-arrow-1-se { background-position: -48px -32px; } -.ui-icon-arrow-1-s { background-position: -64px -32px; } -.ui-icon-arrow-1-sw { background-position: -80px -32px; } -.ui-icon-arrow-1-w { background-position: -96px -32px; } -.ui-icon-arrow-1-nw { background-position: -112px -32px; } -.ui-icon-arrow-2-n-s { background-position: -128px -32px; } -.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } -.ui-icon-arrow-2-e-w { background-position: -160px -32px; } -.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } -.ui-icon-arrowstop-1-n { background-position: -192px -32px; } -.ui-icon-arrowstop-1-e { background-position: -208px -32px; } -.ui-icon-arrowstop-1-s { background-position: -224px -32px; } -.ui-icon-arrowstop-1-w { background-position: -240px -32px; } -.ui-icon-arrowthick-1-n { background-position: 0 -48px; } -.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } -.ui-icon-arrowthick-1-e { background-position: -32px -48px; } -.ui-icon-arrowthick-1-se { background-position: -48px -48px; } -.ui-icon-arrowthick-1-s { background-position: -64px -48px; } -.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } -.ui-icon-arrowthick-1-w { background-position: -96px -48px; } -.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } -.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } -.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } -.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } -.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } -.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } -.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } -.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } -.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } -.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } -.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } -.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } -.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } -.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } -.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } -.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } -.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } -.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } -.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } -.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } -.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } -.ui-icon-arrow-4 { background-position: 0 -80px; } -.ui-icon-arrow-4-diag { background-position: -16px -80px; } -.ui-icon-extlink { background-position: -32px -80px; } -.ui-icon-newwin { background-position: -48px -80px; } -.ui-icon-refresh { background-position: -64px -80px; } -.ui-icon-shuffle { background-position: -80px -80px; } -.ui-icon-transfer-e-w { background-position: -96px -80px; } -.ui-icon-transferthick-e-w { background-position: -112px -80px; } -.ui-icon-folder-collapsed { background-position: 0 -96px; } -.ui-icon-folder-open { background-position: -16px -96px; } -.ui-icon-document { background-position: -32px -96px; } -.ui-icon-document-b { background-position: -48px -96px; } -.ui-icon-note { background-position: -64px -96px; } -.ui-icon-mail-closed { background-position: -80px -96px; } -.ui-icon-mail-open { background-position: -96px -96px; } -.ui-icon-suitcase { background-position: -112px -96px; } -.ui-icon-comment { background-position: -128px -96px; } -.ui-icon-person { background-position: -144px -96px; } -.ui-icon-print { background-position: -160px -96px; } -.ui-icon-trash { background-position: -176px -96px; } -.ui-icon-locked { background-position: -192px -96px; } -.ui-icon-unlocked { background-position: -208px -96px; } -.ui-icon-bookmark { background-position: -224px -96px; } -.ui-icon-tag { background-position: -240px -96px; } -.ui-icon-home { background-position: 0 -112px; } -.ui-icon-flag { background-position: -16px -112px; } -.ui-icon-calendar { background-position: -32px -112px; } -.ui-icon-cart { background-position: -48px -112px; } -.ui-icon-pencil { background-position: -64px -112px; } -.ui-icon-clock { background-position: -80px -112px; } -.ui-icon-disk { background-position: -96px -112px; } -.ui-icon-calculator { background-position: -112px -112px; } -.ui-icon-zoomin { background-position: -128px -112px; } -.ui-icon-zoomout { background-position: -144px -112px; } -.ui-icon-search { background-position: -160px -112px; } -.ui-icon-wrench { background-position: -176px -112px; } -.ui-icon-gear { background-position: -192px -112px; } -.ui-icon-heart { background-position: -208px -112px; } -.ui-icon-star { background-position: -224px -112px; } -.ui-icon-link { background-position: -240px -112px; } -.ui-icon-cancel { background-position: 0 -128px; } -.ui-icon-plus { background-position: -16px -128px; } -.ui-icon-plusthick { background-position: -32px -128px; } -.ui-icon-minus { background-position: -48px -128px; } -.ui-icon-minusthick { background-position: -64px -128px; } -.ui-icon-close { background-position: -80px -128px; } -.ui-icon-closethick { background-position: -96px -128px; } -.ui-icon-key { background-position: -112px -128px; } -.ui-icon-lightbulb { background-position: -128px -128px; } -.ui-icon-scissors { background-position: -144px -128px; } -.ui-icon-clipboard { background-position: -160px -128px; } -.ui-icon-copy { background-position: -176px -128px; } -.ui-icon-contact { background-position: -192px -128px; } -.ui-icon-image { background-position: -208px -128px; } -.ui-icon-video { background-position: -224px -128px; } -.ui-icon-script { background-position: -240px -128px; } -.ui-icon-alert { background-position: 0 -144px; } -.ui-icon-info { background-position: -16px -144px; } -.ui-icon-notice { background-position: -32px -144px; } -.ui-icon-help { background-position: -48px -144px; } -.ui-icon-check { background-position: -64px -144px; } -.ui-icon-bullet { background-position: -80px -144px; } -.ui-icon-radio-on { background-position: -96px -144px; } -.ui-icon-radio-off { background-position: -112px -144px; } -.ui-icon-pin-w { background-position: -128px -144px; } -.ui-icon-pin-s { background-position: -144px -144px; } -.ui-icon-play { background-position: 0 -160px; } -.ui-icon-pause { background-position: -16px -160px; } -.ui-icon-seek-next { background-position: -32px -160px; } -.ui-icon-seek-prev { background-position: -48px -160px; } -.ui-icon-seek-end { background-position: -64px -160px; } -.ui-icon-seek-start { background-position: -80px -160px; } -/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ -.ui-icon-seek-first { background-position: -80px -160px; } -.ui-icon-stop { background-position: -96px -160px; } -.ui-icon-eject { background-position: -112px -160px; } -.ui-icon-volume-off { background-position: -128px -160px; } -.ui-icon-volume-on { background-position: -144px -160px; } -.ui-icon-power { background-position: 0 -176px; } -.ui-icon-signal-diag { background-position: -16px -176px; } -.ui-icon-signal { background-position: -32px -176px; } -.ui-icon-battery-0 { background-position: -48px -176px; } -.ui-icon-battery-1 { background-position: -64px -176px; } -.ui-icon-battery-2 { background-position: -80px -176px; } -.ui-icon-battery-3 { background-position: -96px -176px; } -.ui-icon-circle-plus { background-position: 0 -192px; } -.ui-icon-circle-minus { background-position: -16px -192px; } -.ui-icon-circle-close { background-position: -32px -192px; } -.ui-icon-circle-triangle-e { background-position: -48px -192px; } -.ui-icon-circle-triangle-s { background-position: -64px -192px; } -.ui-icon-circle-triangle-w { background-position: -80px -192px; } -.ui-icon-circle-triangle-n { background-position: -96px -192px; } -.ui-icon-circle-arrow-e { background-position: -112px -192px; } -.ui-icon-circle-arrow-s { background-position: -128px -192px; } -.ui-icon-circle-arrow-w { background-position: -144px -192px; } -.ui-icon-circle-arrow-n { background-position: -160px -192px; } -.ui-icon-circle-zoomin { background-position: -176px -192px; } -.ui-icon-circle-zoomout { background-position: -192px -192px; } -.ui-icon-circle-check { background-position: -208px -192px; } -.ui-icon-circlesmall-plus { background-position: 0 -208px; } -.ui-icon-circlesmall-minus { background-position: -16px -208px; } -.ui-icon-circlesmall-close { background-position: -32px -208px; } -.ui-icon-squaresmall-plus { background-position: -48px -208px; } -.ui-icon-squaresmall-minus { background-position: -64px -208px; } -.ui-icon-squaresmall-close { background-position: -80px -208px; } -.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } -.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } -.ui-icon-grip-solid-vertical { background-position: -32px -224px; } -.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } -.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } -.ui-icon-grip-diagonal-se { background-position: -80px -224px; } - - -/* Misc visuals -----------------------------------*/ - -/* Corner radius */ -.ui-corner-all, -.ui-corner-top, -.ui-corner-left, -.ui-corner-tl { - border-top-left-radius: 4px; -} -.ui-corner-all, -.ui-corner-top, -.ui-corner-right, -.ui-corner-tr { - border-top-right-radius: 4px; -} -.ui-corner-all, -.ui-corner-bottom, -.ui-corner-left, -.ui-corner-bl { - border-bottom-left-radius: 4px; -} -.ui-corner-all, -.ui-corner-bottom, -.ui-corner-right, -.ui-corner-br { - border-bottom-right-radius: 4px; -} - -/* Overlays */ -.ui-widget-overlay { - background: #aaaaaa url(images/ui-bg_highlight-hard_40_aaaaaa_1x100.png) 50% top repeat-x; - opacity: .3; - filter: Alpha(Opacity=30); -} -.ui-widget-shadow { - margin: -8px 0 0 -8px; - padding: 8px; - background: #aaaaaa url(images/ui-bg_highlight-soft_50_aaaaaa_1x100.png) 50% top repeat-x; - opacity: .2; - filter: Alpha(Opacity=20); - border-radius: 8px; -} diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/jquery-ui-1.10.3.custom.min.css b/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/jquery-ui-1.10.3.custom.min.css deleted file mode 100755 index be84ceb..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/css/black-tie/jquery-ui-1.10.3.custom.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! jQuery UI - v1.10.3 - 2013-08-18 -* http://jqueryui.com -* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css -* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=333333&bgTextureHeader=diagonals_thick&bgImgOpacityHeader=8&borderColorHeader=a3a3a3&fcHeader=eeeeee&iconColorHeader=bbbbbb&bgColorContent=f9f9f9&bgTextureContent=highlight_hard&bgImgOpacityContent=100&borderColorContent=cccccc&fcContent=222222&iconColorContent=222222&bgColorDefault=111111&bgTextureDefault=glass&bgImgOpacityDefault=40&borderColorDefault=777777&fcDefault=e3e3e3&iconColorDefault=ededed&bgColorHover=1c1c1c&bgTextureHover=glass&bgImgOpacityHover=55&borderColorHover=000000&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=ffffff&bgTextureActive=flat&bgImgOpacityActive=65&borderColorActive=cccccc&fcActive=222222&iconColorActive=222222&bgColorHighlight=ffeb80&bgTextureHighlight=inset_hard&bgImgOpacityHighlight=55&borderColorHighlight=ffde2e&fcHighlight=363636&iconColorHighlight=4ca300&bgColorError=cd0a0a&bgTextureError=inset_hard&bgImgOpacityError=45&borderColorError=9e0505&fcError=ffffff&iconColorError=ffcf29&bgColorOverlay=aaaaaa&bgTextureOverlay=highlight_hard&bgImgOpacityOverlay=40&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=highlight_soft&bgImgOpacityShadow=50&opacityShadow=20&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px -* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ccc;background:#f9f9f9 url(images/ui-bg_highlight-hard_100_f9f9f9_1x100.png) 50% top repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #a3a3a3;background:#333 url(images/ui-bg_diagonals-thick_8_333333_40x40.png) 50% 50% repeat;color:#eee;font-weight:bold}.ui-widget-header a{color:#eee}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #777;background:#111 url(images/ui-bg_glass_40_111111_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#e3e3e3}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#e3e3e3;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #000;background:#1c1c1c url(images/ui-bg_glass_55_1c1c1c_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#fff}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#fff;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #ccc;background:#fff url(images/ui-bg_flat_65_ffffff_40x100.png) 50% 50% repeat-x;font-weight:normal;color:#222}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#222;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #ffde2e;background:#ffeb80 url(images/ui-bg_inset-hard_55_ffeb80_1x100.png) 50% bottom repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #9e0505;background:#cd0a0a url(images/ui-bg_inset-hard_45_cd0a0a_1x100.png) 50% bottom repeat-x;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_bbbbbb_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_ededed_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_ffffff_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_4ca300_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_ffcf29_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(images/ui-bg_highlight-hard_40_aaaaaa_1x100.png) 50% top repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_highlight-soft_50_aaaaaa_1x100.png) 50% top repeat-x;opacity:.2;filter:Alpha(Opacity=20);border-radius:8px} \ No newline at end of file diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/AUTHORS.txt b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/AUTHORS.txt deleted file mode 100755 index fae527d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/AUTHORS.txt +++ /dev/null @@ -1,245 +0,0 @@ -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 Costello 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 -Michel Weimerskirch -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 -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 diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/Gruntfile.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/Gruntfile.js deleted file mode 100755 index 8e46848..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/Gruntfile.js +++ /dev/null @@ -1,378 +0,0 @@ -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|tabs|tooltip)\.html$/ ).test( file ); - }) - }, - jshint: { - ui: { - options: { - jshintrc: "ui/.jshintrc" - }, - files: { - src: "ui/*.js" - } - }, - grunt: { - options: { - jshintrc: ".jshintrc" - }, - files: { - src: [ "Gruntfile.js", "build/**/*.js" ] - } - }, - tests: { - options: { - jshintrc: "tests/.jshintrc" - }, - files: { - src: "tests/unit/**/*.js" - } - } - }, - csslint: { - base_theme: { - src: "themes/base/*.css", - options: { - "adjoining-classes": false, - "box-model": false, - "compatible-vendor-prefixes": false, - "duplicate-background-images": false, - "import": false, - "important": false, - "outline-none": false, - "overqualified-elements": false, - "text-indent": false - } - } - } -}); - -grunt.registerTask( "default", [ "lint", "test" ] ); -grunt.registerTask( "lint", [ "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" ] ); -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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/MIT-LICENSE.txt b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/MIT-LICENSE.txt deleted file mode 100755 index 1c693e3..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/MIT-LICENSE.txt +++ /dev/null @@ -1,26 +0,0 @@ -Copyright 2013 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/README.md b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/README.md deleted file mode 100755 index e7ae90e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/README.md +++ /dev/null @@ -1,99 +0,0 @@ -[jQuery UI](http://jqueryui.com/) - Interactions and Widgets for the web -================================ - -jQuery UI provides interactions like Drag and Drop and widgets like Autocomplete, Tabs and Slider and makes these as easy to use as jQuery itself. - -If you want to use jQuery UI, go to [jqueryui.com](http://jqueryui.com) to get started. Or visit the [Using jQuery UI Forum](http://forum.jquery.com/using-jquery-ui) for discussions and questions. - -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 in #jquery on irc.freednode.net. - - -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/cowboy/grunt) build system. Building jQuery UI requires node.js and a command line zip program. - -Install grunt. - -`npm install grunt -g` - -Clone the jQuery UI git repo. - -`git clone git://github.com/jquery/jquery-ui.git` - -`cd jquery-ui` - -Install node modules. - -`npm install` - -Run grunt. - -`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 brach, 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/collapsible.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/collapsible.html deleted file mode 100755 index 659dfa7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/collapsible.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/custom-icons.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/custom-icons.html deleted file mode 100755 index dd5a91f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/custom-icons.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/default.html deleted file mode 100755 index c3bcfdd..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/default.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/fillspace.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/fillspace.html deleted file mode 100755 index 49f92fb..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/fillspace.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/hoverintent.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/hoverintent.html deleted file mode 100755 index 0ff63a3..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/hoverintent.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/index.html deleted file mode 100755 index 92bd33d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - jQuery UI Accordion Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/no-auto-height.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/no-auto-height.html deleted file mode 100755 index 8df94cb..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/no-auto-height.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/sortable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/sortable.html deleted file mode 100755 index 4a25f24..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/accordion/sortable.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/categories.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/categories.html deleted file mode 100755 index 8fe7e0b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/categories.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - jQuery UI Autocomplete - Categories - - - - - - - - - - - - - - - - - -
-

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

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/combobox.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/combobox.html deleted file mode 100755 index 6b1c445..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/combobox.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/custom-data.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/custom-data.html deleted file mode 100755 index 4e518db..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/custom-data.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/default.html deleted file mode 100755 index f904eac..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/default.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/folding.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/folding.html deleted file mode 100755 index 51a893b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/folding.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png deleted file mode 100755 index 9312f02..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png deleted file mode 100755 index e003d16..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png deleted file mode 100755 index 4ce0704..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png deleted file mode 100755 index c2da5b8..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif deleted file mode 100755 index 084ecb8..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/index.html deleted file mode 100755 index faa18d4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - jQuery UI Autocomplete Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/london.xml b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/london.xml deleted file mode 100755 index 2628549..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/london.xml +++ /dev/null @@ -1,114 +0,0 @@ - - -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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/maxheight.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/maxheight.html deleted file mode 100755 index b576429..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/maxheight.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/multiple-remote.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/multiple-remote.html deleted file mode 100755 index ed27562..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/multiple-remote.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/multiple.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/multiple.html deleted file mode 100755 index 68ae3d6..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/multiple.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote-jsonp.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote-jsonp.html deleted file mode 100755 index 49083bd..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote-jsonp.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote-with-cache.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote-with-cache.html deleted file mode 100755 index b47608d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote-with-cache.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote.html deleted file mode 100755 index fefe035..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/remote.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/search.php b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/search.php deleted file mode 100755 index 835772d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/search.php +++ /dev/null @@ -1,590 +0,0 @@ -"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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/xml.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/xml.html deleted file mode 100755 index e16b9e1..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/autocomplete/xml.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/checkbox.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/checkbox.html deleted file mode 100755 index 11db0de..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/checkbox.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/default.html deleted file mode 100755 index 502c2a5..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/default.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/icons.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/icons.html deleted file mode 100755 index 2a63c29..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/icons.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jQuery UI Button - Icons - - - - - - - - - - - - - - - -
-

Some buttons with various combinations of text and icons.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/index.html deleted file mode 100755 index 7956059..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - jQuery UI Button Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/radio.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/radio.html deleted file mode 100755 index b175d75..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/radio.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - jQuery UI Button - Radios - - - - - - - - - - -
-
- - - -
-
- -
-

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

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/splitbutton.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/splitbutton.html deleted file mode 100755 index b58f66a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/splitbutton.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/toolbar.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/toolbar.html deleted file mode 100755 index 306daae..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/button/toolbar.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/alt-field.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/alt-field.html deleted file mode 100755 index 98bf0ae..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/alt-field.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/animation.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/animation.html deleted file mode 100755 index a9872e5..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/animation.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/buttonbar.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/buttonbar.html deleted file mode 100755 index c430872..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/buttonbar.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/date-formats.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/date-formats.html deleted file mode 100755 index 44cfba8..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/date-formats.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/date-range.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/date-range.html deleted file mode 100755 index 7a4dbfc..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/date-range.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jQuery UI Datepicker - Select a Date Range - - - - - - - - - - - - - - - -
-

Select the date range to search for.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/default.html deleted file mode 100755 index 1d01133..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/default.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/dropdown-month-year.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/dropdown-month-year.html deleted file mode 100755 index 1a04ef7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/dropdown-month-year.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/icon-trigger.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/icon-trigger.html deleted file mode 100755 index d956168..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/icon-trigger.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/images/calendar.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/images/calendar.gif deleted file mode 100755 index d0abaa7..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/images/calendar.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/index.html deleted file mode 100755 index eb903a2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - jQuery UI Datepicker Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/inline.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/inline.html deleted file mode 100755 index 5c52b3d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/inline.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-ar.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-ar.js deleted file mode 100755 index cef0f08..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-ar.js +++ /dev/null @@ -1,23 +0,0 @@ -/* 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-fr.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-fr.js deleted file mode 100755 index 934afd1..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-fr.js +++ /dev/null @@ -1,25 +0,0 @@ -/* 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-he.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-he.js deleted file mode 100755 index b9e8dee..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-he.js +++ /dev/null @@ -1,23 +0,0 @@ -/* 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-zh-TW.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-zh-TW.js deleted file mode 100755 index b9105ea..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/jquery.ui.datepicker-zh-TW.js +++ /dev/null @@ -1,23 +0,0 @@ -/* 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/localization.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/localization.html deleted file mode 100755 index 67d55fd..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/localization.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/min-max.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/min-max.html deleted file mode 100755 index 480282e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/min-max.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/multiple-calendars.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/multiple-calendars.html deleted file mode 100755 index 6d06a47..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/multiple-calendars.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/other-months.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/other-months.html deleted file mode 100755 index 5242869..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/other-months.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/show-week.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/show-week.html deleted file mode 100755 index 0c1264e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/datepicker/show-week.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/demos.css b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/demos.css deleted file mode 100755 index da9ad83..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/demos.css +++ /dev/null @@ -1,19 +0,0 @@ -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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/animated.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/animated.html deleted file mode 100755 index f9dc697..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/animated.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/default.html deleted file mode 100755 index dc9741a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/default.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/index.html deleted file mode 100755 index 6aaa3ec..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - jQuery UI Dialog Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-confirmation.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-confirmation.html deleted file mode 100755 index 7538cd1..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-confirmation.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-form.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-form.html deleted file mode 100755 index a9f1c63..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-form.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-message.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-message.html deleted file mode 100755 index 0a6f813..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal-message.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal.html deleted file mode 100755 index 4579df2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/dialog/modal.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/constrain-movement.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/constrain-movement.html deleted file mode 100755 index b22e4c2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/constrain-movement.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/cursor-style.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/cursor-style.html deleted file mode 100755 index 05db5ea..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/cursor-style.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/default.html deleted file mode 100755 index 3ea1640..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/default.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/delay-start.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/delay-start.html deleted file mode 100755 index 413814b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/delay-start.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/events.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/events.html deleted file mode 100755 index d662e88..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/events.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/handle.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/handle.html deleted file mode 100755 index 983b653..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/handle.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/index.html deleted file mode 100755 index 9385068..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - jQuery UI Draggable Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/revert.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/revert.html deleted file mode 100755 index 8bedc06..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/revert.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/scroll.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/scroll.html deleted file mode 100755 index 60737d3..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/scroll.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/snap-to.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/snap-to.html deleted file mode 100755 index efa6665..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/snap-to.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/sortable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/sortable.html deleted file mode 100755 index 5604efd..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/sortable.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/visual-feedback.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/visual-feedback.html deleted file mode 100755 index f5827c2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/draggable/visual-feedback.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/accepted-elements.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/accepted-elements.html deleted file mode 100755 index c291b5b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/accepted-elements.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/default.html deleted file mode 100755 index d9b7d61..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/default.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras.jpg deleted file mode 100755 index 5723680..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras2.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras2.jpg deleted file mode 100755 index 1acad3a..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras2.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg deleted file mode 100755 index 493e082..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras3.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras3.jpg deleted file mode 100755 index e158b1a..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras3.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg deleted file mode 100755 index 4aa96b0..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras4.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras4.jpg deleted file mode 100755 index da4124d..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras4.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg deleted file mode 100755 index 794dbdf..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg deleted file mode 100755 index 51e0cde..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/index.html deleted file mode 100755 index deca6e4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - jQuery UI Droppable Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/photo-manager.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/photo-manager.html deleted file mode 100755 index 54a805d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/photo-manager.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/propagation.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/propagation.html deleted file mode 100755 index a116755..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/propagation.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/revert.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/revert.html deleted file mode 100755 index 2c2fb2c..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/revert.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/shopping-cart.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/shopping-cart.html deleted file mode 100755 index fe7d636..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/shopping-cart.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/visual-feedback.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/visual-feedback.html deleted file mode 100755 index 06b8325..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/droppable/visual-feedback.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/default.html deleted file mode 100755 index 7c3d05f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/default.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/easing.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/easing.html deleted file mode 100755 index 819351e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/easing.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/index.html deleted file mode 100755 index 5da6bc6..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/effect/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - jQuery UI Effects Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/calendar.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/calendar.gif deleted file mode 100755 index d0abaa7..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/calendar.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-config-on-tile.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-config-on-tile.gif deleted file mode 100755 index a96b5bf..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-config-on-tile.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-config-on.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-config-on.gif deleted file mode 100755 index e3b6d7c..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-config-on.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-spindown-closed.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-spindown-closed.gif deleted file mode 100755 index ad4bd37..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-spindown-closed.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-spindown-open.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-spindown-open.gif deleted file mode 100755 index e1c60aa..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/demo-spindown-open.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/icon-docs-info.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/icon-docs-info.gif deleted file mode 100755 index ea6d2be..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/icon-docs-info.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/pbar-ani.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/pbar-ani.gif deleted file mode 100755 index cb59a04..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/images/pbar-ani.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/default.html deleted file mode 100755 index fcb93b8..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/default.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/icons.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/icons.html deleted file mode 100755 index e928f42..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/icons.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jQuery UI Menu - Icons - - - - - - - - - - - - - - -
-

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

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/index.html deleted file mode 100755 index 40e9e0b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/menu/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - jQuery UI Menu Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/cycler.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/cycler.html deleted file mode 100755 index 7eef091..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/cycler.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/default.html deleted file mode 100755 index 8d6cca0..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/default.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/earth.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/earth.jpg deleted file mode 100755 index e5477f7..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/earth.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/flight.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/flight.jpg deleted file mode 100755 index 362bd1a..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/flight.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/rocket.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/rocket.jpg deleted file mode 100755 index 9c0495c..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/images/rocket.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/index.html deleted file mode 100755 index a7b7548..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/position/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - jQuery UI Position Demo - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/default.html deleted file mode 100755 index 8f4dd53..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/default.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - jQuery UI Progressbar - Default functionality - - - - - - - - - - -
- -
-

Default determinate progress bar.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/images/pbar-ani.gif b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/images/pbar-ani.gif deleted file mode 100755 index cb59a04..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/images/pbar-ani.gif and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/indeterminate.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/indeterminate.html deleted file mode 100755 index 54e7c43..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/indeterminate.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - jQuery UI Progressbar - Indeterminate Value - - - - - - - - - - - -
- - - - -
-

Indeterminate progress bar and switching between determinate and indeterminate styles.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/index.html deleted file mode 100755 index cfc054a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - jQuery UI Progressbar Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/label.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/label.html deleted file mode 100755 index a1e16cb..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/progressbar/label.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - jQuery UI Progressbar - Custom Label - - - - - - - - - - - -
Loading...
- -
-

Custom updated label demo.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/animate.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/animate.html deleted file mode 100755 index c066be7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/animate.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/aspect-ratio.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/aspect-ratio.html deleted file mode 100755 index f3f3501..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/aspect-ratio.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/constrain-area.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/constrain-area.html deleted file mode 100755 index a91c89b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/constrain-area.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/default.html deleted file mode 100755 index c6875ee..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/default.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/delay-start.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/delay-start.html deleted file mode 100755 index a04cdd0..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/delay-start.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jQuery UI Resizable - Delay start - - - - - - - - - - - - -

Time delay (ms):

-
-

Time

-
- -

Distance delay (px):

-
-

Distance

-
- -
-

Delay the start of resizng 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/helper.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/helper.html deleted file mode 100755 index 24f4ad3..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/helper.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/index.html deleted file mode 100755 index 7c626e2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - jQuery UI Resizable Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/max-min.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/max-min.html deleted file mode 100755 index 1f30421..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/max-min.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/snap-to-grid.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/snap-to-grid.html deleted file mode 100755 index 5d11ae7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/snap-to-grid.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/synchronous-resize.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/synchronous-resize.html deleted file mode 100755 index 4f7f418..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/synchronous-resize.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/textarea.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/textarea.html deleted file mode 100755 index 8924450..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/textarea.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/visual-feedback.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/visual-feedback.html deleted file mode 100755 index ee182b2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/resizable/visual-feedback.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/default.html deleted file mode 100755 index e110423..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/default.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/display-grid.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/display-grid.html deleted file mode 100755 index fc4fec6..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/display-grid.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/index.html deleted file mode 100755 index a82830c..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - jQuery UI Selectable Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/serialize.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/serialize.html deleted file mode 100755 index d70e314..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/selectable/serialize.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/colorpicker.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/colorpicker.html deleted file mode 100755 index e579b0e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/colorpicker.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - jQuery UI Slider - Colorpicker - - - - - - - - - - - - -

- - Simple Colorpicker -

- -
-
-
- -
- -
-

Combine three sliders to create a simple RGB colorpicker.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/default.html deleted file mode 100755 index 17ee430..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/default.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/hotelrooms.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/hotelrooms.html deleted file mode 100755 index 0968dc4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/hotelrooms.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/index.html deleted file mode 100755 index 2d05bb5..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - jQuery UI Slider Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/multiple-vertical.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/multiple-vertical.html deleted file mode 100755 index 6a0cf38..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/multiple-vertical.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/range-vertical.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/range-vertical.html deleted file mode 100755 index a6f7f5a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/range-vertical.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/range.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/range.html deleted file mode 100755 index 6a11338..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/range.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/rangemax.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/rangemax.html deleted file mode 100755 index ca1c260..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/rangemax.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/rangemin.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/rangemin.html deleted file mode 100755 index 661fb24..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/rangemin.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/side-scroll.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/side-scroll.html deleted file mode 100755 index 346acb3..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/side-scroll.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/slider-vertical.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/slider-vertical.html deleted file mode 100755 index 2bea733..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/slider-vertical.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/steps.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/steps.html deleted file mode 100755 index 821fdc7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/slider/steps.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html deleted file mode 100755 index 48f7a67..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/connect-lists.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/connect-lists.html deleted file mode 100755 index 87569ca..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/connect-lists.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/default.html deleted file mode 100755 index 9058a3f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/default.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/delay-start.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/delay-start.html deleted file mode 100755 index e48d8cf..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/delay-start.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/display-grid.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/display-grid.html deleted file mode 100755 index e644eae..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/display-grid.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/empty-lists.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/empty-lists.html deleted file mode 100755 index 2311254..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/empty-lists.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/index.html deleted file mode 100755 index 66b0b5c..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - jQuery UI Sortable Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/items.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/items.html deleted file mode 100755 index bdb0e02..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/items.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/placeholder.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/placeholder.html deleted file mode 100755 index 95a843f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/placeholder.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/portlets.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/portlets.html deleted file mode 100755 index 5a3f2b6..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/sortable/portlets.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/currency.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/currency.html deleted file mode 100755 index 0686d37..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/currency.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - jQuery UI Spinner - Currency - - - - - - - - - - - - - - - -

- - -

-

- - -

- -
-

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

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/decimal.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/decimal.html deleted file mode 100755 index b48442a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/decimal.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/default.html deleted file mode 100755 index 5093e86..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/default.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - jQuery UI Spinner - Default functionality - - - - - - - - - - - - -

- - -

- -

- - -

- -

- - -

- -
-

Default spinner.

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/index.html deleted file mode 100755 index f3c74d0..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - jQuery UI Spinner Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/latlong.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/latlong.html deleted file mode 100755 index 14c8601..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/latlong.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - jQuery UI Spinner - Map - - - - - - - - - - - - - - - - -
- - - -
- -
-

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

-
- - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/overflow.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/overflow.html deleted file mode 100755 index d46e660..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/overflow.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/time.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/time.html deleted file mode 100755 index d31dbf2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/spinner/time.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax.html deleted file mode 100755 index dd25fc0..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content1.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content1.html deleted file mode 100755 index 472bdfb..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content1.html +++ /dev/null @@ -1,4 +0,0 @@ -

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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content2.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content2.html deleted file mode 100755 index 18b03e4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content2.html +++ /dev/null @@ -1,4 +0,0 @@ -

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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content3-slow.php b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content3-slow.php deleted file mode 100755 index 7ad43ec..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content3-slow.php +++ /dev/null @@ -1,7 +0,0 @@ - -

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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content4-broken.php b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content4-broken.php deleted file mode 100755 index 55ea2fe..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/ajax/content4-broken.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/bottom.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/bottom.html deleted file mode 100755 index 0a4caea..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/bottom.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/collapsible.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/collapsible.html deleted file mode 100755 index 3cb9b7c..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/collapsible.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/default.html deleted file mode 100755 index 0b31e45..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/default.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/index.html deleted file mode 100755 index 779dfd2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - jQuery UI Tabs Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/manipulation.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/manipulation.html deleted file mode 100755 index efcf011..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/manipulation.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/mouseover.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/mouseover.html deleted file mode 100755 index 9b67781..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/mouseover.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/sortable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/sortable.html deleted file mode 100755 index 0091e58..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/sortable.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/vertical.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/vertical.html deleted file mode 100755 index b121557..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tabs/vertical.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/ajax/content1.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/ajax/content1.html deleted file mode 100755 index a1401b2..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/ajax/content1.html +++ /dev/null @@ -1 +0,0 @@ -

This content was loaded via ajax.

\ No newline at end of file diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/ajax/content2.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/ajax/content2.html deleted file mode 100755 index f4132d7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/ajax/content2.html +++ /dev/null @@ -1 +0,0 @@ -

This other content was loaded via ajax.

\ No newline at end of file diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-animation.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-animation.html deleted file mode 100755 index 46126d5..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-animation.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-content.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-content.html deleted file mode 100755 index c24a939..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-content.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-style.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-style.html deleted file mode 100755 index 3e2a56a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/custom-style.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/default.html deleted file mode 100755 index a07533b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/default.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/forms.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/forms.html deleted file mode 100755 index a5ce77f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/forms.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/images/st-stephens.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/images/st-stephens.jpg deleted file mode 100755 index 30fc36d..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/images/st-stephens.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/images/tower-bridge.jpg b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/images/tower-bridge.jpg deleted file mode 100755 index d1e14d6..0000000 Binary files a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/images/tower-bridge.jpg and /dev/null differ diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/index.html deleted file mode 100755 index cebedd0..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - jQuery UI Tooltip Demos - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/tracking.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/tracking.html deleted file mode 100755 index 48e683e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/tracking.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/video-player.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/video-player.html deleted file mode 100755 index 15db946..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/tooltip/video-player.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/widget/default.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/widget/default.html deleted file mode 100755 index 8931be4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/widget/default.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/widget/index.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/widget/index.html deleted file mode 100755 index d518b07..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/demos/widget/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - jQuery UI Widget Demo - - - - - - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/accordion.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/accordion.html deleted file mode 100755 index 8193af8..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/accordion.html +++ /dev/null @@ -1,488 +0,0 @@ - - - - - jQuery UI accordion documentation - - - - - -

-Accordion Widgetversion added: 1.0 -

-
-

Description: Convert a pair of headers and content panels into an accordion.

-

QuickNavExamples -

- -
-

The markup of your accordion container needs pairs of headers and content panels:

- -
1
2
3
4
5
6
<div id="accordion">
    <h3>First header</h3>
    <div>First content panel</div>
    <h3>Second header</h3>
    <div>Second content panel</div>
</div>
- -

Accordions support arbitrary markup, but each content panel must always be the next sibling after its associated header. See the header option for information on how to use custom markup structures.

-

The panels can be activated programmatically by setting the active option.

- -

Keyboard interaction

- -

When focus is on a header, the following key commands are available:

-
    -
  • UP/LEFT - Move focus to the previous header. If on first header, moves focus to last header.
  • -
  • DOWN/RIGHT - Move focus to the next header. If on last header, moves focus to first header.
  • -
  • HOME - Move focus to the first header.
  • -
  • END - Move focus to the last header.
  • -
  • SPACE/ENTER - Activate panel associated with focused header.
  • -
- -

When focus is in a panel:

-
    -
  • CTRL+UP: Move focus to associated header.
  • -
-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

activeType: Boolean or Integer -

-
-Default: 0 -
-
- Which panel is currently open. -
-Multiple types supported:
    -
  • -Boolean: Setting active to false will collapse all panels. This requires the collapsible option to be true.
  • -
  • -Integer: The zero-based index of the panel that is active (open). A negative value selects panels going backward from the last panel.
  • -
-Code examples:

Initialize the accordion with the active option specified:

-
$( ".selector" ).accordion({ active: 2 });
-

Get or set the active option, after initialization:

-
// getter
var active = $( ".selector" ).accordion( "option", "active" );
 
// setter
$( ".selector" ).accordion( "option", "active", 2 );
-
-
-

animateType: Boolean or Number or String or Object -

-
-Default: {} -
-
If and how to animate changing panels.
-Multiple types supported:
    -
  • -Boolean: A value of false will disable animations.
  • -
  • -Number: Duration in milliseconds with default easing.
  • -
  • -String: Name of easing to use with default duration.
  • -
  • -Object: Animation settings with easing and duration properties. -
      -
    • Can also contain a down property with any of the above options.
    • -
    • "Down" animations occur when the panel being activated has a lower index than the currently active panel.
    • -
    -
  • -
-Code examples:

Initialize the accordion with the animate option specified:

-
$( ".selector" ).accordion({ animate: "bounceslide" });
-

Get or set the animate option, after initialization:

-
// getter
var animate = $( ".selector" ).accordion( "option", "animate" );
 
// setter
$( ".selector" ).accordion( "option", "animate", "bounceslide" );
-
-
-

collapsibleType: Boolean -

-
-Default: false -
-
Whether all the sections can be closed at once. Allows collapsing the active section.
-Code examples:

Initialize the accordion with the collapsible option specified:

-
$( ".selector" ).accordion({ collapsible: true });
-

Get or set the collapsible option, after initialization:

-
// getter
var collapsible = $( ".selector" ).accordion( "option", "collapsible" );
 
// setter
$( ".selector" ).accordion( "option", "collapsible", true );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the accordion if set to true.
-Code examples:

Initialize the accordion with the disabled option specified:

-
$( ".selector" ).accordion({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).accordion( "option", "disabled" );
 
// setter
$( ".selector" ).accordion( "option", "disabled", true );
-
-
-

eventType: String -

-
-Default: "click" -
-
The event that accordion headers will react to in order to activate the associated panel. Multiple events can be specificed, separated by a space.
-Code examples:

Initialize the accordion with the event option specified:

-
$( ".selector" ).accordion({ event: "mouseover" });
-

Get or set the event option, after initialization:

-
// getter
var event = $( ".selector" ).accordion( "option", "event" );
 
// setter
$( ".selector" ).accordion( "option", "event", "mouseover" );
-
-
-

headerType: Selector -

-
-Default: "> li > :first-child,> :not(li):even" -
-
-

Selector for the header element, applied via .find() on the main accordion element. Content panels must be the sibling immedately after their associated headers.

-
-Code examples:

Initialize the accordion with the header option specified:

-
$( ".selector" ).accordion({ header: "h3" });
-

Get or set the header option, after initialization:

-
// getter
var header = $( ".selector" ).accordion( "option", "header" );
 
// setter
$( ".selector" ).accordion( "option", "header", "h3" );
-
-
-

heightStyleType: String -

-
-Default: "auto" -
-
-

Controls the height of the accordion and each panel. Possible values:

-
    -
  • -"auto": All panels will be set to the height of the tallest panel.
  • -
  • -"fill": Expand to the available height based on the accordion's parent height.
  • -
  • -"content": Each panel will be only as tall as its content.
  • -
-
-Code examples:

Initialize the accordion with the heightStyle option specified:

-
$( ".selector" ).accordion({ heightStyle: "fill" });
-

Get or set the heightStyle option, after initialization:

-
// getter
var heightStyle = $( ".selector" ).accordion( "option", "heightStyle" );
 
// setter
$( ".selector" ).accordion( "option", "heightStyle", "fill" );
-
-
-

iconsType: Object -

-
-Default: { "header": "ui-icon-triangle-1-e", "activeHeader": "ui-icon-triangle-1-s" } -
-
-

Icons to use for headers, matching an icon defined by the jQuery UI CSS Framework. Set to false to have no icons displayed.

-
    -
  • header (string, default: "ui-icon-triangle-1-e")
  • -
  • activeHeader (string, default: "ui-icon-triangle-1-s")
  • -
-
-Code examples:

Initialize the accordion with the icons option specified:

-
$( ".selector" ).accordion({ icons: { "header": "ui-icon-plus", "headerSelected": "ui-icon-minus" } });
-

Get or set the icons option, after initialization:

-
// getter
var icons = $( ".selector" ).accordion( "option", "icons" );
 
// setter
$( ".selector" ).accordion( "option", "icons", { "header": "ui-icon-plus", "headerSelected": "ui-icon-minus" } );
-

Methods

-

destroy()

-
- Removes the accordion functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).accordion( "destroy" );
-
-
-
-

disable()

-
- Disables the accordion. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).accordion( "disable" );
-
-
-
-

enable()

-
- Enables the accordion. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).accordion( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).accordion( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current accordion options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).accordion( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the accordion option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).accordion( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the accordion.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).accordion( "option", { disabled: true } );
-
-
-
-
-

refresh()

-
Recompute the height of the accordion panels. Results depend on the content and the heightStyle option.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).accordion( "refresh" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the accordion. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).accordion( "widget" );
-
-

Events

-

activate( event, ui )Type: accordionactivate -

-
Triggered after a panel has been activated (after animation completes). If the accordion was previously collapsed, ui.oldHeader and ui.oldPanel will be empty jQuery objects. If the accordion is collapsing, ui.newHeader and ui.newPanel will be empty jQuery objects.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      newHeader
      -
      Type: jQuery -
      -
      The header that was just activated.
      -
    • -
    • -
      oldHeader
      -
      Type: jQuery -
      -
      The header that was just deactivated.
      -
    • -
    • -
      newPanel
      -
      Type: jQuery -
      -
      The panel that was just activated.
      -
    • -
    • -
      oldPanel
      -
      Type: jQuery -
      -
      The panel that was just deactivated.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the accordion with the activate callback specified:

-
$( ".selector" ).accordion({
    activate: function( event, ui ) {}
});
-

Bind an event listener to the accordionactivate event:

-
$( ".selector" ).on( "accordionactivate", function( event, ui ) {} );
-
-
-
-

beforeActivate( event, ui )Type: accordionbeforeactivate -

-
Triggered directly before a panel is activated. Can be canceled to prevent the panel from activating. If the accordion is currently collapsed, ui.oldHeader and ui.oldPanel will be empty jQuery objects. If the accordion is collapsing, ui.newHeader and ui.newPanel will be empty jQuery objects.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      newHeader
      -
      Type: jQuery -
      -
      The header that is about to be activated.
      -
    • -
    • -
      oldHeader
      -
      Type: jQuery -
      -
      The header that is about to be deactivated.
      -
    • -
    • -
      newPanel
      -
      Type: jQuery -
      -
      The panel that is about to be activated.
      -
    • -
    • -
      oldPanel
      -
      Type: jQuery -
      -
      The panel that is about to be deactivated.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the accordion with the beforeActivate callback specified:

-
$( ".selector" ).accordion({
    beforeActivate: function( event, ui ) {}
});
-

Bind an event listener to the accordionbeforeactivate event:

-
$( ".selector" ).on( "accordionbeforeactivate", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: accordioncreate -

-
Triggered when the accordion is created. If the accordion is collapsed, ui.header and ui.panel will be empty jQuery objects.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      header
      -
      Type: jQuery -
      -
      The active header.
      -
    • -
    • -
      panel
      -
      Type: jQuery -
      -
      The active panel.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the accordion with the create callback specified:

-
$( ".selector" ).accordion({
    create: function( event, ui ) {}
});
-

Bind an event listener to the accordioncreate event:

-
$( ".selector" ).on( "accordioncreate", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Accordion

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>accordion demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="accordion">
    <h3>Section 1</h3>
    <div>
        <p>Mauris mauris ante, blandit et, ultrices a, suscipit eget.
        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.</p>
    </div>
    <h3>Section 2</h3>
    <div>
        <p>Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus.
        Vivamus hendrerit, dolor aliquet laoreet, mauris turpis velit,
        faucibus interdum tellus libero ac justo.</p>
    </div>
    <h3>Section 3</h3>
    <div>
        <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus.
        Quisque lobortis.Phasellus pellentesque purus in massa.</p>
        <ul>
            <li>List item one</li>
            <li>List item two</li>
            <li>List item three</li>
        </ul>
    </div>
</div>
 
<script>
$( "#accordion" ).accordion();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/autocomplete.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/autocomplete.html deleted file mode 100755 index 5d374a6..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/autocomplete.html +++ /dev/null @@ -1,577 +0,0 @@ - - - - - jQuery UI autocomplete documentation - - - - - -

-Autocomplete Widgetversion added: 1.8 -

-
-

Description: Autocomplete enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.

-

QuickNavExamples -

- -
-

By giving an Autocomplete field focus or entering something into it, the plugin starts searching for entries that match and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.

- -

This can be used to choose previously selected values, such as entering tags for articles or entering email addresses from an address book. Autocomplete can also be used to populate associated information, such as entering a city name and getting the zip code.

- -

You can pull data in from a local or remote source: Local is good for small data sets, e.g., an address book with 50 entries; remote is necessary for big data sets, such as a database with hundreds or millions of entries to select from. To find out more about customizing the data soure, see the documentation for the source option.

- -

Keyboard interaction

- -

When the menu is open, the following key commands are available:

-
    -
  • UP - Move focus to the previous item. If on first item, move focus to the input. If on the input, move focus to last item.
  • -
  • DOWN - Move focus to the next item. If on last item, move focus to the input. If on the input, move focus to the first item.
  • -
  • ESCAPE - Close the menu.
  • -
  • ENTER - Select the currently focused item and close the menu.
  • -
  • TAB - Select the currently focused item, close the menu, and move focus to the next focusable element.
  • -
  • PAGE UP/DOWN - Scroll through a page of items (based on height of menu). It's generally a bad idea to display so many items that users need to page..
  • -
- -

When the menu is closed, the following key commands are available:

-
    -
  • UP/DOWN - Open the menu, if the minLength has been met.
  • -
-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

appendToType: Selector -

-
-Default: null -
-
Which element the menu should be appended to. When the value is null, the parents of the input field will be checked for a class of ui-front. If an element with the ui-front class is found, the menu will be appended to that element. Regardless of the value, if no element is found, the menu will be appended to the body.
-Code examples:

Initialize the autocomplete with the appendTo option specified:

-
$( ".selector" ).autocomplete({ appendTo: "#someElem" });
-

Get or set the appendTo option, after initialization:

-
// getter
var appendTo = $( ".selector" ).autocomplete( "option", "appendTo" );
 
// setter
$( ".selector" ).autocomplete( "option", "appendTo", "#someElem" );
-
-
-

autoFocusType: Boolean -

-
-Default: false -
-
If set to true the first item will automatically be focused when the menu is shown.
-Code examples:

Initialize the autocomplete with the autoFocus option specified:

-
$( ".selector" ).autocomplete({ autoFocus: true });
-

Get or set the autoFocus option, after initialization:

-
// getter
var autoFocus = $( ".selector" ).autocomplete( "option", "autoFocus" );
 
// setter
$( ".selector" ).autocomplete( "option", "autoFocus", true );
-
-
-

delayType: Integer -

-
-Default: 300 -
-
The delay in milliseconds between when a keystroke occurs and when a search is performed. A zero-delay makes sense for local data (more responsive), but can produce a lot of load for remote data, while being less responsive.
-Code examples:

Initialize the autocomplete with the delay option specified:

-
$( ".selector" ).autocomplete({ delay: 500 });
-

Get or set the delay option, after initialization:

-
// getter
var delay = $( ".selector" ).autocomplete( "option", "delay" );
 
// setter
$( ".selector" ).autocomplete( "option", "delay", 500 );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the autocomplete if set to true.
-Code examples:

Initialize the autocomplete with the disabled option specified:

-
$( ".selector" ).autocomplete({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).autocomplete( "option", "disabled" );
 
// setter
$( ".selector" ).autocomplete( "option", "disabled", true );
-
-
-

minLengthType: Integer -

-
-Default: 1 -
-
The minimum number of characters a user must type before a search is performed. Zero is useful for local data with just a few items, but a higher value should be used when a single character search could match a few thousand items.
-Code examples:

Initialize the autocomplete with the minLength option specified:

-
$( ".selector" ).autocomplete({ minLength: 0 });
-

Get or set the minLength option, after initialization:

-
// getter
var minLength = $( ".selector" ).autocomplete( "option", "minLength" );
 
// setter
$( ".selector" ).autocomplete( "option", "minLength", 0 );
-
-
-

positionType: Object -

-
-Default: { my: "left top", at: "left bottom", collision: "none" } -
-
Identifies the position of the suggestions menu in relation to the associated input element. The of option defaults to the input element, but you can specify another element to position against. You can refer to the jQuery UI Position utility for more details about the various options.
-Code examples:

Initialize the autocomplete with the position option specified:

-
$( ".selector" ).autocomplete({ position: { my : "right top", at: "right bottom" } });
-

Get or set the position option, after initialization:

-
// getter
var position = $( ".selector" ).autocomplete( "option", "position" );
 
// setter
$( ".selector" ).autocomplete( "option", "position", { my : "right top", at: "right bottom" } );
-
-
-

sourceType: Array or String or Function( Object request, Function response( Object data ) ) -

-
-Default: none; must be specified -
-
- Defines the data to use, must be specified. -

Independent of the variant you use, the label is always treated as text. If you want the label to be treated as html you can use Scott González' html extension. The demos all focus on different variations of the source option - look for one that matches your use case, and check out the code.

-
-Multiple types supported:
    -
  • -Array: - An array can be used for local data. There are two supported formats: -
      -
    • An array of strings: [ "Choice1", "Choice2" ] -
    • -
    • An array of objects with label and value properties: [ { label: "Choice1", value: "value1" }, ... ] -
    • -
    - The label property is displayed in the suggestion menu. The value will be inserted into the input element when a user selects an item. If just one property is specified, it will be used for both, e.g., if you provide only value properties, the value will also be used as the label. -
  • -
  • -String: When a string is used, the Autocomplete plugin expects that string to point to a URL resource that will return JSON data. It can be on the same host or on a different one (must provide JSONP). The Autocomplete plugin does not filter the results, instead a query string is added with a term field, which the server-side script should use for filtering the results. For example, if the source option is set to "http://example.com" and the user types foo, a GET request would be made to http://example.com?term=foo. The data itself can be in the same format as the local data described above.
  • -
  • -Function: - The third variation, a callback, provides the most flexibility and can be used to connect any data source to Autocomplete. The callback gets two arguments: -
      -
    • A request object, with a single term property, which refers to the value currently in the text input. For example, if the user enters "new yo" in a city field, the Autocomplete term will equal "new yo".
    • -
    • A response callback, which expects a single argument: the data to suggest to the user. This data should be filtered based on the provided term, and can be in any of the formats described above for simple local data. It's important when providing a custom source callback to handle errors during the request. You must always call the response callback even if you encounter an error. This ensures that the widget always has the correct state.
    • -
    -

    When filtering data locally, you can make use of the built-in $.ui.autocomplete.escapeRegex function. It'll take a single string argument and escape all regex characters, making the result safe to pass to new RegExp().

    -
  • -
-Code examples:

Initialize the autocomplete with the source option specified:

-
$( ".selector" ).autocomplete({ source: [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ] });
-

Get or set the source option, after initialization:

-
// getter
var source = $( ".selector" ).autocomplete( "option", "source" );
 
// setter
$( ".selector" ).autocomplete( "option", "source", [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ] );
-

Methods

-

close()

-
Closes the Autocomplete menu. Useful in combination with the search method, to close the open menu.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the close method:

-
$( ".selector" ).autocomplete( "close" );
-
-
-
-

destroy()

-
- Removes the autocomplete functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).autocomplete( "destroy" );
-
-
-
-

disable()

-
- Disables the autocomplete. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).autocomplete( "disable" );
-
-
-
-

enable()

-
- Enables the autocomplete. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).autocomplete( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).autocomplete( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current autocomplete options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).autocomplete( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the autocomplete option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).autocomplete( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the autocomplete.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).autocomplete( "option", { disabled: true } );
-
-
-
- -
-

widget()

-
Returns a jQuery object containing the menu element. Although the menu items are constantly created and destroyed, the menu element itself is created during initialization and is constantly reused.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
$( ".selector" ).autocomplete( "widget" );
-
-

Events

-

change( event, ui )Type: autocompletechange -

-
Triggered when the field is blurred, if the value has changed.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      item
      -
      Type: jQuery -
      -
      The item selected from the menu, if any. Otherwise the property is null.
      -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the change callback specified:

-
$( ".selector" ).autocomplete({
    change: function( event, ui ) {}
});
-

Bind an event listener to the autocompletechange event:

-
$( ".selector" ).on( "autocompletechange", function( event, ui ) {} );
-
-
-
-

close( event, ui )Type: autocompleteclose -

-
Triggered when the menu is hidden. Not every close event will be accompanied by a change event.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the close callback specified:

-
$( ".selector" ).autocomplete({
    close: function( event, ui ) {}
});
-

Bind an event listener to the autocompleteclose event:

-
$( ".selector" ).on( "autocompleteclose", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: autocompletecreate -

-
- Triggered when the autocomplete is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the create callback specified:

-
$( ".selector" ).autocomplete({
    create: function( event, ui ) {}
});
-

Bind an event listener to the autocompletecreate event:

-
$( ".selector" ).on( "autocompletecreate", function( event, ui ) {} );
-
-
-
-

focus( event, ui )Type: autocompletefocus -

-
- Triggered when focus is moved to an item (not selecting). The default action is to replace the text field's value with the value of the focused item, though only if the event was triggered by a keyboard interaction. -

Canceling this event prevents the value from being updated, but does not prevent the menu item from being focused.

-
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      item
      -
      Type: jQuery -
      -
      The focused item.
      -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the focus callback specified:

-
$( ".selector" ).autocomplete({
    focus: function( event, ui ) {}
});
-

Bind an event listener to the autocompletefocus event:

-
$( ".selector" ).on( "autocompletefocus", function( event, ui ) {} );
-
-
-
-

open( event, ui )Type: autocompleteopen -

-
Triggered when the suggestion menu is opened or updated.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the open callback specified:

-
$( ".selector" ).autocomplete({
    open: function( event, ui ) {}
});
-

Bind an event listener to the autocompleteopen event:

-
$( ".selector" ).on( "autocompleteopen", function( event, ui ) {} );
-
-
-
-

response( event, ui )Type: autocompleteresponse -

-
Triggered after a search completes, before the menu is shown. Useful for local manipulation of suggestion data, where a custom source option callback is not required. This event is always triggered when a search completes, even if the menu will not be shown because there are no results or the Autocomplete is disabled.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      content
      -
      Type: Array -
      -
      Contains the response data and can be modified to change the results that will be shown. This data is already normalized, so if you modify the data, make sure to include both value and label properties for each item.
      -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the response callback specified:

-
$( ".selector" ).autocomplete({
    response: function( event, ui ) {}
});
-

Bind an event listener to the autocompleteresponse event:

-
$( ".selector" ).on( "autocompleteresponse", function( event, ui ) {} );
-
-
- -
-

select( event, ui )Type: autocompleteselect -

-
- Triggered when an item is selected from the menu. The default action is to replace the text field's value with the value of the selected item. -

Canceling this event prevents the value from being updated, but does not prevent the menu from closing.

-
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      item
      -
      Type: jQuery -
      -
      The selected item.
      -
    -
  • -
-
-Code examples:

Initialize the autocomplete with the select callback specified:

-
$( ".selector" ).autocomplete({
    select: function( event, ui ) {}
});
-

Bind an event listener to the autocompleteselect event:

-
$( ".selector" ).on( "autocompleteselect", function( event, ui ) {} );
-
-

Examples:

-

Example: A simple jQuery UI Autocomplete -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>autocomplete demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<label for="autocomplete">Select a programming language: </label>
<input id="autocomplete">
 
<script>
$( "#autocomplete" ).autocomplete({
    source: [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ]
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
-

Example: Using a custom source callback to match only the beginning of terms -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>autocomplete demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<label for="autocomplete">Select a programming language: </label>
<input id="autocomplete">
 
<script>
var tags = [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ];
$( "#autocomplete" ).autocomplete({
    source: function( request, response ) {
            var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( request.term ), "i" );
            response( $.grep( tags, function( item ){
                return matcher.test( item );
            }) );
        }
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/blind-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/blind-effect.html deleted file mode 100755 index 0ef368e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/blind-effect.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - jQuery UI blind-effect documentation - - - - - -

Blind Effect

-
-

Description: - The blind effect hides or shows an element by wrapping the element in a container, and "pulling the blinds" -

-
  • -

    blind

    -
    • -
      -direction (default: "up")
      -
      Type: String -
      -
      -

      The direction the blind will be pulled to hide the element, or the direction from which the element will be revealed.

      -

      Possible Values: up, down, left, right, vertical, horizontal.

      -
      -
    -
-
-

The container has overflow: hidden applied, so height changes affect what's visible.

-
-

Example:

-

Toggle a div using the blind effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>blind demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "blind" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/bounce-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/bounce-effect.html deleted file mode 100755 index 8a97e32..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/bounce-effect.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - jQuery UI bounce-effect documentation - - - - - -

Bounce Effect

-
-

Description: - The bounce effect bounces an element. When used with hide or show, the last or first bounce will also fade in/out. -

-
  • -

    bounce

    -
      -
    • -
      -distance (default: 20)
      -
      Type: Number -
      -
      The distance of the largest "bounce" in pixels.
      -
    • -
    • -
      -times (default: 5)
      -
      Type: Integer -
      -
      The number of times the element will bounce. When used with hide or show, there is an extra "half" bounce for the fade in/out.
      -
    • -
    -
-

Example:

-

Toggle a div using the bounce effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>bounce demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "bounce", { times: 3 }, "slow" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/button.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/button.html deleted file mode 100755 index b16f32e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/button.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - jQuery UI button documentation - - - - - -

-Button Widgetversion added: 1.8 -

-
-

Description: Themable buttons and button sets.

-

QuickNavExamples -

-

Options

- - - - -
- -
-

Events

- -
-

Button enhances standard form elements like buttons, inputs and anchors to themable buttons with appropiate hover and active styles.

- -

In addition to basic push buttons, radio buttons and checkboxes (inputs of type radio and checkbox) can be converted to buttons. Their associated label is styled to appear as the button, while the underlying input is updated on click. For the association to work properly, give the input an id attribute, and refer to that in the label's for attribute. Don't nest the input inside the label, as that causes accessbility problems.

- -

In order to group radio buttons, Button also provides an additional widget, called Buttonset. Buttonset is used by selecting a container element (which contains the radio buttons) and calling .buttonset(). Buttonset will also provide visual grouping, and therefore should be used whenever you have a group of buttons. It works by selecting all descendants and applying .button() to them. You can enable and disable a button set, which will enable and disable all contained buttons. Destroying a button set also calls each button's destroy method.

- -

When using an input of type button, submit or reset, support is limited to plain text labels with no icons.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

disabledType: Boolean -

-
-Default: false -
-
Disables the button if set to true.
-Code examples:

Initialize the button with the disabled option specified:

-
$( ".selector" ).button({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).button( "option", "disabled" );
 
// setter
$( ".selector" ).button( "option", "disabled", true );
-
-
-

iconsType: Object -

-
-Default: { primary: null, secondary: null } -
-
Icons to display, with or without text (see text option). By default, the primary icon is displayed on the left of the label text and the secondary is displayed on the right. The positioning can be controlled via CSS. The value for the primary and secondary properties must be a class name, e.g., "ui-icon-gear". For using only one icon: icons: { primary: "ui-icon-locked" }. For using two icons: icons: { primary: "ui-icon-gear", secondary: "ui-icon-triangle-1-s" }.
-Code examples:

Initialize the button with the icons option specified:

-
$( ".selector" ).button({ icons: { primary: "ui-icon-gear", secondary: "ui-icon-triangle-1-s" } });
-

Get or set the icons option, after initialization:

-
// getter
var icons = $( ".selector" ).button( "option", "icons" );
 
// setter
$( ".selector" ).button( "option", "icons", { primary: "ui-icon-gear", secondary: "ui-icon-triangle-1-s" } );
-
-
-

labelType: String -

-
-Default: null -
-
Text to show in the button. When not specified (null), the element's HTML content is used, or its value attribute if the element is an input element of type submit or reset, or the HTML content of the associated label element if the element is an input of type radio or checkbox.
-Code examples:

Initialize the button with the label option specified:

-
$( ".selector" ).button({ label: "custom label" });
-

Get or set the label option, after initialization:

-
// getter
var label = $( ".selector" ).button( "option", "label" );
 
// setter
$( ".selector" ).button( "option", "label", "custom label" );
-
-
-

textType: Boolean -

-
-Default: true -
-
Whether to show the label. When set to false no text will be displayed, but the icons option must be enabled, otherwise the text option will be ignored.
-Code examples:

Initialize the button with the text option specified:

-
$( ".selector" ).button({ text: false });
-

Get or set the text option, after initialization:

-
// getter
var text = $( ".selector" ).button( "option", "text" );
 
// setter
$( ".selector" ).button( "option", "text", false );
-

Methods

-

destroy()

-
- Removes the button functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).button( "destroy" );
-
-
-
-

disable()

-
- Disables the button. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).button( "disable" );
-
-
-
-

enable()

-
- Enables the button. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).button( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).button( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current button options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).button( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the button option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).button( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the button.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).button( "option", { disabled: true } );
-
-
-
-
-

refresh()

-
Refreshes the visual state of the button. Useful for updating button state after the native element's checked or disabled state is changed programmatically.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).button( "refresh" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the element visually representing the button. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).button( "widget" );
-
-

Events

-

create( event, ui )Type: buttoncreate -

-
- Triggered when the button is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the button with the create callback specified:

-
$( ".selector" ).button({
    create: function( event, ui ) {}
});
-

Bind an event listener to the buttoncreate event:

-
$( ".selector" ).on( "buttoncreate", function( event, ui ) {} );
-
-

Examples:

-

Example: A simple jQuery UI Button -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>button demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<button>Button label</button>
 
<script>
$( "button" ).button();
</script>
 
</body>
</html>
-

Demo:

-
-
-
-

Example: A simple jQuery UI Buttonset -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>button demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="radio">
    <input type="radio" id="radio1" name="radio"><label for="radio1">Choice 1</label>
    <input type="radio" id="radio2" name="radio" checked="checked"><label for="radio2">Choice 2</label>
    <input type="radio" id="radio3" name="radio"><label for="radio3">Choice 3</label>
</div>
 
<script>
$( "#radio" ).buttonset();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/clip-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/clip-effect.html deleted file mode 100755 index dd942ec..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/clip-effect.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - jQuery UI clip-effect documentation - - - - - -

Clip Effect

-
-

Description: - The clip effect will hide or show an element by clipping the element vertically or horizontally. -

-
  • -

    clip

    -
    • -
      -direction (default: "up")
      -
      Type: String -
      -
      -

      The plane in which the clip effect will hide or show its element.

      -

      vertical clips the top and bottom edges, while horizontal clips the right and left edges.

      -
      -
    -
-

Example:

-

Toggle a div using the clip effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>clip demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "clip" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/datepicker.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/datepicker.html deleted file mode 100755 index 0a95851..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/datepicker.html +++ /dev/null @@ -1,946 +0,0 @@ - - - - - jQuery UI datepicker documentation - - - - - -

-Datepicker Widgetversion added: 1.0 -

-
-

Description: Select a date from a popup or inline calendar

-

QuickNavExamples -

- -

Events

-

The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily.

- -

By default, the datepicker calendar opens in a small overlay when the associated text field gains focus. For an inline calendar, simply attach the datepicker to a div or span.

- -

Keyboard interaction

-

While the datepicker is open, the following key commands are available:

-
    -
  • PAGE UP: Move to the previous month.
  • -
  • PAGE DOWN: Move to the next month.
  • -
  • CTRL+PAGE UP: Move to the previous year.
  • -
  • CTRL+PAGE DOWN: Move to the next year.
  • -
  • CTRL+HOME: Move to the current month. Open the datepicker if closed.
  • -
  • CTRL+LEFT: Move to the previous day.
  • -
  • CTRL+RIGHT: Move to the next day.
  • -
  • CTRL+UP: Move to the previous week.
  • -
  • CTRL+DOWN: Move the next week.
  • -
  • ENTER: Select the focused date.
  • -
  • CTRL+END: Close the datepicker and erase the date.
  • -
  • ESCAPE: Close the datepicker without selection.
  • -
- -

Utility functions

-
    -
  • $.datepicker.setDefaults( settings ) - Set settings for all datepicker instances.
  • -
  • $.datepicker.formatDate( format, date, settings ) - Format a date into a string value with a specified format.
  • -
  • $.datepicker.parseDate( format, value, settings ) - Extract a date from a string value with a specified format.
  • -
  • $.datepicker.iso8601Week( date ) - Determine the week of the year for a given date: 1 to 53.
  • -
  • $.datepicker.noWeekends - Set as beforeShowDay function to prevent selection of weekends.
  • -
- -

Localization

-

Datepicker provides support for localizing its content to cater for different languages and date formats. Each localization is contained within its own file with the language code appended to the name, e.g., jquery.ui.datepicker-fr.js for French. The desired localization file should be included after the main datepicker code. Each localization file adds its settings to the set of available localizations and automatically applies them as defaults for all instances.

-

The $.datepicker.regional attribute holds an array of localizations, indexed by language code, with "" referring to the default (English). Each entry is an object with the following attributes: closeText, prevText, nextText, currentText, monthNames, monthNamesShort, dayNames, dayNamesShort, dayNamesMin, weekHeader, dateFormat, firstDay, isRTL, showMonthAfterYear, and yearSuffix.

-

You can restore the default localizations with:

- $.datepicker.setDefaults( $.datepicker.regional[ "" ] ); -

And can then override an individual datepicker for a specific locale:

- $( selector ).datepicker( $.datepicker.regional[ "fr" ] ); -
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

altFieldType: Selector or jQuery or Element -

-
-Default: "" -
-
An input element that is to be updated with the selected date from the datepicker. Use the altFormat option to change the format of the date within this field. Leave as blank for no alternate field.
-Code examples:

Initialize the datepicker with the altField option specified:

-
$( ".selector" ).datepicker({ altField: "#actualDate" });
-

Get or set the altField option, after initialization:

-
// getter
var altField = $( ".selector" ).datepicker( "option", "altField" );
 
// setter
$( ".selector" ).datepicker( "option", "altField", "#actualDate" );
-
-
-

altFormatType: String -

-
-Default: "" -
-
The dateFormat to be used for the altField option. This allows one date format to be shown to the user for selection purposes, while a different format is actually sent behind the scenes. For a full list of the possible formats see the [[UI/Datepicker/formatDate|formatDate]] function
-Code examples:

Initialize the datepicker with the altFormat option specified:

-
$( ".selector" ).datepicker({ altFormat: "yy-mm-dd" });
-

Get or set the altFormat option, after initialization:

-
// getter
var altFormat = $( ".selector" ).datepicker( "option", "altFormat" );
 
// setter
$( ".selector" ).datepicker( "option", "altFormat", "yy-mm-dd" );
-
-
-

appendTextType: String -

-
-Default: "" -
-
The text to display after each date field, e.g., to show the required format.
-Code examples:

Initialize the datepicker with the appendText option specified:

-
$( ".selector" ).datepicker({ appendText: "(yyyy-mm-dd)" });
-

Get or set the appendText option, after initialization:

-
// getter
var appendText = $( ".selector" ).datepicker( "option", "appendText" );
 
// setter
$( ".selector" ).datepicker( "option", "appendText", "(yyyy-mm-dd)" );
-
-
-

autoSizeType: Boolean -

-
-Default: false -
-
Set to true to automatically resize the input field to accommodate dates in the current dateFormat.
-Code examples:

Initialize the datepicker with the autoSize option specified:

-
$( ".selector" ).datepicker({ autoSize: true });
-

Get or set the autoSize option, after initialization:

-
// getter
var autoSize = $( ".selector" ).datepicker( "option", "autoSize" );
 
// setter
$( ".selector" ).datepicker( "option", "autoSize", true );
-
-
-

beforeShowType: Function( Element input, Object inst ) -

-
-Default: null -
-
A function that takes an input field and current datepicker instance and returns an options object to update the datepicker with. It is called just before the datepicker is displayed.
-
-
-

beforeShowDayType: Function( Date date ) -

-
-Default: null -
-
A function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable, [1] equal to a CSS class name or "" for the default presentation, and [2] an optional popup tooltip for this date. It is called for each day in the datepicker before it is displayed.
-
-
-

buttonImageType: String -

-
-Default: "" -
-
The URL for the popup button image. If set, the buttonText option becomes the alt value and is not directly displayed.
-Code examples:

Initialize the datepicker with the buttonImage option specified:

-
$( ".selector" ).datepicker({ buttonImage: "/images/datepicker.gif" });
-

Get or set the buttonImage option, after initialization:

-
// getter
var buttonImage = $( ".selector" ).datepicker( "option", "buttonImage" );
 
// setter
$( ".selector" ).datepicker( "option", "buttonImage", "/images/datepicker.gif" );
-
-
-

buttonImageOnlyType: Boolean -

-
-Default: false -
-
Whether the button image should be rendered by itself instead of inside a button element.
-Code examples:

Initialize the datepicker with the buttonImageOnly option specified:

-
$( ".selector" ).datepicker({ buttonImageOnly: true });
-

Get or set the buttonImageOnly option, after initialization:

-
// getter
var buttonImageOnly = $( ".selector" ).datepicker( "option", "buttonImageOnly" );
 
// setter
$( ".selector" ).datepicker( "option", "buttonImageOnly", true );
-
-
-

buttonTextType: String -

-
-Default: "..." -
-
The text to display on the trigger button. Use in conjunction with the showOn option set to "button" or "both".
-Code examples:

Initialize the datepicker with the buttonText option specified:

-
$( ".selector" ).datepicker({ buttonText: "Choose" });
-

Get or set the buttonText option, after initialization:

-
// getter
var buttonText = $( ".selector" ).datepicker( "option", "buttonText" );
 
// setter
$( ".selector" ).datepicker( "option", "buttonText", "Choose" );
-
-
-

calculateWeekType: Function() -

-
-Default: jQuery.datepicker.iso8601Week -
-
A function to calculate the week of the year for a given date. The default implementation uses the ISO 8601 definition: weeks start on a Monday; the first week of the year contains the first Thursday of the year.
-Code examples:

Initialize the datepicker with the calculateWeek option specified:

-
$( ".selector" ).datepicker({ calculateWeek: myWeekCalc });
-

Get or set the calculateWeek option, after initialization:

-
// getter
var calculateWeek = $( ".selector" ).datepicker( "option", "calculateWeek" );
 
// setter
$( ".selector" ).datepicker( "option", "calculateWeek", myWeekCalc );
-
-
-

changeMonthType: Boolean -

-
-Default: false -
-
Whether the month should be rendered as a dropdown instead of text.
-Code examples:

Initialize the datepicker with the changeMonth option specified:

-
$( ".selector" ).datepicker({ changeMonth: true });
-

Get or set the changeMonth option, after initialization:

-
// getter
var changeMonth = $( ".selector" ).datepicker( "option", "changeMonth" );
 
// setter
$( ".selector" ).datepicker( "option", "changeMonth", true );
-
-
-

changeYearType: Boolean -

-
-Default: false -
-
Whether the year should be rendered as a dropdown instead of text. Use the yearRange option to control which years are made available for selection.
-Code examples:

Initialize the datepicker with the changeYear option specified:

-
$( ".selector" ).datepicker({ changeYear: true });
-

Get or set the changeYear option, after initialization:

-
// getter
var changeYear = $( ".selector" ).datepicker( "option", "changeYear" );
 
// setter
$( ".selector" ).datepicker( "option", "changeYear", true );
-
-
-

closeTextType: String -

-
-Default: "Done" -
-
The text to display for the close link. Use the showButtonPanel option to display this button.
-Code examples:

Initialize the datepicker with the closeText option specified:

-
$( ".selector" ).datepicker({ closeText: "Close" });
-

Get or set the closeText option, after initialization:

-
// getter
var closeText = $( ".selector" ).datepicker( "option", "closeText" );
 
// setter
$( ".selector" ).datepicker( "option", "closeText", "Close" );
-
-
-

constrainInputType: Boolean -

-
-Default: true -
-
When true, entry in the input field is constrained to those characters allowed by the current dateFormat option.
-Code examples:

Initialize the datepicker with the constrainInput option specified:

-
$( ".selector" ).datepicker({ constrainInput: false });
-

Get or set the constrainInput option, after initialization:

-
// getter
var constrainInput = $( ".selector" ).datepicker( "option", "constrainInput" );
 
// setter
$( ".selector" ).datepicker( "option", "constrainInput", false );
-
-
-

currentTextType: String -

-
-Default: "Today" -
-
The text to display for the current day link. Use the showButtonPanel option to display this button.
-Code examples:

Initialize the datepicker with the currentText option specified:

-
$( ".selector" ).datepicker({ currentText: "Now" });
-

Get or set the currentText option, after initialization:

-
// getter
var currentText = $( ".selector" ).datepicker( "option", "currentText" );
 
// setter
$( ".selector" ).datepicker( "option", "currentText", "Now" );
-
-
-

dateFormatType: String -

-
-Default: "mm/dd/yy" -
-
The format for parsed and displayed dates. For a full list of the possible formats see the [[UI/Datepicker/formatDate|formatDate]] function.
-Code examples:

Initialize the datepicker with the dateFormat option specified:

-
$( ".selector" ).datepicker({ dateFormat: "yy-mm-dd" });
-

Get or set the dateFormat option, after initialization:

-
// getter
var dateFormat = $( ".selector" ).datepicker( "option", "dateFormat" );
 
// setter
$( ".selector" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
-
-
-

dayNamesType: Array -

-
-Default: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ] -
-
The list of long day names, starting from Sunday, for use as requested via the dateFormat option.
-Code examples:

Initialize the datepicker with the dayNames option specified:

-
$( ".selector" ).datepicker({ dayNames: [ "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi" ] });
-

Get or set the dayNames option, after initialization:

-
// getter
var dayNames = $( ".selector" ).datepicker( "option", "dayNames" );
 
// setter
$( ".selector" ).datepicker( "option", "dayNames", [ "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi" ] );
-
-
-

dayNamesMinType: Array -

-
-Default: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ] -
-
The list of minimised day names, starting from Sunday, for use as column headers within the datepicker.
-Code examples:

Initialize the datepicker with the dayNamesMin option specified:

-
$( ".selector" ).datepicker({ dayNamesMin: [ "Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa" ] });
-

Get or set the dayNamesMin option, after initialization:

-
// getter
var dayNamesMin = $( ".selector" ).datepicker( "option", "dayNamesMin" );
 
// setter
$( ".selector" ).datepicker( "option", "dayNamesMin", [ "Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa" ] );
-
-
-

dayNamesShortType: Array -

-
-Default: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ] -
-
The list of abbreviated day names, starting from Sunday, for use as requested via the dateFormat option.
-Code examples:

Initialize the datepicker with the dayNamesShort option specified:

-
$( ".selector" ).datepicker({ dayNamesShort: [ "Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam" ] });
-

Get or set the dayNamesShort option, after initialization:

-
// getter
var dayNamesShort = $( ".selector" ).datepicker( "option", "dayNamesShort" );
 
// setter
$( ".selector" ).datepicker( "option", "dayNamesShort", [ "Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam" ] );
-
-
-

defaultDateType: Date or Number or String -

-
-Default: null -
-
Set the date to highlight on first opening if the field is blank. Specify either an actual date via a Date object or as a string in the current [[UI/Datepicker#option-dateFormat|dateFormat]], or a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '+1m +7d'), or null for today.
-Multiple types supported:
    -
  • -Date: A date object containing the default date.
  • -
  • -Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
  • -
  • -String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
  • -
-Code examples:

Initialize the datepicker with the defaultDate option specified:

-
$( ".selector" ).datepicker({ defaultDate: +7 });
-

Get or set the defaultDate option, after initialization:

-
// getter
var defaultDate = $( ".selector" ).datepicker( "option", "defaultDate" );
 
// setter
$( ".selector" ).datepicker( "option", "defaultDate", +7 );
-
-
-

durationType: or String -

-
-Default: "normal" -
-
Control the speed at which the datepicker appears, it may be a time in milliseconds or a string representing one of the three predefined speeds ("slow", "normal", "fast").
-Code examples:

Initialize the datepicker with the duration option specified:

-
$( ".selector" ).datepicker({ duration: "slow" });
-

Get or set the duration option, after initialization:

-
// getter
var duration = $( ".selector" ).datepicker( "option", "duration" );
 
// setter
$( ".selector" ).datepicker( "option", "duration", "slow" );
-
-
-

firstDayType: Integer -

-
-Default: 0 -
-
Set the first day of the week: Sunday is 0, Monday is 1, etc.
-Code examples:

Initialize the datepicker with the firstDay option specified:

-
$( ".selector" ).datepicker({ firstDay: 1 });
-

Get or set the firstDay option, after initialization:

-
// getter
var firstDay = $( ".selector" ).datepicker( "option", "firstDay" );
 
// setter
$( ".selector" ).datepicker( "option", "firstDay", 1 );
-
-
-

gotoCurrentType: Boolean -

-
-Default: false -
-
When true, the current day link moves to the currently selected date instead of today.
-Code examples:

Initialize the datepicker with the gotoCurrent option specified:

-
$( ".selector" ).datepicker({ gotoCurrent: true });
-

Get or set the gotoCurrent option, after initialization:

-
// getter
var gotoCurrent = $( ".selector" ).datepicker( "option", "gotoCurrent" );
 
// setter
$( ".selector" ).datepicker( "option", "gotoCurrent", true );
-
-
-

hideIfNoPrevNextType: Boolean -

-
-Default: false -
-
Normally the previous and next links are disabled when not applicable (see the minDate and maxDate options). You can hide them altogether by setting this attribute to true.
-Code examples:

Initialize the datepicker with the hideIfNoPrevNext option specified:

-
$( ".selector" ).datepicker({ hideIfNoPrevNext: true });
-

Get or set the hideIfNoPrevNext option, after initialization:

-
// getter
var hideIfNoPrevNext = $( ".selector" ).datepicker( "option", "hideIfNoPrevNext" );
 
// setter
$( ".selector" ).datepicker( "option", "hideIfNoPrevNext", true );
-
-
-

isRTLType: Boolean -

-
-Default: false -
-
Whether the current language is drawn from right to left.
-Code examples:

Initialize the datepicker with the isRTL option specified:

-
$( ".selector" ).datepicker({ isRTL: true });
-

Get or set the isRTL option, after initialization:

-
// getter
var isRTL = $( ".selector" ).datepicker( "option", "isRTL" );
 
// setter
$( ".selector" ).datepicker( "option", "isRTL", true );
-
-
-

maxDateType: Date or Number or String -

-
-Default: null -
-
The maximum selectable date. When set to null, there is no maximum.
-Multiple types supported:
    -
  • -Date: A date object containing the maximum date.
  • -
  • -Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
  • -
  • -String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
  • -
-Code examples:

Initialize the datepicker with the maxDate option specified:

-
$( ".selector" ).datepicker({ maxDate: "+1m +1w" });
-

Get or set the maxDate option, after initialization:

-
// getter
var maxDate = $( ".selector" ).datepicker( "option", "maxDate" );
 
// setter
$( ".selector" ).datepicker( "option", "maxDate", "+1m +1w" );
-
-
-

minDateType: Date or Number or String -

-
-Default: null -
-
The minimum selectable date. When set to null, there is no minimum.
-Multiple types supported:
    -
  • -Date: A date object containing the minimum date.
  • -
  • -Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
  • -
  • -String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
  • -
-Code examples:

Initialize the datepicker with the minDate option specified:

-
$( ".selector" ).datepicker({ minDate: new Date(2007, 1 - 1, 1) });
-

Get or set the minDate option, after initialization:

-
// getter
var minDate = $( ".selector" ).datepicker( "option", "minDate" );
 
// setter
$( ".selector" ).datepicker( "option", "minDate", new Date(2007, 1 - 1, 1) );
-
-
-

monthNamesType: Array -

-
-Default: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] -
-
The list of full month names, for use as requested via the dateFormat option.
-Code examples:

Initialize the datepicker with the monthNames option specified:

-
$( ".selector" ).datepicker({ monthNames: [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ] });
-

Get or set the monthNames option, after initialization:

-
// getter
var monthNames = $( ".selector" ).datepicker( "option", "monthNames" );
 
// setter
$( ".selector" ).datepicker( "option", "monthNames", [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ] );
-
-
-

monthNamesShortType: Array -

-
-Default: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] -
-
The list of abbreviated month names, as used in the month header on each datepicker and as requested via the dateFormat option.
-Code examples:

Initialize the datepicker with the monthNamesShort option specified:

-
$( ".selector" ).datepicker({ monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" ] });
-

Get or set the monthNamesShort option, after initialization:

-
// getter
var monthNamesShort = $( ".selector" ).datepicker( "option", "monthNamesShort" );
 
// setter
$( ".selector" ).datepicker( "option", "monthNamesShort", [ "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" ] );
-
-
-

navigationAsDateFormatType: Boolean -

-
-Default: false -
-
Whether the prevText and nextText options should be parsed as dates by the [[UI/Datepicker/formatDate|formatDate]] function, allowing them to display the target month names for example.
-Code examples:

Initialize the datepicker with the navigationAsDateFormat option specified:

-
$( ".selector" ).datepicker({ navigationAsDateFormat: true });
-

Get or set the navigationAsDateFormat option, after initialization:

-
// getter
var navigationAsDateFormat = $( ".selector" ).datepicker( "option", "navigationAsDateFormat" );
 
// setter
$( ".selector" ).datepicker( "option", "navigationAsDateFormat", true );
-
-
-

nextTextType: String -

-
-Default: "Next" -
-
The text to display for the next month link. With the standard ThemeRoller styling, this value is replaced by an icon.
-Code examples:

Initialize the datepicker with the nextText option specified:

-
$( ".selector" ).datepicker({ nextText: "Later" });
-

Get or set the nextText option, after initialization:

-
// getter
var nextText = $( ".selector" ).datepicker( "option", "nextText" );
 
// setter
$( ".selector" ).datepicker( "option", "nextText", "Later" );
-
-
-

numberOfMonthsType: Number or Array -

-
-Default: 1 -
-
The number of months to show at once.
-Multiple types supported:
    -
  • -Number: The number of months to display in a single row.
  • -
  • -Array: An array defining the number of rows and columns to display.
  • -
-Code examples:

Initialize the datepicker with the numberOfMonths option specified:

-
$( ".selector" ).datepicker({ numberOfMonths: [ 2, 3 ] });
-

Get or set the numberOfMonths option, after initialization:

-
// getter
var numberOfMonths = $( ".selector" ).datepicker( "option", "numberOfMonths" );
 
// setter
$( ".selector" ).datepicker( "option", "numberOfMonths", [ 2, 3 ] );
-
-
-

onChangeMonthYearType: Function( Integer year, Integer month, Object inst ) -

-
-Default: null -
-
Called when the datepicker moves to a new month and/or year. The function receives the selected year, month (1-12), and the datepicker instance as parameters. this refers to the associated input field.
-
-
-

onCloseType: Function( String dateText, Object inst ) -

-
-Default: null -
-
Called when the datepicker is closed, whether or not a date is selected. The function receives the selected date as text ("" if none) and the datepicker instance as parameters. this refers to the associated input field.
-
-
-

onSelectType: Function( String dateText, Object inst ) -

-
-Default: null -
-
Called when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. this refers to the associated input field.
-
-
-

prevTextType: String -

-
-Default: "Prev" -
-
The text to display for the previous month link. With the standard ThemeRoller styling, this value is replaced by an icon.
-Code examples:

Initialize the datepicker with the prevText option specified:

-
$( ".selector" ).datepicker({ prevText: "Earlier" });
-

Get or set the prevText option, after initialization:

-
// getter
var prevText = $( ".selector" ).datepicker( "option", "prevText" );
 
// setter
$( ".selector" ).datepicker( "option", "prevText", "Earlier" );
-
-
-

selectOtherMonthsType: Boolean -

-
-Default: false -
-
Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
-Code examples:

Initialize the datepicker with the selectOtherMonths option specified:

-
$( ".selector" ).datepicker({ selectOtherMonths: true });
-

Get or set the selectOtherMonths option, after initialization:

-
// getter
var selectOtherMonths = $( ".selector" ).datepicker( "option", "selectOtherMonths" );
 
// setter
$( ".selector" ).datepicker( "option", "selectOtherMonths", true );
-
-
-

shortYearCutoffType: Number or String -

-
-Default: "+10" -
-
The cutoff year for determining the century for a date (used in conjunction with [[UI/Datepicker#option-dateFormat|dateFormat]] 'y'). Any dates entered with a year value less than or equal to the cutoff year are considered to be in the current century, while those greater than it are deemed to be in the previous century.
-Multiple types supported:
    -
  • -Number: A value between 0 and 99 indicating the cutoff year.
  • -
  • -String: A relative number of years from the current year, e.g., "+3" or "-5".
  • -
-Code examples:

Initialize the datepicker with the shortYearCutoff option specified:

-
$( ".selector" ).datepicker({ shortYearCutoff: 50 });
-

Get or set the shortYearCutoff option, after initialization:

-
// getter
var shortYearCutoff = $( ".selector" ).datepicker( "option", "shortYearCutoff" );
 
// setter
$( ".selector" ).datepicker( "option", "shortYearCutoff", 50 );
-
-
-

showAnimType: String -

-
-Default: "show" -
-
The name of the animation used to show and hide the datepicker. Use "show" (the default), "slideDown", "fadeIn", any of the jQuery UI effects. Set to an empty string to disable animation.
-Code examples:

Initialize the datepicker with the showAnim option specified:

-
$( ".selector" ).datepicker({ showAnim: "fold" });
-

Get or set the showAnim option, after initialization:

-
// getter
var showAnim = $( ".selector" ).datepicker( "option", "showAnim" );
 
// setter
$( ".selector" ).datepicker( "option", "showAnim", "fold" );
-
-
-

showButtonPanelType: Boolean -

-
-Default: false -
-
Whether to show the button panel.
-Code examples:

Initialize the datepicker with the showButtonPanel option specified:

-
$( ".selector" ).datepicker({ showButtonPanel: true });
-

Get or set the showButtonPanel option, after initialization:

-
// getter
var showButtonPanel = $( ".selector" ).datepicker( "option", "showButtonPanel" );
 
// setter
$( ".selector" ).datepicker( "option", "showButtonPanel", true );
-
-
-

showCurrentAtPosType: Number -

-
-Default: 0 -
-
When displaying multiple months via the numberOfMonths option, the showCurrentAtPos option defines which position to display the current month in.
-Code examples:

Initialize the datepicker with the showCurrentAtPos option specified:

-
$( ".selector" ).datepicker({ showCurrentAtPos: 3 });
-

Get or set the showCurrentAtPos option, after initialization:

-
// getter
var showCurrentAtPos = $( ".selector" ).datepicker( "option", "showCurrentAtPos" );
 
// setter
$( ".selector" ).datepicker( "option", "showCurrentAtPos", 3 );
-
-
-

showMonthAfterYearType: Boolean -

-
-Default: false -
-
Whether to show the month after the year in the header.
-Code examples:

Initialize the datepicker with the showMonthAfterYear option specified:

-
$( ".selector" ).datepicker({ showMonthAfterYear: true });
-

Get or set the showMonthAfterYear option, after initialization:

-
// getter
var showMonthAfterYear = $( ".selector" ).datepicker( "option", "showMonthAfterYear" );
 
// setter
$( ".selector" ).datepicker( "option", "showMonthAfterYear", true );
-
-
-

showOnType: String -

-
-Default: "focus" -
-
When the datepicker should appear. The datepicker can appear when the field receives focus ("focus"), when a button is clicked ("button"), or when either event occurs ("both").
-Code examples:

Initialize the datepicker with the showOn option specified:

-
$( ".selector" ).datepicker({ showOn: "both" });
-

Get or set the showOn option, after initialization:

-
// getter
var showOn = $( ".selector" ).datepicker( "option", "showOn" );
 
// setter
$( ".selector" ).datepicker( "option", "showOn", "both" );
-
-
-

showOptionsType: Object -

-
-Default: {} -
-
If using one of the jQuery UI effects for the showAnim option, you can provide additional settings for that animation via this option.
-Code examples:

Initialize the datepicker with the showOptions option specified:

-
$( ".selector" ).datepicker({ showOptions: { direction: "up" } });
-

Get or set the showOptions option, after initialization:

-
// getter
var showOptions = $( ".selector" ).datepicker( "option", "showOptions" );
 
// setter
$( ".selector" ).datepicker( "option", "showOptions", { direction: "up" } );
-
-
-

showOtherMonthsType: Boolean -

-
-Default: false -
-
Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.
-Code examples:

Initialize the datepicker with the showOtherMonths option specified:

-
$( ".selector" ).datepicker({ showOtherMonths: true });
-

Get or set the showOtherMonths option, after initialization:

-
// getter
var showOtherMonths = $( ".selector" ).datepicker( "option", "showOtherMonths" );
 
// setter
$( ".selector" ).datepicker( "option", "showOtherMonths", true );
-
-
-

showWeekType: Boolean -

-
-Default: false -
-
When true, a column is added to show the week of the year. The calculateWeek option determines how the week of the year is calculated. You may also want to change the firstDay option.
-Code examples:

Initialize the datepicker with the showWeek option specified:

-
$( ".selector" ).datepicker({ showWeek: true });
-

Get or set the showWeek option, after initialization:

-
// getter
var showWeek = $( ".selector" ).datepicker( "option", "showWeek" );
 
// setter
$( ".selector" ).datepicker( "option", "showWeek", true );
-
-
-

stepMonthsType: Number -

-
-Default: 1 -
-
Set how many months to move when clicking the previous/next links.
-Code examples:

Initialize the datepicker with the stepMonths option specified:

-
$( ".selector" ).datepicker({ stepMonths: 3 });
-

Get or set the stepMonths option, after initialization:

-
// getter
var stepMonths = $( ".selector" ).datepicker( "option", "stepMonths" );
 
// setter
$( ".selector" ).datepicker( "option", "stepMonths", 3 );
-
-
-

weekHeaderType: String -

-
-Default: "Wk" -
-
The text to display for the week of the year column heading. Use the showWeek option to display this column.
-Code examples:

Initialize the datepicker with the weekHeader option specified:

-
$( ".selector" ).datepicker({ weekHeader: "W" });
-

Get or set the weekHeader option, after initialization:

-
// getter
var weekHeader = $( ".selector" ).datepicker( "option", "weekHeader" );
 
// setter
$( ".selector" ).datepicker( "option", "weekHeader", "W" );
-
-
-

yearRangeType: String -

-
-Default: "c-10:c+10" -
-
The range of years displayed in the year drop-down: either relative to today's year ("-nn:+nn"), relative to the currently selected year ("c-nn:c+nn"), absolute ("nnnn:nnnn"), or combinations of these formats ("nnnn:-nn"). Note that this option only affects what appears in the drop-down, to restrict which dates may be selected use the minDate and/or maxDate options.
-Code examples:

Initialize the datepicker with the yearRange option specified:

-
$( ".selector" ).datepicker({ yearRange: "2002:2012" });
-

Get or set the yearRange option, after initialization:

-
// getter
var yearRange = $( ".selector" ).datepicker( "option", "yearRange" );
 
// setter
$( ".selector" ).datepicker( "option", "yearRange", "2002:2012" );
-
-
-

yearSuffixType: String -

-
-Default: "" -
-
Additional text to display after the year in the month headers.
-Code examples:

Initialize the datepicker with the yearSuffix option specified:

-
$( ".selector" ).datepicker({ yearSuffix: "CE" });
-

Get or set the yearSuffix option, after initialization:

-
// getter
var yearSuffix = $( ".selector" ).datepicker( "option", "yearSuffix" );
 
// setter
$( ".selector" ).datepicker( "option", "yearSuffix", "CE" );
-

Methods

-

destroy()

-
- Removes the datepicker functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).datepicker( "destroy" );
-
-
-
-

dialog( date [, onSelect ] [, settings ] [, pos ] )

-
Opens the datepicker in a dialog box.
-
    -
  • -
    date
    -
    Type: String or Date -
    -
    The initial date.
    -
  • -
  • -
    onSelect
    -
    Type: Function()
    -
    A callback function when a date is selected. The function receives the date text and date picker instance as parameters.
    -
  • -
  • -
    settings
    -
    Type: Options -
    -
    The new settings for the date picker.
    -
  • -
  • -
    pos
    - -
    The position of the top/left of the dialog as [x, y] or a MouseEvent that contains the coordinates. If not specified the dialog is centered on the screen.
    -
  • -
-
-Code examples:

Invoke the dialog method:

-
$( ".selector" ).datepicker( "dialog", "10/12/2012" );
-
-
-
-

getDate()Returns: Date -

-
Returns the current date for the datepicker or null if no date has been selected.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the getDate method:

-
var currentDate = $( ".selector" ).datepicker( "getDate" );
-
-
-
-

hide()

-
Close a previously opened date picker.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the hide method:

-
$( ".selector" ).datepicker( "hide" );
-
-
-
-

isDisabled()Returns: Boolean -

-
Determine whether a date picker has been disabled.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the isDisabled method:

-
var isDisabled = $( ".selector" ).datepicker( "isDisabled" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).datepicker( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current datepicker options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).datepicker( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the datepicker option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).datepicker( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the datepicker.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).datepicker( "option", { disabled: true } );
-
-
-
-
-

refresh()

-
Redraw the date picker, after having made some external modifications.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).datepicker( "refresh" );
-
-
-
-

setDate( date )

-
Sets the date for the datepicker. The new date may be a Date object or a string in the current date format (e.g., "01/26/2009"), a number of days from today (e.g., +7) or a string of values and periods ("y" for years, "m" for months, "w" for weeks, "d" for days, e.g., "+1m +7d"), or null to clear the selected date.
- -
-Code examples:

Invoke the setDate method:

-
$( ".selector" ).datepicker( "setDate", "10/12/2012" );
-
-
-
-

show()

-
Open the date picker. If the datepicker is attached to an input, the input must be visible for the datepicker to be shown.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the show method:

-
$( ".selector" ).datepicker( "show" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the datepicker. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).datepicker( "widget" );
-
-

Example:

-

A simple jQuery UI Datepicker.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>datepicker demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="datepicker"></div>
 
<script>
$( "#datepicker" ).datepicker();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/dialog.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/dialog.html deleted file mode 100755 index b623f7e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/dialog.html +++ /dev/null @@ -1,892 +0,0 @@ - - - - - jQuery UI dialog documentation - - - - - -

-Dialog Widgetversion added: 1.0 -

-
-

Description: Open content in an interactive overlay.

-

QuickNavExamples -

- -
-

A dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and closed with the 'x' icon by default.

- -

If the content length exceeds the maximum height, a scrollbar will automatically appear.

- -

A bottom button bar and semi-transparent modal overlay layer are common options that can be added.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

appendToType: Selector -

-
-Default: "body" -
-
Which element the dialog should be appended to. Regardless of the value set, the overlay for modal dialogs will always be appended to the body and cover the entire window. (version added: 1.10) -
-Code examples:

Initialize the dialog with the appendTo option specified:

-
$( ".selector" ).dialog({ appendTo: "#someElem" });
-

Get or set the appendTo option, after initialization:

-
// getter
var appendTo = $( ".selector" ).dialog( "option", "appendTo" );
 
// setter
$( ".selector" ).dialog( "option", "appendTo", "#someElem" );
-
-
-

autoOpenType: Boolean -

-
-Default: true -
-
If set to true, the dialog will automatically open upon initialization. If false, the dialog will stay hidden until the open() method is called.
-Code examples:

Initialize the dialog with the autoOpen option specified:

-
$( ".selector" ).dialog({ autoOpen: false });
-

Get or set the autoOpen option, after initialization:

-
// getter
var autoOpen = $( ".selector" ).dialog( "option", "autoOpen" );
 
// setter
$( ".selector" ).dialog( "option", "autoOpen", false );
-
-
-

buttonsType: Object or Array -

-
-Default: {} -
-
Specifies which buttons should be displayed on the dialog. The context of the callback is the dialog element; if you need access to the button, it is available as the target of the event object.
-Multiple types supported:
    -
  • -Object: The keys are the button labels and the values are the callbacks for when the associated button is clicked.
  • -
  • -Array: Each element of the array must be an object defining the attributes, properties, and event handlers to set on the button.
  • -
-Code examples:

Initialize the dialog with the buttons option specified:

-
$( ".selector" ).dialog({ buttons: [ { text: "Ok", click: function() { $( this ).dialog( "close" ); } ] });
-

Get or set the buttons option, after initialization:

-
// getter
var buttons = $( ".selector" ).dialog( "option", "buttons" );
 
// setter
$( ".selector" ).dialog( "option", "buttons", [ { text: "Ok", click: function() { $( this ).dialog( "close" ); } ] );
-
-
-

closeOnEscapeType: Boolean -

-
-Default: true -
-
Specifies whether the dialog should close when it has focus and the user presses the esacpe (ESC) key.
-Code examples:

Initialize the dialog with the closeOnEscape option specified:

-
$( ".selector" ).dialog({ closeOnEscape: false });
-

Get or set the closeOnEscape option, after initialization:

-
// getter
var closeOnEscape = $( ".selector" ).dialog( "option", "closeOnEscape" );
 
// setter
$( ".selector" ).dialog( "option", "closeOnEscape", false );
-
-
-

closeTextType: String -

-
-Default: "close" -
-
Specifies the text for the close button. Note that the close text is visibly hidden when using a standard theme.
-Code examples:

Initialize the dialog with the closeText option specified:

-
$( ".selector" ).dialog({ closeText: "hide" });
-

Get or set the closeText option, after initialization:

-
// getter
var closeText = $( ".selector" ).dialog( "option", "closeText" );
 
// setter
$( ".selector" ).dialog( "option", "closeText", "hide" );
-
-
-

dialogClassType: String -

-
-Default: "" -
-
The specified class name(s) will be added to the dialog, for additional theming.
-Code examples:

Initialize the dialog with the dialogClass option specified:

-
$( ".selector" ).dialog({ dialogClass: "alert" });
-

Get or set the dialogClass option, after initialization:

-
// getter
var dialogClass = $( ".selector" ).dialog( "option", "dialogClass" );
 
// setter
$( ".selector" ).dialog( "option", "dialogClass", "alert" );
-
-
-

draggableType: Boolean -

-
-Default: true -
-
If set to true, the dialog will be draggable by the title bar. Requires the jQuery UI Draggable wiget to be included.
-Code examples:

Initialize the dialog with the draggable option specified:

-
$( ".selector" ).dialog({ draggable: false });
-

Get or set the draggable option, after initialization:

-
// getter
var draggable = $( ".selector" ).dialog( "option", "draggable" );
 
// setter
$( ".selector" ).dialog( "option", "draggable", false );
-
-
-

heightType: Number or String -

-
-Default: "auto" -
-
The height of the dialog.
-Multiple types supported:
    -
  • -Number: The height in pixels.
  • -
  • -String: The only supported string value is "auto" which will allow the dialog height to adjust based on its content.
  • -
-Code examples:

Initialize the dialog with the height option specified:

-
$( ".selector" ).dialog({ height: 400 });
-

Get or set the height option, after initialization:

-
// getter
var height = $( ".selector" ).dialog( "option", "height" );
 
// setter
$( ".selector" ).dialog( "option", "height", 400 );
-
-
-

hideType: Number or String or Object -

-
-Default: null -
-
If and how to animate the hiding of the dialog.
-Multiple types supported:
    -
  • -Number: - The dialog will fade out while animating the height and width for the specified duration. -
  • -
  • -String: - The dialog will be hidden using the specified jQuery UI effect. See the list of effects for possible values. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. The effect property must be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used.
  • -
-Code examples:

Initialize the dialog with the hide option specified:

-
$( ".selector" ).dialog({ hide: "explode" });
-

Get or set the hide option, after initialization:

-
// getter
var hide = $( ".selector" ).dialog( "option", "hide" );
 
// setter
$( ".selector" ).dialog( "option", "hide", "explode" );
-
-
-

maxHeightType: Number -

-
-Default: false -
-
The maximum height to which the dialog can be resized, in pixels.
-Code examples:

Initialize the dialog with the maxHeight option specified:

-
$( ".selector" ).dialog({ maxHeight: 600 });
-

Get or set the maxHeight option, after initialization:

-
// getter
var maxHeight = $( ".selector" ).dialog( "option", "maxHeight" );
 
// setter
$( ".selector" ).dialog( "option", "maxHeight", 600 );
-
-
-

maxWidthType: Number -

-
-Default: false -
-
The maximum width to which the dialog can be resized, in pixels.
-Code examples:

Initialize the dialog with the maxWidth option specified:

-
$( ".selector" ).dialog({ maxWidth: 600 });
-

Get or set the maxWidth option, after initialization:

-
// getter
var maxWidth = $( ".selector" ).dialog( "option", "maxWidth" );
 
// setter
$( ".selector" ).dialog( "option", "maxWidth", 600 );
-
-
-

minHeightType: Number -

-
-Default: 150 -
-
The minimum height to which the dialog can be resized, in pixels.
-Code examples:

Initialize the dialog with the minHeight option specified:

-
$( ".selector" ).dialog({ minHeight: 200 });
-

Get or set the minHeight option, after initialization:

-
// getter
var minHeight = $( ".selector" ).dialog( "option", "minHeight" );
 
// setter
$( ".selector" ).dialog( "option", "minHeight", 200 );
-
-
-

minWidthType: Number -

-
-Default: 150 -
-
The minimum width to which the dialog can be resized, in pixels.
-Code examples:

Initialize the dialog with the minWidth option specified:

-
$( ".selector" ).dialog({ minWidth: 200 });
-

Get or set the minWidth option, after initialization:

-
// getter
var minWidth = $( ".selector" ).dialog( "option", "minWidth" );
 
// setter
$( ".selector" ).dialog( "option", "minWidth", 200 );
-
-
-

modalType: Boolean -

-
-Default: false -
-
If set to true, the dialog will have modal behavior; other items on the page will be disabled, i.e., cannot be interacted with. Modal dialogs create an overlay below the dialog but above other page elements.
-Code examples:

Initialize the dialog with the modal option specified:

-
$( ".selector" ).dialog({ modal: true });
-

Get or set the modal option, after initialization:

-
// getter
var modal = $( ".selector" ).dialog( "option", "modal" );
 
// setter
$( ".selector" ).dialog( "option", "modal", true );
-
-
-

positionType: Object or String or Array -

-
-Default: { my: "center", at: "center", of: window } -
-
-

Specifies where the dialog should be displayed. The dialog will handle collisions such that as much of the dialog is visible as possible.

-

Note: The String and Array forms are deprecated.

-
-Multiple types supported:
    -
  • -Object: Identifies the position of the dialog when opened. The of option defaults to the window, but you can specify another element to position against. You can refer to the jQuery UI Position utility for more details about the various options.
  • -
  • -String: A string representing the position within the viewport. Possible values: "center", "left", "right", "top", "bottom".
  • -
  • -Array: An array containing an x, y coordinate pair in pixel offset from the top left corner of the viewport or the name of a possible string value.
  • -
-Code examples:

Initialize the dialog with the position option specified:

-
$( ".selector" ).dialog({ position: { my: "left top", at: "left bottom", of: button } });
-

Get or set the position option, after initialization:

-
// getter
var position = $( ".selector" ).dialog( "option", "position" );
 
// setter
$( ".selector" ).dialog( "option", "position", { my: "left top", at: "left bottom", of: button } );
-
-
-

resizableType: Boolean -

-
-Default: true -
-
If set to true, the dialog will be resizable. Requires the jQuery UI Resizable widget to be included.
-Code examples:

Initialize the dialog with the resizable option specified:

-
$( ".selector" ).dialog({ resizable: false });
-

Get or set the resizable option, after initialization:

-
// getter
var resizable = $( ".selector" ).dialog( "option", "resizable" );
 
// setter
$( ".selector" ).dialog( "option", "resizable", false );
-
-
-

showType: Number or String or Object -

-
-Default: null -
-
If and how to animate the showing of the dialog.
-Multiple types supported:
    -
  • -Number: - The dialog will fade in while animating the height and width for the specified duration. -
  • -
  • -String: - The dialog will be shown using the specified jQuery UI effect. See the list of effects for possible values. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. The effect property must be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used.
  • -
-Code examples:

Initialize the dialog with the show option specified:

-
$( ".selector" ).dialog({ show: "slow" });
-

Get or set the show option, after initialization:

-
// getter
var show = $( ".selector" ).dialog( "option", "show" );
 
// setter
$( ".selector" ).dialog( "option", "show", "slow" );
-
-
-

titleType: String -

-
-Default: null -
-
Specifies the title of the dialog. Any valid HTML may be set as the title. The title can also be specified by the title attribute on the dialog source element.
-Code examples:

Initialize the dialog with the title option specified:

-
$( ".selector" ).dialog({ title: "Dialog Title" });
-

Get or set the title option, after initialization:

-
// getter
var title = $( ".selector" ).dialog( "option", "title" );
 
// setter
$( ".selector" ).dialog( "option", "title", "Dialog Title" );
-
-
-

widthType: Number -

-
-Default: 300 -
-
The width of the dialog, in pixels.
-Code examples:

Initialize the dialog with the width option specified:

-
$( ".selector" ).dialog({ width: 500 });
-

Get or set the width option, after initialization:

-
// getter
var width = $( ".selector" ).dialog( "option", "width" );
 
// setter
$( ".selector" ).dialog( "option", "width", 500 );
-

Methods

-

close()

-
Closes the dialog.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the close method:

-
$( ".selector" ).dialog( "close" );
-
-
-
-

destroy()

-
- Removes the dialog functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).dialog( "destroy" );
-
-
-
-

isOpen()Returns: Boolean -

-
Whether the dialog is currently open.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the isOpen method:

-
var isOpen = $( ".selector" ).dialog( "isOpen" );
-
-
-
-

moveToTop()

-
Moves the dialog to the top of the dialog stack.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the moveToTop method:

-
$( ".selector" ).dialog( "moveToTop" );
-
-
-
-

open()

-
Opens the dialog.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the open method:

-
$( ".selector" ).dialog( "open" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).dialog( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current dialog options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).dialog( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the dialog option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).dialog( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the dialog.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).dialog( "option", { disabled: true } );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the generated wrapper. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).dialog( "widget" );
-
-

Events

-

beforeClose( event, ui )Type: dialogbeforeclose -

-
Triggered when a dialog is about to close. If canceled, the dialog will not close.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the dialog with the beforeClose callback specified:

-
$( ".selector" ).dialog({
    beforeClose: function( event, ui ) {}
});
-

Bind an event listener to the dialogbeforeclose event:

-
$( ".selector" ).on( "dialogbeforeclose", function( event, ui ) {} );
-
-
-
-

close( event, ui )Type: dialogclose -

-
Triggered when the dialog is closed.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the dialog with the close callback specified:

-
$( ".selector" ).dialog({
    close: function( event, ui ) {}
});
-

Bind an event listener to the dialogclose event:

-
$( ".selector" ).on( "dialogclose", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: dialogcreate -

-
- Triggered when the dialog is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the dialog with the create callback specified:

-
$( ".selector" ).dialog({
    create: function( event, ui ) {}
});
-

Bind an event listener to the dialogcreate event:

-
$( ".selector" ).on( "dialogcreate", function( event, ui ) {} );
-
-
-
-

drag( event, ui )Type: dialogdrag -

-
Triggered while the dialog is being dragged.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      position
      -
      Type: Object -
      -
      The current CSS position of the dialog.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current offset position of the dialog.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the dialog with the drag callback specified:

-
$( ".selector" ).dialog({
    drag: function( event, ui ) {}
});
-

Bind an event listener to the dialogdrag event:

-
$( ".selector" ).on( "dialogdrag", function( event, ui ) {} );
-
-
-
-

dragStart( event, ui )Type: dialogdragstart -

-
Triggered when the user starts dragging the dialog.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      position
      -
      Type: Object -
      -
      The current CSS position of the dialog.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current offset position of the dialog.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the dialog with the dragStart callback specified:

-
$( ".selector" ).dialog({
    dragStart: function( event, ui ) {}
});
-

Bind an event listener to the dialogdragstart event:

-
$( ".selector" ).on( "dialogdragstart", function( event, ui ) {} );
-
-
-
-

dragStop( event, ui )Type: dialogdragstop -

-
Triggered after the dialog has been dragged.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      position
      -
      Type: Object -
      -
      The current CSS position of the dialog.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current offset position of the dialog.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the dialog with the dragStop callback specified:

-
$( ".selector" ).dialog({
    dragStop: function( event, ui ) {}
});
-

Bind an event listener to the dialogdragstop event:

-
$( ".selector" ).on( "dialogdragstop", function( event, ui ) {} );
-
-
-
-

focus( event, ui )Type: dialogfocus -

-
Triggered when the dialog gains focus.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the dialog with the focus callback specified:

-
$( ".selector" ).dialog({
    focus: function( event, ui ) {}
});
-

Bind an event listener to the dialogfocus event:

-
$( ".selector" ).on( "dialogfocus", function( event, ui ) {} );
-
-
-
-

open( event, ui )Type: dialogopen -

-
Triggered when the dialog is opened.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the dialog with the open callback specified:

-
$( ".selector" ).dialog({
    open: function( event, ui ) {}
});
-

Bind an event listener to the dialogopen event:

-
$( ".selector" ).on( "dialogopen", function( event, ui ) {} );
-
-
-
-

resize( event, ui )Type: dialogresize -

-
Triggered while the dialog is being resized.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      orginalPosition
      -
      Type: Object -
      -
      The CSS position of the dialog prior to being resized.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current CSS position of the dialog.
      -
    • -
    • -
      originalSize
      -
      Type: Object -
      -
      The size of the dialog prior to being resized.
      -
    • -
    • -
      size
      -
      Type: Object -
      -
      The current size of the dialog.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the dialog with the resize callback specified:

-
$( ".selector" ).dialog({
    resize: function( event, ui ) {}
});
-

Bind an event listener to the dialogresize event:

-
$( ".selector" ).on( "dialogresize", function( event, ui ) {} );
-
-
-
-

resizeStart( event, ui )Type: dialogresizestart -

-
Triggered when the user starts resizing the dialog.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      orginalPosition
      -
      Type: Object -
      -
      The CSS position of the dialog prior to being resized.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current CSS position of the dialog.
      -
    • -
    • -
      originalSize
      -
      Type: Object -
      -
      The size of the dialog prior to being resized.
      -
    • -
    • -
      size
      -
      Type: Object -
      -
      The current size of the dialog.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the dialog with the resizeStart callback specified:

-
$( ".selector" ).dialog({
    resizeStart: function( event, ui ) {}
});
-

Bind an event listener to the dialogresizestart event:

-
$( ".selector" ).on( "dialogresizestart", function( event, ui ) {} );
-
-
-
-

resizeStop( event, ui )Type: dialogresizestop -

-
Triggered after the dialog has been resized.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      orginalPosition
      -
      Type: Object -
      -
      The CSS position of the dialog prior to being resized.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current CSS position of the dialog.
      -
    • -
    • -
      originalSize
      -
      Type: Object -
      -
      The size of the dialog prior to being resized.
      -
    • -
    • -
      size
      -
      Type: Object -
      -
      The current size of the dialog.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the dialog with the resizeStop callback specified:

-
$( ".selector" ).dialog({
    resizeStop: function( event, ui ) {}
});
-

Bind an event listener to the dialogresizestop event:

-
$( ".selector" ).on( "dialogresizestop", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Dialog

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>dialog demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<button id="opener">open the dialog</button>
<div id="dialog" title="Dialog Title">I'm a dialog</div>
 
<script>
$( "#dialog" ).dialog({ autoOpen: false });
$( "#opener" ).click(function() {
    $( "#dialog" ).dialog( "open" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/draggable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/draggable.html deleted file mode 100755 index ed666f0..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/draggable.html +++ /dev/null @@ -1,741 +0,0 @@ - - - - - jQuery UI draggable documentation - - - - - -

-Draggable Widgetversion added: 1.0 -

-
-

Description: Allow elements to be moved using the mouse.

-

QuickNavExamples -

- -
-

Events

- - - - -
-

Make the selected elements draggable by mouse. If you want not just drag, but drag & drop, see the jQuery UI Droppable plugin, which provides a drop target for draggables.

-
-

Options

-

addClassesType: Boolean -

-
-Default: true -
-
If set to false, will prevent the ui-draggable class from being added. This may be desired as a performance optimization when calling .draggable() on hundreds of elements.
-Code examples:

Initialize the draggable with the addClasses option specified:

-
$( ".selector" ).draggable({ addClasses: false });
-

Get or set the addClasses option, after initialization:

-
// getter
var addClasses = $( ".selector" ).draggable( "option", "addClasses" );
 
// setter
$( ".selector" ).draggable( "option", "addClasses", false );
-
-
-

appendToType: jQuery or Element or Selector or String -

-
-Default: "parent" -
-
Which element the draggable helper should be appended to while dragging.
-Multiple types supported:
    -
  • -jQuery: A jQuery object containing the element to append the helper to.
  • -
  • -Element: The element to append the helper to.
  • -
  • -Selector: A selector specifying which element to append the helper to.
  • -
  • -String: The string "parent" will cause the helper to be a sibling of the draggable.
  • -
-Code examples:

Initialize the draggable with the appendTo option specified:

-
$( ".selector" ).draggable({ appendTo: "body" });
-

Get or set the appendTo option, after initialization:

-
// getter
var appendTo = $( ".selector" ).draggable( "option", "appendTo" );
 
// setter
$( ".selector" ).draggable( "option", "appendTo", "body" );
-
-
-

axisType: String -

-
-Default: false -
-
Constrains dragging to either the horizontal (x) or vertical (y) axis. Possible values: "x", "y".
-Code examples:

Initialize the draggable with the axis option specified:

-
$( ".selector" ).draggable({ axis: "x" });
-

Get or set the axis option, after initialization:

-
// getter
var axis = $( ".selector" ).draggable( "option", "axis" );
 
// setter
$( ".selector" ).draggable( "option", "axis", "x" );
-
-
-

cancelType: Selector -

-
-Default: "input,textarea,button,select,option" -
-
Prevents dragging from starting on specified elements.
-Code examples:

Initialize the draggable with the cancel option specified:

-
$( ".selector" ).draggable({ cancel: ".title" });
-

Get or set the cancel option, after initialization:

-
// getter
var cancel = $( ".selector" ).draggable( "option", "cancel" );
 
// setter
$( ".selector" ).draggable( "option", "cancel", ".title" );
-
-
-

connectToSortableType: Selector -

-
-Default: false -
-
Allows the draggable to be dropped onto the specified sortables. If this option is used, a draggable can be dropped onto a sortable list and then becomes part of it. Note: The helper option must be set to "clone" in order to work flawlessly. Requires the jQuery UI Sortable plugin to be included.
-Code examples:

Initialize the draggable with the connectToSortable option specified:

-
$( ".selector" ).draggable({ connectToSortable: "#my-sortable" });
-

Get or set the connectToSortable option, after initialization:

-
// getter
var connectToSortable = $( ".selector" ).draggable( "option", "connectToSortable" );
 
// setter
$( ".selector" ).draggable( "option", "connectToSortable", "#my-sortable" );
-
-
-

containmentType: Selector or Element or String or Array -

-
-Default: false -
-
Constrains dragging to within the bounds of the specified element or region.
-Multiple types supported:
    -
  • -Selector: The draggable element will be contained to the bounding box of the first element found by the selector. If no element is found, no containment will be set.
  • -
  • -Element: The draggable element will be contained to the bounding box of this element.
  • -
  • -String: Possible values: "parent", "document", "window".
  • -
  • -Array: An array defining a bounding box in the form [ x1, y1, x2, y2 ].
  • -
-Code examples:

Initialize the draggable with the containment option specified:

-
$( ".selector" ).draggable({ containment: "parent" });
-

Get or set the containment option, after initialization:

-
// getter
var containment = $( ".selector" ).draggable( "option", "containment" );
 
// setter
$( ".selector" ).draggable( "option", "containment", "parent" );
-
-
-

cursorType: String -

-
-Default: "auto" -
-
The CSS cursor during the drag operation.
-Code examples:

Initialize the draggable with the cursor option specified:

-
$( ".selector" ).draggable({ cursor: "crosshair" });
-

Get or set the cursor option, after initialization:

-
// getter
var cursor = $( ".selector" ).draggable( "option", "cursor" );
 
// setter
$( ".selector" ).draggable( "option", "cursor", "crosshair" );
-
-
-

cursorAtType: Object -

-
-Default: false -
-
Sets the offset of the dragging helper relative to the mouse cursor. Coordinates can be given as a hash using a combination of one or two keys: { top, left, right, bottom }.
-Code examples:

Initialize the draggable with the cursorAt option specified:

-
$( ".selector" ).draggable({ cursorAt: { left: 5 } });
-

Get or set the cursorAt option, after initialization:

-
// getter
var cursorAt = $( ".selector" ).draggable( "option", "cursorAt" );
 
// setter
$( ".selector" ).draggable( "option", "cursorAt", { left: 5 } );
-
-
-

delayType: Number -

-
-Default: 0 -
-
Time in milliseconds after mousedown until dragging should start. This option can be used to prevent unwanted drags when clicking on an element.
-Code examples:

Initialize the draggable with the delay option specified:

-
$( ".selector" ).draggable({ delay: 300 });
-

Get or set the delay option, after initialization:

-
// getter
var delay = $( ".selector" ).draggable( "option", "delay" );
 
// setter
$( ".selector" ).draggable( "option", "delay", 300 );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the draggable if set to true.
-Code examples:

Initialize the draggable with the disabled option specified:

-
$( ".selector" ).draggable({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).draggable( "option", "disabled" );
 
// setter
$( ".selector" ).draggable( "option", "disabled", true );
-
-
-

distanceType: Number -

-
-Default: 1 -
-
Distance in pixels after mousedown the mouse must move before dragging should start. This option can be used to prevent unwanted drags when clicking on an element.
-Code examples:

Initialize the draggable with the distance option specified:

-
$( ".selector" ).draggable({ distance: 10 });
-

Get or set the distance option, after initialization:

-
// getter
var distance = $( ".selector" ).draggable( "option", "distance" );
 
// setter
$( ".selector" ).draggable( "option", "distance", 10 );
-
-
-

gridType: Array -

-
-Default: false -
-
Snaps the dragging helper to a grid, every x and y pixels. The array must be of the form [ x, y ].
-Code examples:

Initialize the draggable with the grid option specified:

-
$( ".selector" ).draggable({ grid: [ 50, 20 ] });
-

Get or set the grid option, after initialization:

-
// getter
var grid = $( ".selector" ).draggable( "option", "grid" );
 
// setter
$( ".selector" ).draggable( "option", "grid", [ 50, 20 ] );
-
-
-

handleType: Selector or Element -

-
-Default: false -
-
If specified, restricts dragging from starting unless the mousedown occurs on the specified element(s).
-Code examples:

Initialize the draggable with the handle option specified:

-
$( ".selector" ).draggable({ handle: "h2" });
-

Get or set the handle option, after initialization:

-
// getter
var handle = $( ".selector" ).draggable( "option", "handle" );
 
// setter
$( ".selector" ).draggable( "option", "handle", "h2" );
-
-
-

helperType: String or Function() -

-
-Default: "original" -
-
Allows for a helper element to be used for dragging display.
-Multiple types supported:
    -
  • -String: If set to "clone", then the element will be cloned and the clone will be dragged.
  • -
  • -Function: A function that will return a DOMElement to use while dragging.
  • -
-Code examples:

Initialize the draggable with the helper option specified:

-
$( ".selector" ).draggable({ helper: "clone" });
-

Get or set the helper option, after initialization:

-
// getter
var helper = $( ".selector" ).draggable( "option", "helper" );
 
// setter
$( ".selector" ).draggable( "option", "helper", "clone" );
-
-
-

iframeFixType: Boolean or Selector -

-
-Default: false -
-
Prevent iframes from capturing the mousemove events during a drag. Useful in combination with the cursorAt option, or in any case where the mouse cursor may not be over the helper.
-Multiple types supported:
    -
  • -Boolean: When set to true, transparent overlays will be placed over all iframes on the page.
  • -
  • -Selector: Any iframes matching the selector will be covered by transparent overlays.
  • -
-Code examples:

Initialize the draggable with the iframeFix option specified:

-
$( ".selector" ).draggable({ iframeFix: true });
-

Get or set the iframeFix option, after initialization:

-
// getter
var iframeFix = $( ".selector" ).draggable( "option", "iframeFix" );
 
// setter
$( ".selector" ).draggable( "option", "iframeFix", true );
-
-
-

opacityType: Number -

-
-Default: false -
-
Opacity for the helper while being dragged.
-Code examples:

Initialize the draggable with the opacity option specified:

-
$( ".selector" ).draggable({ opacity: 0.35 });
-

Get or set the opacity option, after initialization:

-
// getter
var opacity = $( ".selector" ).draggable( "option", "opacity" );
 
// setter
$( ".selector" ).draggable( "option", "opacity", 0.35 );
-
-
-

refreshPositionsType: Boolean -

-
-Default: false -
-
- If set to true, all droppable positions are calculated on every mousemove. - Caution: This solves issues on highly dynamic pages, but dramatically decreases performance. -
-Code examples:

Initialize the draggable with the refreshPositions option specified:

-
$( ".selector" ).draggable({ refreshPositions: true });
-

Get or set the refreshPositions option, after initialization:

-
// getter
var refreshPositions = $( ".selector" ).draggable( "option", "refreshPositions" );
 
// setter
$( ".selector" ).draggable( "option", "refreshPositions", true );
-
-
-

revertType: Boolean or String -

-
-Default: false -
-
Whether the element should revert to its start position when dragging stops.
-Multiple types supported:
    -
  • -Boolean: If set to true the element will always revert.
  • -
  • -String: If set to "invalid", revert will only occur if the draggable has not been dropped on a droppable. For "valid", it's the other way around.
  • -
-Code examples:

Initialize the draggable with the revert option specified:

-
$( ".selector" ).draggable({ revert: true });
-

Get or set the revert option, after initialization:

-
// getter
var revert = $( ".selector" ).draggable( "option", "revert" );
 
// setter
$( ".selector" ).draggable( "option", "revert", true );
-
-
-

revertDurationType: Number -

-
-Default: 500 -
-
The duration of the revert animation, in milliseconds. Ignored if the revert option is false.
-Code examples:

Initialize the draggable with the revertDuration option specified:

-
$( ".selector" ).draggable({ revertDuration: 200 });
-

Get or set the revertDuration option, after initialization:

-
// getter
var revertDuration = $( ".selector" ).draggable( "option", "revertDuration" );
 
// setter
$( ".selector" ).draggable( "option", "revertDuration", 200 );
-
-
-

scopeType: String -

-
-Default: "default" -
-
Used to group sets of draggable and droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.
-Code examples:

Initialize the draggable with the scope option specified:

-
$( ".selector" ).draggable({ scope: "tasks" });
-

Get or set the scope option, after initialization:

-
// getter
var scope = $( ".selector" ).draggable( "option", "scope" );
 
// setter
$( ".selector" ).draggable( "option", "scope", "tasks" );
-
-
-

scrollType: Boolean -

-
-Default: true -
-
If set to true, container auto-scrolls while dragging.
-Code examples:

Initialize the draggable with the scroll option specified:

-
$( ".selector" ).draggable({ scroll: false });
-

Get or set the scroll option, after initialization:

-
// getter
var scroll = $( ".selector" ).draggable( "option", "scroll" );
 
// setter
$( ".selector" ).draggable( "option", "scroll", false );
-
-
-

scrollSensitivityType: Number -

-
-Default: 20 -
-
Distance in pixels from the edge of the viewport after which the viewport should scroll. Distance is relative to pointer, not the draggable. Ignored if the scroll option is false.
-Code examples:

Initialize the draggable with the scrollSensitivity option specified:

-
$( ".selector" ).draggable({ scrollSensitivity: 100 });
-

Get or set the scrollSensitivity option, after initialization:

-
// getter
var scrollSensitivity = $( ".selector" ).draggable( "option", "scrollSensitivity" );
 
// setter
$( ".selector" ).draggable( "option", "scrollSensitivity", 100 );
-
-
-

scrollSpeedType: Number -

-
-Default: 20 -
-
The speed at which the window should scroll once the mouse pointer gets within the scrollSensitivity distance. Ignored if the scroll option is false.
-Code examples:

Initialize the draggable with the scrollSpeed option specified:

-
$( ".selector" ).draggable({ scrollSpeed: 100 });
-

Get or set the scrollSpeed option, after initialization:

-
// getter
var scrollSpeed = $( ".selector" ).draggable( "option", "scrollSpeed" );
 
// setter
$( ".selector" ).draggable( "option", "scrollSpeed", 100 );
-
-
-

snapType: Boolean or Selector -

-
-Default: false -
-
Whether the element should snap to other elements.
-Multiple types supported:
    -
  • -Boolean: When set to true, the element will snap to all other draggable elements.
  • -
  • -Selector: A selector specifying which elements to snap to.
  • -
-Code examples:

Initialize the draggable with the snap option specified:

-
$( ".selector" ).draggable({ snap: true });
-

Get or set the snap option, after initialization:

-
// getter
var snap = $( ".selector" ).draggable( "option", "snap" );
 
// setter
$( ".selector" ).draggable( "option", "snap", true );
-
-
-

snapModeType: String -

-
-Default: "both" -
-
Determines which edges of snap elements the draggable will snap to. Ignored if the snap option is false. Possible values: "inner", "outer", "both".
-Code examples:

Initialize the draggable with the snapMode option specified:

-
$( ".selector" ).draggable({ snapMode: "inner" });
-

Get or set the snapMode option, after initialization:

-
// getter
var snapMode = $( ".selector" ).draggable( "option", "snapMode" );
 
// setter
$( ".selector" ).draggable( "option", "snapMode", "inner" );
-
-
-

snapToleranceType: Number -

-
-Default: 20 -
-
The distance in pixels from the snap element edges at which snapping should occur. Ignored if the snap option is false.
-Code examples:

Initialize the draggable with the snapTolerance option specified:

-
$( ".selector" ).draggable({ snapTolerance: 30 });
-

Get or set the snapTolerance option, after initialization:

-
// getter
var snapTolerance = $( ".selector" ).draggable( "option", "snapTolerance" );
 
// setter
$( ".selector" ).draggable( "option", "snapTolerance", 30 );
-
-
-

stackType: Selector -

-
-Default: false -
-
Controls the z-index of the set of elements that match the selector, always brings the currently dragged item to the front. Very useful in things like window managers.
-Code examples:

Initialize the draggable with the stack option specified:

-
$( ".selector" ).draggable({ stack: ".products" });
-

Get or set the stack option, after initialization:

-
// getter
var stack = $( ".selector" ).draggable( "option", "stack" );
 
// setter
$( ".selector" ).draggable( "option", "stack", ".products" );
-
-
-

zIndexType: Number -

-
-Default: false -
-
Z-index for the helper while being dragged.
-Code examples:

Initialize the draggable with the zIndex option specified:

-
$( ".selector" ).draggable({ zIndex: 100 });
-

Get or set the zIndex option, after initialization:

-
// getter
var zIndex = $( ".selector" ).draggable( "option", "zIndex" );
 
// setter
$( ".selector" ).draggable( "option", "zIndex", 100 );
-

Methods

-

destroy()

-
- Removes the draggable functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).draggable( "destroy" );
-
-
-
-

disable()

-
- Disables the draggable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).draggable( "disable" );
-
-
-
-

enable()

-
- Enables the draggable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).draggable( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).draggable( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current draggable options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).draggable( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the draggable option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).draggable( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the draggable.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).draggable( "option", { disabled: true } );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the draggable element. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).draggable( "widget" );
-
-

Events

-

create( event, ui )Type: dragcreate -

-
- Triggered when the draggable is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the draggable with the create callback specified:

-
$( ".selector" ).draggable({
    create: function( event, ui ) {}
});
-

Bind an event listener to the dragcreate event:

-
$( ".selector" ).on( "dragcreate", function( event, ui ) {} );
-
-
-
-

drag( event, ui )Type: drag -

-
Triggered while the mouse is moved during the dragging.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper that's being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the draggable with the drag callback specified:

-
$( ".selector" ).draggable({
    drag: function( event, ui ) {}
});
-

Bind an event listener to the drag event:

-
$( ".selector" ).on( "drag", function( event, ui ) {} );
-
-
-
-

start( event, ui )Type: dragstart -

-
Triggered when dragging starts.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper that's being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the draggable with the start callback specified:

-
$( ".selector" ).draggable({
    start: function( event, ui ) {}
});
-

Bind an event listener to the dragstart event:

-
$( ".selector" ).on( "dragstart", function( event, ui ) {} );
-
-
-
-

stop( event, ui )Type: dragstop -

-
Triggered when dragging stops.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper that's being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the draggable with the stop callback specified:

-
$( ".selector" ).draggable({
    stop: function( event, ui ) {}
});
-

Bind an event listener to the dragstop event:

-
$( ".selector" ).on( "dragstop", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Draggable

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>draggable demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #draggable {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="draggable">Drag me</div>
 
<script>
$( "#draggable" ).draggable();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/drop-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/drop-effect.html deleted file mode 100755 index 38e8a74..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/drop-effect.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - jQuery UI drop-effect documentation - - - - - -

Drop Effect

-
-

Description: - The drop effect hides or shows an element fading in/out and sliding in a direction. -

-
  • -

    drop

    -
    • -
      -direction (default: "left")
      -
      Type: String -
      -
      -

      The direction the element will fall to hide the element, or the direction from which the element will be revealed.

      -

      Possible Values: up, down, left, right.

      -
      -
    -
-

Example:

-

Toggle a div using the drop effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>drop demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "drop" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/droppable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/droppable.html deleted file mode 100755 index 6ffe2af..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/droppable.html +++ /dev/null @@ -1,548 +0,0 @@ - - - - - jQuery UI droppable documentation - - - - - -

-Droppable Widgetversion added: 1.0 -

-
-

Description: Create targets for draggable elements.

-

QuickNavExamples -

- -
-

The jQuery UI Droppable plugin makes selected elements droppable (meaning they accept being dropped on by draggables). You can specify which draggables each will accept.

-
-

Options

-

acceptType: Selector or Function() -

-
-Default: "*" -
-
Controls which draggable elements are accepted by the droppable.
-Multiple types supported:
    -
  • -Selector: A selector indicating which draggable elements are accepted.
  • -
  • -Function: A function that will be called for each draggable on the page (passed as the first argument to the function). The function must return true if the draggable should be accepted.
  • -
-Code examples:

Initialize the droppable with the accept option specified:

-
$( ".selector" ).droppable({ accept: ".special" });
-

Get or set the accept option, after initialization:

-
// getter
var accept = $( ".selector" ).droppable( "option", "accept" );
 
// setter
$( ".selector" ).droppable( "option", "accept", ".special" );
-
-
-

activeClassType: String -

-
-Default: false -
-
If specified, the class will be added to the droppable while an acceptable draggable is being dragged.
-Code examples:

Initialize the droppable with the activeClass option specified:

-
$( ".selector" ).droppable({ activeClass: "ui-state-highlight" });
-

Get or set the activeClass option, after initialization:

-
// getter
var activeClass = $( ".selector" ).droppable( "option", "activeClass" );
 
// setter
$( ".selector" ).droppable( "option", "activeClass", "ui-state-highlight" );
-
-
-

addClassesType: Boolean -

-
-Default: true -
-
If set to false, will prevent the ui-droppable class from being added. This may be desired as a performance optimization when calling .droppable() init on hundreds of elements.
-Code examples:

Initialize the droppable with the addClasses option specified:

-
$( ".selector" ).droppable({ addClasses: false });
-

Get or set the addClasses option, after initialization:

-
// getter
var addClasses = $( ".selector" ).droppable( "option", "addClasses" );
 
// setter
$( ".selector" ).droppable( "option", "addClasses", false );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the droppable if set to true.
-Code examples:

Initialize the droppable with the disabled option specified:

-
$( ".selector" ).droppable({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).droppable( "option", "disabled" );
 
// setter
$( ".selector" ).droppable( "option", "disabled", true );
-
-
-

greedyType: Boolean -

-
-Default: false -
-
By default, when an element is dropped on nested droppables, each droppable will receive the element. However, by setting this option to true, any parent droppables will not receive the element.
-Code examples:

Initialize the droppable with the greedy option specified:

-
$( ".selector" ).droppable({ greedy: true });
-

Get or set the greedy option, after initialization:

-
// getter
var greedy = $( ".selector" ).droppable( "option", "greedy" );
 
// setter
$( ".selector" ).droppable( "option", "greedy", true );
-
-
-

hoverClassType: String -

-
-Default: false -
-
If specified, the class will be added to the droppable while an acceptable draggable is being hovered over the droppable.
-Code examples:

Initialize the droppable with the hoverClass option specified:

-
$( ".selector" ).droppable({ hoverClass: "drop-hover" });
-

Get or set the hoverClass option, after initialization:

-
// getter
var hoverClass = $( ".selector" ).droppable( "option", "hoverClass" );
 
// setter
$( ".selector" ).droppable( "option", "hoverClass", "drop-hover" );
-
-
-

scopeType: String -

-
-Default: "default" -
-
Used to group sets of draggable and droppable items, in addition to the accept option. A draggable with the same scope value as a droppable will be accepted.
-Code examples:

Initialize the droppable with the scope option specified:

-
$( ".selector" ).droppable({ scope: "tasks" });
-

Get or set the scope option, after initialization:

-
// getter
var scope = $( ".selector" ).droppable( "option", "scope" );
 
// setter
$( ".selector" ).droppable( "option", "scope", "tasks" );
-
-
-

toleranceType: String -

-
-Default: "intersect" -
-
- Specifies which mode to use for testing whether a draggable is hovering over a droppable. Possible values: -
    -
  • -"fit": Draggable overlaps the droppable entirely.
  • -
  • -"intersect": Draggable overlaps the droppable at least 50% in both directions.
  • -
  • -"pointer": Mouse pointer overlaps the droppable.
  • -
  • -"touch": Draggable overlaps the droppable any amount.
  • -
-
-Code examples:

Initialize the droppable with the tolerance option specified:

-
$( ".selector" ).droppable({ tolerance: "fit" });
-

Get or set the tolerance option, after initialization:

-
// getter
var tolerance = $( ".selector" ).droppable( "option", "tolerance" );
 
// setter
$( ".selector" ).droppable( "option", "tolerance", "fit" );
-

Methods

-

destroy()

-
- Removes the droppable functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).droppable( "destroy" );
-
-
-
-

disable()

-
- Disables the droppable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).droppable( "disable" );
-
-
-
-

enable()

-
- Enables the droppable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).droppable( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).droppable( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current droppable options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).droppable( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the droppable option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).droppable( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the droppable.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).droppable( "option", { disabled: true } );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the droppable element. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).droppable( "widget" );
-
-

Events

-

activate( event, ui )Type: dropactivate -

-
Triggered when an accepted draggable starts dragging. This can be useful if you want to make the droppable "light up" when it can be dropped on.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      draggable
      -
      Type: jQuery -
      -
      A jQuery object representing the draggable element.
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      A jQuery object representing the helper that is being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the draggable helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the draggable helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the droppable with the activate callback specified:

-
$( ".selector" ).droppable({
    activate: function( event, ui ) {}
});
-

Bind an event listener to the dropactivate event:

-
$( ".selector" ).on( "dropactivate", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: dropcreate -

-
- Triggered when the droppable is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the droppable with the create callback specified:

-
$( ".selector" ).droppable({
    create: function( event, ui ) {}
});
-

Bind an event listener to the dropcreate event:

-
$( ".selector" ).on( "dropcreate", function( event, ui ) {} );
-
-
-
-

deactivate( event, ui )Type: dropdeactivate -

-
Triggered when an accepted draggable stops dragging.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      draggable
      -
      Type: jQuery -
      -
      A jQuery object representing the draggable element.
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      A jQuery object representing the helper that is being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the draggable helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the draggable helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the droppable with the deactivate callback specified:

-
$( ".selector" ).droppable({
    deactivate: function( event, ui ) {}
});
-

Bind an event listener to the dropdeactivate event:

-
$( ".selector" ).on( "dropdeactivate", function( event, ui ) {} );
-
-
-
-

drop( event, ui )Type: drop -

-
Triggered when an accepted draggable is dropped on the droppable (based on thetolerance option).
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      draggable
      -
      Type: jQuery -
      -
      A jQuery object representing the draggable element.
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      A jQuery object representing the helper that is being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the draggable helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the draggable helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the droppable with the drop callback specified:

-
$( ".selector" ).droppable({
    drop: function( event, ui ) {}
});
-

Bind an event listener to the drop event:

-
$( ".selector" ).on( "drop", function( event, ui ) {} );
-
-
-
-

out( event, ui )Type: dropout -

-
Triggered when an accepted draggable is dragged out of the droppable (based on thetolerance option).
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the droppable with the out callback specified:

-
$( ".selector" ).droppable({
    out: function( event, ui ) {}
});
-

Bind an event listener to the dropout event:

-
$( ".selector" ).on( "dropout", function( event, ui ) {} );
-
-
-
-

over( event, ui )Type: dropover -

-
Triggered when an accepted draggable is dragged over the droppable (based on thetolerance option).
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      draggable
      -
      Type: jQuery -
      -
      A jQuery object representing the draggable element.
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      A jQuery object representing the helper that is being dragged.
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      Current CSS position of the draggable helper as { top, left } object.
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      Current offset position of the draggable helper as { top, left } object.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the droppable with the over callback specified:

-
$( ".selector" ).droppable({
    over: function( event, ui ) {}
});
-

Bind an event listener to the dropover event:

-
$( ".selector" ).on( "dropover", function( event, ui ) {} );
-
-

Example:

-

A pair of draggable and droppable elements.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>droppable demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #draggable {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    #droppable {
        position: absolute;
        left: 250px;
        top: 0;
        width: 125px;
        height: 125px;
        background: #999;
        color: #fff;
        padding: 10px;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="droppable">Drop here</div>
<div id="draggable">Drag me</div>
 
<script>
$( "#draggable" ).draggable();
$( "#droppable" ).droppable({
    drop: function() {
        alert( "dropped" );
    }
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/explode-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/explode-effect.html deleted file mode 100755 index 1f88046..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/explode-effect.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - jQuery UI explode-effect documentation - - - - - -

Explode Effect

-
-

Description: - The explode effect hides or shows an element by splitting it into pieces. -

-
  • -

    explode

    -
    • -
      -pieces (default: 9)
      -
      Type: Integer -
      -
      The number of pieces to explode, should be a perfect square, any other values are rounded to the nearest square.
      -
    -
-

Example:

-

Toggle a div using the explode effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>explode demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "explode" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/fade-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/fade-effect.html deleted file mode 100755 index 77cde80..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/fade-effect.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jQuery UI fade-effect documentation - - - - - -

Fade Effect

-
-

Description: - The fade effect hides or shows an element by fading it. -

-
  • fade

-

Example:

-

Toggle a div using the fade effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>fade demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "fade" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/fold-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/fold-effect.html deleted file mode 100755 index b8b8466..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/fold-effect.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - jQuery UI fold-effect documentation - - - - - -

Fold Effect

-
-

Description: - The fold effect hides or shows an element by folding it. -

-
  • -

    fold

    -
      -
    • -
      -size (default: 15)
      -
      Type: Number or String -
      -
      The size of the "folded" element.
      -
    • -
    • -
      -horizFirst (default: false)
      -
      Type: Boolean -
      -
      Whether the horizontal direction happens first when hiding. Remember, showing inverts hiding.
      -
    • -
    -
-

Example:

-

Toggle a div using the fold effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>fold demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "fold" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/highlight-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/highlight-effect.html deleted file mode 100755 index 4c702e9..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/highlight-effect.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - jQuery UI highlight-effect documentation - - - - - -

Highlight Effect

-
-

Description: - The highlight effect hides or shows an element by animating its background color first. -

-
  • -

    highlight

    -
    • -
      -color (default: "#ffff99")
      -
      Type: String -
      -
      The background color used during the animation.
      -
    -
-

Example:

-

Toggle a div using the highlight effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>highlight demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "highlight" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/jQuery.widget.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/jQuery.widget.html deleted file mode 100755 index bc32c36..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/jQuery.widget.html +++ /dev/null @@ -1,611 +0,0 @@ - - - - - jQuery UI jQuery documentation - - - - - -
-

Contents:

- -

jQuery.widget( name [, base ], prototype )

-
-

Description: Create stateful jQuery plugins using the same abstraction as all jQuery UI widgets.

-
  • -

    jQuery.widget( name [, base ], prototype )

    -
      -
    • -
      name
      -
      Type: String -
      -
      The name of the widget to create, including the namespace.
      -
    • -
    • -
      base
      -
      Type: Function()
      -
      The base widget to inherit from. This must be a constructor that can be instantiated with the `new` keyword. Defaults to jQuery.Widget.
      -
    • -
    • -
      prototype
      -
      Type: PlainObject -
      -
      The object to use as a prototype for the widget.
      -
    • -
    -
-
-

You can create new widgets from scratch, using just the $.Widget object as a base to inherit from, or you can explicitly inherit from existing jQuery UI or third-party widgets. Defining a widget with the same name as you inherit from even allows you to extend widgets in place.

- -

jQuery UI contains many widgets that maintain state and therefore have a slightly different usage pattern than typical jQuery plugins. All of jQuery UI's widgets use the same patterns, which is defined by the widget factory. So if you learn how to use one widget, then you'll know how to use all of them.

- -

Note: This documentation shows examples using the progressbar widget but the syntax is the same for every widget.

- -

Initialization

- -

In order to track the state of the widget, we must introduce a full life cycle for the widget. The life cycle starts when the widget is initalized. To initialize a widget, we simply call the plugin on one or more elements.

- -
$( "#elem" ).progressbar();
- -

This will initialize each element in the jQuery object, in this case the element with an id of "elem". Because we called the progressbar() method with no parameters, the widget is initialized with its default options. We can pass a set of options during initialization in order to override the default options.

- -
$( "#elem" ).progressbar({ value: 20 });
- -

We can pass as many or as few options as we want during initialization. Any options that we don't pass will just use their default values.

- -

The options are part of the widget's state, so we can set options after initialization as well. We'll see this later with the option method.

- -

Methods

- -

Now that the widget is initialized, we can query its state or perform actions on the widget. All actions after initialization take the form of a method call. To call a method on a widget, we pass the name of the method to the jQuery plugin. For example, to call the value() method on our progressbar widget, we would use:

- -
$( "#elem" ).progressbar( "value" );
- -

If the method accepts parameters, we can pass them after the method name. For example, to pass the parameter 40 to the value() method, we can use:

- -
$( "#elem" ).progressbar( "value", 40 );
- -

Just like other methods in jQuery, most widget methods return the jQuery object for chaining.

- -
$( "#elem" )
    .progressbar( "value", 90 )
    .addClass( "almost-done" );
- -

Each widget will have its own set of methods based on the functionality that the widget provides. However, there are a few methods that exist on all widgets, which are documented below.

- -

Events

- -

All widgets have events associated with their various behaviors to notify you when the state is changing. For most widgets, when the events are triggered, the names are prefixed with the widget name. For example, we can bind to progressbar's change event which is triggered whenever the value changes.

- -
$( "#elem" ).bind( "progressbarchange", function() {
    alert( "The value has changed!" );
});
- -

Each event has a corresponding callback, which is exposed as an option. We can hook into progressbar's change callback instead of binding to the progressbarchange event, if we want to.

- -
$( "#elem" ).progressbar({
    change: function() {
        alert( "The value has changed!" );
    }
});
- -

All widgets have a create event which is triggered upon instantiation.

-
-

Base Widget

-
-

Description: The base widget used by the widget factory.

-

QuickNav

-

Options

- - - -
- -
-

Events

- -

Options

-

disabledType: Boolean -

-
-Default: false -
-
Disables the jQuery.Widget if set to true.
-Code examples:

Initialize the jQuery.Widget with the disabled option specified:

-
$( ".selector" ).jQuery.Widget({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).jQuery.Widget( "option", "disabled" );
 
// setter
$( ".selector" ).jQuery.Widget( "option", "disabled", true );
-
-
-

hideType: Boolean or Number or String or Object -

-
-Default: null -
-
If and how to animate the hiding of the element.
-Multiple types supported:
    -
  • -Boolean: - When set to false, no animation will be used and the element will be hidden immediately. - When set to true, the element will fade out with the default duration and the default easing. -
  • -
  • -Number: - The element will fade out with the specified duration and the default easing. -
  • -
  • -String: - The element will be hidden using the specified effect. - The value can either be the name of a built-in jQuery animateion method, such as "slideUp", or the name of a jQuery UI effect, such as "fold". - In either case the effect will be used with the default duration and the default easing. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeOut" will be used.
  • -
-Code examples:

Initialize the jQuery.Widget with the hide option specified:

-
$( ".selector" ).jQuery.Widget({ hide: { effect: "explode", duration: 1000 } });
-

Get or set the hide option, after initialization:

-
// getter
var hide = $( ".selector" ).jQuery.Widget( "option", "hide" );
 
// setter
$( ".selector" ).jQuery.Widget( "option", "hide", { effect: "explode", duration: 1000 } );
-
-
-

showType: Boolean or Number or String or Object -

-
-Default: null -
-
If and how to animate the showing of the element.
-Multiple types supported:
    -
  • -Boolean: - When set to false, no animation will be used and the element will be shown immediately. - When set to true, the element will fade in with the default duration and the default easing. -
  • -
  • -Number: - The element will fade in with the specified duration and the default easing. -
  • -
  • -String: - The element will be shown using the specified effect. - The value can either be the name of a built-in jQuery animateion method, such as "slideDown", or the name of a jQuery UI effect, such as "fold". - In either case the effect will be used with the default duration and the default easing. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeIn" will be used.
  • -
-Code examples:

Initialize the jQuery.Widget with the show option specified:

-
$( ".selector" ).jQuery.Widget({ show: { effect: "blind", duration: 800 } });
-

Get or set the show option, after initialization:

-
// getter
var show = $( ".selector" ).jQuery.Widget( "option", "show" );
 
// setter
$( ".selector" ).jQuery.Widget( "option", "show", { effect: "blind", duration: 800 } );
-

Methods

-

_create()

-
- The _create() method is the widget's constructor. - There are no parameters, but this.element and this.options are already set. -
-
  • This method does not accept any arguments.
-
-
-

_delay( fn [, delay ] )Returns: Number -

-
- Invokes the provided function after a specified delay. Keeps this context correct. Essentially setTimeout(). -

Returns the timeout ID for use with clearTimeout().

-
-
    -
  • -
    fn
    -
    Type: Function() or String -
    -
    The function to invoke. Can also be the name of a method on the widget.
    -
  • -
  • -
    delay
    -
    Type: Number -
    -
    The number of milliseconds to wait before invoking the function. Deafults to 0.
    -
  • -
-
-
-

_destroy()

-
- The public destroy() method cleans up all common data, events, etc. and then delegates out to _destroy() for custom, widget-specific, cleanup. -
-
  • This method does not accept any arguments.
-
-
-

_focusable( element )

-
- Sets up element to apply the ui-state-focus class on focus. -

The event handlers are automatically cleaned up on destroy.

-
-
  • -
    element
    -
    Type: jQuery -
    -
    The element(s) to apply the focusable behavior to.
    -
-
-
-

_getCreateEventData()Returns: Object -

-
- All widgets trigger the create event. By default, no data is provided in the event, but this method can return an object which will be passed as the create event's data. -
-
  • This method does not accept any arguments.
-
-
-

_getCreateOptions()Returns: Object -

-
- This method allows the widget to define a custom method for defining options during instantiation. This user-provided options override the options returned by this method which override the default options. -
-
  • This method does not accept any arguments.
-
-
-

_hide( element, option [, callback ] )

-
- Hides an element immediately, using built-in animation methods, or using custom effects. - See the hide option for possible option values. -
-
    -
  • -
    element
    -
    Type: jQuery -
    -
    The element(s) to hide.
    -
  • -
  • -
    option
    -
    Type: Object -
    -
    The settings defining how to hide the element.
    -
  • -
  • -
    callback
    -
    Type: Function()
    -
    Callback to invoke after the element has been fully hidden.
    -
  • -
-
-
-

_hoverable( element )

-
- Sets up element to apply the ui-state-hover class on hover. -

The event handlers are automatically cleaned up on destroy.

-
-
  • -
    element
    -
    Type: jQuery -
    -
    The element(s) to apply the hoverable behavior to.
    -
-
-
-

_init()

-
- Widgets have the concept of initialization that is distinct from creation. Any time the plugin is called with no arguments or with only an option hash, the widget is initialized; this includes when the widget is created. - -

Note: Initialization should only be handled if there is a logical action to perform on successive calls to the widget with no arguments.

-
-
  • This method does not accept any arguments.
-
-
-

_off( element, eventName )

-
- Unbinds event handlers from the specified element(s). -
-
    -
  • -
    element
    -
    Type: jQuery -
    -
    - The element(s) to unbind the event handlers from. Unlike the _on() method, the elements are required for _off(). -
    -
  • -
  • -
    eventName
    -
    Type: String -
    -
    One or more space-separated event types.
    -
  • -
-
-
-

_on( [element ], handlers )

-
- Binds event handlers to the specified element(s). Delegation is supported via selectors inside the event names, e.g., "click .foo". The _on() method provides several benefits of direct event binding: -
    -
  • Maintains proper this context inside the handlers.
  • -
  • Automatically handles disabled widgets: If the widget is disabled or the event occurs on an element with the ui-state-disabled class, the event handler is not invoked.
  • -
  • Event handlers are automatically namespaced and cleaned up on destroy.
  • -
-
-
    -
  • -
    element
    -
    Type: jQuery -
    -
    Which element(s) to bind the event handlers to. If no element is provided, this.element is used.
    -
  • -
  • -
    handlers
    -
    Type: Object -
    -
    - A map in which the string keys represent the event type and optional selector for delegation, and the values represent a handler function to be called for the event. -
    -
  • -
-
-
-

_setOption( key, value )

-
- Called from the _setOptions() method for each individual option. Widget state should be updated based on changes. -
-
    -
  • -
    key
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-
-

_setOptions( options )

-
- Called whenever the option() method is called, regardless of the form in which the option() method was called. -

Overriding this is useful if you can defer processor-intensive changes for multiple option changes.

-
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-
-

_show( element, option [, callback ] )

-
- Shows an element immediately, using built-in animation methods, or using custom effects. - See the show option for possible option values. -
-
    -
  • -
    element
    -
    Type: jQuery -
    -
    The element(s) to show.
    -
  • -
  • -
    option
    -
    Type: Object -
    -
    The settings defining how to show the element.
    -
  • -
  • -
    callback
    -
    Type: Function()
    -
    Callback to invoke after the element has been fully shown.
    -
  • -
-
-
-

_super()

-
- Invokes the method of the same name from the parent widget, with any specified arguments. Essentially .call(). -
-
  • This method does not accept any arguments.
-
-
-

_superApply( arguments )

-
- Invokes the method of the same name from the parent widget, with the array of arguments. Essentially .apply(). -
-
  • -
    arguments
    -
    Type: Array -
    -
    Array of arguments to pass to the parent method.
    -
-
-
-

_trigger( type [, event ] [, data ] )

-
- Triggers an event and its associated callback. -

The option with the name equal to type is invoked as the callback.

-

The event name is the widget name + type.

-

Note: When providing data, you must provide all three parameters. If there is no event to pass along, just pass null.

-
-
    -
  • -
    type
    -
    Type: String -
    -
    The type should match the name of a callback option. The full event type will be generated automatically.
    -
  • -
  • -
    event
    -
    Type: Event -
    -
    The original event that caused this event to occur; useful for providing context to the listener.
    -
  • -
  • -
    data
    -
    Type: Object -
    -
    A hash of data associated with the event.
    -
  • -
-
-
-

destroy()

-
- Removes the jQuery.Widget functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-
-

disable()

-
- Disables the jQuery.Widget. -
-
  • This method does not accept any arguments.
-
-
-

enable()

-
- Enables the jQuery.Widget. -
-
  • This method does not accept any arguments.
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).jQuery.Widget( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current jQuery.Widget options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).jQuery.Widget( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the jQuery.Widget option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).jQuery.Widget( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the jQuery.Widget.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).jQuery.Widget( "option", { disabled: true } );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the original element or other relevant generated element. -
-
  • This method does not accept any arguments.
-

Events

-

create( event, ui )Type: jQuery.Widgetcreate -

-
- Triggered when the jQuery.Widget is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the jQuery.Widget with the create callback specified:

-
$( ".selector" ).jQuery.Widget({
    create: function( event, ui ) {}
});
-

Bind an event listener to the jQuery.Widgetcreate event:

-
$( ".selector" ).on( "jQuery.Widgetcreate", function( event, ui ) {} );
-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/menu.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/menu.html deleted file mode 100755 index 8c3884b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/menu.html +++ /dev/null @@ -1,644 +0,0 @@ - - - - - jQuery UI menu documentation - - - - - -

-Menu Widgetversion added: 1.9 -

-
-

Description: - Themeable menu with mouse and keyboard interactions for navigation. -

-

QuickNavExamples -

-

Options

- - - - - -
- -
-

Events

- - - - -
-

A menu can be created from any valid markup as long as the elements have a strict parent/child relationship and each menu item has an anchor. The most commonly used element is the unordered list (<ul>):

- -
-<ul id="menu">
-	<li><a href="#">Item 1</a></li>
-	<li><a href="#">Item 2</a></li>
-	<li><a href="#">Item 3</a>
-		<ul>
-			<li><a href="#">Item 3-1</a></li>
-			<li><a href="#">Item 3-2</a></li>
-			<li><a href="#">Item 3-3</a></li>
-			<li><a href="#">Item 3-4</a></li>
-			<li><a href="#">Item 3-5</a></li>
-		</ul>
-	</li>
-	<li><a href="#">Item 4</a></li>
-	<li><a href="#">Item 5</a></li>
-</ul>
-
- -

If you use a structure other than <ul>/<li>, including using the same element for the menu and the menu items, use the menus option to specify a way to differentiate the two elements, e.g., menus: "div.menuElement".

- -

Any menu item can be disabled by adding the ui-state-disabled class to that element.

- -

To add icons to the menu, include them in the markup:

- -
-<ul id="menu">
-	<li><a href="#"><span class="ui-icon ui-icon-disk"></span>Save</a></li>
-</ul>
-
-

Menu automatically adds the necessary padding to items without icons.

- -

Keyboard interaction

- -
    -
  • ENTER/SPACE: Invoke the focused menu item's action, which may be opening a submenu.
  • -
  • UP: Move focus to the previous menu item.
  • -
  • DOWN: Move focus to the next menu item.
  • -
  • RIGHT: Open the submenu, if available.
  • -
  • LEFT: Close the current submenu and move focus to the parent menu item. If not in a submenu, do nothing.
  • -
  • ESCAPE: Close the current submenu and move focus to the parent menu item. If not in a submenu, do nothing.
  • -
- -

Typing a letter moves focus to the first item whose title starts with that character. Repeating the same character cycles through matching items. Typing more characters within the one second timer matches those characters.

- -

Disabled items can receive keyboard focus, but do not allow any other interaction.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

disabledType: Boolean -

-
-Default: false -
-
Disables the menu if set to true.
-Code examples:

Initialize the menu with the disabled option specified:

-
$( ".selector" ).menu({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).menu( "option", "disabled" );
 
// setter
$( ".selector" ).menu( "option", "disabled", true );
-
-
-

iconsType: Object -

-
-Default: { submenu: "ui-icon-carat-1-e" } -
-
- Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework. -
    -
  • submenu (string, default: "ui-icon-carat-1-e")
  • -
-
-Code examples:

Initialize the menu with the icons option specified:

-
$( ".selector" ).menu({ icons: { submenu: "ui-icon-circle-triangle-e" } });
-

Get or set the icons option, after initialization:

-
// getter
var icons = $( ".selector" ).menu( "option", "icons" );
 
// setter
$( ".selector" ).menu( "option", "icons", { submenu: "ui-icon-circle-triangle-e" } );
-
-
-

menusType: String -

-
-Default: "ul" -
-
Selector for the elements that serve as the menu container, including sub-menus.
-Code examples:

Initialize the menu with the menus option specified:

-
$( ".selector" ).menu({ menus: "div" });
-

Get or set the menus option, after initialization:

-
// getter
var menus = $( ".selector" ).menu( "option", "menus" );
 
// setter
$( ".selector" ).menu( "option", "menus", "div" );
-
-
-

positionType: Object -

-
-Default: { my: "left top", at: "right top" } -
-
Identifies the position of submenus in relation to the associated parent menu item. The of option defaults to the parent menu item, but you can specify another element to position against. You can refer to the jQuery UI Position utility for more details about the various options.
-Code examples:

Initialize the menu with the position option specified:

-
$( ".selector" ).menu({ position: { my: "left top", at: "right-5 top+5" } });
-

Get or set the position option, after initialization:

-
// getter
var position = $( ".selector" ).menu( "option", "position" );
 
// setter
$( ".selector" ).menu( "option", "position", { my: "left top", at: "right-5 top+5" } );
-
-
-

roleType: String -

-
-Default: "menu" -
-
Customize the ARIA roles used for the menu and menu items. The default uses "menuitem" for items. Setting the role option to "listbox" will use "option" for items. If set to null, no roles will be set, which is useful if the menu is being controlled by another element that is maintaining focus.
-Code examples:

Initialize the menu with the role option specified:

-
$( ".selector" ).menu({ role: null });
-

Get or set the role option, after initialization:

-
// getter
var role = $( ".selector" ).menu( "option", "role" );
 
// setter
$( ".selector" ).menu( "option", "role", null );
-

Methods

-

blur( [event ] )

-
- Removes focus from a menu, resets any active element styles and triggers the menu's blur event. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the menu to blur.
    -
-
-Code examples:

Invoke the blur method:

-
$( ".selector" ).menu( "blur" );
-
-
-
-

collapse( [event ] )

-
- Closes the currently active sub-menu. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the menu to collapse.
    -
-
-Code examples:

Invoke the collapse method:

-
$( ".selector" ).menu( "collapse" );
-
-
-
-

collapseAll( [event ] [, all ] )

-
- Closes all open sub-menus. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    What triggered the menu to collapse.
    -
  • -
  • -
    all
    -
    Type: Boolean -
    -
    Indicates whether all sub-menus should be closed or only sub-menus below and including the menu that is or contains the target of the triggering event.
    -
  • -
-
-Code examples:

Invoke the collapseAll method:

-
$( ".selector" ).menu( "collapseAll", null, true );
-
-
-
-

destroy()

-
- Removes the menu functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).menu( "destroy" );
-
-
-
-

disable()

-
- Disables the menu. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).menu( "disable" );
-
-
-
-

enable()

-
- Enables the menu. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).menu( "enable" );
-
-
-
-

expand( [event ] )

-
- Opens the sub-menu below the currently active item, if one exists. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the menu to expand.
    -
-
-Code examples:

Invoke the expand method:

-
$( ".selector" ).menu( "expand" );
-
-
-
-

focus( [event ], item )

-
- Activates a particular menu item, begins opening any sub-menu if present and triggers the menu's focus event. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    What triggered the menu item to gain focus.
    -
  • -
  • -
    item
    -
    Type: jQuery -
    -
    The menu item to focus/activate.
    -
  • -
-
-Code examples:

Invoke the focus method:

-
$( ".selector" ).menu( "focus", null, menu.find( ".ui-menu-item:last" ) );
-
-
-
-

isFirstItem()

-
- Returns a boolean value stating whether or not the currently active item is the first item in the menu. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the isFirstItem method:

-
var firstItem = $( ".selector" ).menu( "isFirstItem" );
-
-
-
-

isLastItem()

-
- Returns a boolean value stating whether or not the currently active item is the last item in the menu. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the isLastItem method:

-
var lastItem = $( ".selector" ).menu( "isLastItem" );
-
-
-
-

next( [event ] )

-
- Moves active state to next menu item. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the focus to move.
    -
-
-Code examples:

Invoke the next method:

-
$( ".selector" ).menu( "next" );
-
-
-
-

nextPage( [event ] )

-
- Moves active state to first menu item below the bottom of a scrollable menu or the last item if not scrollable. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the focus to move.
    -
-
-Code examples:

Invoke the nextPage method:

-
$( ".selector" ).menu( "nextPage" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).menu( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current menu options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).menu( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the menu option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).menu( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the menu.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).menu( "option", { disabled: true } );
-
-
-
-
-

previous( [event ] )

-
- Moves active state to previous menu item. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the focus to move.
    -
-
-Code examples:

Invoke the previous method:

-
$( ".selector" ).menu( "previous" );
-
-
-
-

previousPage( [event ] )

-
- Moves active state to first menu item above the top of a scrollable menu or the first item if not scrollable. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the focus to move.
    -
-
-Code examples:

Invoke the previousPage method:

-
$( ".selector" ).menu( "previousPage" );
-
-
-
-

refresh()

-
- Initializes sub-menus and menu items that have not already been initialized. New menu items, including sub-menus can be added to the menu or all of the contents of the menu can be replaced and then initialized with the refresh() method. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).menu( "refresh" );
-
-
-
-

select( [event ] )

-
- Selects the currently active menu item, collapses all sub-menus and triggers the menu's select event. -
-
  • -
    event
    -
    Type: Event -
    -
    What triggered the selection.
    -
-
-Code examples:

Invoke the select method:

-
$( ".selector" ).menu( "select" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the menu. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).menu( "widget" );
-
-

Events

-

blur( event, ui )Type: menublur -

-
- Triggered when the menu loses focus. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      item
      -
      Type: jQuery -
      -
      - The currently active menu item. -
      -
    -
  • -
-
-Code examples:

Initialize the menu with the blur callback specified:

-
$( ".selector" ).menu({
    blur: function( event, ui ) {}
});
-

Bind an event listener to the menublur event:

-
$( ".selector" ).on( "menublur", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: menucreate -

-
- Triggered when the menu is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the menu with the create callback specified:

-
$( ".selector" ).menu({
    create: function( event, ui ) {}
});
-

Bind an event listener to the menucreate event:

-
$( ".selector" ).on( "menucreate", function( event, ui ) {} );
-
-
-
-

focus( event, ui )Type: menufocus -

-
- Triggered when a menu gains focus or when any menu item is activated. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      item
      -
      Type: jQuery -
      -
      - The currently active menu item. -
      -
    -
  • -
-
-Code examples:

Initialize the menu with the focus callback specified:

-
$( ".selector" ).menu({
    focus: function( event, ui ) {}
});
-

Bind an event listener to the menufocus event:

-
$( ".selector" ).on( "menufocus", function( event, ui ) {} );
-
-
-
-

select( event, ui )Type: menuselect -

-
- Triggered when a menu item is selected. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      item
      -
      Type: jQuery -
      -
      - The currently active menu item. -
      -
    -
  • -
-
-Code examples:

Initialize the menu with the select callback specified:

-
$( ".selector" ).menu({
    select: function( event, ui ) {}
});
-

Bind an event listener to the menuselect event:

-
$( ".selector" ).on( "menuselect", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Menu

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>menu demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    .ui-menu {
        width: 200px;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<ul id="menu">
    <li><a href="#">Item 1</a></li>
    <li><a href="#">Item 2</a></li>
    <li><a href="#">Item 3</a>
        <ul>
            <li><a href="#">Item 3-1</a></li>
            <li><a href="#">Item 3-2</a></li>
            <li><a href="#">Item 3-3</a></li>
            <li><a href="#">Item 3-4</a></li>
            <li><a href="#">Item 3-5</a></li>
        </ul>
    </li>
    <li><a href="#">Item 4</a></li>
    <li><a href="#">Item 5</a></li>
</ul>
 
<script>
$( "#menu" ).menu();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/mouse.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/mouse.html deleted file mode 100755 index 043e643..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/mouse.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - jQuery UI mouse documentation - - - - - -

Mouse Interaction

-
-

Description: The base interaction layer.

-

QuickNav

-

Options

- - - -
- -

Events

-

Similar to jQuery.Widget, the mouse interaction is not intended to be used directly. It is purely a base layer for other widgets to inherit from. This page only documents what is added to jQuery.Widget, but it does include internal methods that are not intended to be overwritten. The intended public API is _mouseStart(), _mouseDrag(), _mouseStop(), and _mouseCapture().

-
-

Options

-

cancelType: Selector -

-
-Default: "input,textarea,button,select,option" -
-
Prevents interactions from starting on specified elements.
-Code examples:

Initialize the jQuery.ui.mouse with the cancel option specified:

-
$( ".selector" ).jQuery.ui.mouse({ cancel: ".title" });
-

Get or set the cancel option, after initialization:

-
// getter
var cancel = $( ".selector" ).jQuery.ui.mouse( "option", "cancel" );
 
// setter
$( ".selector" ).jQuery.ui.mouse( "option", "cancel", ".title" );
-
-
-

delayType: Number -

-
-Default: 0 -
-
Time in milliseconds after mousedown until the interaction should start. This option can be used to prevent unwanted interactions when clicking on an element.
-Code examples:

Initialize the jQuery.ui.mouse with the delay option specified:

-
$( ".selector" ).jQuery.ui.mouse({ delay: 300 });
-

Get or set the delay option, after initialization:

-
// getter
var delay = $( ".selector" ).jQuery.ui.mouse( "option", "delay" );
 
// setter
$( ".selector" ).jQuery.ui.mouse( "option", "delay", 300 );
-
-
-

distanceType: Number -

-
-Default: 1 -
-
Distance in pixels after mousedown the mouse must move before the interaction should start. This option can be used to prevent unwanted interactions when clicking on an element.
-Code examples:

Initialize the jQuery.ui.mouse with the distance option specified:

-
$( ".selector" ).jQuery.ui.mouse({ distance: 10 });
-

Get or set the distance option, after initialization:

-
// getter
var distance = $( ".selector" ).jQuery.ui.mouse( "option", "distance" );
 
// setter
$( ".selector" ).jQuery.ui.mouse( "option", "distance", 10 );
-

Methods

-

_mouseCapture()Returns: Boolean -

-
- Determines whether an interaction should start based on event target of the interaction. The default implementation always returns true. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseCapture method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseCapture" );
-
-
-
-

_mouseDelayMet()Returns: Boolean -

-
- Determines whether the delay option has been met for the current interaction. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseDelayMet method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseDelayMet" );
-
-
-
-

_mouseDestroy()

-
- Destroys the interaction event handlers. This must be called from the extending widget's _destroy() method. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseDestroy method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseDestroy" );
-
-
-
-

_mouseDistanceMet()Returns: Boolean -

-
- Determines whether the distance option has been met for the current interaction. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseDistanceMet method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseDistanceMet" );
-
-
-
-

_mouseDown()

-
- Handles the beginning of an interaction. Verifies that the event is associated with the primary mouse button and ensures that the delay and distance options are met prior to starting the interaction. When the interaction is ready to start, invokes the _mouseStart() method for the extending widget to handle. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseDown method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseDown" );
-
-
-
-

_mouseDrag()

-
- The extending widget should implement a _mouseDrag() method to handle each movement of an interaction. This method will receive the mouse event associated with the movement. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseDrag method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseDrag" );
-
-
-
-

_mouseInit()

-
- Initializes the interaction event handlers. This must be called from the extending widget's _create() method. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseInit method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseInit" );
-
-
-
-

_mouseMove()

-
- Handles each movement of the interaction. Invokes the mouseDrag() method for the extending widget to handle. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseMove method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseMove" );
-
-
-
-

_mouseStart()

-
- The extending widget should implement a _mouseStart() method to handle the beginning of an interaction. This method will receive the mouse event associated with the start of the interaction. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseStart method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseStart" );
-
-
-
-

_mouseStop()

-
- The extending widget should implement a _mouseStop() method to handle the end of an interaction. This method will receive the mouse event associated with the end of the interaction. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseStop method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseStop" );
-
-
-
-

_mouseUp()

-
- Handles the end of the interaction. Invokes the mouseStop() method for the extending widget to handle. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the _mouseUp method:

-
$( ".selector" ).jQuery.ui.mouse( "_mouseUp" );
-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/position.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/position.html deleted file mode 100755 index 5f870ed..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/position.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - jQuery UI position documentation - - - - - -

-.position( options )Returns: jQueryversion added: 1.8 -

-
-

Description: Position an element relative to another.

-
  • -

    .position( options )

    -
    • -
      options
      -
      Type: Object -
      -
      -
        -
      • -
        -my (default: "center")
        -
        Type: String -
        -
        Defines which position on the element being positioned to align with the target element: "horizontal vertical" alignment. A single value such as "right" will be normalized to "right center", "top" will be normalized to "center top" (following CSS convention). Acceptable horizontal values: "left", "center", "right". Acceptable vertical values: "top", "center", "bottom". Example: "left top" or "center center". Each dimension can also contain offsets, in pixels or percent, e.g., "right+10 top-25%". Percentage offsets are relative to the element being positioned.
        -
      • -
      • -
        -at (default: "center")
        -
        Type: String -
        -
        Defines which position on the target element to align the positioned element against: "horizontal vertical" alignment. See the my option for full details on possible values. Perecentage offsets are relative to the target element.
        -
      • -
      • -
        -of (default: null)
        -
        Type: Selector or Element or jQuery or Event -
        -
        Which element to position against. If you provide a selector or jQuery object, the first matching element will be used. If you provide an event object, the pageX and pageY properties will be used. Example: "#top-menu" -
        -
      • -
      • -
        -collision (default: "flip")
        -
        Type: String -
        -
        -

        When the positioned element overflows the window in some direction, move it to an alternative position. Similar to my and at, this accepts a single value or a pair for horizontal/vertical, e.g., "flip", "fit", "fit flip", "fit none".

        -
          -
        • -"flip": Flips the element to the opposite side of the target and the collision detection is run again to see if it will fit. Whichever side allows more of the element to be visible will be used.
        • -
        • -"fit": Shift the element away from the edge of the window.
        • -
        • -"flipfit": First applies the flip logic, placing the element on whichever side allows more of the element to be visible. Then the fit logic is applied to ensure as much of the element is visible as possible.
        • -
        • -"none": Does not apply any collision detection.
        • -
        -
        -
      • -
      • -
        -using (default: null)
        -
        Type: Function()
        -
        - When specified, the actual property setting is delegated to this callback. Receives two parameters: The first is a hash of top and left values for the position that should be set and can be forwarded to .css() or .animate(). -

        The second provides feedback about the position and dimensions of both elements, as well as calculations to their relative position. Both target and element have these properties: element, left, top, width, height. In addition, there's horizontal, vertical and important, giving you twelve potential directions like { horizontal: "center", vertical: "left", important: "horizontal" }.

        -
        -
      • -
      • -
        -within (default: window)
        -
        Type: Selector or Element or jQuery -
        -
        Element to position within, affecting collision detection. If you provide a selector or jQuery object, the first matching element will be used.
        -
      • -
      -
    -
-
-

The jQuery UI .position() method allows you to position an element relative to the window, document, another element, or the cursor/mouse, without worrying about offset parents.

-

Note: jQuery UI does not support positioning hidden elements.

-

This is a standalone jQuery plugin and has no dependencies on other jQuery UI components.

-

This plugin extends jQuery's built-in .position() method. If jQuery UI is not loaded, calling the .position() method may not fail directly, as the method still exists. However, the expected behavior will not occur.

-
-

Example:

-

A simple jQuery UI Position example.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>position demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    .positionDiv {
        position: absolute;
        width: 75px;
        height: 75px;
        background: green;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="targetElement">
    <div class="positionDiv" id="position1"></div>
    <div class="positionDiv" id="position2"></div>
    <div class="positionDiv" id="position3"></div>
    <div class="positionDiv" id="position4"></div>
</div>
 
<script>
$( "#position1" ).position({
    my: "center",
    at: "center",
    of: "#targetElement"
});
 
$( "#position2" ).position({
    my: "left top",
    at: "left top",
    of: "#targetElement"
});
 
$( "#position3" ).position({
    my: "right center",
    at: "right bottom",
    of: "#targetElement"
});
 
$( document ).mousemove(function( event ) {
    $( "#position4" ).position({
        my: "left+3 bottom-3",
        of: event,
        collision: "fit"
    });
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/progressbar.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/progressbar.html deleted file mode 100755 index 9df840f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/progressbar.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - jQuery UI progressbar documentation - - - - - -

-Progressbar Widgetversion added: 1.6 -

-
-

Description: Display status of a determinate or indeterminate process.

-

QuickNavExamples -

-

Options

- - - -
- -
-

Events

- - - -
-

- The progress bar is designed to display the current percent complete for a process. The bar is coded to be flexibly sized through CSS and will scale to fit inside its parent container by default. -

-

- A determinate progress bar should only be used in situations where the system can accurately update the current status. A determinate progress bar should never fill from left to right, then loop back to empty for a single process — if the actual status cannot be calculated, an indeterminate progress bar should be used to provide user feedback. -

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

disabledType: Boolean -

-
-Default: false -
-
Disables the progressbar if set to true.
-Code examples:

Initialize the progressbar with the disabled option specified:

-
$( ".selector" ).progressbar({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).progressbar( "option", "disabled" );
 
// setter
$( ".selector" ).progressbar( "option", "disabled", true );
-
-
-

maxType: Number -

-
-Default: 100 -
-
The maximum value of the progressbar.
-Code examples:

Initialize the progressbar with the max option specified:

-
$( ".selector" ).progressbar({ max: 1024 });
-

Get or set the max option, after initialization:

-
// getter
var max = $( ".selector" ).progressbar( "option", "max" );
 
// setter
$( ".selector" ).progressbar( "option", "max", 1024 );
-
-
-

valueType: Number or Boolean -

-
-Default: 0 -
-
The value of the progressbar.
-Multiple types supported:
    -
  • -Number: - A value between 0 and the max. -
  • -
  • -Boolean: - Value can be set to false to create an indeterminate progressbar. -
  • -
-Code examples:

Initialize the progressbar with the value option specified:

-
$( ".selector" ).progressbar({ value: 25 });
-

Get or set the value option, after initialization:

-
// getter
var value = $( ".selector" ).progressbar( "option", "value" );
 
// setter
$( ".selector" ).progressbar( "option", "value", 25 );
-

Methods

-

destroy()

-
- Removes the progressbar functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).progressbar( "destroy" );
-
-
-
-

disable()

-
- Disables the progressbar. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).progressbar( "disable" );
-
-
-
-

enable()

-
- Enables the progressbar. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).progressbar( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).progressbar( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current progressbar options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).progressbar( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the progressbar option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).progressbar( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the progressbar.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).progressbar( "option", { disabled: true } );
-
-
-
-
-
-

value()Returns: Number or Boolean -

-
Gets the current value of the progressbar.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var progressSoFar = $( ".selector" ).progressbar( "value" );
-
-
-
-

value( value )

-
Sets the current value of the progressbar.
-
  • -
    value
    -
    Type: Number or Boolean -
    -
    The value to set. See the value option for details on valid values.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).progressbar( "value", 50 );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the progressbar. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).progressbar( "widget" );
-
-

Events

-

change( event, ui )Type: progressbarchange -

-
Triggered when the value of the progressbar changes.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the progressbar with the change callback specified:

-
$( ".selector" ).progressbar({
    change: function( event, ui ) {}
});
-

Bind an event listener to the progressbarchange event:

-
$( ".selector" ).on( "progressbarchange", function( event, ui ) {} );
-
-
-
-

complete( event, ui )Type: progressbarcomplete -

-
Triggered when the value of the progressbar reaches the maximum value.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the progressbar with the complete callback specified:

-
$( ".selector" ).progressbar({
    complete: function( event, ui ) {}
});
-

Bind an event listener to the progressbarcomplete event:

-
$( ".selector" ).on( "progressbarcomplete", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: progressbarcreate -

-
- Triggered when the progressbar is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the progressbar with the create callback specified:

-
$( ".selector" ).progressbar({
    create: function( event, ui ) {}
});
-

Bind an event listener to the progressbarcreate event:

-
$( ".selector" ).on( "progressbarcreate", function( event, ui ) {} );
-
-

Examples:

-

Example: A simple jQuery UI Progressbar -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>progressbar demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="progressbar"></div>
 
<script>
$( "#progressbar" ).progressbar({
    value: 37
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
-

Example: A simple jQuery UI Indeterminate Progressbar -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>progressbar demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="progressbar"></div>
 
<script>
$( "#progressbar" ).progressbar({
    value: false
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/puff-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/puff-effect.html deleted file mode 100755 index ab134db..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/puff-effect.html +++ /dev/null @@ -1,32 +0,0 @@ -

Puff Effect

-
-

Description: - Creates a puff effect by scaling the element up and hiding it at the same time. -

-
  • -

    puff

    -
    • -
      -percent (default: 150)
      -
      Type: Number -
      -
      The percentage to scale to.
      -
    -
-

Example:

-

Toggle a div using the puff effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>puff demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "puff" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
\ No newline at end of file diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/pulsate-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/pulsate-effect.html deleted file mode 100755 index 50dc8e4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/pulsate-effect.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - jQuery UI pulsate-effect documentation - - - - - -

Pulsate Effect

-
-

Description: - The pulsate effect hides or shows an element by pulsing it in or out. -

-
  • -

    pulsate

    -
    • -
      -times (default: 5)
      -
      Type: Integer -
      -
      The number of times the element should pulse. An extra half pulse is added for hide/show.
      -
    -
-

Example:

-

Toggle a div using the pulsate effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>pulsate demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "pulsate" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/resizable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/resizable.html deleted file mode 100755 index 336dc7d..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/resizable.html +++ /dev/null @@ -1,685 +0,0 @@ - - - - - jQuery UI resizable documentation - - - - - -

-Resizable Widgetversion added: 1.0 -

-
-

Description: Change the size of an element using the mouse.

-

QuickNavExamples -

- -
-

Events

- - - - -
-

The jQuery UI Resizable plugin makes selected elements resizable (meaning they have draggable resize handles). You can specify one or more handles as well as min and max width and height.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

alsoResizeType: Selector or jQuery or Element -

-
-Default: false -
-
One or more elements to resize synchronously with the resizable element.
-Code examples:

Initialize the resizable with the alsoResize option specified:

-
$( ".selector" ).resizable({ alsoResize: "#mirror" });
-

Get or set the alsoResize option, after initialization:

-
// getter
var alsoResize = $( ".selector" ).resizable( "option", "alsoResize" );
 
// setter
$( ".selector" ).resizable( "option", "alsoResize", "#mirror" );
-
-
-

animateType: Boolean -

-
-Default: false -
-
Animates to the final size after resizing.
-Code examples:

Initialize the resizable with the animate option specified:

-
$( ".selector" ).resizable({ animate: true });
-

Get or set the animate option, after initialization:

-
// getter
var animate = $( ".selector" ).resizable( "option", "animate" );
 
// setter
$( ".selector" ).resizable( "option", "animate", true );
-
-
-

animateDurationType: Number or String -

-
-Default: "slow" -
-
How long to animate when using the animate option.
-Multiple types supported:
    -
  • -Number: Duration in milliseconds.
  • -
  • -String: A named duration, such as "slow" or "fast".
  • -
-Code examples:

Initialize the resizable with the animateDuration option specified:

-
$( ".selector" ).resizable({ animateDuration: "fast" });
-

Get or set the animateDuration option, after initialization:

-
// getter
var animateDuration = $( ".selector" ).resizable( "option", "animateDuration" );
 
// setter
$( ".selector" ).resizable( "option", "animateDuration", "fast" );
-
-
-

animateEasingType: String -

-
-Default: "swing" -
-
Which easing to apply when using the animate option.
-Code examples:

Initialize the resizable with the animateEasing option specified:

-
$( ".selector" ).resizable({ animateEasing: "easeOutBounce" });
-

Get or set the animateEasing option, after initialization:

-
// getter
var animateEasing = $( ".selector" ).resizable( "option", "animateEasing" );
 
// setter
$( ".selector" ).resizable( "option", "animateEasing", "easeOutBounce" );
-
-
-

aspectRatioType: Boolean or Number -

-
-Default: false -
-
Whether the element should be constrained to a specific aspect ratio.
-Multiple types supported:
    -
  • -Boolean: When set to true, the element will maintain its original aspect ratio.
  • -
  • -Number: Force the element to maintain a specific aspect ratio during resizing.
  • -
-Code examples:

Initialize the resizable with the aspectRatio option specified:

-
$( ".selector" ).resizable({ aspectRatio: true });
-

Get or set the aspectRatio option, after initialization:

-
// getter
var aspectRatio = $( ".selector" ).resizable( "option", "aspectRatio" );
 
// setter
$( ".selector" ).resizable( "option", "aspectRatio", true );
-
-
-

autoHideType: Boolean -

-
-Default: false -
-
Whether the handles should hide when the user is not hovering over the element.
-Code examples:

Initialize the resizable with the autoHide option specified:

-
$( ".selector" ).resizable({ autoHide: true });
-

Get or set the autoHide option, after initialization:

-
// getter
var autoHide = $( ".selector" ).resizable( "option", "autoHide" );
 
// setter
$( ".selector" ).resizable( "option", "autoHide", true );
-
-
-

cancelType: Selector -

-
-Default: "input,textarea,button,select,option" -
-
Prevents resizing from starting on specified elements.
-Code examples:

Initialize the resizable with the cancel option specified:

-
$( ".selector" ).resizable({ cancel: ".cancel" });
-

Get or set the cancel option, after initialization:

-
// getter
var cancel = $( ".selector" ).resizable( "option", "cancel" );
 
// setter
$( ".selector" ).resizable( "option", "cancel", ".cancel" );
-
-
-

containmentType: Selector or Element or String -

-
-Default: false -
-
Constrains resizing to within the bounds of the specified element or region.
-Multiple types supported:
    -
  • -Selector: The resizable element will be contained to the bounding box of the first element found by the selector. If no element is found, no containment will be set.
  • -
  • -Element: The resizable element will be contained to the bounding box of this element.
  • -
  • -String: Possible values: "parent" and "document".
  • -
-Code examples:

Initialize the resizable with the containment option specified:

-
$( ".selector" ).resizable({ containment: "parent" });
-

Get or set the containment option, after initialization:

-
// getter
var containment = $( ".selector" ).resizable( "option", "containment" );
 
// setter
$( ".selector" ).resizable( "option", "containment", "parent" );
-
-
-

delayType: Number -

-
-Default: 0 -
-
Tolerance, in milliseconds, for when resizing should start. If specified, resizing will not start until after mouse is moved beyond duration. This can help prevent unintended resizing when clicking on an element.
-Code examples:

Initialize the resizable with the delay option specified:

-
$( ".selector" ).resizable({ delay: 150 });
-

Get or set the delay option, after initialization:

-
// getter
var delay = $( ".selector" ).resizable( "option", "delay" );
 
// setter
$( ".selector" ).resizable( "option", "delay", 150 );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the resizable if set to true.
-Code examples:

Initialize the resizable with the disabled option specified:

-
$( ".selector" ).resizable({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).resizable( "option", "disabled" );
 
// setter
$( ".selector" ).resizable( "option", "disabled", true );
-
-
-

distanceType: Number -

-
-Default: 1 -
-
Tolerance, in pixels, for when resizing should start. If specified, resizing will not start until after mouse is moved beyond distance. This can help prevent unintended resizing when clicking on an element.
-Code examples:

Initialize the resizable with the distance option specified:

-
$( ".selector" ).resizable({ distance: 30 });
-

Get or set the distance option, after initialization:

-
// getter
var distance = $( ".selector" ).resizable( "option", "distance" );
 
// setter
$( ".selector" ).resizable( "option", "distance", 30 );
-
-
-

ghostType: Boolean -

-
-Default: false -
-
If set to true, a semi-transparent helper element is shown for resizing.
-Code examples:

Initialize the resizable with the ghost option specified:

-
$( ".selector" ).resizable({ ghost: true });
-

Get or set the ghost option, after initialization:

-
// getter
var ghost = $( ".selector" ).resizable( "option", "ghost" );
 
// setter
$( ".selector" ).resizable( "option", "ghost", true );
-
-
-

gridType: Array -

-
-Default: false -
-
Snaps the resizing element to a grid, every x and y pixels. Array values: [ x, y ].
-Code examples:

Initialize the resizable with the grid option specified:

-
$( ".selector" ).resizable({ grid: [ 20, 10 ] });
-

Get or set the grid option, after initialization:

-
// getter
var grid = $( ".selector" ).resizable( "option", "grid" );
 
// setter
$( ".selector" ).resizable( "option", "grid", [ 20, 10 ] );
-
-
-

handlesType: String or Object -

-
-Default: "e, s, se" -
-
Which handles can be used for resizing.
-Multiple types supported:
    -
  • -String: A comma delimited list of any of the following: n, e, s, w, ne, se, sw, nw, all. The necessary handles will be auto-generated by the plugin.
  • -
  • -Object: The following keys are supported: { n, e, s, w, ne, se, sw, nw }. The value of any specified should be a jQuery selector matching the child element of the resizable to use as that handle. If the handle is not a child of the resizable, you can pass in the DOMElement or a valid jQuery object directly.
  • -
-Code examples:

Initialize the resizable with the handles option specified:

-
$( ".selector" ).resizable({ handles: "n, e, s, w" });
-

Get or set the handles option, after initialization:

-
// getter
var handles = $( ".selector" ).resizable( "option", "handles" );
 
// setter
$( ".selector" ).resizable( "option", "handles", "n, e, s, w" );
-
-
-

helperType: String -

-
-Default: false -
-
A class name that will be added to a proxy element to outline the resize during the drag of the resize handle. Once the resize is complete, the original element is sized.
-Code examples:

Initialize the resizable with the helper option specified:

-
$( ".selector" ).resizable({ helper: "resizable-helper" });
-

Get or set the helper option, after initialization:

-
// getter
var helper = $( ".selector" ).resizable( "option", "helper" );
 
// setter
$( ".selector" ).resizable( "option", "helper", "resizable-helper" );
-
-
-

maxHeightType: Number -

-
-Default: null -
-
The maximum height the resizable should be allowed to resize to.
-Code examples:

Initialize the resizable with the maxHeight option specified:

-
$( ".selector" ).resizable({ maxHeight: 300 });
-

Get or set the maxHeight option, after initialization:

-
// getter
var maxHeight = $( ".selector" ).resizable( "option", "maxHeight" );
 
// setter
$( ".selector" ).resizable( "option", "maxHeight", 300 );
-
-
-

maxWidthType: Number -

-
-Default: null -
-
The maximum width the resizable should be allowed to resize to.
-Code examples:

Initialize the resizable with the maxWidth option specified:

-
$( ".selector" ).resizable({ maxWidth: 300 });
-

Get or set the maxWidth option, after initialization:

-
// getter
var maxWidth = $( ".selector" ).resizable( "option", "maxWidth" );
 
// setter
$( ".selector" ).resizable( "option", "maxWidth", 300 );
-
-
-

minHeightType: Number -

-
-Default: 10 -
-
The minimum height the resizable should be allowed to resize to.
-Code examples:

Initialize the resizable with the minHeight option specified:

-
$( ".selector" ).resizable({ minHeight: 150 });
-

Get or set the minHeight option, after initialization:

-
// getter
var minHeight = $( ".selector" ).resizable( "option", "minHeight" );
 
// setter
$( ".selector" ).resizable( "option", "minHeight", 150 );
-
-
-

minWidthType: Number -

-
-Default: 10 -
-
The minimum width the resizable should be allowed to resize to.
-Code examples:

Initialize the resizable with the minWidth option specified:

-
$( ".selector" ).resizable({ minWidth: 150 });
-

Get or set the minWidth option, after initialization:

-
// getter
var minWidth = $( ".selector" ).resizable( "option", "minWidth" );
 
// setter
$( ".selector" ).resizable( "option", "minWidth", 150 );
-

Methods

-

destroy()

-
- Removes the resizable functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).resizable( "destroy" );
-
-
-
-

disable()

-
- Disables the resizable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).resizable( "disable" );
-
-
-
-

enable()

-
- Enables the resizable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).resizable( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).resizable( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current resizable options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).resizable( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the resizable option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).resizable( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the resizable.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).resizable( "option", { disabled: true } );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the resizable element. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).resizable( "widget" );
-
-

Events

-

create( event, ui )Type: resizecreate -

-
- Triggered when the resizable is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the resizable with the create callback specified:

-
$( ".selector" ).resizable({
    create: function( event, ui ) {}
});
-

Bind an event listener to the resizecreate event:

-
$( ".selector" ).on( "resizecreate", function( event, ui ) {} );
-
-
-
-

resize( event, ui )Type: resize -

-
This event is triggered during the resize, on the drag of the resize handler.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      element
      -
      Type: jQuery -
      -
      The jQuery object representing the element to be resized
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper that's being resized
      -
    • -
    • -
      originalElement
      -
      Type: jQuery -
      -
      The jQuery object representing the original element before it is wrapped
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The position represented as { left, top } before the resizable is resized
      -
    • -
    • -
      originalSize
      -
      Type: Object -
      -
      The size represented as { width, height } before the resizable is resized
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position represented as { left, top } -
      -
    • -
    • -
      size
      -
      Type: Object -
      -
      The current size represented as { width, height } -
      -
    • -
    -
  • -
-
-Code examples:

Initialize the resizable with the resize callback specified:

-
$( ".selector" ).resizable({
    resize: function( event, ui ) {}
});
-

Bind an event listener to the resize event:

-
$( ".selector" ).on( "resize", function( event, ui ) {} );
-
-
-
-

start( event, ui )Type: resizestart -

-
This event is triggered at the start of a resize operation.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      element
      -
      Type: jQuery -
      -
      The jQuery object representing the element to be resized
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper that's being resized
      -
    • -
    • -
      originalElement
      -
      Type: jQuery -
      -
      The jQuery object representing the original element before it is wrapped
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The position represented as { left, top } before the resizable is resized
      -
    • -
    • -
      originalSize
      -
      Type: Object -
      -
      The size represented as { width, height } before the resizable is resized
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position represented as { left, top } -
      -
    • -
    • -
      size
      -
      Type: Object -
      -
      The current size represented as { width, height } -
      -
    • -
    -
  • -
-
-Code examples:

Initialize the resizable with the start callback specified:

-
$( ".selector" ).resizable({
    start: function( event, ui ) {}
});
-

Bind an event listener to the resizestart event:

-
$( ".selector" ).on( "resizestart", function( event, ui ) {} );
-
-
-
-

stop( event, ui )Type: resizestop -

-
This event is triggered at the end of a resize operation.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      element
      -
      Type: jQuery -
      -
      The jQuery object representing the element to be resized
      -
    • -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper that's being resized
      -
    • -
    • -
      originalElement
      -
      Type: jQuery -
      -
      The jQuery object representing the original element before it is wrapped
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The position represented as { left, top } before the resizable is resized
      -
    • -
    • -
      originalSize
      -
      Type: Object -
      -
      The size represented as { width, height } before the resizable is resized
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position represented as { left, top } -
      -
    • -
    • -
      size
      -
      Type: Object -
      -
      The current size represented as { width, height } -
      -
    • -
    -
  • -
-
-Code examples:

Initialize the resizable with the stop callback specified:

-
$( ".selector" ).resizable({
    stop: function( event, ui ) {}
});
-

Bind an event listener to the resizestop event:

-
$( ".selector" ).on( "resizestop", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Resizable.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>resizable demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #resizable {
        width: 100px;
        height: 100px;
        background: #ccc;
}   </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="resizable"></div>
 
<script>
$( "#resizable" ).resizable();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/scale-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/scale-effect.html deleted file mode 100755 index 4a74480..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/scale-effect.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - jQuery UI scale-effect documentation - - - - - -

Scale Effect

-
-

Description: - Shrink or grow an element by a percentage factor. -

-
  • -

    scale

    -
      -
    • -
      -direction (default: "both")
      -
      Type: String -
      -
      The direction of the effect. Possible values: "both", "vertical" or "horizontal".
      -
    • -
    • -
      -origin (default: [ "middle", "center" ])
      -
      Type: Array -
      -
      The vanishing point.
      -
    • -
    • -
      percent
      -
      Type: Number -
      -
      The percentage to scale to.
      -
    • -
    • -
      -scale (default: "both")
      -
      Type: String -
      -
      Which areas of the element will be resized: "both", "box", "content". Box resizes the border and padding of the element; content resizes any content inside of the element.
      -
    • -
    -
-

Examples:

-

Example: Toggle a div using the scale effect. -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>scale demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "scale" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
-

Example: Toggle a div using the scale effect in just one direction. -

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>scale demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle({ effect: "scale", direction: "horizontal" });
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/selectable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/selectable.html deleted file mode 100755 index 9061e87..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/selectable.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - jQuery UI selectable documentation - - - - - -

-Selectable Widgetversion added: 1.0 -

-
-

Description: Use the mouse to select elements, individually or in a group.

-

QuickNavExamples -

- -
-

The jQuery UI Selectable plugin allows for elements to be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Elements can also be selected via click or drag while holding the ctrl/meta key, allowing for multiple (non-contiguous) selections.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

appendToType: Selector -

-
-Default: "body" -
-
Which element the selection helper (the lasso) should be appended to.
-Code examples:

Initialize the selectable with the appendTo option specified:

-
$( ".selector" ).selectable({ appendTo: "#someElem" });
-

Get or set the appendTo option, after initialization:

-
// getter
var appendTo = $( ".selector" ).selectable( "option", "appendTo" );
 
// setter
$( ".selector" ).selectable( "option", "appendTo", "#someElem" );
-
-
-

autoRefreshType: Boolean -

-
-Default: true -
-
This determines whether to refresh (recalculate) the position and size of each selectee at the beginning of each select operation. If you have many items, you may want to set this to false and call the refresh() method manually.
-Code examples:

Initialize the selectable with the autoRefresh option specified:

-
$( ".selector" ).selectable({ autoRefresh: false });
-

Get or set the autoRefresh option, after initialization:

-
// getter
var autoRefresh = $( ".selector" ).selectable( "option", "autoRefresh" );
 
// setter
$( ".selector" ).selectable( "option", "autoRefresh", false );
-
-
-

cancelType: Selector -

-
-Default: "input,textarea,button,select,option" -
-
Prevents selecting if you start on elements matching the selector.
-Code examples:

Initialize the selectable with the cancel option specified:

-
$( ".selector" ).selectable({ cancel: a,.cancel });
-

Get or set the cancel option, after initialization:

-
// getter
var cancel = $( ".selector" ).selectable( "option", "cancel" );
 
// setter
$( ".selector" ).selectable( "option", "cancel", a,.cancel );
-
-
-

delayType: Integer -

-
-Default: 0 -
-
Time in milliseconds to define when the selecting should start. This helps prevent unwanted selections when clicking on an element.
-Code examples:

Initialize the selectable with the delay option specified:

-
$( ".selector" ).selectable({ delay: 150 });
-

Get or set the delay option, after initialization:

-
// getter
var delay = $( ".selector" ).selectable( "option", "delay" );
 
// setter
$( ".selector" ).selectable( "option", "delay", 150 );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the selectable if set to true.
-Code examples:

Initialize the selectable with the disabled option specified:

-
$( ".selector" ).selectable({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).selectable( "option", "disabled" );
 
// setter
$( ".selector" ).selectable( "option", "disabled", true );
-
-
-

distanceType: Number -

-
-Default: 0 -
-
Tolerance, in pixels, for when selecting should start. If specified, selecting will not start until the mouse has been dragged beyond the specified distance.
-Code examples:

Initialize the selectable with the distance option specified:

-
$( ".selector" ).selectable({ distance: 30 });
-

Get or set the distance option, after initialization:

-
// getter
var distance = $( ".selector" ).selectable( "option", "distance" );
 
// setter
$( ".selector" ).selectable( "option", "distance", 30 );
-
-
-

filterType: Selector -

-
-Default: "*" -
-
The matching child elements will be made selectees (able to be selected).
-Code examples:

Initialize the selectable with the filter option specified:

-
$( ".selector" ).selectable({ filter: li });
-

Get or set the filter option, after initialization:

-
// getter
var filter = $( ".selector" ).selectable( "option", "filter" );
 
// setter
$( ".selector" ).selectable( "option", "filter", li );
-
-
-

toleranceType: String -

-
-Default: "touch" -
-
- Specifies which mode to use for testing whether the lasso should select an item. Possible values: -
    -
  • -"fit": Lasso overlaps the item entirely.
  • -
  • -"touch": Lasso overlaps the item by any amount.
  • -
-
-Code examples:

Initialize the selectable with the tolerance option specified:

-
$( ".selector" ).selectable({ tolerance: "fit" });
-

Get or set the tolerance option, after initialization:

-
// getter
var tolerance = $( ".selector" ).selectable( "option", "tolerance" );
 
// setter
$( ".selector" ).selectable( "option", "tolerance", "fit" );
-

Methods

-

destroy()

-
- Removes the selectable functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).selectable( "destroy" );
-
-
-
-

disable()

-
- Disables the selectable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).selectable( "disable" );
-
-
-
-

enable()

-
- Enables the selectable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).selectable( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).selectable( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current selectable options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).selectable( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the selectable option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).selectable( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the selectable.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).selectable( "option", { disabled: true } );
-
-
-
-
-

refresh()

-
Refresh the position and size of each selectee element. This method can be used to manually recalculate the position and size of each selectee when the autoRefresh option is set to false.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).selectable( "refresh" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the selectable element. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).selectable( "widget" );
-
-

Events

-

create( event, ui )Type: selectablecreate -

-
- Triggered when the selectable is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the selectable with the create callback specified:

-
$( ".selector" ).selectable({
    create: function( event, ui ) {}
});
-

Bind an event listener to the selectablecreate event:

-
$( ".selector" ).on( "selectablecreate", function( event, ui ) {} );
-
-
-
-

selected( event, ui )Type: selectableselected -

-
Triggered at the end of the select operation, on each element added to the selection.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      selected
      -
      Type: Element -
      -
      The selectable item that has been selected.
      -
    -
  • -
-
-Code examples:

Initialize the selectable with the selected callback specified:

-
$( ".selector" ).selectable({
    selected: function( event, ui ) {}
});
-

Bind an event listener to the selectableselected event:

-
$( ".selector" ).on( "selectableselected", function( event, ui ) {} );
-
-
-
-

selecting( event, ui )Type: selectableselecting -

-
Triggered during the select operation, on each element added to the selection.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      selecting
      -
      Type: Element -
      -
      The current selectable item being selected.
      -
    -
  • -
-
-Code examples:

Initialize the selectable with the selecting callback specified:

-
$( ".selector" ).selectable({
    selecting: function( event, ui ) {}
});
-

Bind an event listener to the selectableselecting event:

-
$( ".selector" ).on( "selectableselecting", function( event, ui ) {} );
-
-
-
-

start( event, ui )Type: selectablestart -

-
Triggered at the beginning of the select operation.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the selectable with the start callback specified:

-
$( ".selector" ).selectable({
    start: function( event, ui ) {}
});
-

Bind an event listener to the selectablestart event:

-
$( ".selector" ).on( "selectablestart", function( event, ui ) {} );
-
-
-
-

stop( event, ui )Type: selectablestop -

-
Triggered at the end of the select operation.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the selectable with the stop callback specified:

-
$( ".selector" ).selectable({
    stop: function( event, ui ) {}
});
-

Bind an event listener to the selectablestop event:

-
$( ".selector" ).on( "selectablestop", function( event, ui ) {} );
-
-
-
-

unselected( event, ui )Type: selectableunselected -

-
Triggered at the end of the select operation, on each element removed from the selection.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      unselected
      -
      Type: Element -
      -
      The selectable item that has been unselected.
      -
    -
  • -
-
-Code examples:

Initialize the selectable with the unselected callback specified:

-
$( ".selector" ).selectable({
    unselected: function( event, ui ) {}
});
-

Bind an event listener to the selectableunselected event:

-
$( ".selector" ).on( "selectableunselected", function( event, ui ) {} );
-
-
-
-

unselecting( event, ui )Type: selectableunselecting -

-
Triggered during the select operation, on each element removed from the selection.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      unselecting
      -
      Type: Element -
      -
      The current selectable item being unselected.
      -
    -
  • -
-
-Code examples:

Initialize the selectable with the unselecting callback specified:

-
$( ".selector" ).selectable({
    unselecting: function( event, ui ) {}
});
-

Bind an event listener to the selectableunselecting event:

-
$( ".selector" ).on( "selectableunselecting", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Selectable.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>selectable demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #selectable .ui-selecting {
        background: #ccc;
    }
    #selectable .ui-selected {
        background: #999;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<ul id="selectable">
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    <li>Item 4</li>
    <li>Item 5</li>
</ul>
 
<script>
$( "#selectable" ).selectable();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/shake-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/shake-effect.html deleted file mode 100755 index a9afe1a..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/shake-effect.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - jQuery UI shake-effect documentation - - - - - -

Shake Effect

-
-

Description: Shakes the element multiple times, vertically or horizontally.

-
  • -

    shake

    -
      -
    • -
      -direction (default: "both")
      -
      Type: String -
      -
      The direction of the effect. Possible values: "left", "right", "up", "down".
      -
    • -
    • -
      -distance (default: 20)
      -
      Type: Number -
      -
      Distance to shake.
      -
    • -
    • -
      -times (default: 3)
      -
      Type: Integer -
      -
      Times to shake.
      -
    • -
    -
-

Example:

-

Shake a div.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>shake demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to shake the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).effect( "shake" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/size-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/size-effect.html deleted file mode 100755 index 2df2483..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/size-effect.html +++ /dev/null @@ -1,45 +0,0 @@ -

Size Effect

-
-

Description: Resize an element to a specified width and height.

-
  • -

    size

    -
      -
    • -
      to
      -
      Type: Object -
      -
      Height and width to resize to.
      -
    • -
    • -
      -origin (default: [ "top", "left" ])
      -
      Type: Array -
      -
      The vanishing point.
      -
    • -
    • -
      -scale (default: "both")
      -
      Type: String -
      -
      Which areas of the element will be resized: "both", "box", "content". Box resizes the border and padding of the element; content resizes any content inside of the element.
      -
    • -
    -
-

Example:

-

Resize the element using the size effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>size demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to resize the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).effect( "size", {
        to: { width: 200, height: 60 }
    }, 1000 );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
\ No newline at end of file diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/slide-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/slide-effect.html deleted file mode 100755 index 4619bb4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/slide-effect.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - jQuery UI slide-effect documentation - - - - - -

Slide Effect

-
-

Description: Slides the element out of the viewport.

-
  • -

    slide

    -
      -
    • -
      -direction (default: "both")
      -
      Type: String -
      -
      The direction of the effect. Possible values: "left", "right", "up", "down".
      -
    • -
    • -
      -distance (default: element's outerWidth)
      -
      Type: Number -
      -
      The distance of the effect. Defaults to either the height or width of the elemenet depending on the direction argument. Can be set to any integer less than the width/height of the element.
      -
    • -
    -
-

Example:

-

Toggle a div using the slide effect.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>slide demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    #toggle {
        width: 100px;
        height: 100px;
        background: #ccc;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
 
<script>
$( document ).click(function() {
    $( "#toggle" ).toggle( "slide" );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/slider.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/slider.html deleted file mode 100755 index 61c87ef..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/slider.html +++ /dev/null @@ -1,586 +0,0 @@ - - - - - jQuery UI slider documentation - - - - - -

-Slider Widgetversion added: 1.5 -

-
-

Description: Drag a handle to select a numeric value.

-

QuickNavExamples -

- -
-

Events

- - - - - -
-

The jQuery UI Slider plugin makes selected elements into sliders. There are various options such as multiple handles and ranges. The handle can be moved with the mouse or the arrow keys.

- -

The slider widget will create handle elements with the class ui-slider-handle on initialization. You can specify custom handle elements by creating and appending the elements and adding the ui-slider-handle class before initialization. It will only create the number of handles needed to match the length of value/values. For example, if you specify values: [ 1, 5, 18 ] and create one custom handle, the plugin will create the other two.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

animateType: Boolean or String or Number -

-
-Default: false -
-
Whether to slide the handle smoothly when the user clicks on the slider track. Also accepts any valid animation duration.
-Multiple types supported:
    -
  • -Boolean: When set to true, the handle will animate with the default duration.
  • -
  • -String: The name of a speed, such as "fast" or "slow".
  • -
  • -Number: The duration of the animation, in milliseconds.
  • -
-Code examples:

Initialize the slider with the animate option specified:

-
$( ".selector" ).slider({ animate: "fast" });
-

Get or set the animate option, after initialization:

-
// getter
var animate = $( ".selector" ).slider( "option", "animate" );
 
// setter
$( ".selector" ).slider( "option", "animate", "fast" );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the slider if set to true.
-Code examples:

Initialize the slider with the disabled option specified:

-
$( ".selector" ).slider({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).slider( "option", "disabled" );
 
// setter
$( ".selector" ).slider( "option", "disabled", true );
-
-
-

maxType: Number -

-
-Default: 100 -
-
The maximum value of the slider.
-Code examples:

Initialize the slider with the max option specified:

-
$( ".selector" ).slider({ max: 50 });
-

Get or set the max option, after initialization:

-
// getter
var max = $( ".selector" ).slider( "option", "max" );
 
// setter
$( ".selector" ).slider( "option", "max", 50 );
-
-
-

minType: Number -

-
-Default: 0 -
-
The minimum value of the slider.
-Code examples:

Initialize the slider with the min option specified:

-
$( ".selector" ).slider({ min: 10 });
-

Get or set the min option, after initialization:

-
// getter
var min = $( ".selector" ).slider( "option", "min" );
 
// setter
$( ".selector" ).slider( "option", "min", 10 );
-
-
-

orientationType: String -

-
-Default: "horizontal" -
-
Determines whether the slider handles move horizontally (min on left, max on right) or vertically (min on bottom, max on top). Possible values: "horizontal", "vertical".
-Code examples:

Initialize the slider with the orientation option specified:

-
$( ".selector" ).slider({ orientation: "vertical" });
-

Get or set the orientation option, after initialization:

-
// getter
var orientation = $( ".selector" ).slider( "option", "orientation" );
 
// setter
$( ".selector" ).slider( "option", "orientation", "vertical" );
-
-
-

rangeType: Boolean or String -

-
-Default: false -
-
Whether the slider represents a range.
-Multiple types supported:
    -
  • -Boolean: If set to true, the slider will detect if you have two handles and create a stylable range element between these two.
  • -
  • -String: Either "min" or "max". A min range goes from the slider min to one handle. A max range goes from one handle to the slider max.
  • -
-Code examples:

Initialize the slider with the range option specified:

-
$( ".selector" ).slider({ range: true });
-

Get or set the range option, after initialization:

-
// getter
var range = $( ".selector" ).slider( "option", "range" );
 
// setter
$( ".selector" ).slider( "option", "range", true );
-
-
-

stepType: Number -

-
-Default: 1 -
-
Determines the size or amount of each interval or step the slider takes between the min and max. The full specified value range of the slider (max - min) should be evenly divisible by the step.
-Code examples:

Initialize the slider with the step option specified:

-
$( ".selector" ).slider({ step: 5 });
-

Get or set the step option, after initialization:

-
// getter
var step = $( ".selector" ).slider( "option", "step" );
 
// setter
$( ".selector" ).slider( "option", "step", 5 );
-
-
-

valueType: Number -

-
-Default: 0 -
-
Determines the value of the slider, if there's only one handle. If there is more than one handle, determines the value of the first handle.
-Code examples:

Initialize the slider with the value option specified:

-
$( ".selector" ).slider({ value: 10 });
-

Get or set the value option, after initialization:

-
// getter
var value = $( ".selector" ).slider( "option", "value" );
 
// setter
$( ".selector" ).slider( "option", "value", 10 );
-
-
-

valuesType: Array -

-
-Default: null -
-
This option can be used to specify multiple handles. If the range option is set to true, the length of values should be 2.
-Code examples:

Initialize the slider with the values option specified:

-
$( ".selector" ).slider({ values: [ 10, 25 ] });
-

Get or set the values option, after initialization:

-
// getter
var values = $( ".selector" ).slider( "option", "values" );
 
// setter
$( ".selector" ).slider( "option", "values", [ 10, 25 ] );
-

Methods

-

destroy()

-
- Removes the slider functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).slider( "destroy" );
-
-
-
-

disable()

-
- Disables the slider. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).slider( "disable" );
-
-
-
-

enable()

-
- Enables the slider. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).slider( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).slider( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current slider options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).slider( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the slider option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).slider( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the slider.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).slider( "option", { disabled: true } );
-
-
-
-
-
-

value()Returns: Number -

-
Get the value of the slider.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var selection = $( ".selector" ).slider( "value" );
-
-
-
-

value( value )

-
Set the value of the slider.
-
  • -
    value
    -
    Type: Number -
    -
    The value to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).slider( "value", 55 );
-
-
-
-
-
-

values()Returns: Array -

-
Get the value for all handles.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var values = $( ".selector" ).slider( "values" );
-
-
-
-

values( index )Returns: Number -

-
Get the value for the specified handle.
-
  • -
    index
    -
    Type: Integer -
    -
    The zero-based index of the handle.
    -
-
-Code examples:

Invoke the method:

-
var value = $( ".selector" ).slider( "values", 0 );
-
-
-
-

values( index, value )

-
Set the value for the specified handle.
-
    -
  • -
    index
    -
    Type: Integer -
    -
    The zero-based index of the handle.
    -
  • -
  • -
    value
    -
    Type: Number -
    -
    The value to set.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).slider( "values", 0, 55 );
-
-
-
-

values( values )

-
Set the value for all handles.
-
  • -
    values
    -
    Type: Array -
    -
    The values to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).slider( "values", [ 55, 105 ] );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the slider. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).slider( "widget" );
-
-

Events

-

change( event, ui )Type: slidechange -

-
Triggered after the user slides a handle, if the value has changed; or if the value is changed programmatically via the value method.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      handle
      -
      Type: jQuery -
      -
      The jQuery object representing the handle that was changed.
      -
    • -
    • -
      value
      -
      Type: Number -
      -
      The current value of the slider.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the slider with the change callback specified:

-
$( ".selector" ).slider({
    change: function( event, ui ) {}
});
-

Bind an event listener to the slidechange event:

-
$( ".selector" ).on( "slidechange", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: slidecreate -

-
- Triggered when the slider is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the slider with the create callback specified:

-
$( ".selector" ).slider({
    create: function( event, ui ) {}
});
-

Bind an event listener to the slidecreate event:

-
$( ".selector" ).on( "slidecreate", function( event, ui ) {} );
-
-
-
-

slide( event, ui )Type: slide -

-
Triggered on every mouse move during slide. The value provided in the event as ui.value represents the value that the handle will have as a result of the current movement. Canceling the event will prevent the handle from moving and the handle will continue to have its previous value.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      handle
      -
      Type: jQuery -
      -
      The jQuery object representing the handle being moved.
      -
    • -
    • -
      value
      -
      Type: Number -
      -
      The value that the handle will move to if the event is not canceled.
      -
    • -
    • -
      values
      -
      Type: Array -
      -
      An array of the current values of a multi-handled slider.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the slider with the slide callback specified:

-
$( ".selector" ).slider({
    slide: function( event, ui ) {}
});
-

Bind an event listener to the slide event:

-
$( ".selector" ).on( "slide", function( event, ui ) {} );
-
-
-
-

start( event, ui )Type: slidestart -

-
Triggered when the user starts sliding.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      handle
      -
      Type: jQuery -
      -
      The jQuery object representing the handle being moved.
      -
    • -
    • -
      value
      -
      Type: Number -
      -
      The current value of the slider.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the slider with the start callback specified:

-
$( ".selector" ).slider({
    start: function( event, ui ) {}
});
-

Bind an event listener to the slidestart event:

-
$( ".selector" ).on( "slidestart", function( event, ui ) {} );
-
-
-
-

stop( event, ui )Type: slidestop -

-
Triggered after the user slides a handle.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      handle
      -
      Type: jQuery -
      -
      The jQuery object representing the handle that was moved.
      -
    • -
    • -
      value
      -
      Type: Number -
      -
      The current value of the slider.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the slider with the stop callback specified:

-
$( ".selector" ).slider({
    stop: function( event, ui ) {}
});
-

Bind an event listener to the slidestop event:

-
$( ".selector" ).on( "slidestop", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Slider.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>slider demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>#slider { margin: 10px; }  </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="slider"></div>
 
<script>
$( "#slider" ).slider();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/sortable.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/sortable.html deleted file mode 100755 index fcc50b4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/sortable.html +++ /dev/null @@ -1,1450 +0,0 @@ - - - - - jQuery UI sortable documentation - - - - - -

-Sortable Widgetversion added: 1.0 -

-
-

Description: Reorder elements in a list or grid using the mouse.

-

QuickNavExamples -

- -
-

The jQuery UI Sortable plugin makes selected elements sortable by dragging with the mouse.

-

Note: In order to sort table rows, the tbody must be made sortable, not the table.

-
-

Options

-

appendToType: jQuery or Element or Selector or String -

-
-Default: "parent" -
-
Defines where the helper that moves with the mouse is being appended to during the drag (for example, to resolve overlap/zIndex issues).
-Multiple types supported:
    -
  • -jQuery: A jQuery object containing the element to append the helper to.
  • -
  • -Element: The element to append the helper to.
  • -
  • -Selector: A selector specifying which element to append the helper to.
  • -
  • -String: The string "parent" will cause the helper to be a sibling of the sortable item.
  • -
-Code examples:

Initialize the sortable with the appendTo option specified:

-
$( ".selector" ).sortable({ appendTo: document.body });
-

Get or set the appendTo option, after initialization:

-
// getter
var appendTo = $( ".selector" ).sortable( "option", "appendTo" );
 
// setter
$( ".selector" ).sortable( "option", "appendTo", document.body );
-
-
-

axisType: String -

-
-Default: false -
-
If defined, the items can be dragged only horizontally or vertically. Possible values: "x", "y".
-Code examples:

Initialize the sortable with the axis option specified:

-
$( ".selector" ).sortable({ axis: "x" });
-

Get or set the axis option, after initialization:

-
// getter
var axis = $( ".selector" ).sortable( "option", "axis" );
 
// setter
$( ".selector" ).sortable( "option", "axis", "x" );
-
-
-

cancelType: Selector -

-
-Default: ":input,button" -
-
Prevents sorting if you start on elements matching the selector.
-Code examples:

Initialize the sortable with the cancel option specified:

-
$( ".selector" ).sortable({ cancel: "a,button" });
-

Get or set the cancel option, after initialization:

-
// getter
var cancel = $( ".selector" ).sortable( "option", "cancel" );
 
// setter
$( ".selector" ).sortable( "option", "cancel", "a,button" );
-
-
-

connectWithType: Selector -

-
-Default: false -
-
A selector of other sortable elements that the items from this list should be connected to. This is a one-way relationship, if you want the items to be connected in both directions, the connectWith option must be set on both sortable elements.
-Code examples:

Initialize the sortable with the connectWith option specified:

-
$( ".selector" ).sortable({ connectWith: "#shopping-cart" });
-

Get or set the connectWith option, after initialization:

-
// getter
var connectWith = $( ".selector" ).sortable( "option", "connectWith" );
 
// setter
$( ".selector" ).sortable( "option", "connectWith", "#shopping-cart" );
-
-
-

containmentType: Element or Selector or String -

-
-Default: false -
-
-

Defines a bounding box that the sortable items are contrained to while dragging.

- -

Note: The element specified for containment must have a calculated width and height (though it need not be explicit). For example, if you have float: left sortable children and specify containment: "parent" be sure to have float: left on the sortable/parent container as well or it will have height: 0, causing undefined behavior.

-
-Multiple types supported:
    -
  • -Element: An element to use as the container.
  • -
  • -Selector: A selector specifying an element to use as the container.
  • -
  • -String: A string identifying an element to use as the container. Possible values: "parent", "document", "window".
  • -
-Code examples:

Initialize the sortable with the containment option specified:

-
$( ".selector" ).sortable({ containment: "parent" });
-

Get or set the containment option, after initialization:

-
// getter
var containment = $( ".selector" ).sortable( "option", "containment" );
 
// setter
$( ".selector" ).sortable( "option", "containment", "parent" );
-
-
-

cursorType: String -

-
-Default: "auto" -
-
Defines the cursor that is being shown while sorting.
-Code examples:

Initialize the sortable with the cursor option specified:

-
$( ".selector" ).sortable({ cursor: "move" });
-

Get or set the cursor option, after initialization:

-
// getter
var cursor = $( ".selector" ).sortable( "option", "cursor" );
 
// setter
$( ".selector" ).sortable( "option", "cursor", "move" );
-
-
-

cursorAtType: Object -

-
-Default: false -
-
Moves the sorting element or helper so the cursor always appears to drag from the same position. Coordinates can be given as a hash using a combination of one or two keys: { top, left, right, bottom }.
-Code examples:

Initialize the sortable with the cursorAt option specified:

-
$( ".selector" ).sortable({ cursorAt: { left: 5 } });
-

Get or set the cursorAt option, after initialization:

-
// getter
var cursorAt = $( ".selector" ).sortable( "option", "cursorAt" );
 
// setter
$( ".selector" ).sortable( "option", "cursorAt", { left: 5 } );
-
-
-

delayType: Integer -

-
-Default: 0 -
-
Time in milliseconds to define when the sorting should start. Adding a delay helps preventing unwanted drags when clicking on an element.
-Code examples:

Initialize the sortable with the delay option specified:

-
$( ".selector" ).sortable({ delay: 150 });
-

Get or set the delay option, after initialization:

-
// getter
var delay = $( ".selector" ).sortable( "option", "delay" );
 
// setter
$( ".selector" ).sortable( "option", "delay", 150 );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the sortable if set to true.
-Code examples:

Initialize the sortable with the disabled option specified:

-
$( ".selector" ).sortable({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).sortable( "option", "disabled" );
 
// setter
$( ".selector" ).sortable( "option", "disabled", true );
-
-
-

distanceType: Number -

-
-Default: 1 -
-
Tolerance, in pixels, for when sorting should start. If specified, sorting will not start until after mouse is dragged beyond distance. Can be used to allow for clicks on elements within a handle.
-Code examples:

Initialize the sortable with the distance option specified:

-
$( ".selector" ).sortable({ distance: 5 });
-

Get or set the distance option, after initialization:

-
// getter
var distance = $( ".selector" ).sortable( "option", "distance" );
 
// setter
$( ".selector" ).sortable( "option", "distance", 5 );
-
-
-

dropOnEmptyType: Boolean -

-
-Default: true -
-
If false, items from this sortable can't be dropped on an empty connect sortable (see the connectWith option.
-Code examples:

Initialize the sortable with the dropOnEmpty option specified:

-
$( ".selector" ).sortable({ dropOnEmpty: false });
-

Get or set the dropOnEmpty option, after initialization:

-
// getter
var dropOnEmpty = $( ".selector" ).sortable( "option", "dropOnEmpty" );
 
// setter
$( ".selector" ).sortable( "option", "dropOnEmpty", false );
-
-
-

forceHelperSizeType: Boolean -

-
-Default: false -
-
If true, forces the helper to have a size.
-Code examples:

Initialize the sortable with the forceHelperSize option specified:

-
$( ".selector" ).sortable({ forceHelperSize: true });
-

Get or set the forceHelperSize option, after initialization:

-
// getter
var forceHelperSize = $( ".selector" ).sortable( "option", "forceHelperSize" );
 
// setter
$( ".selector" ).sortable( "option", "forceHelperSize", true );
-
-
-

forcePlaceholderSizeType: Boolean -

-
-Default: false -
-
If true, forces the placeholder to have a size.
-Code examples:

Initialize the sortable with the forcePlaceholderSize option specified:

-
$( ".selector" ).sortable({ forcePlaceholderSize: true });
-

Get or set the forcePlaceholderSize option, after initialization:

-
// getter
var forcePlaceholderSize = $( ".selector" ).sortable( "option", "forcePlaceholderSize" );
 
// setter
$( ".selector" ).sortable( "option", "forcePlaceholderSize", true );
-
-
-

gridType: Array -

-
-Default: false -
-
Snaps the sorting element or helper to a grid, every x and y pixels. Array values: [ x, y ].
-Code examples:

Initialize the sortable with the grid option specified:

-
$( ".selector" ).sortable({ grid: [ 20, 10 ] });
-

Get or set the grid option, after initialization:

-
// getter
var grid = $( ".selector" ).sortable( "option", "grid" );
 
// setter
$( ".selector" ).sortable( "option", "grid", [ 20, 10 ] );
-
-
-

handleType: Selector or Element -

-
-Default: false -
-
Restricts sort start click to the specified element.
-Code examples:

Initialize the sortable with the handle option specified:

-
$( ".selector" ).sortable({ handle: ".handle" });
-

Get or set the handle option, after initialization:

-
// getter
var handle = $( ".selector" ).sortable( "option", "handle" );
 
// setter
$( ".selector" ).sortable( "option", "handle", ".handle" );
-
-
-

helperType: String or Function() -

-
-Default: "original" -
-
Allows for a helper element to be used for dragging display.
-Multiple types supported:
    -
  • -String: If set to "clone", then the element will be cloned and the clone will be dragged.
  • -
  • -Function: A function that will return a DOMElement to use while dragging. The function receives the event and the element being sorted.
  • -
-Code examples:

Initialize the sortable with the helper option specified:

-
$( ".selector" ).sortable({ helper: "clone" });
-

Get or set the helper option, after initialization:

-
// getter
var helper = $( ".selector" ).sortable( "option", "helper" );
 
// setter
$( ".selector" ).sortable( "option", "helper", "clone" );
-
-
-

itemsType: Selector -

-
-Default: "> *" -
-
Specifies which items inside the element should be sortable.
-Code examples:

Initialize the sortable with the items option specified:

-
$( ".selector" ).sortable({ items: "> li" });
-

Get or set the items option, after initialization:

-
// getter
var items = $( ".selector" ).sortable( "option", "items" );
 
// setter
$( ".selector" ).sortable( "option", "items", "> li" );
-
-
-

opacityType: Number -

-
-Default: false -
-
Defines the opacity of the helper while sorting. From 0.01 to 1.
-Code examples:

Initialize the sortable with the opacity option specified:

-
$( ".selector" ).sortable({ opacity: 0.5 });
-

Get or set the opacity option, after initialization:

-
// getter
var opacity = $( ".selector" ).sortable( "option", "opacity" );
 
// setter
$( ".selector" ).sortable( "option", "opacity", 0.5 );
-
-
-

placeholderType: String -

-
-Default: false -
-
A class name that gets applied to the otherwise white space.
-Code examples:

Initialize the sortable with the placeholder option specified:

-
$( ".selector" ).sortable({ placeholder: "sortable-placeholder" });
-

Get or set the placeholder option, after initialization:

-
// getter
var placeholder = $( ".selector" ).sortable( "option", "placeholder" );
 
// setter
$( ".selector" ).sortable( "option", "placeholder", "sortable-placeholder" );
-
-
-

revertType: Boolean or Number -

-
-Default: false -
-
Whether the sortable items should revert to their new positions using a smooth animation.
-Multiple types supported:
    -
  • -Boolean: When set to true, the items will animate with the default duration.
  • -
  • -Number: The duration for the animation, in milliseconds.
  • -
-Code examples:

Initialize the sortable with the revert option specified:

-
$( ".selector" ).sortable({ revert: true });
-

Get or set the revert option, after initialization:

-
// getter
var revert = $( ".selector" ).sortable( "option", "revert" );
 
// setter
$( ".selector" ).sortable( "option", "revert", true );
-
-
-

scrollType: Boolean -

-
-Default: true -
-
If set to true, the page scrolls when coming to an edge.
-Code examples:

Initialize the sortable with the scroll option specified:

-
$( ".selector" ).sortable({ scroll: false });
-

Get or set the scroll option, after initialization:

-
// getter
var scroll = $( ".selector" ).sortable( "option", "scroll" );
 
// setter
$( ".selector" ).sortable( "option", "scroll", false );
-
-
-

scrollSensitivityType: Number -

-
-Default: 20 -
-
Defines how near the mouse must be to an edge to start scrolling.
-Code examples:

Initialize the sortable with the scrollSensitivity option specified:

-
$( ".selector" ).sortable({ scrollSensitivity: 10 });
-

Get or set the scrollSensitivity option, after initialization:

-
// getter
var scrollSensitivity = $( ".selector" ).sortable( "option", "scrollSensitivity" );
 
// setter
$( ".selector" ).sortable( "option", "scrollSensitivity", 10 );
-
-
-

scrollSpeedType: Number -

-
-Default: 20 -
-
The speed at which the window should scroll once the mouse pointer gets within the scrollSensitivity distance.
-Code examples:

Initialize the sortable with the scrollSpeed option specified:

-
$( ".selector" ).sortable({ scrollSpeed: 40 });
-

Get or set the scrollSpeed option, after initialization:

-
// getter
var scrollSpeed = $( ".selector" ).sortable( "option", "scrollSpeed" );
 
// setter
$( ".selector" ).sortable( "option", "scrollSpeed", 40 );
-
-
-

toleranceType: String -

-
-Default: "intersect" -
-
- Specifies which mode to use for testing whether the item being moved is hovering over another item. Possible values: -
    -
  • -"intersect": The item overlaps the other item by at least 50%.
  • -
  • -"pointer": The mouse pointer overlaps the other item.
  • -
-
-Code examples:

Initialize the sortable with the tolerance option specified:

-
$( ".selector" ).sortable({ tolerance: "pointer" });
-

Get or set the tolerance option, after initialization:

-
// getter
var tolerance = $( ".selector" ).sortable( "option", "tolerance" );
 
// setter
$( ".selector" ).sortable( "option", "tolerance", "pointer" );
-
-
-

zIndexType: Integer -

-
-Default: 1000 -
-
Z-index for element/helper while being sorted.
-Code examples:

Initialize the sortable with the zIndex option specified:

-
$( ".selector" ).sortable({ zIndex: 9999 });
-

Get or set the zIndex option, after initialization:

-
// getter
var zIndex = $( ".selector" ).sortable( "option", "zIndex" );
 
// setter
$( ".selector" ).sortable( "option", "zIndex", 9999 );
-

Methods

-

cancel()

-
Cancels a change in the current sortable and reverts it to the state prior to when the current sort was started. Useful in the stop and receive callback functions.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the cancel method:

-
$( ".selector" ).sortable( "cancel" );
-
-
-
-

destroy()

-
- Removes the sortable functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).sortable( "destroy" );
-
-
-
-

disable()

-
- Disables the sortable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).sortable( "disable" );
-
-
-
-

enable()

-
- Enables the sortable. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).sortable( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).sortable( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current sortable options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).sortable( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the sortable option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).sortable( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the sortable.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).sortable( "option", { disabled: true } );
-
-
-
-
-

refresh()

-
Refresh the sortable items. Triggers the reloading of all sortable items, causing new items to be recognized.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).sortable( "refresh" );
-
-
-
-

refreshPositions()

-
Refresh the cached positions of the sortable items. Calling this method refreshes the cached item positions of all sortables.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refreshPositions method:

-
$( ".selector" ).sortable( "refreshPositions" );
-
-
-
-

serialize( options )Returns: String -

-
-

Serializes the sortable's item ids into a form/ajax submittable string. Calling this method produces a hash that can be appended to any url to easily submit a new item order back to the server.

- -

It works by default by looking at the id of each item in the format "setname_number", and it spits out a hash like "setname[]=number&setname[]=number".

- -

Note: If serialize returns an empty string, make sure the id attributes include an underscore. They must be in the form: "set_number" For example, a 3 element list with id attributes "foo_1", "foo_5", "foo_2" will serialize to "foo[]=1&foo[]=5&foo[]=2". You can use an underscore, equal sign or hyphen to separate the set and number. For example "foo=1", "foo-1", and "foo_1" all serialize to "foo[]=1".

-
-
  • -
    options
    -
    Type: Object -
    -
    Options to customize the serialization.
    -
      -
    • -
      -key (default: the part of the attribute in front of the separator)
      -
      Type: String -
      -
      Replaces part1[] with the specified value.
      -
    • -
    • -
      -attribute (default: "id")
      -
      Type: String -
      -
      The name of the attribute to use for the values.
      -
    • -
    • -
      -expression (default: /(.+)[-=_](.+)/)
      -
      Type: RegExp -
      -
      A regular expression used to split the attribute value into key and value parts.
      -
    • -
    -
-
-Code examples:

Invoke the serialize method:

-
var sorted = $( ".selector" ).sortable( "serialize", { key: "sort" } );
-
-
-
-

toArray()Returns: Array -

-
Serializes the sortable's item id's into an array of string.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the toArray method:

-
var sortedIDs = $( ".selector" ).sortable( "toArray" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the sortable element. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).sortable( "widget" );
-
-

Events

-

activate( event, ui )Type: sortactivate -

-
This event is triggered when using connected lists, every connected list on drag start receives it.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the activate callback specified:

-
$( ".selector" ).sortable({
    activate: function( event, ui ) {}
});
-

Bind an event listener to the sortactivate event:

-
$( ".selector" ).on( "sortactivate", function( event, ui ) {} );
-
-
-
-

beforeStop( event, ui )Type: sortbeforestop -

-
This event is triggered when sorting stops, but when the placeholder/helper is still available.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the beforeStop callback specified:

-
$( ".selector" ).sortable({
    beforeStop: function( event, ui ) {}
});
-

Bind an event listener to the sortbeforestop event:

-
$( ".selector" ).on( "sortbeforestop", function( event, ui ) {} );
-
-
-
-

change( event, ui )Type: sortchange -

-
This event is triggered during sorting, but only when the DOM position has changed.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the change callback specified:

-
$( ".selector" ).sortable({
    change: function( event, ui ) {}
});
-

Bind an event listener to the sortchange event:

-
$( ".selector" ).on( "sortchange", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: sortcreate -

-
- Triggered when the sortable is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the sortable with the create callback specified:

-
$( ".selector" ).sortable({
    create: function( event, ui ) {}
});
-

Bind an event listener to the sortcreate event:

-
$( ".selector" ).on( "sortcreate", function( event, ui ) {} );
-
-
-
-

deactivate( event, ui )Type: sortdeactivate -

-
This event is triggered when sorting was stopped, is propagated to all possible connected lists.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the deactivate callback specified:

-
$( ".selector" ).sortable({
    deactivate: function( event, ui ) {}
});
-

Bind an event listener to the sortdeactivate event:

-
$( ".selector" ).on( "sortdeactivate", function( event, ui ) {} );
-
-
-
-

out( event, ui )Type: sortout -

-
This event is triggered when a sortable item is moved away from a connected list.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the out callback specified:

-
$( ".selector" ).sortable({
    out: function( event, ui ) {}
});
-

Bind an event listener to the sortout event:

-
$( ".selector" ).on( "sortout", function( event, ui ) {} );
-
-
-
-

over( event, ui )Type: sortover -

-
This event is triggered when a sortable item is moved into a connected list.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the over callback specified:

-
$( ".selector" ).sortable({
    over: function( event, ui ) {}
});
-

Bind an event listener to the sortover event:

-
$( ".selector" ).on( "sortover", function( event, ui ) {} );
-
-
-
-

receive( event, ui )Type: sortreceive -

-
This event is triggered when a connected sortable list has received an item from another list.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the receive callback specified:

-
$( ".selector" ).sortable({
    receive: function( event, ui ) {}
});
-

Bind an event listener to the sortreceive event:

-
$( ".selector" ).on( "sortreceive", function( event, ui ) {} );
-
-
-
-

remove( event, ui )Type: sortremove -

-
This event is triggered when a sortable item has been dragged out from the list and into another.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the remove callback specified:

-
$( ".selector" ).sortable({
    remove: function( event, ui ) {}
});
-

Bind an event listener to the sortremove event:

-
$( ".selector" ).on( "sortremove", function( event, ui ) {} );
-
-
-
-

sort( event, ui )Type: sort -

-
This event is triggered during sorting.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the sort callback specified:

-
$( ".selector" ).sortable({
    sort: function( event, ui ) {}
});
-

Bind an event listener to the sort event:

-
$( ".selector" ).on( "sort", function( event, ui ) {} );
-
-
-
-

start( event, ui )Type: sortstart -

-
This event is triggered when sorting starts.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the start callback specified:

-
$( ".selector" ).sortable({
    start: function( event, ui ) {}
});
-

Bind an event listener to the sortstart event:

-
$( ".selector" ).on( "sortstart", function( event, ui ) {} );
-
-
-
-

stop( event, ui )Type: sortstop -

-
This event is triggered when sorting has stopped.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the stop callback specified:

-
$( ".selector" ).sortable({
    stop: function( event, ui ) {}
});
-

Bind an event listener to the sortstop event:

-
$( ".selector" ).on( "sortstop", function( event, ui ) {} );
-
-
-
-

update( event, ui )Type: sortupdate -

-
This event is triggered when the user stopped sorting and the DOM position has changed.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      helper
      -
      Type: jQuery -
      -
      The jQuery object representing the helper being sorted
      -
    • -
    • -
      item
      -
      Type: jQuery -
      -
      The jQuery object representing the current dragged element
      -
    • -
    • -
      offset
      -
      Type: Object -
      -
      The current absolute position of the helper represented as { top, left } -
      -
    • -
    • -
      position
      -
      Type: Object -
      -
      The current position of the helper represented as { top, left } -
      -
    • -
    • -
      originalPosition
      -
      Type: Object -
      -
      The original position of the element represented as { top, left } -
      -
    • -
    • -
      sender
      -
      Type: jQuery -
      -
      The sortable that the item comes from if moving from one sortable to another
      -
    • -
    -
  • -
-
-Code examples:

Initialize the sortable with the update callback specified:

-
$( ".selector" ).sortable({
    update: function( event, ui ) {}
});
-

Bind an event listener to the sortupdate event:

-
$( ".selector" ).on( "sortupdate", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Sortable.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>sortable demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<ul id="sortable">
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    <li>Item 4</li>
    <li>Item 5</li>
</ul>
 
<script>$("#sortable").sortable();</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/spinner.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/spinner.html deleted file mode 100755 index b6ab6e4..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/spinner.html +++ /dev/null @@ -1,572 +0,0 @@ - - - - - jQuery UI spinner documentation - - - - - -

-Spinner Widgetversion added: 1.9 -

-
-

Description: - Enhance a text input for entering numeric values, with up/down buttons and arrow key handling. -

-

QuickNavExamples -

- -
-

Events

- - - - - -
-

Spinner, or number stepper, widget is perfect for handling all kinds of numeric input. It allow users to type a value directly or modify an existing value by spinning with the keyboard, mouse or scrollwheel. When combined with Globalize, you can even spin currencies and dates in a variety of locales.

- -

Spinner wraps a text input, adds two buttons to increment and decrement the current value, along with handling key events for the same purpose. It delegates to Globalize for number formatting and parsing.

- -

Keyboard interaction

- -
    -
  • UP: Increment the value by one step.
  • -
  • DOWN: Decrement the value by one step.
  • -
  • PAGE UP: Increment the value by one page.
  • -
  • PAGE DOWN: Decrement the value by one page.
  • -
- -

Focus stays in the text field, even after using the mouse to click one of the spin buttons.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

cultureType: String -

-
-Default: null -
-
Sets the culture to use for parsing and formatting the value. If null, the currently set culture in Globalize is used, see Globalize docs for available cultures. Only relevant if the numberFormat option is set. Requires Globalize to be included.
-Code examples:

Initialize the spinner with the culture option specified:

-
$( ".selector" ).spinner({ culture: "fr" });
-

Get or set the culture option, after initialization:

-
// getter
var culture = $( ".selector" ).spinner( "option", "culture" );
 
// setter
$( ".selector" ).spinner( "option", "culture", "fr" );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the spinner if set to true.
-Code examples:

Initialize the spinner with the disabled option specified:

-
$( ".selector" ).spinner({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).spinner( "option", "disabled" );
 
// setter
$( ".selector" ).spinner( "option", "disabled", true );
-
-
-

iconsType: Object -

-
-Default: { down: "ui-icon-triangle-1-s", up: "ui-icon-triangle-1-n" } -
-
- Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework. -
    -
  • up (string, default: "ui-icon-triangle-1-n")
  • -
  • down (string, default: "ui-icon-triangle-1-s")
  • -
-
-Code examples:

Initialize the spinner with the icons option specified:

-
$( ".selector" ).spinner({ icons: { down: "custom-down-icon", up: "custom-up-icon" } });
-

Get or set the icons option, after initialization:

-
// getter
var icons = $( ".selector" ).spinner( "option", "icons" );
 
// setter
$( ".selector" ).spinner( "option", "icons", { down: "custom-down-icon", up: "custom-up-icon" } );
-
-
-

incrementalType: Boolean or Function() -

-
-Default: true -
-
Controls the number of steps taken when holding down a spin button.
-Multiple types supported:
    -
  • -Boolean: When set to true, the stepping delta will increase when spun incessantly. When set to false, all steps are equal (as defined by the step option).
  • -
  • -Function: Receives one parameter: the number of spins that have occurred. Must return the number of steps that should occur for the current spin.
  • -
-Code examples:

Initialize the spinner with the incremental option specified:

-
$( ".selector" ).spinner({ incremental: false });
-

Get or set the incremental option, after initialization:

-
// getter
var incremental = $( ".selector" ).spinner( "option", "incremental" );
 
// setter
$( ".selector" ).spinner( "option", "incremental", false );
-
-
-

maxType: Number or String -

-
-Default: null -
-
The maximum allowed value. The element's max attribute is used if it exists and the option is not explicitly set. If null, there is no maximum enforced.
-Multiple types supported:
    -
  • -Number: The maximum value.
  • -
  • -String: If Globalize is included, the max option can be passed as a string which will be parsed based on the numberFormat and culture options; otherwise it will fall back to the native parseFloat() method.
  • -
-Code examples:

Initialize the spinner with the max option specified:

-
$( ".selector" ).spinner({ max: 50 });
-

Get or set the max option, after initialization:

-
// getter
var max = $( ".selector" ).spinner( "option", "max" );
 
// setter
$( ".selector" ).spinner( "option", "max", 50 );
-
-
-

minType: Number or String -

-
-Default: null -
-
The minimum allowed value. The element's min attribute is used if it exists and the option is not explicitly set. If null, there is no minimum enforced.
-Multiple types supported:
    -
  • -Number: The minimum value.
  • -
  • -String: If Globalize is included, the min option can be passed as a string which will be parsed based on the numberFormat and culture options; otherwise it will fall back to the native parseFloat() method.
  • -
-Code examples:

Initialize the spinner with the min option specified:

-
$( ".selector" ).spinner({ min: 0 });
-

Get or set the min option, after initialization:

-
// getter
var min = $( ".selector" ).spinner( "option", "min" );
 
// setter
$( ".selector" ).spinner( "option", "min", 0 );
-
-
-

numberFormatType: String -

-
-Default: null -
-
Format of numbers passed to Globalize, if available. Most common are "n" for a decimal number and "C" for a currency value. Also see the culture option.
-Code examples:

Initialize the spinner with the numberFormat option specified:

-
$( ".selector" ).spinner({ numberFormat: "n" });
-

Get or set the numberFormat option, after initialization:

-
// getter
var numberFormat = $( ".selector" ).spinner( "option", "numberFormat" );
 
// setter
$( ".selector" ).spinner( "option", "numberFormat", "n" );
-
-
-

pageType: Number -

-
-Default: 10 -
-
The number of steps to take when paging via the pageUp/pageDown methods.
-Code examples:

Initialize the spinner with the page option specified:

-
$( ".selector" ).spinner({ page: 5 });
-

Get or set the page option, after initialization:

-
// getter
var page = $( ".selector" ).spinner( "option", "page" );
 
// setter
$( ".selector" ).spinner( "option", "page", 5 );
-
-
-

stepType: Number or String -

-
-Default: 1 -
-
The size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods. The element's step attribute is used if it exists and the option is not explicitly set.
-Multiple types supported:
    -
  • -Number: The size of the step.
  • -
  • -String: If Globalize is included, the step option can be passed as a string which will be parsed based on the numberFormat and culture options, otherwise it will fall back to the native parseFloat.
  • -
-Code examples:

Initialize the spinner with the step option specified:

-
$( ".selector" ).spinner({ step: 2 });
-

Get or set the step option, after initialization:

-
// getter
var step = $( ".selector" ).spinner( "option", "step" );
 
// setter
$( ".selector" ).spinner( "option", "step", 2 );
-

Methods

-

destroy()

-
- Removes the spinner functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).spinner( "destroy" );
-
-
-
-

disable()

-
- Disables the spinner. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).spinner( "disable" );
-
-
-
-

enable()

-
- Enables the spinner. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).spinner( "enable" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).spinner( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current spinner options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).spinner( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the spinner option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).spinner( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the spinner.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).spinner( "option", { disabled: true } );
-
-
-
-
-

pageDown( [pages ] )

-
- Decrements the value by the specified number of pages, as defined by the page option. Without the parameter, a single page is decremented. -
-
  • -
    pages
    -
    Type: Number -
    -
    Number of pages to decrement, defaults to 1.
    -
-
-Code examples:

Invoke the pageDown method:

-
$( ".selector" ).spinner( "pageDown" );
-
-
-
-

pageUp( [pages ] )

-
- Increments the value by the specified number of pages, as defined by the page option. Without the parameter, a single page is incremented. -
-
  • -
    pages
    -
    Type: Number -
    -
    Number of pages to increment, defaults to 1.
    -
-
-Code examples:

Invoke the pageUp method:

-
$( ".selector" ).spinner( "pageUp", 10 );
-
-
-
-

stepDown( [steps ] )

-
- Decrements the value by the specified number of steps. Without the parameter, a single step is decremented. -

If the resulting value is above the max, below the min, or reuslts in a step mismatch, the value will be adjusted to the closest valid value.

-
-
  • -
    steps
    -
    Type: Number -
    -
    Number of steps to decrement, defaults to 1.
    -
-
-Code examples:

Invoke the stepDown method:

-
$( ".selector" ).spinner( "stepDown" );
-
-
-
-

stepUp( [steps ] )

-
- Increments the value by the specified number of steps. Without the parameter, a single step is incremented. -

If the resulting value is above the max, below the min, or reuslts in a step mismatch, the value will be adjusted to the closest valid value.

-
-
  • -
    steps
    -
    Type: Number -
    -
    Number of steps to increment, defaults to 1.
    -
-
-Code examples:

Invoke the stepUp method:

-
$( ".selector" ).spinner( "stepUp", 5 );
-
-
-
-
-

value()Returns: Number -

-
Gets the current value as a number. The value is parsed based on the numberFormat and culture options.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var value = $( ".selector" ).spinner( "value" );
-
-
-
-

value( value )

-
- -
-Code examples:

Invoke the method:

-
$( ".selector" ).spinner( "value", 50 );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the generated wrapper. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).spinner( "widget" );
-
-

Events

-

change( event, ui )Type: spinchange -

-
- Triggered when the value of the spinner has changed and the input is no longer focused. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the spinner with the change callback specified:

-
$( ".selector" ).spinner({
    change: function( event, ui ) {}
});
-

Bind an event listener to the spinchange event:

-
$( ".selector" ).on( "spinchange", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: spincreate -

-
- Triggered when the spinner is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the spinner with the create callback specified:

-
$( ".selector" ).spinner({
    create: function( event, ui ) {}
});
-

Bind an event listener to the spincreate event:

-
$( ".selector" ).on( "spincreate", function( event, ui ) {} );
-
-
-
-

spin( event, ui )Type: spin -

-
- Triggered during increment/decrement (to determine direction of spin compare current value with ui.value). -

Can be canceled, preventing the value from being updated.

-
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      value
      -
      Type: Number -
      -
      The new value to be set, unless the event is cancelled.
      -
    -
  • -
-
-Code examples:

Initialize the spinner with the spin callback specified:

-
$( ".selector" ).spinner({
    spin: function( event, ui ) {}
});
-

Bind an event listener to the spin event:

-
$( ".selector" ).on( "spin", function( event, ui ) {} );
-
-
-
-

start( event, ui )Type: spinstart -

-
- Triggered before a spin. Can be canceled, preventing the spin from occurring. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the spinner with the start callback specified:

-
$( ".selector" ).spinner({
    start: function( event, ui ) {}
});
-

Bind an event listener to the spinstart event:

-
$( ".selector" ).on( "spinstart", function( event, ui ) {} );
-
-
-
-

stop( event, ui )Type: spinstop -

-
Triggered after a spin.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the spinner with the stop callback specified:

-
$( ".selector" ).spinner({
    stop: function( event, ui ) {}
});
-

Bind an event listener to the spinstop event:

-
$( ".selector" ).on( "spinstop", function( event, ui ) {} );
-
-

Example:

-

Plain number spinner

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>spinner demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<input id="spinner">
 
<script>
$( "#spinner" ).spinner();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/tabs.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/tabs.html deleted file mode 100755 index d6fd11e..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/tabs.html +++ /dev/null @@ -1,635 +0,0 @@ - - - - - jQuery UI tabs documentation - - - - - -

-Tabs Widgetversion added: 1.0 -

-
-

Description: A single content area with multiple panels, each associated with a header in a list.

-

QuickNavExamples -

- -
-

Tabs are generally used to break content into multiple sections that can be swapped to save space, much like an accordion.

- -

The content for each tab panel can be defined in-page or can be loaded via Ajax; both are handled automatically based on the href of the anchor associated with the tab. By default tabs are activated on click, but the events can be changed to hover via the event option.

- -

Keyboard interaction

- -

When focus is on a tab, the following key commands are available:

-
    -
  • UP/LEFT: Move focus to the previous tab. If on first tab, moves focus to last tab. Activate focused tab after a short delay.
  • -
  • DOWN/RIGHT: Move focus to the next tab. If on last tab, moves focus to first tab. Activate focused tab after a short delay.
  • -
  • HOME: Move focus to the first tab. Activate focused tab after a short delay.
  • -
  • END: Move focus to the last tab. Activate focused tab after a short delay.
  • -
  • SPACE: Activate panel associated with focused tab.
  • -
  • ENTER: Activate or toggle panel associated with focused tab.
  • -
  • ALT+PAGE UP: Move focus to the previous tab and immediately activate.
  • -
  • ALT+PAGE DOWN: Move focus to the next tab and immediately activate.
  • -
- -

When focus is in a panel, the following key commands are available:

-
    -
  • CTRL+UP: Move focus to associated tab.
  • -
  • ALT+PAGE UP: Move focus to the previous tab and immediately activate.
  • -
  • ALT+PAGE DOWN: Move focus to the next tab and immediately activate.
  • -
-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

activeType: Boolean or Integer -

-
-Default: 0 -
-
- Which panel is currently open. -
-Multiple types supported:
    -
  • -Boolean: Setting active to false will collapse all panels. This requires the collapsible option to be true.
  • -
  • -Integer: The zero-based index of the panel that is active (open). A negative value selects panels going backward from the last panel.
  • -
-Code examples:

Initialize the tabs with the active option specified:

-
$( ".selector" ).tabs({ active: 1 });
-

Get or set the active option, after initialization:

-
// getter
var active = $( ".selector" ).tabs( "option", "active" );
 
// setter
$( ".selector" ).tabs( "option", "active", 1 );
-
-
-

collapsibleType: Boolean -

-
-Default: false -
-
When set to true, the active panel can be closed.
-Code examples:

Initialize the tabs with the collapsible option specified:

-
$( ".selector" ).tabs({ collapsible: true });
-

Get or set the collapsible option, after initialization:

-
// getter
var collapsible = $( ".selector" ).tabs( "option", "collapsible" );
 
// setter
$( ".selector" ).tabs( "option", "collapsible", true );
-
-
-

disabledType: Boolean or Array -

-
-Default: false -
-
Which tabs are disabled.
-Multiple types supported:
    -
  • -Boolean: Enable or disable all tabs.
  • -
  • -Array: An array containing the zero-based indexes of the tabs that should be disabled, e.g., [ 0, 2 ] would disable the first and third tab.
  • -
-Code examples:

Initialize the tabs with the disabled option specified:

-
$( ".selector" ).tabs({ disabled: [ 0, 2 ] });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).tabs( "option", "disabled" );
 
// setter
$( ".selector" ).tabs( "option", "disabled", [ 0, 2 ] );
-
-
-

eventType: String -

-
-Default: "click" -
-
The type of event that the tabs should react to in order to activate the tab. To activate on hover, use "mouseover".
-Code examples:

Initialize the tabs with the event option specified:

-
$( ".selector" ).tabs({ event: "mouseover" });
-

Get or set the event option, after initialization:

-
// getter
var event = $( ".selector" ).tabs( "option", "event" );
 
// setter
$( ".selector" ).tabs( "option", "event", "mouseover" );
-
-
-

heightStyleType: String -

-
-Default: "content" -
-
- Controls the height of the tabs widget and each panel. Possible values: -
    -
  • -"auto": All panels will be set to the height of the tallest panel.
  • -
  • -"fill": Expand to the available height based on the tabs' parent height.
  • -
  • -"content": Each panel will be only as tall as its content.
  • -
-
-Code examples:

Initialize the tabs with the heightStyle option specified:

-
$( ".selector" ).tabs({ heightStyle: "fill" });
-

Get or set the heightStyle option, after initialization:

-
// getter
var heightStyle = $( ".selector" ).tabs( "option", "heightStyle" );
 
// setter
$( ".selector" ).tabs( "option", "heightStyle", "fill" );
-
-
-

hideType: Boolean or Number or String or Object -

-
-Default: null -
-
If and how to animate the hiding of the panel.
-Multiple types supported:
    -
  • -Boolean: - When set to false, no animation will be used and the panel will be hidden immediately. - When set to true, the panel will fade out with the default duration and the default easing. -
  • -
  • -Number: - The panel will fade out with the specified duration and the default easing. -
  • -
  • -String: - The panel will be hidden using the specified effect. - The value can either be the name of a built-in jQuery animateion method, such as "slideUp", or the name of a jQuery UI effect, such as "fold". - In either case the effect will be used with the default duration and the default easing. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeOut" will be used.
  • -
-Code examples:

Initialize the tabs with the hide option specified:

-
$( ".selector" ).tabs({ hide: { effect: "explode", duration: 1000 } });
-

Get or set the hide option, after initialization:

-
// getter
var hide = $( ".selector" ).tabs( "option", "hide" );
 
// setter
$( ".selector" ).tabs( "option", "hide", { effect: "explode", duration: 1000 } );
-
-
-

showType: Boolean or Number or String or Object -

-
-Default: null -
-
If and how to animate the showing of the panel.
-Multiple types supported:
    -
  • -Boolean: - When set to false, no animation will be used and the panel will be shown immediately. - When set to true, the panel will fade in with the default duration and the default easing. -
  • -
  • -Number: - The panel will fade in with the specified duration and the default easing. -
  • -
  • -String: - The panel will be shown using the specified effect. - The value can either be the name of a built-in jQuery animateion method, such as "slideDown", or the name of a jQuery UI effect, such as "fold". - In either case the effect will be used with the default duration and the default easing. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeIn" will be used.
  • -
-Code examples:

Initialize the tabs with the show option specified:

-
$( ".selector" ).tabs({ show: { effect: "blind", duration: 800 } });
-

Get or set the show option, after initialization:

-
// getter
var show = $( ".selector" ).tabs( "option", "show" );
 
// setter
$( ".selector" ).tabs( "option", "show", { effect: "blind", duration: 800 } );
-

Methods

-

destroy()

-
- Removes the tabs functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).tabs( "destroy" );
-
-
-
-
-

disable()

-
Disables all tabs.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
$( ".selector" ).tabs( "disable" );
-
-
-
-

disable( index )

-
- Disables a tab. The selected tab cannot be disabled. To disable more than one tab at once, set the disabled option: $( "#tabs" ).tabs( "option", "disabled", [ 1, 2, 3 ] ). -
- -
-Code examples:

Invoke the method:

-
$( ".selector" ).tabs( "disable", 1 );
-
-
-
-
-
-

enable()

-
Enables all tabs.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
$( ".selector" ).tabs( "enable" );
-
-
-
-

enable( index )

-
Enables a tab. To enable more than one tab at once reset the disabled property like: $( "#example" ).tabs( "option", "disabled", [] );.
- -
-Code examples:

Invoke the method:

-
$( ".selector" ).tabs( "enable", 1 );
-
-
-
-
-

load( index )

-
Loads the panel content of a remote tab.
- -
-Code examples:

Invoke the load method:

-
$( ".selector" ).tabs( "load", 1 );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).tabs( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current tabs options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).tabs( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the tabs option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).tabs( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the tabs.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).tabs( "option", { disabled: true } );
-
-
-
-
-

refresh()

-
Process any tabs that were added or removed directly in the DOM and recompute the height of the tab panels. Results depend on the content and the heightStyle option.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the refresh method:

-
$( ".selector" ).tabs( "refresh" );
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the tabs container. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).tabs( "widget" );
-
-

Events

-

activate( event, ui )Type: tabsactivate -

-
Triggered after a tab has been activated (after animation completes). If the tabs were previously collapsed, ui.oldTab and ui.oldPanel will be empty jQuery objects. If the tabs are collapsing, ui.newTab and ui.newPanel will be empty jQuery objects.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      newTab
      -
      Type: jQuery -
      -
      The tab that was just activated.
      -
    • -
    • -
      oldTab
      -
      Type: jQuery -
      -
      The tab that was just deactivated.
      -
    • -
    • -
      newPanel
      -
      Type: jQuery -
      -
      The panel that was just activated.
      -
    • -
    • -
      oldPanel
      -
      Type: jQuery -
      -
      The panel that was just deactivated.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the tabs with the activate callback specified:

-
$( ".selector" ).tabs({
    activate: function( event, ui ) {}
});
-

Bind an event listener to the tabsactivate event:

-
$( ".selector" ).on( "tabsactivate", function( event, ui ) {} );
-
-
-
-

beforeActivate( event, ui )Type: tabsbeforeactivate -

-
Triggered directly after a tab is activated. Can be canceled to prevent the tab from activating. If the tabs are currently collapsed, ui.oldTab and ui.oldPanel will be empty jQuery objects. If the tabs are collapsing, ui.newTab and ui.newPanel will be empty jQuery objects.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      newTab
      -
      Type: jQuery -
      -
      The tab that is about to be activated.
      -
    • -
    • -
      oldTab
      -
      Type: jQuery -
      -
      The tab that is about to be deactivated.
      -
    • -
    • -
      newPanel
      -
      Type: jQuery -
      -
      The panel that is about to be activated.
      -
    • -
    • -
      oldPanel
      -
      Type: jQuery -
      -
      The panel that is about to be deactivated.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the tabs with the beforeActivate callback specified:

-
$( ".selector" ).tabs({
    beforeActivate: function( event, ui ) {}
});
-

Bind an event listener to the tabsbeforeactivate event:

-
$( ".selector" ).on( "tabsbeforeactivate", function( event, ui ) {} );
-
-
-
-

beforeLoad( event, ui )Type: tabsbeforeload -

-
Triggered when a remote tab is about to be loaded, after the beforeActivate event. Can be canceled to prevent the tab panel from loading content; though the panel will still be activated. This event is triggered just before the Ajax request is made, so modifications can be made to ui.jqXHR and ui.ajaxSettings.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      tab
      -
      Type: jQuery -
      -
      The tab that is being loaded.
      -
    • -
    • -
      panel
      -
      Type: jQuery -
      -
      The panel which will be populated by the Ajax response.
      -
    • -
    • -
      jqXHR
      -
      Type: jqXHR -
      -
      The jqXHR object that is requesting the content.
      -
    • -
    • -
      ajaxSettings
      -
      Type: Object -
      -
      The settings that will be used by jQuery.ajax to request the content.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the tabs with the beforeLoad callback specified:

-
$( ".selector" ).tabs({
    beforeLoad: function( event, ui ) {}
});
-

Bind an event listener to the tabsbeforeload event:

-
$( ".selector" ).on( "tabsbeforeload", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: tabscreate -

-
Triggered when the tabs are created. If the tabs are collapsed, ui.tab and ui.panel will be empty jQuery objects.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      tab
      -
      Type: jQuery -
      -
      The active tab.
      -
    • -
    • -
      panel
      -
      Type: jQuery -
      -
      The active panel.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the tabs with the create callback specified:

-
$( ".selector" ).tabs({
    create: function( event, ui ) {}
});
-

Bind an event listener to the tabscreate event:

-
$( ".selector" ).on( "tabscreate", function( event, ui ) {} );
-
-
-
-

load( event, ui )Type: tabsload -

-
Triggered after a remote tab has been loaded.
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
      -
    • -
      tab
      -
      Type: jQuery -
      -
      The tab that was just loaded.
      -
    • -
    • -
      panel
      -
      Type: jQuery -
      -
      The panel which was just populated by the Ajax response.
      -
    • -
    -
  • -
-
-Code examples:

Initialize the tabs with the load callback specified:

-
$( ".selector" ).tabs({
    load: function( event, ui ) {}
});
-

Bind an event listener to the tabsload event:

-
$( ".selector" ).on( "tabsload", function( event, ui ) {} );
-
-

Example:

-

A simple jQuery UI Tabs

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>tabs demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div id="tabs">
    <ul>
        <li><a href="#fragment-1"><span>One</span></a></li>
        <li><a href="#fragment-2"><span>Two</span></a></li>
        <li><a href="#fragment-3"><span>Three</span></a></li>
    </ul>
    <div id="fragment-1">
        <p>First tab is active by default:</p>
        <pre><code>$( "#tabs" ).tabs(); </code></pre>
    </div>
    <div id="fragment-2">
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
    </div>
    <div id="fragment-3">
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
    </div>
</div>
 
<script>
$( "#tabs" ).tabs();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/tooltip.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/tooltip.html deleted file mode 100755 index ed39a84..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/tooltip.html +++ /dev/null @@ -1,465 +0,0 @@ - - - - - jQuery UI tooltip documentation - - - - - -

-Tooltip Widgetversion added: 1.9 -

-
-

Description: Customizable, themeable tooltips, replacing native tooltips.

-

QuickNavExamples -

- -
-

Events

- - - -
-

Tooltip replaces native tooltips, making them themable as well as allowing various customizations:

- -
    -
  • Display other content than just the title, like inline footnotes or extra content retrieved via Ajax.
  • -
  • Customize the positioning, e.g., to center the tooltip above elements.
  • -
  • Add extra styling to customize the appearance, for warning or error fields.
  • -
- -

A fade animation is used by default to show and hide the tooltip, making the appearance a bit more organic, compared to just toggling the visiblity. This can be customized with the show and hide options.

- -

The items and content options need to stay in-sync. If you change one of them, you need to change the other.

- -

In general, disabled elements do not trigger any DOM events. Therefore, it is not possible to properly control tooltips for disabled elements, since we need to listen to events to determine when to show and hide the tooltip. As a result, jQuery UI does not guarantee any level of support for tooltips attached to disabled elements. Unfortunately, this means that if you require tooltips on disabled elements, you may end up with a mixture of native tooltips and jQuery UI tooltips.

-
-

Additional Notes:

-
  • - This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point. -
-

Options

-

contentType: Function() or String -

-
-Default: function returning the title attribute -
-
-

The content of the tooltip.

- -

When changing this option, you likely need to also change the items option.

-
-Multiple types supported:
    -
  • -Function: A callback which can either return the content directly, or call the first argument, passing in the content, e.g., for Ajax content.
  • -
  • -String: A string of HTML to use for the tooltip content.
  • -
-Code examples:

Initialize the tooltip with the content option specified:

-
$( ".selector" ).tooltip({ content: "Awesome title!" });
-

Get or set the content option, after initialization:

-
// getter
var content = $( ".selector" ).tooltip( "option", "content" );
 
// setter
$( ".selector" ).tooltip( "option", "content", "Awesome title!" );
-
-
-

disabledType: Boolean -

-
-Default: false -
-
Disables the tooltip if set to true.
-Code examples:

Initialize the tooltip with the disabled option specified:

-
$( ".selector" ).tooltip({ disabled: true });
-

Get or set the disabled option, after initialization:

-
// getter
var disabled = $( ".selector" ).tooltip( "option", "disabled" );
 
// setter
$( ".selector" ).tooltip( "option", "disabled", true );
-
-
-

hideType: Boolean or Number or String or Object -

-
-Default: null -
-
If and how to animate the hiding of the tooltip.
-Multiple types supported:
    -
  • -Boolean: - When set to false, no animation will be used and the tooltip will be hidden immediately. - When set to true, the tooltip will fade out with the default duration and the default easing. -
  • -
  • -Number: - The tooltip will fade out with the specified duration and the default easing. -
  • -
  • -String: - The tooltip will be hidden using the specified effect. - The value can either be the name of a built-in jQuery animateion method, such as "slideUp", or the name of a jQuery UI effect, such as "fold". - In either case the effect will be used with the default duration and the default easing. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeOut" will be used.
  • -
-Code examples:

Initialize the tooltip with the hide option specified:

-
$( ".selector" ).tooltip({ hide: { effect: "explode", duration: 1000 } });
-

Get or set the hide option, after initialization:

-
// getter
var hide = $( ".selector" ).tooltip( "option", "hide" );
 
// setter
$( ".selector" ).tooltip( "option", "hide", { effect: "explode", duration: 1000 } );
-
-
-

itemsType: Selector -

-
-Default: [title] -
-
-

A selector indicating which items should show tooltips. Customize if you're using something other then the title attribute for the tooltip content, or if you need a different selector for event delegation.

- -

When changing this option, you likely need to also change the content option.

-
-Code examples:

Initialize the tooltip with the items option specified:

-
$( ".selector" ).tooltip({ items: "img[alt]" });
-

Get or set the items option, after initialization:

-
// getter
var items = $( ".selector" ).tooltip( "option", "items" );
 
// setter
$( ".selector" ).tooltip( "option", "items", "img[alt]" );
-
-
-

positionType: Object -

-
-Default: { my: "left top+15", at: "left bottom", collision: "flipfit" } -
-
-

Configuration for the Position utility. The of property defaults to the target element, but can also be overriden.

- -

Note: In 1.9.0, the default value was { my: "left+15 center", at: "right center", collision: "flipfit" }, but this was changed to more closely match native tooltip positioning.

-
-Code examples:

Initialize the tooltip with the position option specified:

-
$( ".selector" ).tooltip({ position: { my: "left+15 center", at: "right center" } });
-

Get or set the position option, after initialization:

-
// getter
var position = $( ".selector" ).tooltip( "option", "position" );
 
// setter
$( ".selector" ).tooltip( "option", "position", { my: "left+15 center", at: "right center" } );
-
-
-

showType: Boolean or Number or String or Object -

-
-Default: null -
-
If and how to animate the showing of the tooltip.
-Multiple types supported:
    -
  • -Boolean: - When set to false, no animation will be used and the tooltip will be shown immediately. - When set to true, the tooltip will fade in with the default duration and the default easing. -
  • -
  • -Number: - The tooltip will fade in with the specified duration and the default easing. -
  • -
  • -String: - The tooltip will be shown using the specified effect. - The value can either be the name of a built-in jQuery animateion method, such as "slideDown", or the name of a jQuery UI effect, such as "fold". - In either case the effect will be used with the default duration and the default easing. -
  • -
  • -Object: If the value is an object, then effect, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeIn" will be used.
  • -
-Code examples:

Initialize the tooltip with the show option specified:

-
$( ".selector" ).tooltip({ show: { effect: "blind", duration: 800 } });
-

Get or set the show option, after initialization:

-
// getter
var show = $( ".selector" ).tooltip( "option", "show" );
 
// setter
$( ".selector" ).tooltip( "option", "show", { effect: "blind", duration: 800 } );
-
-
-

tooltipClassType: String -

-
-Default: null -
-
- A class to add to the widget, can be used to display various tooltip types, like warnings or errors. -

This may get replaced by the classes option.

-
-Code examples:

Initialize the tooltip with the tooltipClass option specified:

-
$( ".selector" ).tooltip({ tooltipClass: "custom-tooltip-styling" });
-

Get or set the tooltipClass option, after initialization:

-
// getter
var tooltipClass = $( ".selector" ).tooltip( "option", "tooltipClass" );
 
// setter
$( ".selector" ).tooltip( "option", "tooltipClass", "custom-tooltip-styling" );
-
-
-

trackType: Boolean -

-
-Default: false -
-
- Whether the tooltip should track (follow) the mouse. -
-Code examples:

Initialize the tooltip with the track option specified:

-
$( ".selector" ).tooltip({ track: true });
-

Get or set the track option, after initialization:

-
// getter
var track = $( ".selector" ).tooltip( "option", "track" );
 
// setter
$( ".selector" ).tooltip( "option", "track", true );
-

Methods

-

close()

-
- Closes a tooltip. This is only intended to be called for non-delegated tooltips. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the close method:

-
$( ".selector" ).tooltip( "close" );
-
-
-
-

destroy()

-
- Removes the tooltip functionality completely. This will return the element back to its pre-init state. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the destroy method:

-
$( ".selector" ).tooltip( "destroy" );
-
-
-
-

disable()

-
- Disables the tooltip. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the disable method:

-
$( ".selector" ).tooltip( "disable" );
-
-
-
-

enable()

-
- Enables the tooltip. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the enable method:

-
$( ".selector" ).tooltip( "enable" );
-
-
-
-

open()

-
- Programmatically open a tooltip. This is only intended to be called for non-delegated tooltips. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the open method:

-
$( ".selector" ).tooltip( "open" );
-
-
-
-
-

option( optionName )Returns: Object -

-
Gets the value currently associated with the specified optionName.
-
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to get.
    -
-
-Code examples:

Invoke the method:

-
var isDisabled = $( ".selector" ).tooltip( "option", "disabled" );
-
-
-
-

option()Returns: PlainObject -

-
Gets an object containing key/value pairs representing the current tooltip options hash.
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the method:

-
var options = $( ".selector" ).tooltip( "option" );
-
-
-
-

option( optionName, value )

-
Sets the value of the tooltip option associated with the specified optionName.
-
    -
  • -
    optionName
    -
    Type: String -
    -
    The name of the option to set.
    -
  • -
  • -
    value
    -
    Type: Object -
    -
    A value to set for the option.
    -
  • -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).tooltip( "option", "disabled", true );
-
-
-
-

option( options )

-
Sets one or more options for the tooltip.
-
  • -
    options
    -
    Type: Object -
    -
    A map of option-value pairs to set.
    -
-
-Code examples:

Invoke the method:

-
$( ".selector" ).tooltip( "option", { disabled: true } );
-
-
-
-
-

widget()Returns: jQuery -

-
- Returns a jQuery object containing the original element. -
-
  • This method does not accept any arguments.
-
-Code examples:

Invoke the widget method:

-
var widget = $( ".selector" ).tooltip( "widget" );
-
-

Events

-

close( event, ui )Type: tooltipclose -

-
- Triggered when a tooltip is closed, triggered on focusout or mouseleave. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      tooltip
      -
      Type: jQuery -
      -
      The generated tooltip element.
      -
    -
  • -
-
-Code examples:

Initialize the tooltip with the close callback specified:

-
$( ".selector" ).tooltip({
    close: function( event, ui ) {}
});
-

Bind an event listener to the tooltipclose event:

-
$( ".selector" ).on( "tooltipclose", function( event, ui ) {} );
-
-
-
-

create( event, ui )Type: tooltipcreate -

-
- Triggered when the tooltip is created. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
  • -
-
-Code examples:

Initialize the tooltip with the create callback specified:

-
$( ".selector" ).tooltip({
    create: function( event, ui ) {}
});
-

Bind an event listener to the tooltipcreate event:

-
$( ".selector" ).on( "tooltipcreate", function( event, ui ) {} );
-
-
-
-

open( event, ui )Type: tooltipopen -

-
- Triggered when a tooltip is shown, triggered on focusin or mouseover. -
-
    -
  • -
    event
    -
    Type: Event -
    -
    -
  • -
  • -
    ui
    -
    Type: Object -
    -
    -
    • -
      tooltip
      -
      Type: jQuery -
      -
      The generated tooltip element.
      -
    -
  • -
-
-Code examples:

Initialize the tooltip with the open callback specified:

-
$( ".selector" ).tooltip({
    open: function( event, ui ) {}
});
-

Bind an event listener to the tooltipopen event:

-
$( ".selector" ).on( "tooltipopen", function( event, ui ) {} );
-
-

Example:

-

Create a tooltip on the document, using event delegation for all elements with a title attribute.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>tooltip demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<p>
    <a href="#" title="Anchor description">Anchor text</a>
    <input title="Input help">
</p>
<script>
    $( document ).tooltip();
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/transfer-effect.html b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/transfer-effect.html deleted file mode 100755 index ed597e1..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/docs/transfer-effect.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - jQuery UI transfer-effect documentation - - - - - -

Transfer Effect

-
-

Description: Transfers the outline of an element to another element

-
  • -

    transfer

    -
      -
    • -
      className
      -
      Type: String -
      -
      argumental class name the transfer element will receive.
      -
    • -
    • -
      to
      -
      Type: String -
      -
      jQuery selector, the element to transfer to.
      -
    • -
    -
-
-

Very useful when trying to visualize interaction between two elements.

-

The transfer element iself has the class ui-effects-transfer, and needs to be styled by you, for example by adding a background or border.

-
-

Example:

-

Clicking on the green element transfers to the other.

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>transfer demo</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
    <style>
    div.green {
        width: 100px;
        height: 80px;
        background: green;
        border: 1px solid black;
        position: relative;
    }
    div.red {
        margin-top: 10px;
        width: 50px;
        height: 30px;
        background: red;
        border: 1px solid black;
        position: relative;
    }
    .ui-effects-transfer {
        border: 1px dotted black;
    }
    </style>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>
 
<div class="green"></div>
<div class="red"></div>
 
<script>
$( "div" ).click(function() {
    var i = 1 - $( "div" ).index( this );
    $( this ).effect( "transfer", { to: $( "div" ).eq( i ) }, 1000 );
});
</script>
 
</body>
</html>
-

Demo:

-
-
-
- - - diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.culture.de-DE.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.culture.de-DE.js deleted file mode 100755 index 5466bd7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.culture.de-DE.js +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.culture.ja-JP.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.culture.ja-JP.js deleted file mode 100755 index a9469d7..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.culture.ja-JP.js +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.js deleted file mode 100755 index ebaca17..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/globalize.js +++ /dev/null @@ -1,1573 +0,0 @@ -/*! - * 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( deep ) { - 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 ) { - return value | 0; -}; - -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; - - if ( !format || !format.length || format === "i" ) { - var ret; - 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(); - } - } - - 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 + "\'."; - break; - } - } - 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 ] : ""; - - var l; - 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 ); - 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; - // fall through - case "C": - formatInfo = formatInfo || nf.currency; - // fall 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. - var now = new Date(), - era = getEra( now ); - if ( year < 100 ) { - var twoDigitYearMax = cal.twoDigitYearMax; - twoDigitYearMax = typeof twoDigitYearMax === "string" ? new Date().getFullYear() % 100 + parseInt( twoDigitYearMax, 10 ) : twoDigitYearMax; - var curr = getEraYear( now, cal, era ); - 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 = "(\\" + cal[ "/" ] + ")"; - break; - default: - throw "Invalid date format pattern \'" + m + "\'."; - break; - } - 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; - // fall 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 += " "; - // fall 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.cultures[ 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 ) { - return a.pri < b.pri ? 1 : -1; - }); - - // 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 ) { - 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["."] ); - } - - // trim leading and trailing whitespace - value = trim( value ); - - // 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.culture[ "default" ]; -}; - -}( this )); diff --git a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/jquery.mousewheel.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/jquery.mousewheel.js deleted file mode 100755 index 8c60304..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/jquery.mousewheel.js +++ /dev/null @@ -1,101 +0,0 @@ -/*! 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/jshint.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/jshint.js deleted file mode 100755 index 8f06d9b..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/jshint.js +++ /dev/null @@ -1,4835 +0,0 @@ -/*! - * 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/qunit.css b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/qunit.css deleted file mode 100755 index d7fc0c8..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/qunit.css +++ /dev/null @@ -1,244 +0,0 @@ -/** - * 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/qunit.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/qunit.js deleted file mode 100755 index 302545f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/external/qunit.js +++ /dev/null @@ -1,2152 +0,0 @@ -/** - * 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/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/jquery-1.9.1.js b/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/jquery-1.9.1.js deleted file mode 100755 index e2c203f..0000000 --- a/testing/ver0.01/jquery-ui-1.10.3.custom/development-bundle/jquery-1.9.1.js +++ /dev/null @@ -1,9597 +0,0 @@ -/*! - * jQuery JavaScript Library v1.9.1 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-2-4 - */ -(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<9 - // For `typeof node.method` instead of `node.method !== undefined` - core_strundefined = typeof undefined, - - // Use the correct document accordingly with window argument (sandbox) - document = window.document, - location = window.location, - - // 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.9.1", - - // 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 = /^(?:(<[\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, - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - 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({ - 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 ) { - 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 ) { - // 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; - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - - var key; - 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(); - } -}); - -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); -// 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 = []; - 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 ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( list && ( !fired || stack ) ) { - 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() { - - var support, all, a, - input, select, fragment, - opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
    a"; - - // Support tests won't run in some limited or non-browser environments - all = div.getElementsByTagName("*"); - a = div.getElementsByTagName("a")[ 0 ]; - if ( !all || !a || !all.length ) { - return {}; - } - - // 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"; - support = { - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - getSetAttribute: div.className !== "t", - - // IE strips leading whitespace when .innerHTML is used - leadingWhitespace: div.firstChild.nodeType === 3, - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - tbody: !div.getElementsByTagName("tbody").length, - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - htmlSerialize: !!div.getElementsByTagName("link").length, - - // Get the style information from getAttribute - // (IE uses .cssText instead) - style: /top/.test( a.getAttribute("style") ), - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - 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 - opacity: /^0.5/.test( a.style.opacity ), - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - cssFloat: !!a.style.cssFloat, - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - 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) - optSelected: opt.selected, - - // Tests for enctype support on a form (#6743) - enctype: !!document.createElement("form").enctype, - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>", - - // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode - boxModel: document.compatMode === "CSS1Compat", - - // Will be defined later - deleteExpando: true, - noCloneEvent: true, - inlineBlockNeedsLayout: false, - shrinkWrapBlocks: false, - reliableMarginRight: true, - boxSizingReliable: true, - pixelPosition: false - }; - - // 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), test/csp.php - 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"; - - // 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%;"; - support.boxSizing = ( div.offsetWidth === 4 ); - support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 ); - - // 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 thisCache, ret, - internalKey = jQuery.expando, - getByName = typeof name === "string", - - // 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)) && getByName && data === undefined ) { - 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 ) { - elem[ internalKey ] = id = core_deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - cache[ id ] = {}; - - // Avoids exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - if ( !isNode ) { - cache[ id ].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 ( getByName ) { - - // 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 i, l, thisCache, - 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 ) ); - } - - for ( i = 0, l = name.length; i < l; 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 : 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) - } else if ( jQuery.support.deleteExpando || cache != cache.window ) { - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", - "applet": true - }, - - 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, - elem = this[0], - i = 0, - data = null; - - // 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-" ) ) { - 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 jQuery.access( this, function( value ) { - - if ( value === undefined ) { - // Try to fetch any internally stored data first - return elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; - } - - this.each(function() { - jQuery.data( this, key, value ); - }); - }, null, value, arguments.length > 1, null, true ); - }, - - 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--; - } - - hooks.cur = fn; - 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]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - rboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/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, - isBool = typeof stateVal === "boolean"; - - 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 ), - state = stateVal, - classNames = value.match( core_rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // check each className given, space separated list - state = isBool ? state : !self.hasClass( className ); - self[ state ? "addClass" : "removeClass" ]( 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, - self = jQuery(this); - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, self.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 ) { - // attributes.value is undefined in Blackberry 4.7 but - // uses .value. See #6932 - var val = elem.attributes.value; - return !val || val.specified ? elem.value : 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 values = jQuery.makeArray( value ); - - jQuery(elem).find("option").each(function() { - this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; - }); - - if ( !values.length ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, notxml, 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 ); - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( notxml ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - - // In IE9+, Flash objects don't have .getAttribute (#12945) - // Support: IE9+ - if ( typeof elem.getAttribute !== core_strundefined ) { - ret = elem.getAttribute( 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 ( rboolean.test( name ) ) { - // Set corresponding property to false for boolean attributes - // Also clear defaultChecked/defaultSelected (if appropriate) for IE<8 - if ( !getSetAttribute && ruseDefault.test( name ) ) { - elem[ jQuery.camelCase( "default-" + name ) ] = - elem[ propName ] = false; - } else { - 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: { - tabindex: "tabIndex", - readonly: "readOnly", - "for": "htmlFor", - "class": "className", - maxlength: "maxLength", - cellspacing: "cellSpacing", - cellpadding: "cellPadding", - rowspan: "rowSpan", - colspan: "colSpan", - usemap: "useMap", - frameborder: "frameBorder", - contenteditable: "contentEditable" - }, - - 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 ) { - if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - return ( elem[ name ] = value ); - } - - } else { - if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - return 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/ - var attributeNode = elem.getAttributeNode("tabindex"); - - return attributeNode && attributeNode.specified ? - parseInt( attributeNode.value, 10 ) : - rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? - 0 : - undefined; - } - } - } -}); - -// Hook for boolean attributes -boolHook = { - get: function( elem, name ) { - var - // Use .prop to determine if this attribute is understood as boolean - prop = jQuery.prop( elem, name ), - - // Fetch it accordingly - attr = typeof prop === "boolean" && elem.getAttribute( name ), - detail = typeof prop === "boolean" ? - - getSetInput && getSetAttribute ? - attr != null : - // oldIE fabricates an empty string for missing boolean attributes - // and conflates checked/selected into attroperties - ruseDefault.test( name ) ? - elem[ jQuery.camelCase( "default-" + name ) ] : - !!attr : - - // fetch an attribute node for properties not recognized as boolean - elem.getAttributeNode( name ); - - return detail && detail.value !== false ? - name.toLowerCase() : - undefined; - }, - 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; - } -}; - -// fix oldIE value attroperty -if ( !getSetInput || !getSetAttribute ) { - jQuery.attrHooks.value = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return jQuery.nodeName( elem, "input" ) ? - - // Ignore the value *property* by using defaultValue - elem.defaultValue : - - ret && ret.specified ? ret.value : undefined; - }, - 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 = jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ( name === "id" || name === "name" || name === "coords" ? ret.value !== "" : ret.specified ) ? - ret.value : - undefined; - }, - 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; - } - }; - - // Set contenteditable to false on removals(#10429) - // Setting to empty string throws an error as an invalid value - jQuery.attrHooks.contenteditable = { - get: nodeHook.get, - 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 ] = jQuery.extend( 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 ) { - jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { - get: function( elem ) { - var ret = elem.getAttribute( name, 2 ); - return ret == null ? undefined : ret; - } - }); - }); - - // 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 = jQuery.extend( 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; - } - }); -} - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// Radios and checkboxes getter/setter -if ( !jQuery.support.checkOn ) { - jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - get: function( elem ) { - // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - } - }; - }); -} -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }); -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -/* - * 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 - // jQuery(...).bind("mouseover mouseout", fn); - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // 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 ); - - event.isTrigger = true; - 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( elem.ownerDocument, data ) === false) && - !(type === "click" && jQuery.nodeName( elem, "a" )) && 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") ) { - - for ( ; cur != this; cur = cur.parentNode || this ) { - - // 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 - }, - 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; - } - } - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== document.activeElement && 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 === document.activeElement && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - - 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 ); - }); - }, - - bind: function( types, data, fn ) { - return this.on( types, null, data, fn ); - }, - unbind: function( types, fn ) { - return this.off( types, null, fn ); - }, - - delegate: function( selector, types, data, fn ) { - return this.on( types, selector, data, fn ); - }, - undelegate: function( selector, types, fn ) { - // ( namespace ) or ( selector, types [, fn] ) - return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); - }, - - 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 ); - } - } -}); -/*! - * Sizzle CSS Selector Engine - * Copyright 2012 jQuery Foundation and other contributors - * Released under the MIT license - * http://sizzlejs.com/ - */ -(function( window, undefined ) { - -var i, - cachedruns, - Expr, - getText, - isXML, - compile, - hasDuplicate, - outermostContext, - - // Local document vars - setDocument, - document, - docElem, - documentIsXML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - sortOrder, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - support = {}, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - - // General-purpose constants - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - // Array methods - arr = [], - pop = arr.pop, - 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; - }, - - - // 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 - operators = "([*^$|!~]?=)", - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:" + operators + 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 + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ), - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "NAME": new RegExp( "^\\[name=['\"]?(" + 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" ), - // 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" ) - }, - - rsibling = /[\x20\t\r\n\f]*[+~]/, - - rnative = /^[^{]+\{\s*\[native code/, - - // 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, - rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g, - funescape = function( _, escaped ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - return high !== high ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// Use a stripped-down slice if we can't use a native one -try { - slice.call( preferredDoc.documentElement.childNodes, 0 )[0].nodeType; -} catch ( e ) { - slice = function( i ) { - var elem, - results = []; - while ( (elem = this[i++]) ) { - results.push( elem ); - } - return results; - }; -} - -/** - * For feature detection - * @param {Function} fn The function to test for native support - */ -function isNative( fn ) { - return rnative.test( fn + "" ); -} - -/** - * 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 cache, - keys = []; - - return (cache = function( 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); - }); -} - -/** - * 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 { - // release memory in IE - div = null; - } -} - -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 ( !documentIsXML && !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, slice.call(context.getElementsByTagName( selector ), 0) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) { - push.apply( results, slice.call(context.getElementsByClassName( m ), 0) ); - return results; - } - } - - // QSA path - if ( support.qsa && !rbuggyQSA.test(selector) ) { - old = true; - nid = 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, slice.call( newContext.querySelectorAll( - newSelector - ), 0 ) ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * 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; -}; - -/** - * 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; - - // 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 - documentIsXML = isXML( doc ); - - // Check if getElementsByTagName("*") returns only elements - support.tagNameNoComments = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if attributes should be retrieved by attribute nodes - support.attributes = assert(function( div ) { - div.innerHTML = ""; - var type = typeof div.lastChild.getAttribute("multiple"); - // IE8 returns a string for some attributes even when not present - return type !== "boolean" && type !== "string"; - }); - - // Check if getElementsByClassName can be trusted - support.getByClassName = assert(function( div ) { - // Opera can't find a second classname (in 9.6) - div.innerHTML = ""; - if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) { - return false; - } - - // Safari 3.2 caches class attributes and doesn't catch changes - div.lastChild.className = "e"; - return div.getElementsByClassName("e").length === 2; - }); - - // Check if getElementById returns elements by name - // Check if getElementsByName privileges form controls or returns elements by ID - support.getByName = assert(function( div ) { - // Inject content - div.id = expando + 0; - div.innerHTML = "
    "; - docElem.insertBefore( div, docElem.firstChild ); - - // Test - var pass = doc.getElementsByName && - // buggy browsers will return fewer than the correct 2 - doc.getElementsByName( expando ).length === 2 + - // buggy browsers will return more than the correct 0 - doc.getElementsByName( expando + 0 ).length; - support.getIdNotName = !doc.getElementById( expando ); - - // Cleanup - docElem.removeChild( div ); - - return pass; - }); - - // IE6/7 return modified attributes - Expr.attrHandle = assert(function( div ) { - div.innerHTML = ""; - return div.firstChild && typeof div.firstChild.getAttribute !== strundefined && - div.firstChild.getAttribute("href") === "#"; - }) ? - {} : - { - "href": function( elem ) { - return elem.getAttribute( "href", 2 ); - }, - "type": function( elem ) { - return elem.getAttribute("type"); - } - }; - - // ID find and filter - if ( support.getIdNotName ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && !documentIsXML ) { - 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 { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && !documentIsXML ) { - var m = context.getElementById( id ); - - return m ? - m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ? - [m] : - undefined : - []; - } - }; - 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.tagNameNoComments ? - 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; - }; - - // Name - Expr.find["NAME"] = support.getByName && function( tag, context ) { - if ( typeof context.getElementsByName !== strundefined ) { - return context.getElementsByName( name ); - } - }; - - // Class - Expr.find["CLASS"] = support.getByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) { - return context.getElementsByClassName( className ); - } - }; - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21), - // no need to also add to buggyMatches since matches checks buggyQSA - // A support test would require too much code (would include document ready) - rbuggyQSA = [ ":focus" ]; - - if ( (support.qsa = isNative(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 explictly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - div.innerHTML = ""; - - // IE8 - Some boolean attributes are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" ); - } - - // 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 ) { - - // Opera 10-12/IE8 - ^= $= *= and empty values - // Should not select anything - div.innerHTML = ""; - if ( div.querySelectorAll("[i^='']").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 = isNative( (matches = docElem.matchesSelector || - docElem.mozMatchesSelector || - docElem.webkitMatchesSelector || - 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 = new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = new RegExp( rbuggyMatches.join("|") ); - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = isNative(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; - }; - - // Document order sorting - sortOrder = docElem.compareDocumentPosition ? - function( a, b ) { - var compare; - - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - if ( (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b )) ) { - if ( compare & 1 || a.parentNode && a.parentNode.nodeType === 11 ) { - if ( a === doc || contains( preferredDoc, a ) ) { - return -1; - } - if ( b === doc || contains( preferredDoc, b ) ) { - return 1; - } - return 0; - } - return compare & 4 ? -1 : 1; - } - - 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 : - 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; - }; - - // Always assume the presence of duplicates if sort doesn't - // pass them to our comparison function (as in Google Chrome). - hasDuplicate = false; - [0, 0].sort( sortOrder ); - support.detectDuplicates = hasDuplicate; - - return document; -}; - -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']" ); - - // rbuggyQSA always contains :focus, so no need for an existence check - if ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !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 ) { - var val; - - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - if ( !documentIsXML ) { - name = name.toLowerCase(); - } - if ( (val = Expr.attrHandle[ name ]) ) { - return val( elem ); - } - if ( documentIsXML || support.attributes ) { - return elem.getAttribute( name ); - } - return ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ? - name : - val && val.specified ? val.value : null; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -// Document sorting and removing duplicates -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - i = 1, - j = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - results.sort( sortOrder ); - - if ( hasDuplicate ) { - for ( ; (elem = results[i]); i++ ) { - if ( elem === results[ i - 1 ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - return results; -}; - -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && ( ~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 -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 -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 -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]); - } - } - }); - }); -} - -/** - * 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, - - 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[4] ) { - 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( nodeName ) { - if ( nodeName === "*" ) { - return function() { return true; }; - } - - nodeName = nodeName.replace( runescape, funescape ).toLowerCase(); - return 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( 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 identifider - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsXML ? - elem.getAttribute("xml:lang") || elem.getAttribute("lang") : - elem.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; - }) - } -}; - -// 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 ); -} - -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( tokens.slice( 0, i - 1 ) ).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" && - context.nodeType === 9 && !documentIsXML && - 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, slice.call( seed, 0 ) ); - 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, - documentIsXML, - results, - rsibling.test( selector ) - ); - return results; -} - -// Deprecated -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Easy API for creating new setFilters -function setFilters() {} -Expr.filters = setFilters.prototype = Expr.pseudos; -Expr.setFilters = new setFilters(); - -// Initialize with the default document -setDocument(); - -// Override sizzle attribute retrieval -Sizzle.attr = jQuery.attr; -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 ); -var runtil = /Until$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - isSimple = /^.[^:#\[\.,]*$/, - 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, - len = this.length; - - if ( typeof selector !== "string" ) { - self = this; - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - ret = []; - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, this[ 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; - 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, false) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector, true) ); - }, - - is: function( selector ) { - return !!selector && ( - typeof selector === "string" ? - // 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". - rneedsContext.test( selector ) ? - jQuery( selector, this.context ).index( this[0] ) >= 0 : - jQuery.filter( selector, this ).length > 0 : - this.filter( selector ).length > 0 ); - }, - - 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++ ) { - cur = this[i]; - - while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) { - if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { - ret.push( cur ); - break; - } - cur = cur.parentNode; - } - } - - 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) - ); - } -}); - -jQuery.fn.andSelf = jQuery.fn.addBack; - -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 ( !runtil.test( name ) ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; - - if ( this.length > 1 && rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - filter: function( expr, elems, not ) { - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 ? - jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : - jQuery.find.matches(expr, elems); - }, - - 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, keep ) { - - // Can't pass null or undefined to indexOf in Firefox 4 - // Set to 0 to skip string check - qualifier = qualifier || 0; - - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep(elements, function( elem, i ) { - var retVal = !!qualifier.call( elem, i, elem ); - return retVal === keep; - }); - - } else if ( qualifier.nodeType ) { - return jQuery.grep(elements, function( elem ) { - return ( elem === qualifier ) === keep; - }); - - } else if ( typeof qualifier === "string" ) { - var filtered = jQuery.grep(elements, function( elem ) { - return elem.nodeType === 1; - }); - - if ( isSimple.test( qualifier ) ) { - return jQuery.filter(qualifier, filtered, !keep); - } else { - qualifier = jQuery.filter( qualifier, filtered ); - } - } - - return jQuery.grep(elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; - }); -} -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 ); - }, - - 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(); - }, - - append: function() { - return this.domManip(arguments, true, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.insertBefore( elem, this.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, false, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, false, 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, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) { - 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( value ) { - var isFunc = jQuery.isFunction( value ); - - // Make sure that the elements are removed from the DOM before they are inserted - // this can help fix replacing a parent with child elements - if ( !isFunc && typeof value !== "string" ) { - value = jQuery( value ).not( this ).detach(); - } - - return this.domManip( [ value ], true, function( elem ) { - var next = this.nextSibling, - parent = this.parentNode; - - if ( parent ) { - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - }); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, table, callback ) { - - // 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, table ? self.html() : undefined ); - } - self.domManip( args, table, callback ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - table = table && jQuery.nodeName( first, "tr" ); - 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( - table && jQuery.nodeName( this[i], "table" ) ? - findOrAppend( this[i], "tbody" ) : - 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.ajax({ - url: node.src, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -function findOrAppend( elem, tag ) { - return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) ); -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - var attr = elem.getAttributeNode("type"); - elem.type = ( attr && attr.specified ) + "/" + 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 ); - } - } - } - } - } -}); -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 ) { - var bool = typeof state === "boolean"; - - return this.each(function() { - if ( bool ? state : 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; - } - } - } - }, - - // Exclude the following css properties to add px - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "fontWeight": true, - "lineHeight": true, - "opacity": 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; - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - 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; - } -}); - -// 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("