From cfaae06d37e7c48118c3a1bcf373d20d87a1423f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 26 Nov 2014 16:40:08 +0000 Subject: [PATCH] Add touchSwipe plugin for mobile template --- phpgwapi/js/jquery/TouchSwipe/.gitignore | 2 + phpgwapi/js/jquery/TouchSwipe/README.md | 101 + phpgwapi/js/jquery/TouchSwipe/bower.json | 9 + .../TouchSwipe/demos/Any_finger_swipe.html | 49 + .../jquery/TouchSwipe/demos/Basic_swipe.html | 48 + .../TouchSwipe/demos/Enable_and_destroy.html | 95 + .../TouchSwipe/demos/Excluded_children.html | 88 + .../jquery/TouchSwipe/demos/Finger_swipe.html | 57 + .../TouchSwipe/demos/Handlers_and_events.html | 128 + phpgwapi/js/jquery/TouchSwipe/demos/Hold.html | 61 + .../demos/Image_gallery_example.html | 148 ++ .../js/jquery/TouchSwipe/demos/Options.html | 75 + .../TouchSwipe/demos/Page_scrolling.html | 99 + .../js/jquery/TouchSwipe/demos/Page_zoom.html | 50 + .../js/jquery/TouchSwipe/demos/Pinch.html | 57 + .../TouchSwipe/demos/Pinch_and_Swipe.html | 81 + .../jquery/TouchSwipe/demos/Pinch_status.html | 50 + .../jquery/TouchSwipe/demos/Single_swipe.html | 51 + .../TouchSwipe/demos/Stop_propegation.html | 57 + .../jquery/TouchSwipe/demos/Swipe_status.html | 81 + .../jquery/TouchSwipe/demos/Tap_vs_swipe.html | 102 + .../jquery/TouchSwipe/demos/Thresholds.html | 109 + .../TouchSwipe/demos/Trigger_handlers.html | 158 ++ .../js/jquery/TouchSwipe/demos/css/main.css | 110 + .../js/jquery/TouchSwipe/demos/index.html | 79 + .../TouchSwipe/demos/js/jquery.ui.ipad.js | 223 ++ .../js/jquery/TouchSwipe/demos/js/main.js | 240 ++ .../TouchSwipe/docs/css/bootstrap.min.css | 9 + .../js/jquery/TouchSwipe/docs/css/common.css | 321 +++ .../jquery/TouchSwipe/docs/css/prettify.css | 30 + .../js/jquery/TouchSwipe/docs/css/print.css | 11 + phpgwapi/js/jquery/TouchSwipe/docs/files.html | 101 + .../js/jquery/TouchSwipe/docs/img/class.png | Bin 0 -> 1192 bytes .../jquery/TouchSwipe/docs/img/classicons.png | Bin 0 -> 2313 bytes .../js/jquery/TouchSwipe/docs/img/event.png | Bin 0 -> 1938 bytes .../docs/img/glyphicons-halflings-white.png | Bin 0 -> 8777 bytes .../docs/img/glyphicons-halflings.png | Bin 0 -> 13826 bytes .../jquery/TouchSwipe/docs/img/interface.png | Bin 0 -> 1190 bytes .../jquery/TouchSwipe/docs/img/namespace.png | Bin 0 -> 1191 bytes phpgwapi/js/jquery/TouchSwipe/docs/index.html | 386 +++ .../js/jquery/TouchSwipe/docs/js/accordion.js | 13 + .../TouchSwipe/docs/js/jquery-1.7.2.min.js | 4 + .../js/jquery/TouchSwipe/docs/js/prettify.js | 28 + .../jquery/TouchSwipe/docs/symbols/$.fn.html | 171 ++ .../docs/symbols/$.fn.swipe.defaults.html | 910 +++++++ .../docs/symbols/$.fn.swipe.directions.html | 346 +++ .../docs/symbols/$.fn.swipe.fingers.html | 291 +++ .../TouchSwipe/docs/symbols/$.fn.swipe.html | 1402 +++++++++++ .../docs/symbols/$.fn.swipe.pageScroll.html | 290 +++ .../docs/symbols/$.fn.swipe.phases.html | 290 +++ .../js/jquery/TouchSwipe/docs/symbols/$.html | 171 ++ .../TouchSwipe/docs/symbols/_global_.html | 136 ++ .../symbols/src/jquery.touchSwipe.js.html | 2126 +++++++++++++++++ .../js/jquery/TouchSwipe/jquery.touchSwipe.js | 2036 ++++++++++++++++ .../TouchSwipe/jquery.touchSwipe.min.js | 1 + 55 files changed, 11481 insertions(+) create mode 100644 phpgwapi/js/jquery/TouchSwipe/.gitignore create mode 100644 phpgwapi/js/jquery/TouchSwipe/README.md create mode 100644 phpgwapi/js/jquery/TouchSwipe/bower.json create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Any_finger_swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Basic_swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Enable_and_destroy.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Excluded_children.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Finger_swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Handlers_and_events.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Hold.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Image_gallery_example.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Options.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Page_scrolling.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Page_zoom.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Pinch.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Pinch_and_Swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Pinch_status.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Single_swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Stop_propegation.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Swipe_status.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Tap_vs_swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Thresholds.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/Trigger_handlers.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/css/main.css create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/index.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/js/jquery.ui.ipad.js create mode 100644 phpgwapi/js/jquery/TouchSwipe/demos/js/main.js create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/css/bootstrap.min.css create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/css/common.css create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/css/prettify.css create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/css/print.css create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/files.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/class.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/classicons.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/event.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/glyphicons-halflings-white.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/glyphicons-halflings.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/interface.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/img/namespace.png create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/index.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/js/accordion.js create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/js/jquery-1.7.2.min.js create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/js/prettify.js create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.defaults.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.directions.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.fingers.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.pageScroll.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.phases.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/_global_.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/docs/symbols/src/jquery.touchSwipe.js.html create mode 100644 phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.js create mode 100644 phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.min.js diff --git a/phpgwapi/js/jquery/TouchSwipe/.gitignore b/phpgwapi/js/jquery/TouchSwipe/.gitignore new file mode 100644 index 0000000000..c8c74ad0d9 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/.gitignore @@ -0,0 +1,2 @@ +Makefile +.DS_Store \ No newline at end of file diff --git a/phpgwapi/js/jquery/TouchSwipe/README.md b/phpgwapi/js/jquery/TouchSwipe/README.md new file mode 100644 index 0000000000..a1d1a085cb --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/README.md @@ -0,0 +1,101 @@ +#TouchSwipe 1.6 +A jquery plugin to be used on touch devices such as iPad, iPhone, android etc + +Detects single and multiple finger swipes, pinches and falls back to mouse 'drags' on the desktop. + +Time and distance thresholds can be set to destinguish between swipe gesture and slow drag. + +Allows exclusion of child elements (interactive elements) as well allowing page scrolling or page zooming depending on configuration. + + +### Demos, examples and docs + +[http://labs.rampinteractive.co.uk/touchSwipe](http://labs.rampinteractive.co.uk/touchSwipe) +[http://labs.rampinteractive.co.uk/touchSwipe/docs](http://labs.rampinteractive.co.uk/touchSwipe/docs) + + + +### For port to XUI see: +https://github.com/cowgp/xui-touchSwipe + +### Version History + +* **1.6.6** *2014-06-04* + - Merge of pull requests. + - IE10 touch support + - Only prevent default event handling on valid swipe + - Separate license/changelog comment + - Detect if the swipe is valid at the end of the touch event. + - Pass fingerdata to event handlers. + - Add 'hold' gesture + - Be more tolerant about the tap distance + - Typos and minor fixes +* **1.6.5** *2013-08-24* + - Merged a few pull requests fixing various bugs, added AMD support. +* **1.6.4** *2013-04-04* + - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back. +* **1.6.3** *2013-04-01* + - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property +* **1.6.2** *2013-03-23* + - Added support for events binding with on / off / bind in jQ for all callback names. + - Deprecated the 'click' handler in favour of tap. + - added cancelThreshold property + - added 'option' method to update init options at runtime +* **1.6.1** *2013-02-12* + - Added support for ie8 touch events +* **1.6.0** *2013-01-12* + - Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture. + - made the demo site all static local HTML pages so they can be run locally by a developer + - added jsDoc comments and added documentation for the plugin + - code tidy + - added triggerOnTouchLeave property that will end the event when the user swipes off the element. +* **1.5.1** *2012-11-22* + - Fixed bug with jQuery 1.8 and trailing comma in excludedElements + - Fixed bug with IE and event.preventDefault(); +* **1.5.0** *2012-11-10* + - Added `excludedElements`, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements. +* **1.4.0** *2012-04-10* + - Added pinch support, `pinchIn`, `pinchOut` and `pinchStatus` +* **1.3.3** *2012-09-08* + - Code tidy prep for minified version +* **1.3.2** *2012-29-07* + - Added `fallbackToMouseEvents` option to NOT capture mouse events on non touch devices. + - Added "all" fingers value to the fingers property, so any combinatin of fingers triggers the swipe, allowing event handlers to check the finger count +* **1.3.1** *2012-05-06* + - Bug fixes + - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly. +* **1.3.0** *2012-06-06* + - Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added `enable`, `disable`, and `destroy` methods +* **1.2.8** *2012-05-06* + - Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event. +* **1.2.7** *2012-05-06* + - Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled. +* **1.2.6** *2012-14-05* + - Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected +* **1.2.5** *2011-27-09* + - Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy) +* **1.2.4** *2011-28-04* + - Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring. +* **1.2.2** *2011-23-02* + - Fixed bug where scope was not preserved in callback methods. +* **1.2.1** *2011-23-02* + - removed console log! +* **1.2.0** *2011-23-02* + - added `click` handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler. + - If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object. +* **1.1.0** *2011-21-02* + - added `allowPageScroll` property to allow swiping and scrolling of page + - changed handler signatures so one handler can be used for multiple events +* **1.0.1** *2010-12-12* + - removed multibyte comments +* **1.0.0** *2010-12-12* + - feature complete + + + + + + + + + diff --git a/phpgwapi/js/jquery/TouchSwipe/bower.json b/phpgwapi/js/jquery/TouchSwipe/bower.json new file mode 100644 index 0000000000..f704054298 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/bower.json @@ -0,0 +1,9 @@ +{ + "name": "jquery-touchswipe", + "version": "1.6.6", + "main": "./jquery.touchSwipe.js", + "repository": { + "type": "git", + "url": "git://github.com/mattbryson/TouchSwipe-Jquery-Plugin.git" + } +} diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Any_finger_swipe.html b/phpgwapi/js/jquery/TouchSwipe/demos/Any_finger_swipe.html new file mode 100644 index 0000000000..7257f0b622 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Any_finger_swipe.html @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + +

Events: swipe

+

properties: fingers

+

By setting the number of fingers to 'all', any number of fingers will trigger the swipe.

+ + +

+			
+			
+			
Swipe me with different combinations of fingers
+ + + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Basic_swipe.html b/phpgwapi/js/jquery/TouchSwipe/demos/Basic_swipe.html new file mode 100644 index 0000000000..94de1b63e6 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Basic_swipe.html @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

events: swipe,swipeLeft, swipeRight, swipeUp, swipeDown

+

By using the swipe handler, you can detect all 4 directions, or use the individual methods swipeLeft, swipeRight, swipeUp, swipeDown

+ + +

+			
+			
+			
Swipe me
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Enable_and_destroy.html b/phpgwapi/js/jquery/TouchSwipe/demos/Enable_and_destroy.html new file mode 100644 index 0000000000..284f61d2d1 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Enable_and_destroy.html @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

methods: enable, disable, destroy

+

By using the enable, disable and destroy methods, you can temporarily disable interaction with a swipe element, or completely destroy it, which requires re instantiation.
+

+ + + +
+ +
+ + + + +
+ +
Swipe me
+ +

+ +
Swipe me - Im not affected by the above...
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Excluded_children.html b/phpgwapi/js/jquery/TouchSwipe/demos/Excluded_children.html new file mode 100644 index 0000000000..93ef4745cc --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Excluded_children.html @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

property: excludedElements

+

If you want to exclude certain child elements from triggering swipes, you can simply add a .noSwipe class to the element. Then the element and any of its children will no longer trigger the swipe. +

Also, a jQuery selector is used to exclude input elements as well as the .noSwipe elements. By default all button, input, select, textarea and a elements are excluded. + So either add a .noSwipe class the element, or set your own selector in the excludedElements property. +

+ +

+	
+			
+			
+			
+
Swipe me, the child elements will not trigger swipes by default

+
+ + + +
+ +

Im am NOT swipeable because my class is .noSwipe

+ +
+ + +
+
Swipe me, the child elements will not trigger swipes as they have been explicitly excluded

+
+ + + +
+ +

Im am NOT swipeable because my im added to the excludedElements array

+
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Finger_swipe.html b/phpgwapi/js/jquery/TouchSwipe/demos/Finger_swipe.html new file mode 100644 index 0000000000..a736c27206 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Finger_swipe.html @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + +

property: fingers

+

By setting the number of fingers to 2, you can detect ONLY 2 finger swipes, likewise for 3 fingers.

+ + +

+			
+			
+			
Swipe me with 2 fingers
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Handlers_and_events.html b/phpgwapi/js/jquery/TouchSwipe/demos/Handlers_and_events.html new file mode 100644 index 0000000000..f8b7fa1c60 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Handlers_and_events.html @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + + +

events: tap hold swipe swipeLeft swipeRight swipeUp swipeDown swipeStatus pinch pinchIn pinchOut pinchStatus

+ See the docs for more on each event +

You can either assign callback methods as part of the options object, or you can assign + event handlers using the jQuery on/off event registration.

+ +

The example below logs both from the callback and the event handlers. The Remove Events button will remove the + event bindings, and then only the callbacks will be logged. Event logs are bold, callbacks are normal.

+ + +

+			
+			
+			
+ +
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Hold.html b/phpgwapi/js/jquery/TouchSwipe/demos/Hold.html new file mode 100644 index 0000000000..9786bb1598 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Hold.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

events: tap, hold

+

properties: longTapThreshold

+

You can also detect if the user holds their finger down until the longTapthreshold is met
+ The hold handler is passed the original event object and the target that was clicked. +

+

If you use the jquery.ui.ipad.js plugin (http://code.google.com/p/jquery-ui-for-ipad-and-iphone/) you can then also pickup + standard jQuery mouse events on children of the touchSwipe object.

+ + + +

+			
+			
+			
+
Hold me :)

+
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Image_gallery_example.html b/phpgwapi/js/jquery/TouchSwipe/demos/Image_gallery_example.html new file mode 100644 index 0000000000..fc3535a25c --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Image_gallery_example.html @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + touchSwipe + + + + + + +Fork me on GitHub + +
+

Below is a very simple image gallery to demonstrate how to implement touchSwipe.

+ Swipe the images below left and right. Swipe up and down will scroll the page. Uses HTML5 + CSS to animate.

+
+ +
+
+ + + +
+
+
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Options.html b/phpgwapi/js/jquery/TouchSwipe/demos/Options.html new file mode 100644 index 0000000000..15952aa4e5 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Options.html @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

methods: option

+

By using the option method, you can change any of the init option properties at run time.
+ + see the docs for more info. + +

+ + +

+			
+			
+			
+ + + + + + +
Swipe me
+ +

+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Page_scrolling.html b/phpgwapi/js/jquery/TouchSwipe/demos/Page_scrolling.html new file mode 100644 index 0000000000..33aa362e97 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Page_scrolling.html @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + + +

property: allowPageScroll

+

You can set how page scrolling is handled by the browser when the user is interacting with a touchSwipe object. +
There are 4 possible settings for the allowPageScroll option. These can be strings, or use the plugin constants in $.fn.swipe.pageScroll +

    +
  • auto or $.fn.swipe.pageScroll.AUTO
    scrolling will only occur if a user swipes in a direction for which you have NOT defined a swipe handler. E.g If only swipeLeft is defined, then a RIGHT, UP or DOWN swipe would cause the page to scroll.
  • +
  • none or $.fn.swipe.pageScroll.NONE
    scrolling will never occur.
  • +
  • horizontal or $.fn.swipe.pageScroll.HORIZONTAL
    horizontal swipes will cause the page to scroll.
  • +
  • vertical or $.fn.swipe.pageScroll.VERTICAL
    vertical swipes will cause the page to scroll.
  • +
+ +
+ NOTE: if the general swipe or swipeStatus handlers are specificed, then allowPageScroll will be dissabled by default, as they detect swipes in all directions. + To use scrolling AND the swipe handler, set allowPageScroll to the direction you want the user to be able to scroll. +

+ + +
		
+			
+			
+			

+ allowPageScroll = "auto" or $.fn.swipe.pageScroll.AUTO +
Swipe Left or Right The swipe will trigger but the page will NOT scroll. +
Swipe Up or Down The page will scroll as there is no up or down swipe handler.
+
Swipe me
+ +

+ allowPageScroll = "none" or $.fn.swipe.pageScroll.NONE +
Swipe Left The swipe will trigger but the page will NOT scroll. +
Swipe right, Up or Down No swipe handler is defined, so nothihng happens and the page will NOT scroll.
+
Swipe me
+ +

+ allowPageScroll = "horizontal" or $.fn.swipe.pageScroll.HORIZONTAL +
Swipe left and right are triggered
+
Swipe me
+ +

+ allowPageScroll = "vertical" or $.fn.swipe.pageScroll.VERTICAL +
+ With the general swipe or swipeStatus handlers +
These enable all 4 directions, but here we have set allowPageScroll to "vertical" so the user can scroll up and down, and swipe left and right with the general swipe handler.
+
Note how the vertical swipe is hit and miss. As soon as the page starts scrolling, the user is no longer swiping across the object. +
Swipe me
+ +

+ allowPageScroll = "vertical" or $.fn.swipe.pageScroll.HORIZONTAL +
+ Vertical, but WITH the general swipe or swipeStatus handlers +
These enable all 4 directions, but here we have set allowPageScroll to "vertical" so the user can scroll up and down, and swipe left and right with the general swipe handler.
+
Note how the vertical swipe is hit and miss. As soon as the page starts scrolling, the user is no longer swiping across the object. +
Swipe me
+ + + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Page_zoom.html b/phpgwapi/js/jquery/TouchSwipe/demos/Page_zoom.html new file mode 100644 index 0000000000..914aaa9e65 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Page_zoom.html @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

property: fingers

+

If just one finger is set for swipes, at the meta tag enables user-scaling, then page zooms will bubble up and trigger.

+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/>
+ + +
	
+			
+			
+			
I only swipe left, but you can pinch zoom me as I only capture 1 finger
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Pinch.html b/phpgwapi/js/jquery/TouchSwipe/demos/Pinch.html new file mode 100644 index 0000000000..766f4a70dd --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Pinch.html @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

events: pinchIn, pinchOut

+

You can also trigger pinch events, pinchIn will trigger when a user has completed a pinch in event, and pinchOut will trigger when a user has pinched out.

+ + +
	
+			
+			
+			
Pinch me
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Pinch_and_Swipe.html b/phpgwapi/js/jquery/TouchSwipe/demos/Pinch_and_Swipe.html new file mode 100644 index 0000000000..181759c854 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Pinch_and_Swipe.html @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + +

events: pinchStatus, swipeStatus

+

properties: pinchThreshold

+

You can combine both pinch and swipe events. As the user can simultaneously pinch and swipe, both events are tirggered at the same time.
+ The pinchThreshold property sets how far the user must pinch before it is considered a pinch. The default is 20px. This is useful when trying to elimate slight pinch movement when the user is actually swiping. +

+ +
	
+				
+			
+				
+
Pinch me
+
+
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Pinch_status.html b/phpgwapi/js/jquery/TouchSwipe/demos/Pinch_status.html new file mode 100644 index 0000000000..f483ca0aa1 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Pinch_status.html @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + +

events: pinchStatus

+

You can also get the current status of a pinch, which can be used in place of the other pinch methods. The pinchStatus reports phase, direction, distance, duration, fingerCount and pinchZoom.

+ + +
	
+					
+			
+			
Pinch me
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Single_swipe.html b/phpgwapi/js/jquery/TouchSwipe/demos/Single_swipe.html new file mode 100644 index 0000000000..b91ea29bb4 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Single_swipe.html @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + +

events: swipeLeft, swipeRight, swipeUp, swipeDown, swipe

+

By using just one handler swipeLeft you can detect ONLY left swipes. There are handlers for each direction, as well as the generic swipe handler.

+ + +

+			
+			
I only swipe left
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Stop_propegation.html b/phpgwapi/js/jquery/TouchSwipe/demos/Stop_propegation.html new file mode 100644 index 0000000000..1fd5ec5395 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Stop_propegation.html @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

events: swipeStatus

+

In your event handlers, you can return a value of false if you want to manually cancel the swipe. This will trigger the 'cancel' event.

+ + +

+			
+			
+			
Swipe will start, but then cancel as the event handler returns false
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Swipe_status.html b/phpgwapi/js/jquery/TouchSwipe/demos/Swipe_status.html new file mode 100644 index 0000000000..2948f3af1d --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Swipe_status.html @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

event: swipeStatus

+

You can also get the current status of the swipe, which can be used in place of all other methods. The status reports phase, direction, distance, duration and fingerCount. + Below has a 200px threshold and a 5 second time limit +

+ + +

+			
+			
+			
Swipe me
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Tap_vs_swipe.html b/phpgwapi/js/jquery/TouchSwipe/demos/Tap_vs_swipe.html new file mode 100644 index 0000000000..2f5f4fef71 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Tap_vs_swipe.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + +

events: tap, doubleTap, longTap, swipe

+

properties: longTapThreshold, doubleTapThreshold

+

You can also detect if the user simply taps and does not swipe with the tap handler

+ The tap, doubleTap and longTap handler are passed the original event object and the target that was clicked. +

+ See also the hold event for when a long tap reaches the longTapThreshold +
+

+

If you use the jquery.ui.ipad.js plugin (http://code.google.com/p/jquery-ui-for-ipad-and-iphone/) you can then also pickup + standard jQuery mouse events on children of the touchSwipe object.

+ +

You can set the delay between taps which defines a double tap, and the length of a long tap with the doubleTapThreshold and longTapThreshold properties.

+ +

Note: If you assign both tap and double tap, you tap events will be delayed by the length of doubleTapThreshold as it waits to see if its a double before trigger the event

+ +

tap replaces the old click handler for naming consistency. Since the introduction of event + triggering as well as callbacks, the plugin cannot trigger a click event as it clashes with the jQ click event, + so both the event and callback are called tap. For backwards compatibility, the click callback will still work + but there is no click event. You must use the tap event when binding with on or bind

+ + + +

+			
+			
+			
+
Swipe, Tap, Double Tap or Long Tap me

+

Im just a child div

+

Im a child div with my own jQuery click handler

+
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Thresholds.html b/phpgwapi/js/jquery/TouchSwipe/demos/Thresholds.html new file mode 100644 index 0000000000..4279cea1c9 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Thresholds.html @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + + + + + +

property: threshold

+

By setting the threshold you can set how far the user must swipe before it is considered a swipe.
Swipe at least 200px

+ + +

+			
+			
+			
Swipe me for at least 200 px
+ +

property: cancelThreshold

+

By setting the cancelThreshold you can set the minimum distance in px that the user needs to swipe back to cancel the current swipe, even if they have passed the main threshold

+ + +
			
+			
Swipe me for at least 200 px, then back 10px to cancel
+ +

property: maxTimeThreshold

+

By setting the maxTimeThreshold you can set the maximum time the user has to complete the swipe. A swipe LONGER than this is cancelled. This can be useful for ignoring long slow swipes.
Swipe in under 500ms

+ + +
			
+			
Swipe me within 1000 ms
+ + + +

+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/Trigger_handlers.html b/phpgwapi/js/jquery/TouchSwipe/demos/Trigger_handlers.html new file mode 100644 index 0000000000..1064d60e6a --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/Trigger_handlers.html @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + touchSwipe + + + Fork me on GitHub +
+ + + + + + + + + + +

properties: triggerOnTouchEnd, triggerOnTouchLeave

+

With triggerOnTouchEnd you can trigger the swipe end handler either when the user releases (default) or when the user has swiped the distance / time of the thresholds (but is still swiping).

+

With triggerOnTouchLeave you can end the event if the user swipes off the element

+ + +

Swipe below, and the swipeEnd handler will trigger when you have swiped 200 px.

+ + +
		
+			
+			
Swipe over 200px and the swipe event will fire
+ +

+			
+					
+			
Swipe in under 5000ms and the swipe event will fire
+ +

+			
+			
+			
Swipe out of this box and the swipe event will end
+ +

+			
+			
+			
Time, distance and trigger on END and trigger on Leave set..
+ + +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/css/main.css b/phpgwapi/js/jquery/TouchSwipe/demos/css/main.css new file mode 100644 index 0000000000..2b22479986 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/css/main.css @@ -0,0 +1,110 @@ +.pagination +{ + width:100%; + margin-top:20px; + margin-bottom:20px; +} + +.clear +{ + clear:both; +} + +.pagination a +{ + font-size: 12px; + line-height: 18px; +} + +.container +{ + max-width:768px; + margin-bottom:20px; +} + +.box +{ + margin-top:20px; + margin-bottom:20px; + max-width:768px; + height:300px; + + padding: 10px; + background-color: #EEE; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + + text-align:center; + font-weight: 300; + font-size: 20px; + line-height: 36px; + + overflow:hidden; +} + +body +{ + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 13px; + line-height: 18px; + color: #333; +} + +h1 +{ + margin-top:36px; + margin-bottom:5px; +} + +h2 +{ + font-size: 30px; + line-height: 36px; + font-weight: 300; + margin-bottom:0px; + +} + +h3 +{ + margin-top:0px; + font-size: 18px; + line-height: 24px; + font-weight: 300; + color:#999; +} + +h4 +{ + margin-top:0px; + font-size: 12px; + line-height: 24px; + font-weight: 300; + color:#333; +} + +a +{ + text-decoration:none; + color:#333; +} + +p { + margin-top:10px; +} + +.prettyprint { + font-size:10px; +} + +.example_btn { + margin-bottom:10px; +} + +.properties code, +.methods code, +.events code { + cursor: pointer; + text-decoration: underline; +} \ No newline at end of file diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/index.html b/phpgwapi/js/jquery/TouchSwipe/demos/index.html new file mode 100644 index 0000000000..7583900884 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/index.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + touchSwipe + + + + + + + Fork me on GitHub +
+ + +

Features

+
    +
  • Detects swipes in 4 directions, "up", "down", "left" and "right"
  • +
  • Detects pinches "in" and "out"
  • +
  • Supports single finger or double finger touch events
  • +
  • Supports click events both on the touchSwipe object and its child objects
  • +
  • Definable threshold / maxTimeThreshold to determin when a gesture is actually a swipe
  • +
  • Events triggered for swipe "start","move","end" and "cancel"
  • +
  • End event can be triggered either on touch release, or as soon as threshold is met
  • +
  • Allows swiping and page scrolling
  • +
  • Disables user input elements (Button, form, text etc) from triggering swipes
  • + +
+ +

Docs

+ + +

Options

+ + +

Demos

+ + + +
+
+ + + + + + + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/js/jquery.ui.ipad.js b/phpgwapi/js/jquery/TouchSwipe/demos/js/jquery.ui.ipad.js new file mode 100644 index 0000000000..bbfef077a5 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/js/jquery.ui.ipad.js @@ -0,0 +1,223 @@ +/** +* jQuery.UI.iPad plugin +* Copyright (c) 2010 Stephen von Takach +* licensed under MIT. +* Date: 27/8/2010 +* +* Project Home: +* http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ +*/ + + +$(function() { + // + // Extend jQuery feature detection + // + $.extend($.support, { + touch: typeof Touch == "object" + }); + + // + // Hook up touch events + // + if ($.support.touch) { + document.addEventListener("touchstart", iPadTouchHandler, false); + document.addEventListener("touchmove", iPadTouchHandler, false); + document.addEventListener("touchend", iPadTouchHandler, false); + document.addEventListener("touchcancel", iPadTouchHandler, false); + } +}); + + +var lastTap = null; // Holds last tapped element (so we can compare for double tap) +var tapValid = false; // Are we still in the .6 second window where a double tap can occur +var tapTimeout = null; // The timeout reference + +function cancelTap() { + tapValid = false; +} + + +var rightClickPending = false; // Is a right click still feasible +var rightClickEvent = null; // the original event +var holdTimeout = null; // timeout reference +var cancelMouseUp = false; // prevents a click from occuring as we want the context menu + + +function cancelHold() { + if (rightClickPending) { + window.clearTimeout(holdTimeout); + rightClickPending = false; + rightClickEvent = null; + } +} + +function startHold(event) { + if (rightClickPending) + return; + + rightClickPending = true; // We could be performing a right click + rightClickEvent = (event.changedTouches)[0]; + holdTimeout = window.setTimeout("doRightClick();", 800); +} + + +function doRightClick() { + rightClickPending = false; + + // + // We need to mouse up (as we were down) + // + var first = rightClickEvent, + simulatedEvent = document.createEvent("MouseEvent"); + simulatedEvent.initMouseEvent("mouseup", true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, 0, null); + first.target.dispatchEvent(simulatedEvent); + + // + // emulate a right click + // + simulatedEvent = document.createEvent("MouseEvent"); + simulatedEvent.initMouseEvent("mousedown", true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, 2, null); + first.target.dispatchEvent(simulatedEvent); + + // + // Show a context menu + // + simulatedEvent = document.createEvent("MouseEvent"); + simulatedEvent.initMouseEvent("contextmenu", true, true, window, 1, first.screenX + 50, first.screenY + 5, first.clientX + 50, first.clientY + 5, + false, false, false, false, 2, null); + first.target.dispatchEvent(simulatedEvent); + + + // + // Note:: I don't mouse up the right click here however feel free to add if required + // + + + cancelMouseUp = true; + rightClickEvent = null; // Release memory +} + + +// +// mouse over event then mouse down +// +function iPadTouchStart(event) { + var touches = event.changedTouches, + first = touches[0], + type = "mouseover", + simulatedEvent = document.createEvent("MouseEvent"); + // + // Mouse over first - I have live events attached on mouse over + // + simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, 0, null); + first.target.dispatchEvent(simulatedEvent); + + type = "mousedown"; + simulatedEvent = document.createEvent("MouseEvent"); + + simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, 0, null); + first.target.dispatchEvent(simulatedEvent); + + + if (!tapValid) { + lastTap = first.target; + tapValid = true; + tapTimeout = window.setTimeout("cancelTap();", 600); + startHold(event); + } + else { + window.clearTimeout(tapTimeout); + + // + // If a double tap is still a possibility and the elements are the same + // Then perform a double click + // + if (first.target == lastTap) { + lastTap = null; + tapValid = false; + + type = "click"; + simulatedEvent = document.createEvent("MouseEvent"); + + simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, 0/*left*/, null); + first.target.dispatchEvent(simulatedEvent); + + type = "dblclick"; + simulatedEvent = document.createEvent("MouseEvent"); + + simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, 0/*left*/, null); + first.target.dispatchEvent(simulatedEvent); + } + else { + lastTap = first.target; + tapValid = true; + tapTimeout = window.setTimeout("cancelTap();", 600); + startHold(event); + } + } +} + +function iPadTouchHandler(event) { + var type = "", + button = 0; /*left*/ + + if (event.touches.length > 1) + return; + + switch (event.type) { + case "touchstart": + if ($(event.changedTouches[0].target).is("select")) { + return; + } + iPadTouchStart(event); /*We need to trigger two events here to support one touch drag and drop*/ + event.preventDefault(); + return false; + break; + + case "touchmove": + cancelHold(); + type = "mousemove"; + event.preventDefault(); + break; + + case "touchend": + if (cancelMouseUp) { + cancelMouseUp = false; + event.preventDefault(); + return false; + } + cancelHold(); + type = "mouseup"; + break; + + default: + return; + } + + var touches = event.changedTouches, + first = touches[0], + simulatedEvent = document.createEvent("MouseEvent"); + + simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, button, null); + + first.target.dispatchEvent(simulatedEvent); + + if (type == "mouseup" && tapValid && first.target == lastTap) { // This actually emulates the ipads default behaviour (which we prevented) + simulatedEvent = document.createEvent("MouseEvent"); // This check avoids click being emulated on a double tap + + simulatedEvent.initMouseEvent("click", true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, + false, false, false, false, button, null); + + first.target.dispatchEvent(simulatedEvent); + } +} + + diff --git a/phpgwapi/js/jquery/TouchSwipe/demos/js/main.js b/phpgwapi/js/jquery/TouchSwipe/demos/js/main.js new file mode 100644 index 0000000000..a03764fac6 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/demos/js/main.js @@ -0,0 +1,240 @@ +String.prototype.trim = function() { + return this.replace(/^\s+|\s+$/g,""); +} +String.prototype.trimLeft = function() { + return this.replace(/^\s+/,""); +} +String.prototype.trimRight = function() { + return this.replace(/\s+$/,""); +} + + +//Demos file list (in order of presentation) +//THe page name is formed from the file name. +var fileList = [ + 'Basic_swipe.html', + 'Single_swipe.html', + 'Any_finger_swipe.html', + 'Finger_swipe.html', + 'Swipe_status.html', + 'Pinch.html', + 'Pinch_status.html', + 'Pinch_and_Swipe.html', + 'Trigger_handlers.html', + 'Stop_propegation.html', + 'Handlers_and_events.html', + 'Tap_vs_swipe.html', + 'Hold.html', + 'Excluded_children.html', + 'Page_zoom.html', + 'Thresholds.html', + 'Enable_and_destroy.html', + 'Page_scrolling.html', + 'Options.html', + 'Image_gallery_example.html' +]; + + +/** + * Builds the demo page + */ +function init() { + buildTitle(); + buildCodeExample(); + buildNavigation(); +} + +/** + * Creates the navigation components + */ +function buildNavigation() { + $('.navigation').each(function( index ) { + $(this).html( getNavigation() ); + }); + + $('.navigation_menu').each(function( index ) { + $(this).html( getNavigationMenu() ); + }) + + $('.navigation_list').each(function( index ) { + $(this).html( getNavigationList() ); + }) + + + $('#menu').change( function() { + location.href=$(this).val(); + }); + + $('#menu li').click( function() { + location.href=$(this).val(); + }); + + $('.example_btn').click( function() { + $(document).scrollTop( $("#test").offset().top ); + }); + + $('.events code').click( function() { + location.href = '../docs/symbols/%24.fn.swipe.html#event:' + $(this).text(); + }); + + $('.properties code').click( function() { + location.href = '../docs/symbols/%24.fn.swipe.defaults.html#' + $(this).text(); + }); + + $('.methods code').click( function() { + location.href = '../docs/symbols/%24.fn.swipe.html#' + $(this).text(); + }); +} + +/** + * Builds the title element + */ +function buildTitle() { + $('.title').each(function( index ) { + $(this).html( getTitle() ); + }) +} + +/** + * Copies the + + + + + + +
+ + +
+
+
+ +
+ +
+ +
+

File Index

+ + +
+ +
+
+ No description. +
+ +
+
+ +
+
+
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+ +
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/img/class.png b/phpgwapi/js/jquery/TouchSwipe/docs/img/class.png new file mode 100644 index 0000000000000000000000000000000000000000..7eb9c78a6db940c56b6c6a184620f23aff38338b GIT binary patch literal 1192 zcmV;Z1XufsP)ala^wVXq|iBVvK z@V7(Hr|OF9I6Asn207#v#r?%lg^(H3JfVX=Jacg1Mon>@+Nowi=0RB!1`)Bj+{p_d zZ|a6MV(BdUgYv@7s&Jj!sb=Qkhh#|@WDGaEMLEMc-OvqdglE~2V#tEHy~ie+EH1t) zi^5BY*itK$GenfuP3ud6neTt|c3`0>u3J01X-Qrh@<_tV4AECFlrx+tl{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PlAMX5BsY9%oN-v!C5+lftQDmAA}nQ`ECQQ_Gq**3!8&!snfkBBQE%p$L+gS?8OHbvTVj# bMrMe|4K6AD2Ob$s{+uv;gXkA%Vab02I^ERx literal 0 HcmV?d00001 diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/img/event.png b/phpgwapi/js/jquery/TouchSwipe/docs/img/event.png new file mode 100644 index 0000000000000000000000000000000000000000..4e05fd0c2d97f03d4c53f4012fc45976976a2b42 GIT binary patch literal 1938 zcmeAS@N?(olHy`uVBq!ia0vp^>Oic)!3HF2zdn8dq$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~;1FfglRhD4M^`1)8S=jZArg4F0$^BXQ!4Z zB&DWj=GiK}-@RW+Av48RDcsc8z_-9TH6zobswg$M$}c3jDm&RSMakYy!KT6rXh3di zNuokUZcbjYRfVk**jy_h8zii+qySb@l5ML5aa4qFfP!;=QL2Keo`G(%ftjI#nTejE ziGihwrH+D;fuVuEp^?6Uxvrssm8rRvfuRBvC;@FNN=dT{a&d#&1?1T(Wt5Z@Sn2DR zmzV368|&p4rRy77T3YHG80i}s=>k>g7FXt#Bv$C=6)VF`a7isrF3Kz@$;{7F0GXJW zlwVq6s|0i@#0$9vaAWg|p}_eNv z%sh|?Sck8#m1kaYNn&1ds;7&s63`62%*+%k3v&ZECnqygQ%gq^Lqk_1OAA*MXG;?! zCu2)j3lkS7m|mCsATTy7S7Vv}%>KV6kDy}4o%$bbPrsI)+B``~Rpzwhyg8fZRhNJM{=8}1>81x( z{TZic9GW*VbS1Myw8>xgM=iNl%^43rGtch%T-;UtVehl0SuSs0#IF-*br{L1N2IHykr0>`m$!V>7yJFi8#ZzU$ z{-uHby6b*fI_&YVy=g!1pzU!pDRJh97FnKC-U=-a5*LnOZV`F$aL4SzU&oDhY?mks zi@DBzT|Y^nde*&t?JJf~b6Cq%*mLilx!@)JFZX{Rb_u+*tbgmTD&aCO!%FFe(+g89S&8@B!Sx&%E*ot_QuQp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Jz|>%X-t`vi-%WweXCh_LhI#bUg2*pcP~R z*RuTUzBKLXO~~uMd&o$v3@d0shHfUjC6c539PE6rF&;Ufa(Rw@K1*m7?f5)t`MjH0 z)_V(cajV5Am>f!kWcI@5rE8t6$S>5M=k=aRZROH6fA^jJp~2NlR4;Q2>L$7F#RT#9 z>4@1RhWG`Khy>P2j1Yx^BBL{S`niMaxlSWV-JBU0-T9zZ%>7mR3l$~QV$({o0;jTI ze5=cN^!Bc2bT|BcojXp~K#2cM>OTe*cM{Kg-j*CkiW)EGQot^}s;cy8_1_@JA0Whq zlrNr+R;Efa+`6N)s5rH*|E)nYZ3uqkk2C(E7@A|3YI`ozP~9Lexx#*1(r8luq+YPk z{J}c$s` zPM35Fx(YWB3Z5IYnN+L_4|jaR(5iWJi2~l&xy}aU7kW?o-V*6Av2wyZTG!E2KSW2* zGRLQkQU;Oz##ie-Z4fI)WSRxn$(ZcD;TL+;^r=a4(G~H3ZhK$lSXZj?cvyY8%d9JM zzc3#pD^W_QnWy#rx#;c&N@sqHhrnHRmj#i;s%zLm6SE(n&BWpd&f7>XnjV}OlZntI70fq%8~9<7 zMYaw`E-rp49-oC1N_uZTo)Cu%RR2QWdHpzQIcNsoDp`3xfP+`gI?tVQZ4X={qU?(n zV>0ASES^Xuc;9JBji{)RnFL(Lez;8XbB1uWaMp@p?7xhXk6V#!6B@aP4Rz7-K%a>i z?fvf}va_DGUXlI#4--`A3qK7J?-HwnG7O~H2;zR~RLW)_^#La!=}+>KW#anZ{|^D3 B7G?kd literal 0 HcmV?d00001 diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/img/glyphicons-halflings.png b/phpgwapi/js/jquery/TouchSwipe/docs/img/glyphicons-halflings.png new file mode 100644 index 0000000000000000000000000000000000000000..79bc568c21395d5a5ceab62fadb04457094b2ac7 GIT binary patch literal 13826 zcma)jby!@B+o%-915yyF0YFyB4?Ne(CRg z-#O<#&wb84`D17H-t*49Gi$BAvS#fBDJx22pcA4aAt7PN%1Ed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@) zM(jp3}a6rP@=sC1ZvM zV)jL-HO|elZ@x|hHXkrmGu9uS2%=Jqa zgIqpCmA+s{=XewW1!LqE)3%%mIO z(8jQbk;xApH`iS0;h7M96j^_3N=#|-xP-=*>3=obmL(W)Au>jdy3E<UjD;R zOI^Va(lW(qH`MjF&}RqCOifgKKA39SANA9=Qv4z+3Qey|4BJBzex_v%9=l5D-xJaG`?IF#?EKul!io4R+`>v>t_65&VXqROwiMr@*>SD)gNHL4^Ml5(vgCqodJjd$~XNSPzt@GziL=mgy;Y+qBZh&1qKxwm{>$kMCyH2rN?F2%^-bX#z9QBC| zNx?aIaFXEMqAKsMWDfWB@Pt3@$5LZ%DVDT70icB1BXM`F_#4rYqTkpk%wf tVgFekgZM{XhA!KlmFcR^%iaf4$rSfz)nO-hfB%&wE2$_^D)!aq{{YOB6}SKZ literal 0 HcmV?d00001 diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/img/interface.png b/phpgwapi/js/jquery/TouchSwipe/docs/img/interface.png new file mode 100644 index 0000000000000000000000000000000000000000..72b6f8a69f03b98fcb29b0f26a078440d07e8b03 GIT binary patch literal 1190 zcmV;X1X=ruP)iqwtKy9zvzmAJU=O4Usv2k`_}rS}hHE;uiry{VqDO2YWI)-C;BY(|ABsnA^)yfQ-6$&VWUX3O;-n*zOKJsC z*=irYT*(WDW(?lc`PeJp$qNPHPS&brrB3Q{IHgt+XlvdmyV2qsrfv*|b?(iCToHHb zKzk`+OQ-0PUINi=#X>Dt@_bw~K4siG{@hn5!WnS`^=gSXh7Qr=JPe}pHA5{&&c&np zK*Wu{!>8q&X}IC1RIfxrhr=bdkwDwl4P`f4eBIRI{RUfo%@cA&005quF)TLc3D7nQ z1^@(T7Mt@tGh+a@ul2K?Es}J{ov%r5@l7~{s&!MDR?vvW-#7mL>!TMh4;f3?qZN(2 z1GA$)rq-(WsLs3YrZ=2!>2(O?TQii!Aw6b%_~#$|f&9Cyr%w4Rn|702*}woUSWJo? z`Q={KZIZ%^oKX!!i-m~ZBm>ne$D**N+amidDSh5@%|0%U0@q?ka zMVIt41lnEz>RMbgJ~5czZJv-LsZ*-&;KK|-1+XVMX2&H4LFWNeu_FiS)e=vP+9i+F zmeW$hJZD6W{-~Qzq%IXn6yQ)8ymy&nC0sV-sRQk$fVWF>Ia@O>(#-RQrVj#D1xG_J(fJUamg^~@l2odO;K=bl}%i}*~I0WOszS zpiZr9+zEohz?17GBH&vv6nS>+a_YEfFI+6xuT~to4}zsI@WdLTzK10!^3{=FSDIgj zTS6upYW=r2-tVwjE!IgRf#M%bf#kqHW4~mo`(Io#ix1f6uWEY0!K^Y+lRpYmCXpNn zj$K+!eOBBOGB|n(z+?WZgAY0^LCxhLNsP0mV99~t_{G)sUbWsi!9K&p|N#zME_Q1u4Jyn-7BG_5c6?07*qoM6N<$ Ef=-Pz6aWAK literal 0 HcmV?d00001 diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/img/namespace.png b/phpgwapi/js/jquery/TouchSwipe/docs/img/namespace.png new file mode 100644 index 0000000000000000000000000000000000000000..399998ef1b56d0738be3fe21738cef364f714f62 GIT binary patch literal 1191 zcmV;Y1X%ltP)OkbqcJXv2hvV_ss8r?IH=2G77ld0t@oCke*AWR%-l#OA3|Vn=RH}3?6LMADrM{!C zB1i0fMRnE_iIR;%t%3~NR&-=Ou6^=$>vxfixbZ+mv1RHVidN($qSDPmr6YOHj?D*D z-RwT*ow~mQH|8(j<@S_y2-Vp@BzA8VDjg~BNh>-W4$XGg`eq&o0N{Oy+tLmKh;A2b zF;QFELEeWrkn&hBUMzRG{@eSW>L_X^5)W^ch*|z?#peei58e6f`0<%|qE5Z_#Rpph zkzbOVzwtk++3rV9DGujJB2l)9s98H6J+FlS`Sexa-?8MeKCkN_^?Kb5=9>T;smL$= z6}slqTU1Sdmq_g0K-3*8W_})vnEh}0rp#0nKn92oE#Q`C-4ud-%|nr2lP8S%%Xhgv zWo<%rHVP7Z@)K=n_l~aP)NJWkZDvGUW zQM=;M8*({nn0d~Qo5QMez9;#pSVA!w09B;UTLYIFd8zNHOLs(1tEyg?>5yiYLCZ2n z&A9Vi>LHs6l_f6G#Wx^fvqy~)o#V6PE~cDSng%b`>wX#n z2AG~*ciXIR>maXm*OZcOpHUU(E0!JomQCes>J=#$RDQVST$f;@eK`EvdW}5|?gIj3 z0I1A$lYDWBtcffHm53++1^|@;G~Ms@Oe7cky`BjHnl1ze6pjM`FyVzvzw^z8;5I8e zxO}sN%Qri?e6xegH$stOKL}U18?qvVtBMr+)l(yLe*t)Tz+3W|1REe6*)|m8djT?< zhl95PKuy$}1Hsz>YI>VW$|2bx;H9lI;RgsZ+6IF&$#pfgak1e@Z@uSn2p9ysxQVEr zAYrtPg#KJ@JPo&mT$oVZ-{^S)68??4X#fB*eujXrbtv>lroJ_CiL@*%aJawG{UkH_ z0aO*>nj~Uh%W(KsHqGne5@{I<-vaP_Uz7VONb)1Mi{y0(_O%X%f6rk~_P9hAH+Zh6 z!F@mw{24!3h;K-SFPm?T4Z$U{xMAhemwIy6_~#(k{12(5{d*o?Wvu`J002ovPDHLk FV1graDpCLd literal 0 HcmV?d00001 diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/index.html b/phpgwapi/js/jquery/TouchSwipe/docs/index.html new file mode 100644 index 0000000000..f685c9259a --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/index.html @@ -0,0 +1,386 @@ + + + + + + JsDoc Reference - Index + + + + + + + + + + + + + +
+ +
+ +
+
+
+ +
+ +
+ +
+

Class Index

+
+ +
+
+ $ + ( ) + + + + + + + +
+
+
+
+ See (http://jquery.com/). + code » +
+ + + + + + + +
+
+
+ +
+
+ fn + ( ) + + + + + + + Static +
+
+
+
+ See (http://jquery.com/) + code » +
+ + + + + + + +
+
+
+ +
+
+ swipe + ( Mixed method ) + + + + + + + Static +
+
+
+
+ Applies TouchSwipe behaviour to one or more jQuery objects. +The TouchSwipe plugin can be instantiated via this method, or methods within +TouchSwipe can be executed via this method as per jQuery plugin architecture. + code » +
+ + + + + +
+ See + + TouchSwipe + +
+ + + +
+ + Parameters +
+ +
method : Mixed
+
If the current DOMNode is a TouchSwipe object, and method is a TouchSwipe method, then +the method is executed, and any following arguments are passed to the TouchSwipe method. +If method is an object, then the TouchSwipe class is instantiated on the current DOMNode, passing the +configuration properties defined in the object. See TouchSwipe
+ +
+ + +
+ +
+
+
+ +
+
+ defaults + ( ) + + + + + + + Static +
+
+
+
+ The default configuration, and available options to configure touch swipe with. +You can set the default values by updating any of the properties prior to instantiation. + code » +
+ + + + + + + +
+
+
+ +
+
+ directions + ( ) + + + + + + + Static +
+
+
+
+ The direction constants that are passed to the event handlers. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + code » +
+ + + + + + + +
+
+
+ +
+
+ fingers + ( ) + + + + + + + Static +
+
+
+
+ Constants representing the number of fingers used in a swipe. These are used to set both the value of fingers in the +options object, as well as the value of the fingers event property. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + code » +
+ + + + + + + + + +
+
+
+ +
+
+ pageScroll + ( ) + + + + + + + Static +
+
+
+
+ The page scroll constants that can be used to set the value of allowPageScroll option +These properties are read only + code » +
+ + + + + + + + + +
+
+
+ +
+
+ phases + ( ) + + + + + + + Static +
+
+
+
+ The phases that a touch event goes through. The phase is passed to the event handlers. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + code » +
+ + + + + + + +
+
+
+ +
+
+ _global_ + ( ) + + + + + + + +
+
+
+
+ No description. + +
+ + + + + + + +
+
+
+ +
+
+
+
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ + diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/js/accordion.js b/phpgwapi/js/jquery/TouchSwipe/docs/js/accordion.js new file mode 100644 index 0000000000..fbb9444266 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/js/accordion.js @@ -0,0 +1,13 @@ +// This script licensed under the MIT. +// http://orgachem.mit-license.org + +/** + * @fileoverview A script for accordion effects. + * @author orga.chem.job@gmail.com (Orga Chem) + */ + +$(function() { + $('.accordion-button').click(function() { + $(this).find('.accordion-content').slideToggle(); + }); +}); diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/js/jquery-1.7.2.min.js b/phpgwapi/js/jquery/TouchSwipe/docs/js/jquery-1.7.2.min.js new file mode 100644 index 0000000000..16ad06c5ac --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/js/jquery-1.7.2.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
"+""+"
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/js/prettify.js b/phpgwapi/js/jquery/TouchSwipe/docs/js/prettify.js new file mode 100644 index 0000000000..eef5ad7e6a --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/js/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p + + + + + JsDoc Reference - $.fn + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Class $.fn + + + + + + +

+ + +
+ +
+ + +
+ + Constructor + + + + + + + + + + + +
+ + +

+

Constructor

+
+
+
+ fn + ( ) + + + + + + + Static +
+
+
+
+ See (http://jquery.com/) + code » +
+ + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:56 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.defaults.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.defaults.html new file mode 100644 index 0000000000..f097f02f6f --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.defaults.html @@ -0,0 +1,910 @@ + + + + + + JsDoc Reference - $.fn.swipe.defaults + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Namespace $.fn.swipe.defaults + + + + + + +

+ + +
+ +
+ + +
+ + + + + Instance members + + + + + + + + +
+ + +

Namespace

+
+
+
+ $.fn.swipe.defaults + + + + + + Static +
+
+
+ The default configuration, and available options to configure touch swipe with. +You can set the default values by updating any of the properties prior to instantiation. + + code » + +
+
+
+
+ + + + + +

+

Instance members

+ + +

Instance PropertiesDefined By

+
+ +
+
+ (function) + + + + + + + $.fn.swipe.defaults +
+
+
+
+ [hold=null] A handler triggered when a user reaches longTapThreshold on the item. See $.fn.swipe.defaults#longTapThreshold + code » +
+ + + + + + + +
+
+
+ +
+
+ allowPageScroll + : string|undefined + (default = 'auto') + + + + + $.fn.swipe.defaults +
+
+
+
+ How the browser handles page scrolls when the user is swiping on a touchSwipe object. See $.fn.swipe.pageScroll.

+ "auto" : all undefined swipes will cause the page to scroll in that direction.
+ "none" : the page will not scroll when user swipes.
+ "horizontal" : will force page to scroll on horizontal swipes.
+ "vertical" : will force page to scroll on vertical swipes.
+ code » +
+ + + + + + + +
+
+
+ +
+
+ cancelThreshold + : int + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ The number of pixels that the user must move their finger back from the original swipe direction to cancel the gesture. + code » +
+ + + + + + + +
+
+
+ +
+
+ doubleTap + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered when a user double taps on the item. The delay between taps can be set with the doubleTapThreshold property. See $.fn.swipe.defaults#doubleTapThreshold + code » +
+ + + + + + + +
+
+
+ +
+
+ doubleTapThreshold + : int + (default = 200) + + + + + $.fn.swipe.defaults +
+
+
+
+ Time in milliseconds between 2 taps to count as a double tap + code » +
+ + + + + + + +
+
+
+ +
+
+ excludedElements + : string + (default = "button, input, select, textarea, a, .noSwipe") + + + + + $.fn.swipe.defaults +
+
+
+
+ A jquery selector that specifies child elements that do NOT trigger swipes. By default this excludes all form, input, select, button, anchor and .noSwipe elements. + code » +
+ + + + + + + +
+
+
+ +
+
+ fallbackToMouseEvents + : boolean + (default = true) + + + + + $.fn.swipe.defaults +
+
+
+
+ If true mouse events are used when run on a non touch device, false will stop swipes being triggered by mouse events on non tocuh devices. + code » +
+ + + + + + + +
+
+
+ +
+
+ fingerReleaseThreshold + : int + (default = 250) + + + + + $.fn.swipe.defaults +
+
+
+
+ Time in milliseconds between releasing multiple fingers. If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release. + code » +
+ + + + + + + +
+
+
+ +
+
+ fingers + : int + (default = 1) + + + + + $.fn.swipe.defaults +
+
+
+
+ The number of fingers to detect in a swipe. Any swipes that do not meet this requirement will NOT trigger swipe handlers. + code » +
+ + + + + + + +
+
+
+ +
+
+ longTap + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered when a user long taps on the item. The delay between start and end can be set with the longTapThreshold property. See $.fn.swipe.defaults#longTapThreshold + code » +
+ + + + + + + +
+
+
+ +
+
+ longTapThreshold + : int + (default = 500) + + + + + $.fn.swipe.defaults +
+
+
+
+ Time in milliseconds between tap and release for a long tap + code » +
+ + + + + + + +
+
+
+ +
+
+ maxTimeThreshold + : int + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe. + code » +
+ + + + + + + +
+
+
+ +
+
+ pinchIn + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered for pinch in events. See $.fn.swipe#event:pinchIn + code » +
+ + + + + + + +
+
+
+ +
+
+ pinchOut + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered for pinch out events. See $.fn.swipe#event:pinchOut + code » +
+ + + + + + + +
+
+
+ +
+
+ pinchStatus + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered for every phase of a pinch. See $.fn.swipe#event:pinchStatus + code » +
+ + + + + + + +
+
+
+ +
+
+ pinchThreshold + : int + (default = 20) + + + + + $.fn.swipe.defaults +
+
+
+
+ The number of pixels that the user must pinch their finger by before it is considered a pinch. + code » +
+ + + + + + + +
+
+
+ +
+
+ swipe + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler to catch all swipes. See $.fn.swipe#event:swipe + code » +
+ + + + + + + +
+
+
+ +
+
+ swipeDown + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler that is triggered for "down" swipes. See $.fn.swipe#event:swipeDown + code » +
+ + + + + + + +
+
+
+ +
+
+ swipeLeft + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler that is triggered for "left" swipes. See $.fn.swipe#event:swipeLeft + code » +
+ + + + + + + +
+
+
+ +
+
+ swipeRight + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler that is triggered for "right" swipes. See $.fn.swipe#event:swipeRight + code » +
+ + + + + + + +
+
+
+ +
+
+ swipeStatus + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered for every phase of the swipe. See $.fn.swipe#event:swipeStatus + code » +
+ + + + + + + +
+
+
+ +
+
+ swipeUp + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler that is triggered for "up" swipes. See $.fn.swipe#event:swipeUp + code » +
+ + + + + + + +
+
+
+ +
+
+ tap + : function + (default = null) + + + + + $.fn.swipe.defaults +
+
+
+
+ A handler triggered when a user just taps on the item, rather than swipes it. If they do not move, tap is triggered, if they do move, it is not. + code » +
+ + + + + + + +
+
+
+ +
+
+ threshold + : int + (default = 75) + + + + + $.fn.swipe.defaults +
+
+
+
+ The number of pixels that the user must move their finger by before it is considered a swipe. + code » +
+ + + + + + + +
+
+
+ +
+
+ triggerOnTouchEnd + : boolean + (default = true) + + + + + $.fn.swipe.defaults +
+
+
+
+ If true, the swipe events are triggered when the touch end event is received (user releases finger). If false, it will be triggered on reaching the threshold, and then cancel the touch event automatically. + code » +
+ + + + + + + +
+
+
+ +
+
+ triggerOnTouchLeave + : boolean + (default = false) + + + + + $.fn.swipe.defaults +
+
+
+
+ If true, then when the user leaves the swipe object, the swipe will end and trigger appropriate handlers. + code » +
+ + + + + + + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.directions.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.directions.html new file mode 100644 index 0000000000..47da70378e --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.directions.html @@ -0,0 +1,346 @@ + + + + + + JsDoc Reference - $.fn.swipe.directions + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Namespace $.fn.swipe.directions + + + + + + +

+ + +
+ +
+ + +
+ + + + + Instance members + + + + + + + + +
+ + +

Namespace

+
+
+
+ $.fn.swipe.directions + + + + + + Static +
+
+
+ The direction constants that are passed to the event handlers. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + + code » + +
+
+
+
+ + + + + +

+

Instance members

+ + +

Instance PropertiesDefined By

+
+ +
+
+ DOWN + : string + + + + + + $.fn.swipe.directions +
+
+
+
+ Constant indicating the down direction. Value is "cancel". + code » +
+ + + + + + + +
+
+
+ +
+
+ IN + : string + + + + + + $.fn.swipe.directions +
+
+
+
+ Constant indicating the in direction. Value is "in". + code » +
+ + + + + + + +
+
+
+ +
+
+ LEFT + : string + + + + + + $.fn.swipe.directions +
+
+
+
+ Constant indicating the left direction. Value is "left". + code » +
+ + + + + + + +
+
+
+ +
+
+ OUT + : string + + + + + + $.fn.swipe.directions +
+
+
+
+ Constant indicating the out direction. Value is "out". + code » +
+ + + + + + + +
+
+
+ +
+
+ RIGHT + : string + + + + + + $.fn.swipe.directions +
+
+
+
+ Constant indicating the right direction. Value is "right". + code » +
+ + + + + + + +
+
+
+ +
+
+ UP + : string + + + + + + $.fn.swipe.directions +
+
+
+
+ Constant indicating the up direction. Value is "up". + code » +
+ + + + + + + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.fingers.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.fingers.html new file mode 100644 index 0000000000..df5bd5697e --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.fingers.html @@ -0,0 +1,291 @@ + + + + + + JsDoc Reference - $.fn.swipe.fingers + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Namespace $.fn.swipe.fingers + + + + + + +

+ + +
+ +
+ + +
+ + + + + Instance members + + + + + + + + +
+ + +

Namespace

+
+
+
+ $.fn.swipe.fingers + + + + + + Static +
+
+
+ Constants representing the number of fingers used in a swipe. These are used to set both the value of fingers in the +options object, as well as the value of the fingers event property. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + + code » + +
+
+
+
+ + + + + +

+

Instance members

+ + +

Instance PropertiesDefined By

+
+ +
+
+ ALL + : string + + + + + + $.fn.swipe.fingers +
+
+
+
+ Constant indicating any combination of finger are to be detected. Value is "all". + code » +
+ + + + + + + +
+
+
+ +
+
+ ONE + : string + + + + + + $.fn.swipe.fingers +
+
+
+
+ Constant indicating 1 finger is to be detected / was detected. Value is 1. + code » +
+ + + + + + + +
+
+
+ +
+
+ THREE + : string + + + + + + $.fn.swipe.fingers +
+
+
+
+ Constant indicating 3 finger are to be detected / were detected. Value is 1. + code » +
+ + + + + + + +
+
+
+ +
+
+ TWO + : string + + + + + + $.fn.swipe.fingers +
+
+
+
+ Constant indicating 2 fingers are to be detected / were detected. Value is 1. + code » +
+ + + + + + + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.html new file mode 100644 index 0000000000..b74b59264b --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.html @@ -0,0 +1,1402 @@ + + + + + + JsDoc Reference - $.fn.swipe + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Class $.fn.swipe + + + + + + +

+ + +
+ +
+ + +
+ + Constructor + + + + + Instance members + + + + + Static members + + + + + + Events + +
+ + +

+

Constructor

+
+
+
+ swipe + ( Mixed method ) + + + + + + + Static +
+
+
+
+ Applies TouchSwipe behaviour to one or more jQuery objects. +The TouchSwipe plugin can be instantiated via this method, or methods within +TouchSwipe can be executed via this method as per jQuery plugin architecture. + code » +
+ + + + + +
+ See + + TouchSwipe + +
+ + + +
+ + Parameters +
+ +
method : Mixed
+
If the current DOMNode is a TouchSwipe object, and method is a TouchSwipe method, then +the method is executed, and any following arguments are passed to the TouchSwipe method. +If method is an object, then the TouchSwipe class is instantiated on the current DOMNode, passing the +configuration properties defined in the object. See TouchSwipe
+ +
+ + +
+ +
+
+
+
+ + + + + +

+

Instance members

+ +

Instance MethodsDefined By

+
+ +
+
+
+ destroy + ( ) + : DOMNode + + + + + $.fn.swipe +
+
+
+
+
+ Destroy the swipe plugin completely. To use any swipe methods, you must re initialise the plugin. + code » +
+ + +
$("#element").swipe("destroy");
+ + + + + + + + +
+ + + Returns +
+ +
DOMNode
+
The Dom element that was registered with TouchSwipe
+ +
+ +
+ +
+
+
+ +
+
+
+ disable + ( ) + : DOMNode + + + + + $.fn.swipe +
+
+
+
+
+ disables the swipe plugin + code » +
+ + +
$("#element").swipe("disable");
+ + + + + + + + +
+ + + Returns +
+ +
DOMNode
+
The Dom element that is now registered with TouchSwipe
+ +
+ +
+ +
+
+
+ +
+
+
+ enable + ( ) + : DOMNode + + + + + $.fn.swipe +
+
+
+
+
+ re-enables the swipe plugin with the previous configuration + code » +
+ + +
$("#element").swipe("enable");
+ + + + + + + + +
+ + + Returns +
+ +
DOMNode
+
The Dom element that was registered with TouchSwipe
+ +
+ +
+ +
+
+
+ +
+
+
+ option + ( String property, [Object value] ) + : Object + + + + + $.fn.swipe +
+
+
+
+
+ Allows run time updating of the swipe configuration options. + code » +
+ + +
$("#element").swipe("option", "threshold"); // return the threshold
+ +
$("#element").swipe("option", "threshold", 100); // set the threshold after init
+ + + + + + +
+ See + + $.fn.swipe.defaults + +
+ + + +
+ + Parameters +
+ +
property : String
+
The option property to get or set
+ +
value : Object
+
The value to set the property to
+ +
+ + + Returns +
+ +
Object
+
If only a property name is passed, then that property value is returned.
+ +
+ +
+ +
+
+
+ +
+ + + + + + + +

+

Static members

+ +

Nested namespacesDefined By

+
+ +
+
+ + defaults + + + + + + Static + $.fn.swipe +
+
+
+
+ The default configuration, and available options to configure touch swipe with. +You can set the default values by updating any of the properties prior to instantiation. + code » +
+ + + + + + + +
+
+
+ +
+
+ + directions + + + + + + Static + $.fn.swipe +
+
+
+
+ The direction constants that are passed to the event handlers. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + code » +
+ + + + + + + +
+
+
+ +
+
+ + fingers + + + + + + Static + $.fn.swipe +
+
+
+
+ Constants representing the number of fingers used in a swipe. These are used to set both the value of fingers in the +options object, as well as the value of the fingers event property. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + code » +
+ + + + + + + + + +
+
+
+ +
+
+ + pageScroll + + + + + + Static + $.fn.swipe +
+
+
+
+ The page scroll constants that can be used to set the value of allowPageScroll option +These properties are read only + code » +
+ + + + + + + + + +
+
+
+ +
+
+ + phases + + + + + + Static + $.fn.swipe +
+
+
+
+ The phases that a touch event goes through. The phase is passed to the event handlers. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + code » +
+ + + + + + + +
+
+
+ +
+ + + + + + + + + + + +

+

EventsDefined By

+
+ +
+
+
+ + click + ( EventObject event, DomObject target ) + + + + + $.fn.swipe +
+
+
+
+
+ A click handler triggered when a user simply clicks, rather than swipes on an element. +This is deprecated since version 1.6.2, any assignment to click will be assigned to the tap handler. +You cannot use on to bind to this event as the default jQ click event will be triggered. +Use the tap event instead. + code » +
+ + +
+ Deprecated + since version 1.6.2, please use $.fn.swipe#tap instead +
+ + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
target : DomObject
+
The element clicked on.
+ +
+ + +
+ +
+
+
+ +
+
+
+ + doubleTap + ( EventObject event, DomObject target ) + + + + + $.fn.swipe +
+
+
+
+
+ A double tap handler triggered when a user double clicks or taps on an element. +You can set the time delay for a double tap with the $.fn.swipe.defaults#doubleTapThreshold property. +Note: If you set both doubleTap and tap handlers, the tap event will be delayed by the doubleTapThreshold +as the script needs to check if its a double tap. + code » +
+ + + + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
target : DomObject
+
The element clicked on.
+ +
+ + +
+ +
+
+
+ +
+
+
+ + hold + ( EventObject event, DomObject target ) + + + + + $.fn.swipe +
+
+
+
+
+ A hold tap handler triggered as soon as the longTapThreshold is reached +You can set the time delay for a long tap with the $.fn.swipe.defaults#longTapThreshold property. + code » +
+ + + + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
target : DomObject
+
The element clicked on.
+ +
+ + +
+ +
+
+
+ +
+
+
+ + longTap + ( EventObject event, DomObject target ) + + + + + $.fn.swipe +
+
+
+
+
+ A long tap handler triggered once a tap has been release if the tap was longer than the longTapThreshold. +You can set the time delay for a long tap with the $.fn.swipe.defaults#longTapThreshold property. + code » +
+ + + + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
target : DomObject
+
The element clicked on.
+ +
+ + +
+ +
+
+
+ +
+
+
+ + pinchIn + ( EventObject event, int direction, int distance, int duration, int fingerCount, int zoom, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler triggered for pinch in events. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user pinched in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user pinched
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
zoom : int
+
The zoom/scale level the user pinched too, 0-1.
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + pinchOut + ( EventObject event, int direction, int distance, int duration, int fingerCount, int zoom, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler triggered for pinch out events. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user pinched in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user pinched
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
zoom : int
+
The zoom/scale level the user pinched too, 0-1.
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + pinchStatus + ( EventObject event, int direction, int distance, int duration, int fingerCount, int zoom, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler triggered for all pinch events. This handler is constantly fired for the duration of the pinch. This is triggered regardless of thresholds. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user pinched in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user pinched
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
zoom : int
+
The zoom/scale level the user pinched too, 0-1.
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + swipe + ( EventObject event, int direction, int distance, int duration, int fingerCount, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A catch all handler that is triggered for all swipe directions. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user swiped in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user swiped
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + swipeDown + ( EventObject event, int direction, int distance, int duration, int fingerCount, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler that is triggered for "down" swipes. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user swiped in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user swiped
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + swipeLeft + ( EventObject event, int direction, int distance, int duration, int fingerCount, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler that is triggered for "left" swipes. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user swiped in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user swiped
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + swipeRight + ( EventObject event, int direction, int distance, int duration, int fingerCount, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler that is triggered for "right" swipes. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user swiped in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user swiped
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + swipeStatus + ( EventObject event, string phase, string direction, int distance, int duration, int fingerCount, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler triggered for every phase of the swipe. This handler is constantly fired for the duration of the pinch. +This is triggered regardless of swipe thresholds. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
phase : string
+
The phase of the swipe event. See $.fn.swipe.phases
+ +
direction : string
+
The direction the user swiped in. This is null if the user has yet to move. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user swiped. This is 0 if the user has yet to move.
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + swipeUp + ( EventObject event, int direction, int distance, int duration, int fingerCount, object fingerData ) + + + + + $.fn.swipe +
+
+
+
+
+ A handler that is triggered for "up" swipes. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
direction : int
+
The direction the user swiped in. See $.fn.swipe.directions
+ +
distance : int
+
The distance the user swiped
+ +
duration : int
+
The duration of the swipe in milliseconds
+ +
fingerCount : int
+
The number of fingers used. See $.fn.swipe.fingers
+ +
fingerData : object
+
The coordinates of fingers in event
+ +
+ + +
+ +
+
+
+ +
+
+
+ + tap + ( EventObject event, DomObject target ) + + + + + $.fn.swipe +
+
+
+
+
+ A click / tap handler triggered when a user simply clicks or taps, rather than swipes on an element. + code » +
+ + + + + + + +
+ + Parameters +
+ +
event : EventObject
+
The original event object
+ +
target : DomObject
+
The element clicked on.
+ +
+ + +
+ +
+
+
+ +
+ + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.pageScroll.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.pageScroll.html new file mode 100644 index 0000000000..ace2f2e9ce --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.pageScroll.html @@ -0,0 +1,290 @@ + + + + + + JsDoc Reference - $.fn.swipe.pageScroll + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Namespace $.fn.swipe.pageScroll + + + + + + +

+ + +
+ +
+ + +
+ + + + + Instance members + + + + + + + + +
+ + +

Namespace

+
+
+
+ $.fn.swipe.pageScroll + + + + + + Static +
+
+
+ The page scroll constants that can be used to set the value of allowPageScroll option +These properties are read only + + code » + +
+
+
+
+ + + + + +

+

Instance members

+ + +

Instance PropertiesDefined By

+
+ +
+
+ AUTO + : string + + + + + + $.fn.swipe.pageScroll +
+
+
+
+ Constant indicating either horizontal or vertical will be allowed, depending on the swipe handlers registered. Value is "auto". + code » +
+ + + + + + + +
+
+
+ +
+
+ HORIZONTAL + : string + + + + + + $.fn.swipe.pageScroll +
+
+
+
+ Constant indicating horizontal page scrolling is allowed. Value is "horizontal". + code » +
+ + + + + + + +
+
+
+ +
+
+ NONE + : string + + + + + + $.fn.swipe.pageScroll +
+
+
+
+ Constant indicating no page scrolling is allowed. Value is "none". + code » +
+ + + + + + + +
+
+
+ +
+
+ VERTICAL + : string + + + + + + $.fn.swipe.pageScroll +
+
+
+
+ Constant indicating vertical page scrolling is allowed. Value is "vertical". + code » +
+ + + + + + + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.phases.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.phases.html new file mode 100644 index 0000000000..806774f36c --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.fn.swipe.phases.html @@ -0,0 +1,290 @@ + + + + + + JsDoc Reference - $.fn.swipe.phases + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Namespace $.fn.swipe.phases + + + + + + +

+ + +
+ +
+ + +
+ + + + + Instance members + + + + + + + + +
+ + +

Namespace

+
+
+
+ $.fn.swipe.phases + + + + + + Static +
+
+
+ The phases that a touch event goes through. The phase is passed to the event handlers. +These properties are read only, attempting to change them will not alter the values passed to the event handlers. + + code » + +
+
+
+
+ + + + + +

+

Instance members

+ + +

Instance PropertiesDefined By

+
+ +
+
+ PHASE_CANCEL + : string + + + + + + $.fn.swipe.phases +
+
+
+
+ Constant indicating the cancel phase of the touch event. Value is "cancel". + code » +
+ + + + + + + +
+
+
+ +
+
+ PHASE_END + : string + + + + + + $.fn.swipe.phases +
+
+
+
+ Constant indicating the end phase of the touch event. Value is "end". + code » +
+ + + + + + + +
+
+
+ +
+
+ PHASE_MOVE + : string + + + + + + $.fn.swipe.phases +
+
+
+
+ Constant indicating the move phase of the touch event. Value is "move". + code » +
+ + + + + + + +
+
+
+ +
+
+ PHASE_START + : string + + + + + + $.fn.swipe.phases +
+
+
+
+ Constant indicating the start phase of the touch event. Value is "start". + code » +
+ + + + + + + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.html new file mode 100644 index 0000000000..82ee531731 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/$.html @@ -0,0 +1,171 @@ + + + + + + JsDoc Reference - $ + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Class $ + + + + + + +

+ + +
+ +
+ + +
+ + Constructor + + + + + + + + + + + +
+ + +

+

Constructor

+
+
+
+ $ + ( ) + + + + + + + +
+
+
+
+ See (http://jquery.com/). + code » +
+ + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:56 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/_global_.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/_global_.html new file mode 100644 index 0000000000..760bd5f75a --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/_global_.html @@ -0,0 +1,136 @@ + + + + + + JsDoc Reference - _global_ + + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ +

+ + Built-In Namespace _global_ + + + + + + +

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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ diff --git a/phpgwapi/js/jquery/TouchSwipe/docs/symbols/src/jquery.touchSwipe.js.html b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/src/jquery.touchSwipe.js.html new file mode 100644 index 0000000000..b7a079b69d --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/docs/symbols/src/jquery.touchSwipe.js.html @@ -0,0 +1,2126 @@ + + + + + Source - jquery.touchSwipe.js + + + + + + + + + + + +
+ + + + + + +
+
+ +
+ +
+ + +
+ +
+ + +
/*
+* @fileOverview TouchSwipe - jQuery Plugin
+* @version 1.6.6
+*
+* @author Matt Bryson http://www.github.com/mattbryson
+* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
+* @see http://labs.skinkers.com/touchSwipe/
+* @see http://plugins.jquery.com/project/touchSwipe
+*
+* Copyright (c) 2010 Matt Bryson
+* Dual licensed under the MIT or GPL Version 2 licenses.
+*
+*/
+
+/*
+*
+* Changelog
+* $Date: 2010-12-12 (Wed, 12 Dec 2010) $
+* $version: 1.0.0
+* $version: 1.0.1 - removed multibyte comments
+*
+* $Date: 2011-21-02 (Mon, 21 Feb 2011) $
+* $version: 1.1.0 	- added allowPageScroll property to allow swiping and scrolling of page
+*					- changed handler signatures so one handler can be used for multiple events
+* $Date: 2011-23-02 (Wed, 23 Feb 2011) $
+* $version: 1.2.0 	- added click handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler.
+*					- If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object.
+* $version: 1.2.1 	- removed console log!
+*
+* $version: 1.2.2 	- Fixed bug where scope was not preserved in callback methods.
+*
+* $Date: 2011-28-04 (Thurs, 28 April 2011) $
+* $version: 1.2.4 	- Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring.
+*
+* $Date: 2011-27-09 (Tues, 27 September 2011) $
+* $version: 1.2.5 	- Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy)
+*
+* $Date: 2012-14-05 (Mon, 14 May 2012) $
+* $version: 1.2.6 	- Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected
+*
+* $Date: 2012-05-06 (Tues, 05 June 2012) $
+* $version: 1.2.7 	- Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled.
+*
+* $Date: 2012-05-06 (Tues, 05 June 2012) $
+* $version: 1.2.8 	- Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event.
+*
+* $Date: 2012-06-06 (Wed, 06 June 2012) $
+* $version: 1.3.0 	- Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added 'enable', 'disable', and 'destroy' methods
+*
+* $Date: 2012-05-06 (Fri, 05 June 2012) $
+* $version: 1.3.1 	- Bug fixes  - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly.
+*
+* $Date: 2012-29-07 (Sun, 29 July 2012) $
+* $version: 1.3.2	- Added fallbackToMouseEvents option to NOT capture mouse events on non touch devices.
+* 			- Added "all" fingers value to the fingers property, so any combination of fingers triggers the swipe, allowing event handlers to check the finger count
+*
+* $Date: 2012-09-08 (Thurs, 9 Aug 2012) $
+* $version: 1.3.3	- Code tidy prep for minefied version
+*
+* $Date: 2012-04-10 (wed, 4 Oct 2012) $
+* $version: 1.4.0	- Added pinch support, pinchIn and pinchOut
+*
+* $Date: 2012-11-10 (Thurs, 11 Oct 2012) $
+* $version: 1.5.0	- Added excludedElements, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements.
+*
+* $Date: 2012-22-10 (Mon, 22 Oct 2012) $
+* $version: 1.5.1	- Fixed bug with jQuery 1.8 and trailing comma in excludedElements
+*					- Fixed bug with IE and eventPreventDefault()
+* $Date: 2013-01-12 (Fri, 12 Jan 2013) $
+* $version: 1.6.0	- Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture.
+*					- made the demo site all static local HTML pages so they can be run locally by a developer
+*					- added jsDoc comments and added documentation for the plugin	
+*					- code tidy
+*					- added triggerOnTouchLeave property that will end the event when the user swipes off the element.
+* $Date: 2013-03-23 (Sat, 23 Mar 2013) $
+* $version: 1.6.1	- Added support for ie8 touch events
+* $version: 1.6.2	- Added support for events binding with on / off / bind in jQ for all callback names.
+*                   - Deprecated the 'click' handler in favour of tap.
+*                   - added cancelThreshold property
+*                   - added option method to update init options at runtime
+* $version 1.6.3    - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property
+*
+* $Date: 2013-04-04 (Thurs, 04 April 2013) $
+* $version 1.6.4    - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back.
+*
+* $Date: 2013-08-24 (Sat, 24 Aug 2013) $
+* $version 1.6.5    - Merged a few pull requests fixing various bugs, added AMD support.
+*
+* $Date: 2014-06-04 (Wed, 04 June 2014) $
+* $version 1.6.6 	- Merge of pull requests.
+*    				- IE10 touch support 
+*    				- Only prevent default event handling on valid swipe
+*    				- Separate license/changelog comment
+*    				- Detect if the swipe is valid at the end of the touch event.
+*    				- Pass fingerdata to event handlers. 
+*    				- Add 'hold' gesture 
+*    				- Be more tolerant about the tap distance
+*    				- Typos and minor fixes
+*/
+
+/**
+ * See (http://jquery.com/).
+ * @name $
+ * @class 
+ * See the jQuery Library  (http://jquery.com/) for full details.  This just
+ * documents the function and classes that are added to jQuery by this plug-in.
+ */
+ 
+/**
+ * See (http://jquery.com/)
+ * @name fn
+ * @class 
+ * See the jQuery Library  (http://jquery.com/) for full details.  This just
+ * documents the function and classes that are added to jQuery by this plug-in.
+ * @memberOf $
+ */
+
+
+
+(function (factory) {
+    if (typeof define === 'function' && define.amd && define.amd.jQuery) {
+        // AMD. Register as anonymous module.
+        define(['jquery'], factory);
+    } else {
+        // Browser globals.
+        factory(jQuery);
+    }
+}(function ($) {
+	"use strict";
+
+	//Constants
+	var LEFT = "left",
+		RIGHT = "right",
+		UP = "up",
+		DOWN = "down",
+		IN = "in",
+		OUT = "out",
+
+		NONE = "none",
+		AUTO = "auto",
+		
+		SWIPE = "swipe",
+		PINCH = "pinch",
+		TAP = "tap",
+		DOUBLE_TAP = "doubletap",
+		LONG_TAP = "longtap",
+		HOLD = "hold",
+		
+		HORIZONTAL = "horizontal",
+		VERTICAL = "vertical",
+
+		ALL_FINGERS = "all",
+		
+		DOUBLE_TAP_THRESHOLD = 10,
+
+		PHASE_START = "start",
+		PHASE_MOVE = "move",
+		PHASE_END = "end",
+		PHASE_CANCEL = "cancel",
+
+		SUPPORTS_TOUCH = 'ontouchstart' in window,
+		
+		SUPPORTS_POINTER_IE10 = window.navigator.msPointerEnabled && !window.navigator.pointerEnabled,
+		
+		SUPPORTS_POINTER = window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
+
+		PLUGIN_NS = 'TouchSwipe';
+
+
+
+	/**
+	* The default configuration, and available options to configure touch swipe with.
+	* You can set the default values by updating any of the properties prior to instantiation.
+	* @name $.fn.swipe.defaults
+	* @namespace
+	* @property {int} [fingers=1] The number of fingers to detect in a swipe. Any swipes that do not meet this requirement will NOT trigger swipe handlers.
+	* @property {int} [threshold=75] The number of pixels that the user must move their finger by before it is considered a swipe. 
+	* @property {int} [cancelThreshold=null] The number of pixels that the user must move their finger back from the original swipe direction to cancel the gesture.
+	* @property {int} [pinchThreshold=20] The number of pixels that the user must pinch their finger by before it is considered a pinch. 
+	* @property {int} [maxTimeThreshold=null] Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe. 
+	* @property {int} [fingerReleaseThreshold=250] Time in milliseconds between releasing multiple fingers.  If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release. 
+	* @property {int} [longTapThreshold=500] Time in milliseconds between tap and release for a long tap
+	* @property {int} [doubleTapThreshold=200] Time in milliseconds between 2 taps to count as a double tap
+	* @property {function} [swipe=null] A handler to catch all swipes. See {@link $.fn.swipe#event:swipe}
+	* @property {function} [swipeLeft=null] A handler that is triggered for "left" swipes. See {@link $.fn.swipe#event:swipeLeft}
+	* @property {function} [swipeRight=null] A handler that is triggered for "right" swipes. See {@link $.fn.swipe#event:swipeRight}
+	* @property {function} [swipeUp=null] A handler that is triggered for "up" swipes. See {@link $.fn.swipe#event:swipeUp}
+	* @property {function} [swipeDown=null] A handler that is triggered for "down" swipes. See {@link $.fn.swipe#event:swipeDown}
+	* @property {function} [swipeStatus=null] A handler triggered for every phase of the swipe. See {@link $.fn.swipe#event:swipeStatus}
+	* @property {function} [pinchIn=null] A handler triggered for pinch in events. See {@link $.fn.swipe#event:pinchIn}
+	* @property {function} [pinchOut=null] A handler triggered for pinch out events. See {@link $.fn.swipe#event:pinchOut}
+	* @property {function} [pinchStatus=null] A handler triggered for every phase of a pinch. See {@link $.fn.swipe#event:pinchStatus}
+	* @property {function} [tap=null] A handler triggered when a user just taps on the item, rather than swipes it. If they do not move, tap is triggered, if they do move, it is not. 
+	* @property {function} [doubleTap=null] A handler triggered when a user double taps on the item. The delay between taps can be set with the doubleTapThreshold property. See {@link $.fn.swipe.defaults#doubleTapThreshold}
+	* @property {function} [longTap=null] A handler triggered when a user long taps on the item. The delay between start and end can be set with the longTapThreshold property. See {@link $.fn.swipe.defaults#longTapThreshold}
+	* @property (function) [hold=null] A handler triggered when a user reaches longTapThreshold on the item. See {@link $.fn.swipe.defaults#longTapThreshold}
+	* @property {boolean} [triggerOnTouchEnd=true] If true, the swipe events are triggered when the touch end event is received (user releases finger).  If false, it will be triggered on reaching the threshold, and then cancel the touch event automatically. 
+	* @property {boolean} [triggerOnTouchLeave=false] If true, then when the user leaves the swipe object, the swipe will end and trigger appropriate handlers. 
+	* @property {string|undefined} [allowPageScroll='auto'] How the browser handles page scrolls when the user is swiping on a touchSwipe object. See {@link $.fn.swipe.pageScroll}.  <br/><br/>
+										<code>"auto"</code> : all undefined swipes will cause the page to scroll in that direction. <br/>
+										<code>"none"</code> : the page will not scroll when user swipes. <br/>
+										<code>"horizontal"</code> : will force page to scroll on horizontal swipes. <br/>
+										<code>"vertical"</code> : will force page to scroll on vertical swipes. <br/>
+	* @property {boolean} [fallbackToMouseEvents=true] If true mouse events are used when run on a non touch device, false will stop swipes being triggered by mouse events on non tocuh devices. 
+	* @property {string} [excludedElements="button, input, select, textarea, a, .noSwipe"] A jquery selector that specifies child elements that do NOT trigger swipes. By default this excludes all form, input, select, button, anchor and .noSwipe elements. 
+	
+	*/
+	var defaults = {
+		fingers: 1, 		
+		threshold: 75, 	
+		cancelThreshold:null,	
+		pinchThreshold:20,
+		maxTimeThreshold: null, 
+		fingerReleaseThreshold:250, 
+		longTapThreshold:500,
+		doubleTapThreshold:200,
+		swipe: null, 		
+		swipeLeft: null, 	
+		swipeRight: null, 	
+		swipeUp: null, 		
+		swipeDown: null, 	
+		swipeStatus: null, 	
+		pinchIn:null,		
+		pinchOut:null,		
+		pinchStatus:null,	
+		click:null, //Deprecated since 1.6.2
+		tap:null,
+		doubleTap:null,
+		longTap:null, 		
+		hold:null, 
+		triggerOnTouchEnd: true, 
+		triggerOnTouchLeave:false, 
+		allowPageScroll: "auto", 
+		fallbackToMouseEvents: true,	
+		excludedElements:"label, button, input, select, textarea, a, .noSwipe"
+	};
+
+
+
+	/**
+	* Applies TouchSwipe behaviour to one or more jQuery objects.
+	* The TouchSwipe plugin can be instantiated via this method, or methods within 
+	* TouchSwipe can be executed via this method as per jQuery plugin architecture.
+	* @see TouchSwipe
+	* @class
+	* @param {Mixed} method If the current DOMNode is a TouchSwipe object, and <code>method</code> is a TouchSwipe method, then
+	* the <code>method</code> is executed, and any following arguments are passed to the TouchSwipe method.
+	* If <code>method</code> is an object, then the TouchSwipe class is instantiated on the current DOMNode, passing the 
+	* configuration properties defined in the object. See TouchSwipe
+	*
+	*/
+	$.fn.swipe = function (method) {
+		var $this = $(this),
+			plugin = $this.data(PLUGIN_NS);
+
+		//Check if we are already instantiated and trying to execute a method	
+		if (plugin && typeof method === 'string') {
+			if (plugin[method]) {
+				return plugin[method].apply(this, Array.prototype.slice.call(arguments, 1));
+			} else {
+				$.error('Method ' + method + ' does not exist on jQuery.swipe');
+			}
+		}
+		//Else not instantiated and trying to pass init object (or nothing)
+		else if (!plugin && (typeof method === 'object' || !method)) {
+			return init.apply(this, arguments);
+		}
+
+		return $this;
+	};
+
+	//Expose our defaults so a user could override the plugin defaults
+	$.fn.swipe.defaults = defaults;
+
+	/**
+	* The phases that a touch event goes through.  The <code>phase</code> is passed to the event handlers. 
+	* These properties are read only, attempting to change them will not alter the values passed to the event handlers.
+	* @namespace
+	* @readonly
+	* @property {string} PHASE_START Constant indicating the start phase of the touch event. Value is <code>"start"</code>.
+	* @property {string} PHASE_MOVE Constant indicating the move phase of the touch event. Value is <code>"move"</code>.
+	* @property {string} PHASE_END Constant indicating the end phase of the touch event. Value is <code>"end"</code>.
+	* @property {string} PHASE_CANCEL Constant indicating the cancel phase of the touch event. Value is <code>"cancel"</code>.
+	*/
+	$.fn.swipe.phases = {
+		PHASE_START: PHASE_START,
+		PHASE_MOVE: PHASE_MOVE,
+		PHASE_END: PHASE_END,
+		PHASE_CANCEL: PHASE_CANCEL
+	};
+
+	/**
+	* The direction constants that are passed to the event handlers. 
+	* These properties are read only, attempting to change them will not alter the values passed to the event handlers.
+	* @namespace
+	* @readonly
+	* @property {string} LEFT Constant indicating the left direction. Value is <code>"left"</code>.
+	* @property {string} RIGHT Constant indicating the right direction. Value is <code>"right"</code>.
+	* @property {string} UP Constant indicating the up direction. Value is <code>"up"</code>.
+	* @property {string} DOWN Constant indicating the down direction. Value is <code>"cancel"</code>.
+	* @property {string} IN Constant indicating the in direction. Value is <code>"in"</code>.
+	* @property {string} OUT Constant indicating the out direction. Value is <code>"out"</code>.
+	*/
+	$.fn.swipe.directions = {
+		LEFT: LEFT,
+		RIGHT: RIGHT,
+		UP: UP,
+		DOWN: DOWN,
+		IN : IN,
+		OUT: OUT
+	};
+	
+	/**
+	* The page scroll constants that can be used to set the value of <code>allowPageScroll</code> option
+	* These properties are read only
+	* @namespace
+	* @readonly
+	* @see $.fn.swipe.defaults#allowPageScroll
+	* @property {string} NONE Constant indicating no page scrolling is allowed. Value is <code>"none"</code>.
+	* @property {string} HORIZONTAL Constant indicating horizontal page scrolling is allowed. Value is <code>"horizontal"</code>.
+	* @property {string} VERTICAL Constant indicating vertical page scrolling is allowed. Value is <code>"vertical"</code>.
+	* @property {string} AUTO Constant indicating either horizontal or vertical will be allowed, depending on the swipe handlers registered. Value is <code>"auto"</code>.
+	*/
+	$.fn.swipe.pageScroll = {
+		NONE: NONE,
+		HORIZONTAL: HORIZONTAL,
+		VERTICAL: VERTICAL,
+		AUTO: AUTO
+	};
+
+	/**
+	* Constants representing the number of fingers used in a swipe.  These are used to set both the value of <code>fingers</code> in the 
+	* options object, as well as the value of the <code>fingers</code> event property.
+	* These properties are read only, attempting to change them will not alter the values passed to the event handlers.
+	* @namespace
+	* @readonly
+	* @see $.fn.swipe.defaults#fingers
+	* @property {string} ONE Constant indicating 1 finger is to be detected / was detected. Value is <code>1</code>.
+	* @property {string} TWO Constant indicating 2 fingers are to be detected / were detected. Value is <code>1</code>.
+	* @property {string} THREE Constant indicating 3 finger are to be detected / were detected. Value is <code>1</code>.
+	* @property {string} ALL Constant indicating any combination of finger are to be detected.  Value is <code>"all"</code>.
+	*/
+	$.fn.swipe.fingers = {
+		ONE: 1,
+		TWO: 2,
+		THREE: 3,
+		ALL: ALL_FINGERS
+	};
+
+	/**
+	* Initialise the plugin for each DOM element matched
+	* This creates a new instance of the main TouchSwipe class for each DOM element, and then
+	* saves a reference to that instance in the elements data property.
+	* @internal
+	*/
+	function init(options) {
+		//Prep and extend the options
+		if (options && (options.allowPageScroll === undefined && (options.swipe !== undefined || options.swipeStatus !== undefined))) {
+			options.allowPageScroll = NONE;
+		}
+		
+        //Check for deprecated options
+		//Ensure that any old click handlers are assigned to the new tap, unless we have a tap
+		if(options.click!==undefined && options.tap===undefined) {
+		    options.tap = options.click;
+		}
+
+		if (!options) {
+			options = {};
+		}
+		
+        //pass empty object so we dont modify the defaults
+		options = $.extend({}, $.fn.swipe.defaults, options);
+
+		//For each element instantiate the plugin
+		return this.each(function () {
+			var $this = $(this);
+
+			//Check we havent already initialised the plugin
+			var plugin = $this.data(PLUGIN_NS);
+
+			if (!plugin) {
+				plugin = new TouchSwipe(this, options);
+				$this.data(PLUGIN_NS, plugin);
+			}
+		});
+	}
+
+	/**
+	* Main TouchSwipe Plugin Class.
+	* Do not use this to construct your TouchSwipe object, use the jQuery plugin method $.fn.swipe(); {@link $.fn.swipe}
+	* @private
+	* @name TouchSwipe
+	* @param {DOMNode} element The HTML DOM object to apply to plugin to
+	* @param {Object} options The options to configure the plugin with.  @link {$.fn.swipe.defaults}
+	* @see $.fh.swipe.defaults
+	* @see $.fh.swipe
+    * @class
+	*/
+	function TouchSwipe(element, options) {
+        var useTouchEvents = (SUPPORTS_TOUCH || SUPPORTS_POINTER || !options.fallbackToMouseEvents),
+            START_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerDown' : 'pointerdown') : 'touchstart') : 'mousedown',
+            MOVE_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerMove' : 'pointermove') : 'touchmove') : 'mousemove',
+            END_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerUp' : 'pointerup') : 'touchend') : 'mouseup',
+            LEAVE_EV = useTouchEvents ? null : 'mouseleave', //we manually detect leave on touch devices, so null event here
+            CANCEL_EV = (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerCancel' : 'pointercancel') : 'touchcancel');
+
+
+
+		//touch properties
+		var distance = 0,
+			direction = null,
+			duration = 0,
+			startTouchesDistance = 0,
+			endTouchesDistance = 0,
+			pinchZoom = 1,
+			pinchDistance = 0,
+			pinchDirection = 0,
+			maximumsMap=null;
+
+		
+		
+		//jQuery wrapped element for this instance
+		var $element = $(element);
+		
+		//Current phase of th touch cycle
+		var phase = "start";
+
+		// the current number of fingers being used.
+		var fingerCount = 0; 			
+
+		//track mouse points / delta
+		var fingerData=null;
+
+		//track times
+		var startTime = 0,
+			endTime = 0,
+			previousTouchEndTime=0,
+			previousTouchFingerCount=0,
+			doubleTapStartTime=0;
+
+		//Timeouts
+		var singleTapTimeout=null,
+			holdTimeout=null;
+        
+		// Add gestures to all swipable areas if supported
+		try {
+			$element.bind(START_EV, touchStart);
+			$element.bind(CANCEL_EV, touchCancel);
+		}
+		catch (e) {
+			$.error('events not supported ' + START_EV + ',' + CANCEL_EV + ' on jQuery.swipe');
+		}
+
+		//
+		//Public methods
+		//
+		
+		/**
+		* re-enables the swipe plugin with the previous configuration
+		* @function
+		* @name $.fn.swipe#enable
+		* @return {DOMNode} The Dom element that was registered with TouchSwipe 
+		* @example $("#element").swipe("enable");
+		*/
+		this.enable = function () {
+			$element.bind(START_EV, touchStart);
+			$element.bind(CANCEL_EV, touchCancel);
+			return $element;
+		};
+
+		/**
+		* disables the swipe plugin
+		* @function
+		* @name $.fn.swipe#disable
+		* @return {DOMNode} The Dom element that is now registered with TouchSwipe
+	    * @example $("#element").swipe("disable");
+		*/
+		this.disable = function () {
+			removeListeners();
+			return $element;
+		};
+
+		/**
+		* Destroy the swipe plugin completely. To use any swipe methods, you must re initialise the plugin.
+		* @function
+		* @name $.fn.swipe#destroy
+		* @return {DOMNode} The Dom element that was registered with TouchSwipe 
+		* @example $("#element").swipe("destroy");
+		*/
+		this.destroy = function () {
+			removeListeners();
+			$element.data(PLUGIN_NS, null);
+			return $element;
+		};
+
+
+        /**
+         * Allows run time updating of the swipe configuration options.
+         * @function
+    	 * @name $.fn.swipe#option
+    	 * @param {String} property The option property to get or set
+         * @param {Object} [value] The value to set the property to
+		 * @return {Object} If only a property name is passed, then that property value is returned.
+		 * @example $("#element").swipe("option", "threshold"); // return the threshold
+         * @example $("#element").swipe("option", "threshold", 100); // set the threshold after init
+         * @see $.fn.swipe.defaults
+         *
+         */
+        this.option = function (property, value) {
+            if(options[property]!==undefined) {
+                if(value===undefined) {
+                    return options[property];
+                } else {
+                    options[property] = value;
+                }
+            } else {
+                $.error('Option ' + property + ' does not exist on jQuery.swipe.options');
+            }
+
+            return null;
+        }
+
+		//
+		// Private methods
+		//
+		
+		//
+		// EVENTS
+		//
+		/**
+		* Event handler for a touch start event.
+		* Stops the default click event from triggering and stores where we touched
+		* @inner
+		* @param {object} jqEvent The normalised jQuery event object.
+		*/
+		function touchStart(jqEvent) {
+			//If we already in a touch event (a finger already in use) then ignore subsequent ones..
+			if( getTouchInProgress() )
+				return;
+			
+			//Check if this element matches any in the excluded elements selectors,  or its parent is excluded, if so, DON'T swipe
+			if( $(jqEvent.target).closest( options.excludedElements, $element ).length>0 ) 
+				return;
+				
+			//As we use Jquery bind for events, we need to target the original event object
+			//If these events are being programmatically triggered, we don't have an original event object, so use the Jq one.
+			var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent;
+			
+			var ret,
+				evt = SUPPORTS_TOUCH ? event.touches[0] : event;
+
+			phase = PHASE_START;
+
+			//If we support touches, get the finger count
+			if (SUPPORTS_TOUCH) {
+				// get the total number of fingers touching the screen
+				fingerCount = event.touches.length;
+			}
+			//Else this is the desktop, so stop the browser from dragging the image
+			else {
+				jqEvent.preventDefault(); //call this on jq event so we are cross browser
+			}
+
+			//clear vars..
+			distance = 0;
+			direction = null;
+			pinchDirection=null;
+			duration = 0;
+			startTouchesDistance=0;
+			endTouchesDistance=0;
+			pinchZoom = 1;
+			pinchDistance = 0;
+			fingerData=createAllFingerData();
+			maximumsMap=createMaximumsData();
+			cancelMultiFingerRelease();
+
+			
+			// check the number of fingers is what we are looking for, or we are capturing pinches
+			if (!SUPPORTS_TOUCH || (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || hasPinches()) {
+				// get the coordinates of the touch
+				createFingerData( 0, evt );
+				startTime = getTimeStamp();
+				
+				if(fingerCount==2) {
+					//Keep track of the initial pinch distance, so we can calculate the diff later
+					//Store second finger data as start
+					createFingerData( 1, event.touches[1] );
+					startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start);
+				}
+				
+				if (options.swipeStatus || options.pinchStatus) {
+					ret = triggerHandler(event, phase);
+				}
+			}
+			else {
+				//A touch with more or less than the fingers we are looking for, so cancel
+				ret = false; 
+			}
+
+			//If we have a return value from the users handler, then return and cancel
+			if (ret === false) {
+				phase = PHASE_CANCEL;
+				triggerHandler(event, phase);
+				return ret;
+			}
+			else {
+				if (options.hold) {
+					holdTimeout = setTimeout($.proxy(function() {
+						//Trigger the event
+						$element.trigger('hold', [event.target]);
+						//Fire the callback
+						if(options.hold) {
+							ret = options.hold.call($element, event, event.target);
+						}
+					}, this), options.longTapThreshold );
+				}
+
+				setTouchInProgress(true);
+			}
+
+            return null;
+		};
+		
+		
+		
+		/**
+		* Event handler for a touch move event. 
+		* If we change fingers during move, then cancel the event
+		* @inner
+		* @param {object} jqEvent The normalised jQuery event object.
+		*/
+		function touchMove(jqEvent) {
+			
+			//As we use Jquery bind for events, we need to target the original event object
+			//If these events are being programmatically triggered, we don't have an original event object, so use the Jq one.
+			var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent;
+			
+			//If we are ending, cancelling, or within the threshold of 2 fingers being released, don't track anything..
+			if (phase === PHASE_END || phase === PHASE_CANCEL || inMultiFingerRelease())
+				return;
+
+			var ret,
+				evt = SUPPORTS_TOUCH ? event.touches[0] : event;
+			
+
+			//Update the  finger data 
+			var currentFinger = updateFingerData(evt);
+			endTime = getTimeStamp();
+			
+			if (SUPPORTS_TOUCH) {
+				fingerCount = event.touches.length;
+			}
+
+			if (options.hold)
+				clearTimeout(holdTimeout);
+
+			phase = PHASE_MOVE;
+
+			//If we have 2 fingers get Touches distance as well
+			if(fingerCount==2) {
+				
+				//Keep track of the initial pinch distance, so we can calculate the diff later
+				//We do this here as well as the start event, in case they start with 1 finger, and the press 2 fingers
+				if(startTouchesDistance==0) {
+					//Create second finger if this is the first time...
+					createFingerData( 1, event.touches[1] );
+					
+					startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start);
+				} else {
+					//Else just update the second finger
+					updateFingerData(event.touches[1]);
+				
+					endTouchesDistance = calculateTouchesDistance(fingerData[0].end, fingerData[1].end);
+					pinchDirection = calculatePinchDirection(fingerData[0].end, fingerData[1].end);
+				}
+				
+				
+				pinchZoom = calculatePinchZoom(startTouchesDistance, endTouchesDistance);
+				pinchDistance = Math.abs(startTouchesDistance - endTouchesDistance);
+			}
+			
+			
+			if ( (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !SUPPORTS_TOUCH || hasPinches() ) {
+				
+				direction = calculateDirection(currentFinger.start, currentFinger.end);
+				
+				//Check if we need to prevent default event (page scroll / pinch zoom) or not
+				validateDefaultEvent(jqEvent, direction);
+
+				//Distance and duration are all off the main finger
+				distance = calculateDistance(currentFinger.start, currentFinger.end);
+				duration = calculateDuration();
+
+                //Cache the maximum distance we made in this direction
+                setMaxDistance(direction, distance);
+
+
+				if (options.swipeStatus || options.pinchStatus) {
+					ret = triggerHandler(event, phase);
+				}
+				
+				
+				//If we trigger end events when threshold are met, or trigger events when touch leaves element
+				if(!options.triggerOnTouchEnd || options.triggerOnTouchLeave) {
+					
+					var inBounds = true;
+					
+					//If checking if we leave the element, run the bounds check (we can use touchleave as its not supported on webkit)
+					if(options.triggerOnTouchLeave) {
+						var bounds = getbounds( this );
+						inBounds = isInBounds( currentFinger.end, bounds );
+					}
+					
+					//Trigger end handles as we swipe if thresholds met or if we have left the element if the user has asked to check these..
+					if(!options.triggerOnTouchEnd && inBounds) {
+						phase = getNextPhase( PHASE_MOVE );
+					} 
+					//We end if out of bounds here, so set current phase to END, and check if its modified 
+					else if(options.triggerOnTouchLeave && !inBounds ) {
+						phase = getNextPhase( PHASE_END );
+					}
+						
+					if(phase==PHASE_CANCEL || phase==PHASE_END)	{
+						triggerHandler(event, phase);
+					}				
+				}
+			}
+			else {
+				phase = PHASE_CANCEL;
+				triggerHandler(event, phase);
+			}
+
+			if (ret === false) {
+				phase = PHASE_CANCEL;
+				triggerHandler(event, phase);
+			}
+		}
+
+
+
+		/**
+		* Event handler for a touch end event. 
+		* Calculate the direction and trigger events
+		* @inner
+		* @param {object} jqEvent The normalised jQuery event object.
+		*/
+		function touchEnd(jqEvent) {
+			//As we use Jquery bind for events, we need to target the original event object
+			var event = jqEvent.originalEvent;
+				
+
+			//If we are still in a touch with another finger return
+			//This allows us to wait a fraction and see if the other finger comes up, if it does within the threshold, then we treat it as a multi release, not a single release.
+			if (SUPPORTS_TOUCH) {
+				if(event.touches.length>0) {
+					startMultiFingerRelease();
+					return true;
+				}
+			}
+			
+			//If a previous finger has been released, check how long ago, if within the threshold, then assume it was a multifinger release.
+			//This is used to allow 2 fingers to release fractionally after each other, whilst maintainig the event as containg 2 fingers, not 1
+			if(inMultiFingerRelease()) {	
+				fingerCount=previousTouchFingerCount;
+			}	
+		
+			//Set end of swipe
+			endTime = getTimeStamp();
+			
+			//Get duration incase move was never fired
+			duration = calculateDuration();
+			
+			//If we trigger handlers at end of swipe OR, we trigger during, but they didnt trigger and we are still in the move phase
+			if(didSwipeBackToCancel() || !validateSwipeDistance()) {
+			    phase = PHASE_CANCEL;
+                triggerHandler(event, phase);
+			} else if (options.triggerOnTouchEnd || (options.triggerOnTouchEnd == false && phase === PHASE_MOVE)) {
+				//call this on jq event so we are cross browser 
+				jqEvent.preventDefault(); 
+				phase = PHASE_END;
+                triggerHandler(event, phase);
+			}
+			//Special cases - A tap should always fire on touch end regardless,
+			//So here we manually trigger the tap end handler by itself
+			//We dont run trigger handler as it will re-trigger events that may have fired already
+			else if (!options.triggerOnTouchEnd && hasTap()) {
+                //Trigger the pinch events...
+			    phase = PHASE_END;
+			    triggerHandlerForGesture(event, phase, TAP);
+			}
+			else if (phase === PHASE_MOVE) {
+				phase = PHASE_CANCEL;
+				triggerHandler(event, phase);
+			}
+
+			setTouchInProgress(false);
+
+            return null;
+		}
+
+
+
+		/**
+		* Event handler for a touch cancel event. 
+		* Clears current vars
+		* @inner
+		*/
+		function touchCancel() {
+			// reset the variables back to default values
+			fingerCount = 0;
+			endTime = 0;
+			startTime = 0;
+			startTouchesDistance=0;
+			endTouchesDistance=0;
+			pinchZoom=1;
+			
+			//If we were in progress of tracking a possible multi touch end, then re set it.
+			cancelMultiFingerRelease();
+			
+			setTouchInProgress(false);
+		}
+		
+		
+		/**
+		* Event handler for a touch leave event. 
+		* This is only triggered on desktops, in touch we work this out manually
+		* as the touchleave event is not supported in webkit
+		* @inner
+		*/
+		function touchLeave(jqEvent) {
+			var event = jqEvent.originalEvent;
+			
+			//If we have the trigger on leave property set....
+			if(options.triggerOnTouchLeave) {
+				phase = getNextPhase( PHASE_END );
+				triggerHandler(event, phase);
+			}
+		}
+		
+		/**
+		* Removes all listeners that were associated with the plugin
+		* @inner
+		*/
+		function removeListeners() {
+			$element.unbind(START_EV, touchStart);
+			$element.unbind(CANCEL_EV, touchCancel);
+			$element.unbind(MOVE_EV, touchMove);
+			$element.unbind(END_EV, touchEnd);
+			
+			//we only have leave events on desktop, we manually calculate leave on touch as its not supported in webkit
+			if(LEAVE_EV) { 
+				$element.unbind(LEAVE_EV, touchLeave);
+			}
+			
+			setTouchInProgress(false);
+		}
+
+		
+		/**
+		 * Checks if the time and distance thresholds have been met, and if so then the appropriate handlers are fired.
+		 */
+		function getNextPhase(currentPhase) {
+			
+			var nextPhase = currentPhase;
+			
+			// Ensure we have valid swipe (under time and over distance  and check if we are out of bound...)
+			var validTime = validateSwipeTime();
+			var validDistance = validateSwipeDistance();
+			var didCancel = didSwipeBackToCancel();
+						
+			//If we have exceeded our time, then cancel	
+			if(!validTime || didCancel) {
+				nextPhase = PHASE_CANCEL;
+			}
+			//Else if we are moving, and have reached distance then end
+			else if (validDistance && currentPhase == PHASE_MOVE && (!options.triggerOnTouchEnd || options.triggerOnTouchLeave) ) {
+				nextPhase = PHASE_END;
+			} 
+			//Else if we have ended by leaving and didn't reach distance, then cancel
+			else if (!validDistance && currentPhase==PHASE_END && options.triggerOnTouchLeave) {
+				nextPhase = PHASE_CANCEL;
+			}
+			
+			return nextPhase;
+		}
+		
+		
+		/**
+		* Trigger the relevant event handler
+		* The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down"
+		* @param {object} event the original event object
+		* @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases}
+		* @inner
+		*/
+		function triggerHandler(event, phase) {
+			
+			var ret = undefined;
+			
+			// SWIPE GESTURES
+			if(didSwipe() || hasSwipes()) { //hasSwipes as status needs to fire even if swipe is invalid
+				//Trigger the swipe events...
+				ret = triggerHandlerForGesture(event, phase, SWIPE);
+			} 
+			
+			// PINCH GESTURES (if the above didn't cancel)
+			else if((didPinch() || hasPinches()) && ret!==false) {
+				//Trigger the pinch events...
+				ret = triggerHandlerForGesture(event, phase, PINCH);
+			}
+			
+			// CLICK / TAP (if the above didn't cancel)
+			if(didDoubleTap() && ret!==false) {
+				//Trigger the tap events...
+				ret = triggerHandlerForGesture(event, phase, DOUBLE_TAP);
+			}
+			
+			// CLICK / TAP (if the above didn't cancel)
+			else if(didLongTap() && ret!==false) {
+				//Trigger the tap events...
+				ret = triggerHandlerForGesture(event, phase, LONG_TAP);
+			}
+
+			// CLICK / TAP (if the above didn't cancel)
+			else if(didTap() && ret!==false) {
+				//Trigger the tap event..
+				ret = triggerHandlerForGesture(event, phase, TAP);
+			}
+			
+			
+			
+			// If we are cancelling the gesture, then manually trigger the reset handler
+			if (phase === PHASE_CANCEL) {
+				touchCancel(event);
+			}
+			
+			// If we are ending the gesture, then manually trigger the reset handler IF all fingers are off
+			if(phase === PHASE_END) {
+				//If we support touch, then check that all fingers are off before we cancel
+				if (SUPPORTS_TOUCH) {
+					if(event.touches.length==0) {
+						touchCancel(event);	
+					}
+				} 
+				else {
+					touchCancel(event);
+				}
+			}
+					
+			return ret;
+		}
+		
+		
+		
+		/**
+		* Trigger the relevant event handler
+		* The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down"
+		* @param {object} event the original event object
+		* @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases}
+		* @param {string} gesture the gesture to trigger a handler for : PINCH or SWIPE {@link $.fn.swipe.gestures}
+		* @return Boolean False, to indicate that the event should stop propagation, or void.
+		* @inner
+		*/
+		function triggerHandlerForGesture(event, phase, gesture) {	
+			
+			var ret=undefined;
+			
+			//SWIPES....
+			if(gesture==SWIPE) {
+				//Trigger status every time..
+				
+				//Trigger the event...
+				$element.trigger('swipeStatus', [phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData]);
+				
+				//Fire the callback
+				if (options.swipeStatus) {
+					ret = options.swipeStatus.call($element, event, phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData);
+					//If the status cancels, then dont run the subsequent event handlers..
+					if(ret===false) return false;
+				}
+				
+				
+				
+				
+				if (phase == PHASE_END && validateSwipe()) {
+					//Fire the catch all event
+					$element.trigger('swipe', [direction, distance, duration, fingerCount, fingerData]);
+					
+					//Fire catch all callback
+					if (options.swipe) {
+						ret = options.swipe.call($element, event, direction, distance, duration, fingerCount, fingerData);
+						//If the status cancels, then dont run the subsequent event handlers..
+						if(ret===false) return false;
+					}
+					
+					//trigger direction specific event handlers	
+					switch (direction) {
+						case LEFT:
+							//Trigger the event
+							$element.trigger('swipeLeft', [direction, distance, duration, fingerCount, fingerData]);
+					
+					        //Fire the callback
+							if (options.swipeLeft) {
+								ret = options.swipeLeft.call($element, event, direction, distance, duration, fingerCount, fingerData);
+							}
+							break;
+	
+						case RIGHT:
+							//Trigger the event
+					        $element.trigger('swipeRight', [direction, distance, duration, fingerCount, fingerData]);
+					
+					        //Fire the callback
+							if (options.swipeRight) {
+								ret = options.swipeRight.call($element, event, direction, distance, duration, fingerCount, fingerData);
+							}
+							break;
+	
+						case UP:
+							//Trigger the event
+					        $element.trigger('swipeUp', [direction, distance, duration, fingerCount, fingerData]);
+					
+					        //Fire the callback
+							if (options.swipeUp) {
+								ret = options.swipeUp.call($element, event, direction, distance, duration, fingerCount, fingerData);
+							}
+							break;
+	
+						case DOWN:
+							//Trigger the event
+					        $element.trigger('swipeDown', [direction, distance, duration, fingerCount, fingerData]);
+					
+					        //Fire the callback
+							if (options.swipeDown) {
+								ret = options.swipeDown.call($element, event, direction, distance, duration, fingerCount, fingerData);
+							}
+							break;
+					}
+				}
+			}
+			
+			
+			//PINCHES....
+			if(gesture==PINCH) {
+				//Trigger the event
+			     $element.trigger('pinchStatus', [phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]);
+					
+                //Fire the callback
+				if (options.pinchStatus) {
+					ret = options.pinchStatus.call($element, event, phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData);
+					//If the status cancels, then dont run the subsequent event handlers..
+					if(ret===false) return false;
+				}
+				
+				if(phase==PHASE_END && validatePinch()) {
+					
+					switch (pinchDirection) {
+						case IN:
+							//Trigger the event
+                            $element.trigger('pinchIn', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]);
+                    
+                            //Fire the callback
+                            if (options.pinchIn) {
+								ret = options.pinchIn.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData);
+							}
+							break;
+						
+						case OUT:
+							//Trigger the event
+                            $element.trigger('pinchOut', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]);
+                    
+                            //Fire the callback
+                            if (options.pinchOut) {
+								ret = options.pinchOut.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData);
+							}
+							break;	
+					}
+				}
+			}
+			
+
+
+                
+	    		
+			if(gesture==TAP) {
+				if(phase === PHASE_CANCEL || phase === PHASE_END) {
+					
+    			    
+    			    //Cancel any existing double tap
+				    clearTimeout(singleTapTimeout);
+    			    //Cancel hold timeout
+				    clearTimeout(holdTimeout);
+				           
+					//If we are also looking for doubelTaps, wait incase this is one...
+				    if(hasDoubleTap() && !inDoubleTap()) {
+				        //Cache the time of this tap
+                        doubleTapStartTime = getTimeStamp();
+                       
+				        //Now wait for the double tap timeout, and trigger this single tap
+				        //if its not cancelled by a double tap
+				        singleTapTimeout = setTimeout($.proxy(function() {
+        			        doubleTapStartTime=null;
+        			        //Trigger the event
+                			$element.trigger('tap', [event.target]);
+
+                        
+                            //Fire the callback
+                            if(options.tap) {
+                                ret = options.tap.call($element, event, event.target);
+                            }
+    			        }, this), options.doubleTapThreshold );
+    			    	
+    			    } else {
+                        doubleTapStartTime=null;
+                        
+                        //Trigger the event
+                        $element.trigger('tap', [event.target]);
+
+                        
+                        //Fire the callback
+                        if(options.tap) {
+                            ret = options.tap.call($element, event, event.target);
+                        }
+	    		    }
+	    		}
+			}
+			
+			else if (gesture==DOUBLE_TAP) {
+				if(phase === PHASE_CANCEL || phase === PHASE_END) {
+					//Cancel any pending singletap 
+				    clearTimeout(singleTapTimeout);
+				    doubleTapStartTime=null;
+				        
+                    //Trigger the event
+                    $element.trigger('doubletap', [event.target]);
+                
+                    //Fire the callback
+                    if(options.doubleTap) {
+                        ret = options.doubleTap.call($element, event, event.target);
+                    }
+	    		}
+			}
+			
+			else if (gesture==LONG_TAP) {
+				if(phase === PHASE_CANCEL || phase === PHASE_END) {
+					//Cancel any pending singletap (shouldnt be one)
+				    clearTimeout(singleTapTimeout);
+				    doubleTapStartTime=null;
+				        
+                    //Trigger the event
+                    $element.trigger('longtap', [event.target]);
+                
+                    //Fire the callback
+                    if(options.longTap) {
+                        ret = options.longTap.call($element, event, event.target);
+                    }
+	    		}
+			}				
+				
+			return ret;
+		}
+
+
+
+		
+		//
+		// GESTURE VALIDATION
+		//
+		
+		/**
+		* Checks the user has swipe far enough
+		* @return Boolean if <code>threshold</code> has been set, return true if the threshold was met, else false.
+		* If no threshold was set, then we return true.
+		* @inner
+		*/
+		function validateSwipeDistance() {
+			var valid = true;
+			//If we made it past the min swipe distance..
+			if (options.threshold !== null) {
+				valid = distance >= options.threshold;
+			}
+			
+            return valid;
+		}
+		
+		/**
+		* Checks the user has swiped back to cancel.
+		* @return Boolean if <code>cancelThreshold</code> has been set, return true if the cancelThreshold was met, else false.
+		* If no cancelThreshold was set, then we return true.
+		* @inner
+		*/
+		function didSwipeBackToCancel() {
+            var cancelled = false;
+    		if(options.cancelThreshold !== null && direction !==null)  {
+    		    cancelled =  (getMaxDistance( direction ) - distance) >= options.cancelThreshold;
+			}
+			
+			return cancelled;
+		}
+
+		/**
+		* Checks the user has pinched far enough
+		* @return Boolean if <code>pinchThreshold</code> has been set, return true if the threshold was met, else false.
+		* If no threshold was set, then we return true.
+		* @inner
+		*/
+		function validatePinchDistance() {
+			if (options.pinchThreshold !== null) {
+				return pinchDistance >= options.pinchThreshold;
+			}
+			return true;
+		}
+
+		/**
+		* Checks that the time taken to swipe meets the minimum / maximum requirements
+		* @return Boolean
+		* @inner
+		*/
+		function validateSwipeTime() {
+			var result;
+			//If no time set, then return true
+
+			if (options.maxTimeThreshold) {
+				if (duration >= options.maxTimeThreshold) {
+					result = false;
+				} else {
+					result = true;
+				}
+			}
+			else {
+				result = true;
+			}
+
+			return result;
+		}
+
+
+		/**
+		* Checks direction of the swipe and the value allowPageScroll to see if we should allow or prevent the default behaviour from occurring.
+		* This will essentially allow page scrolling or not when the user is swiping on a touchSwipe object.
+		* @param {object} jqEvent The normalised jQuery representation of the event object.
+		* @param {string} direction The direction of the event. See {@link $.fn.swipe.directions}
+		* @see $.fn.swipe.directions
+		* @inner
+		*/
+		function validateDefaultEvent(jqEvent, direction) {
+			if (options.allowPageScroll === NONE || hasPinches()) {
+				jqEvent.preventDefault();
+			} else {
+				var auto = options.allowPageScroll === AUTO;
+
+				switch (direction) {
+					case LEFT:
+						if ((options.swipeLeft && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) {
+							jqEvent.preventDefault();
+						}
+						break;
+
+					case RIGHT:
+						if ((options.swipeRight && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) {
+							jqEvent.preventDefault();
+						}
+						break;
+
+					case UP:
+						if ((options.swipeUp && auto) || (!auto && options.allowPageScroll != VERTICAL)) {
+							jqEvent.preventDefault();
+						}
+						break;
+
+					case DOWN:
+						if ((options.swipeDown && auto) || (!auto && options.allowPageScroll != VERTICAL)) {
+							jqEvent.preventDefault();
+						}
+						break;
+				}
+			}
+
+		}
+
+
+		// PINCHES
+		/**
+		 * Returns true of the current pinch meets the thresholds
+		 * @return Boolean
+		 * @inner
+		*/
+		function validatePinch() {
+		    var hasCorrectFingerCount = validateFingers();
+		    var hasEndPoint = validateEndPoint();
+			var hasCorrectDistance = validatePinchDistance();
+			return hasCorrectFingerCount && hasEndPoint && hasCorrectDistance;
+			
+		}
+		
+		/**
+		 * Returns true if any Pinch events have been registered
+		 * @return Boolean
+		 * @inner
+		*/
+		function hasPinches() {
+			//Enure we dont return 0 or null for false values
+			return !!(options.pinchStatus || options.pinchIn || options.pinchOut);
+		}
+		
+		/**
+		 * Returns true if we are detecting pinches, and have one
+		 * @return Boolean
+		 * @inner
+		 */
+		function didPinch() {
+			//Enure we dont return 0 or null for false values
+			return !!(validatePinch() && hasPinches());
+		}
+
+
+
+
+		// SWIPES
+		/**
+		 * Returns true if the current swipe meets the thresholds
+		 * @return Boolean
+		 * @inner
+		*/
+		function validateSwipe() {
+			//Check validity of swipe
+			var hasValidTime = validateSwipeTime();
+			var hasValidDistance = validateSwipeDistance();	
+			var hasCorrectFingerCount = validateFingers();
+		    var hasEndPoint = validateEndPoint();
+		    var didCancel = didSwipeBackToCancel();	
+		    
+			// if the user swiped more than the minimum length, perform the appropriate action
+			// hasValidDistance is null when no distance is set 
+			var valid =  !didCancel && hasEndPoint && hasCorrectFingerCount && hasValidDistance && hasValidTime;
+			
+			return valid;
+		}
+		
+		/**
+		 * Returns true if any Swipe events have been registered
+		 * @return Boolean
+		 * @inner
+		*/
+		function hasSwipes() {
+			//Enure we dont return 0 or null for false values
+			return !!(options.swipe || options.swipeStatus || options.swipeLeft || options.swipeRight || options.swipeUp || options.swipeDown);
+		}
+		
+		
+		/**
+		 * Returns true if we are detecting swipes and have one
+		 * @return Boolean
+		 * @inner
+		*/
+		function didSwipe() {
+			//Enure we dont return 0 or null for false values
+			return !!(validateSwipe() && hasSwipes());
+		}
+
+        /**
+		 * Returns true if we have matched the number of fingers we are looking for
+		 * @return Boolean
+		 * @inner
+		*/
+        function validateFingers() {
+            //The number of fingers we want were matched, or on desktop we ignore
+    		return ((fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !SUPPORTS_TOUCH);
+    	}
+        
+        /**
+		 * Returns true if we have an end point for the swipe
+		 * @return Boolean
+		 * @inner
+		*/
+        function validateEndPoint() {
+            //We have an end value for the finger
+		    return fingerData[0].end.x !== 0;
+        }
+
+		// TAP / CLICK
+		/**
+		 * Returns true if a click / tap events have been registered
+		 * @return Boolean
+		 * @inner
+		*/
+		function hasTap() {
+			//Enure we dont return 0 or null for false values
+			return !!(options.tap) ;
+		}
+		
+		/**
+		 * Returns true if a double tap events have been registered
+		 * @return Boolean
+		 * @inner
+		*/
+		function hasDoubleTap() {
+			//Enure we dont return 0 or null for false values
+			return !!(options.doubleTap) ;
+		}
+		
+		/**
+		 * Returns true if any long tap events have been registered
+		 * @return Boolean
+		 * @inner
+		*/
+		function hasLongTap() {
+			//Enure we dont return 0 or null for false values
+			return !!(options.longTap) ;
+		}
+		
+		/**
+		 * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past.
+		 * @return Boolean
+		 * @inner
+		*/
+		function validateDoubleTap() {
+		    if(doubleTapStartTime==null){
+		        return false;
+		    }
+		    var now = getTimeStamp();
+		    return (hasDoubleTap() && ((now-doubleTapStartTime) <= options.doubleTapThreshold));
+		}
+		
+		/**
+		 * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past.
+		 * @return Boolean
+		 * @inner
+		*/
+		function inDoubleTap() {
+		    return validateDoubleTap();
+		}
+		
+		
+		/**
+		 * Returns true if we have a valid tap
+		 * @return Boolean
+		 * @inner
+		*/
+		function validateTap() {
+		    return ((fingerCount === 1 || !SUPPORTS_TOUCH) && (isNaN(distance) || distance < options.threshold));
+		}
+		
+		/**
+		 * Returns true if we have a valid long tap
+		 * @return Boolean
+		 * @inner
+		*/
+		function validateLongTap() {
+		    //slight threshold on moving finger
+            return ((duration > options.longTapThreshold) && (distance < DOUBLE_TAP_THRESHOLD)); 
+		}
+		
+		/**
+		 * Returns true if we are detecting taps and have one
+		 * @return Boolean
+		 * @inner
+		*/
+		function didTap() {
+		    //Enure we dont return 0 or null for false values
+			return !!(validateTap() && hasTap());
+		}
+		
+		
+		/**
+		 * Returns true if we are detecting double taps and have one
+		 * @return Boolean
+		 * @inner
+		*/
+		function didDoubleTap() {
+		    //Enure we dont return 0 or null for false values
+			return !!(validateDoubleTap() && hasDoubleTap());
+		}
+		
+		/**
+		 * Returns true if we are detecting long taps and have one
+		 * @return Boolean
+		 * @inner
+		*/
+		function didLongTap() {
+		    //Enure we dont return 0 or null for false values
+			return !!(validateLongTap() && hasLongTap());
+		}
+		
+		
+		
+		
+		// MULTI FINGER TOUCH
+		/**
+		 * Starts tracking the time between 2 finger releases, and keeps track of how many fingers we initially had up
+		 * @inner
+		*/
+		function startMultiFingerRelease() {
+			previousTouchEndTime = getTimeStamp();
+			previousTouchFingerCount = event.touches.length+1;
+		}
+		
+		/**
+		 * Cancels the tracking of time between 2 finger releases, and resets counters
+		 * @inner
+		*/
+		function cancelMultiFingerRelease() {
+			previousTouchEndTime = 0;
+			previousTouchFingerCount = 0;
+		}
+		
+		/**
+		 * Checks if we are in the threshold between 2 fingers being released 
+		 * @return Boolean
+		 * @inner
+		*/
+		function inMultiFingerRelease() {
+			
+			var withinThreshold = false;
+			
+			if(previousTouchEndTime) {	
+				var diff = getTimeStamp() - previousTouchEndTime	
+				if( diff<=options.fingerReleaseThreshold ) {
+					withinThreshold = true;
+				}
+			}
+			
+			return withinThreshold;	
+		}
+		
+
+		/**
+		* gets a data flag to indicate that a touch is in progress
+		* @return Boolean
+		* @inner
+		*/
+		function getTouchInProgress() {
+			//strict equality to ensure only true and false are returned
+			return !!($element.data(PLUGIN_NS+'_intouch') === true);
+		}
+		
+		/**
+		* Sets a data flag to indicate that a touch is in progress
+		* @param {boolean} val The value to set the property to
+		* @inner
+		*/
+		function setTouchInProgress(val) {
+			
+			//Add or remove event listeners depending on touch status
+			if(val===true) {
+				$element.bind(MOVE_EV, touchMove);
+				$element.bind(END_EV, touchEnd);
+				
+				//we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit
+				if(LEAVE_EV) { 
+					$element.bind(LEAVE_EV, touchLeave);
+				}
+			} else {
+				$element.unbind(MOVE_EV, touchMove, false);
+				$element.unbind(END_EV, touchEnd, false);
+			
+				//we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit
+				if(LEAVE_EV) { 
+					$element.unbind(LEAVE_EV, touchLeave, false);
+				}
+			}
+			
+		
+			//strict equality to ensure only true and false can update the value
+			$element.data(PLUGIN_NS+'_intouch', val === true);
+		}
+		
+		
+		/**
+		 * Creates the finger data for the touch/finger in the event object.
+		 * @param {int} index The index in the array to store the finger data (usually the order the fingers were pressed)
+		 * @param {object} evt The event object containing finger data
+		 * @return finger data object
+		 * @inner
+		*/
+		function createFingerData( index, evt ) {
+			var id = evt.identifier!==undefined ? evt.identifier : 0; 
+			
+			fingerData[index].identifier = id;
+			fingerData[index].start.x = fingerData[index].end.x = evt.pageX||evt.clientX;
+			fingerData[index].start.y = fingerData[index].end.y = evt.pageY||evt.clientY;
+			
+			return fingerData[index];
+		}
+		
+		/**
+		 * Updates the finger data for a particular event object
+		 * @param {object} evt The event object containing the touch/finger data to upadte
+		 * @return a finger data object.
+		 * @inner
+		*/
+		function updateFingerData(evt) {
+			
+			var id = evt.identifier!==undefined ? evt.identifier : 0; 
+			var f = getFingerData( id );
+			
+			f.end.x = evt.pageX||evt.clientX;
+			f.end.y = evt.pageY||evt.clientY;
+			
+			return f;
+		}
+		
+		/**
+		 * Returns a finger data object by its event ID.
+		 * Each touch event has an identifier property, which is used 
+		 * to track repeat touches
+		 * @param {int} id The unique id of the finger in the sequence of touch events.
+		 * @return a finger data object.
+		 * @inner
+		*/
+		function getFingerData( id ) {
+			for(var i=0; i<fingerData.length; i++) {
+				if(fingerData[i].identifier == id) {
+					return fingerData[i];	
+				}
+			}
+		}
+		
+		/**
+		 * Creats all the finger onjects and returns an array of finger data
+		 * @return Array of finger objects
+		 * @inner
+		*/
+		function createAllFingerData() {
+			var fingerData=[];
+			for (var i=0; i<=5; i++) {
+				fingerData.push({
+					start:{ x: 0, y: 0 },
+					end:{ x: 0, y: 0 },
+					identifier:0
+				});
+			}
+			
+			return fingerData;
+		}
+		
+		/**
+		 * Sets the maximum distance swiped in the given direction. 
+		 * If the new value is lower than the current value, the max value is not changed.
+		 * @param {string}  direction The direction of the swipe
+		 * @param {int}  distance The distance of the swipe
+		 * @inner
+		*/
+		function setMaxDistance(direction, distance) {
+    		distance = Math.max(distance, getMaxDistance(direction) );
+    		maximumsMap[direction].distance = distance;
+		}
+        
+        /**
+		 * gets the maximum distance swiped in the given direction. 
+		 * @param {string}  direction The direction of the swipe
+		 * @return int  The distance of the swipe
+		 * @inner
+		*/        
+		function getMaxDistance(direction) {
+			if (maximumsMap[direction]) return maximumsMap[direction].distance;
+			return undefined;
+		}
+		
+		/**
+		 * Creats a map of directions to maximum swiped values.
+		 * @return Object A dictionary of maximum values, indexed by direction.
+		 * @inner
+		*/
+		function createMaximumsData() {
+			var maxData={};
+			maxData[LEFT]=createMaximumVO(LEFT);
+			maxData[RIGHT]=createMaximumVO(RIGHT);
+			maxData[UP]=createMaximumVO(UP);
+			maxData[DOWN]=createMaximumVO(DOWN);
+			
+			return maxData;
+		}
+		
+		/**
+		 * Creates a map maximum swiped values for a given swipe direction
+		 * @param {string} The direction that these values will be associated with
+		 * @return Object Maximum values
+		 * @inner
+		*/
+		function createMaximumVO(dir) {
+		    return { 
+		        direction:dir, 
+		        distance:0
+		    }
+		}
+		
+		
+		//
+		// MATHS / UTILS
+		//
+
+		/**
+		* Calculate the duration of the swipe
+		* @return int
+		* @inner
+		*/
+		function calculateDuration() {
+			return endTime - startTime;
+		}
+		
+		/**
+		* Calculate the distance between 2 touches (pinch)
+		* @param {point} startPoint A point object containing x and y co-ordinates
+	    * @param {point} endPoint A point object containing x and y co-ordinates
+	    * @return int;
+		* @inner
+		*/
+		function calculateTouchesDistance(startPoint, endPoint) {
+			var diffX = Math.abs(startPoint.x - endPoint.x);
+			var diffY = Math.abs(startPoint.y - endPoint.y);
+				
+			return Math.round(Math.sqrt(diffX*diffX+diffY*diffY));
+		}
+		
+		/**
+		* Calculate the zoom factor between the start and end distances
+		* @param {int} startDistance Distance (between 2 fingers) the user started pinching at
+	    * @param {int} endDistance Distance (between 2 fingers) the user ended pinching at
+	    * @return float The zoom value from 0 to 1.
+		* @inner
+		*/
+		function calculatePinchZoom(startDistance, endDistance) {
+			var percent = (endDistance/startDistance) * 1;
+			return percent.toFixed(2);
+		}
+		
+		
+		/**
+		* Returns the pinch direction, either IN or OUT for the given points
+		* @return string Either {@link $.fn.swipe.directions.IN} or {@link $.fn.swipe.directions.OUT}
+		* @see $.fn.swipe.directions
+		* @inner
+		*/
+		function calculatePinchDirection() {
+			if(pinchZoom<1) {
+				return OUT;
+			}
+			else {
+				return IN;
+			}
+		}
+		
+		
+		/**
+		* Calculate the length / distance of the swipe
+		* @param {point} startPoint A point object containing x and y co-ordinates
+	    * @param {point} endPoint A point object containing x and y co-ordinates
+	    * @return int
+		* @inner
+		*/
+		function calculateDistance(startPoint, endPoint) {
+			return Math.round(Math.sqrt(Math.pow(endPoint.x - startPoint.x, 2) + Math.pow(endPoint.y - startPoint.y, 2)));
+		}
+
+		/**
+		* Calculate the angle of the swipe
+		* @param {point} startPoint A point object containing x and y co-ordinates
+	    * @param {point} endPoint A point object containing x and y co-ordinates
+	    * @return int
+		* @inner
+		*/
+		function calculateAngle(startPoint, endPoint) {
+			var x = startPoint.x - endPoint.x;
+			var y = endPoint.y - startPoint.y;
+			var r = Math.atan2(y, x); //radians
+			var angle = Math.round(r * 180 / Math.PI); //degrees
+
+			//ensure value is positive
+			if (angle < 0) {
+				angle = 360 - Math.abs(angle);
+			}
+
+			return angle;
+		}
+
+		/**
+		* Calculate the direction of the swipe
+		* This will also call calculateAngle to get the latest angle of swipe
+		* @param {point} startPoint A point object containing x and y co-ordinates
+	    * @param {point} endPoint A point object containing x and y co-ordinates
+	    * @return string Either {@link $.fn.swipe.directions.LEFT} / {@link $.fn.swipe.directions.RIGHT} / {@link $.fn.swipe.directions.DOWN} / {@link $.fn.swipe.directions.UP}
+		* @see $.fn.swipe.directions
+		* @inner
+		*/
+		function calculateDirection(startPoint, endPoint ) {
+			var angle = calculateAngle(startPoint, endPoint);
+
+			if ((angle <= 45) && (angle >= 0)) {
+				return LEFT;
+			} else if ((angle <= 360) && (angle >= 315)) {
+				return LEFT;
+			} else if ((angle >= 135) && (angle <= 225)) {
+				return RIGHT;
+			} else if ((angle > 45) && (angle < 135)) {
+				return DOWN;
+			} else {
+				return UP;
+			}
+		}
+		
+
+		/**
+		* Returns a MS time stamp of the current time
+		* @return int
+		* @inner
+		*/
+		function getTimeStamp() {
+			var now = new Date();
+			return now.getTime();
+		}
+		
+		
+		
+		/**
+		 * Returns a bounds object with left, right, top and bottom properties for the element specified.
+		 * @param {DomNode} The DOM node to get the bounds for.
+		 */
+		function getbounds( el ) {
+			el = $(el);
+			var offset = el.offset();
+			
+			var bounds = {	
+					left:offset.left,
+					right:offset.left+el.outerWidth(),
+					top:offset.top,
+					bottom:offset.top+el.outerHeight()
+					}
+			
+			return bounds;	
+		}
+		
+		
+		/**
+		 * Checks if the point object is in the bounds object.
+		 * @param {object} point A point object.
+		 * @param {int} point.x The x value of the point.
+		 * @param {int} point.y The x value of the point.
+		 * @param {object} bounds The bounds object to test
+		 * @param {int} bounds.left The leftmost value
+		 * @param {int} bounds.right The righttmost value
+		 * @param {int} bounds.top The topmost value
+		* @param {int} bounds.bottom The bottommost value
+		 */
+		function isInBounds(point, bounds) {
+			return (point.x > bounds.left && point.x < bounds.right && point.y > bounds.top && point.y < bounds.bottom);
+		};
+	
+	
+	}
+	
+	
+
+
+/**
+ * A catch all handler that is triggered for all swipe directions. 
+ * @name $.fn.swipe#swipe
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user swiped
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+ 
+
+
+
+/**
+ * A handler that is triggered for "left" swipes.
+ * @name $.fn.swipe#swipeLeft
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user swiped
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+ 
+/**
+ * A handler that is triggered for "right" swipes.
+ * @name $.fn.swipe#swipeRight
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user swiped
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+
+/**
+ * A handler that is triggered for "up" swipes.
+ * @name $.fn.swipe#swipeUp
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user swiped
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+ 
+/**
+ * A handler that is triggered for "down" swipes.
+ * @name $.fn.swipe#swipeDown
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user swiped
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+ 
+/**
+ * A handler triggered for every phase of the swipe. This handler is constantly fired for the duration of the pinch.
+ * This is triggered regardless of swipe thresholds.
+ * @name $.fn.swipe#swipeStatus
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {string} phase The phase of the swipe event. See {@link $.fn.swipe.phases}
+ * @param {string} direction The direction the user swiped in. This is null if the user has yet to move. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user swiped. This is 0 if the user has yet to move.
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+ 
+/**
+ * A handler triggered for pinch in events.
+ * @name $.fn.swipe#pinchIn
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user pinched
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {int} zoom The zoom/scale level the user pinched too, 0-1.
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+
+/**
+ * A handler triggered for pinch out events.
+ * @name $.fn.swipe#pinchOut
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user pinched
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {int} zoom The zoom/scale level the user pinched too, 0-1.
+ * @param {object} fingerData The coordinates of fingers in event
+ */ 
+
+/**
+ * A handler triggered for all pinch events. This handler is constantly fired for the duration of the pinch. This is triggered regardless of thresholds.
+ * @name $.fn.swipe#pinchStatus
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions}
+ * @param {int} distance The distance the user pinched
+ * @param {int} duration The duration of the swipe in milliseconds
+ * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers}
+ * @param {int} zoom The zoom/scale level the user pinched too, 0-1.
+ * @param {object} fingerData The coordinates of fingers in event
+ */
+
+/**
+ * A click handler triggered when a user simply clicks, rather than swipes on an element.
+ * This is deprecated since version 1.6.2, any assignment to click will be assigned to the tap handler.
+ * You cannot use <code>on</code> to bind to this event as the default jQ <code>click</code> event will be triggered.
+ * Use the <code>tap</code> event instead.
+ * @name $.fn.swipe#click
+ * @event
+ * @deprecated since version 1.6.2, please use {@link $.fn.swipe#tap} instead 
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {DomObject} target The element clicked on.
+ */
+ 
+ /**
+ * A click / tap handler triggered when a user simply clicks or taps, rather than swipes on an element.
+ * @name $.fn.swipe#tap
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {DomObject} target The element clicked on.
+ */
+ 
+/**
+ * A double tap handler triggered when a user double clicks or taps on an element.
+ * You can set the time delay for a double tap with the {@link $.fn.swipe.defaults#doubleTapThreshold} property. 
+ * Note: If you set both <code>doubleTap</code> and <code>tap</code> handlers, the <code>tap</code> event will be delayed by the <code>doubleTapThreshold</code>
+ * as the script needs to check if its a double tap.
+ * @name $.fn.swipe#doubleTap
+ * @see  $.fn.swipe.defaults#doubleTapThreshold
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {DomObject} target The element clicked on.
+ */
+ 
+ /**
+ * A long tap handler triggered once a tap has been release if the tap was longer than the longTapThreshold.
+ * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. 
+ * @name $.fn.swipe#longTap
+ * @see  $.fn.swipe.defaults#longTapThreshold
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {DomObject} target The element clicked on.
+ */
+
+  /**
+ * A hold tap handler triggered as soon as the longTapThreshold is reached
+ * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. 
+ * @name $.fn.swipe#hold
+ * @see  $.fn.swipe.defaults#longTapThreshold
+ * @event
+ * @default null
+ * @param {EventObject} event The original event object
+ * @param {DomObject} target The element clicked on.
+ */
+
+}));
+
+
+
+ + +
+ +

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 04 2014 13:36:57 GMT+0100 (BST)

+
+
+ + + diff --git a/phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.js b/phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.js new file mode 100644 index 0000000000..587bbfb9e3 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.js @@ -0,0 +1,2036 @@ +/* +* @fileOverview TouchSwipe - jQuery Plugin +* @version 1.6.6 +* +* @author Matt Bryson http://www.github.com/mattbryson +* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin +* @see http://labs.skinkers.com/touchSwipe/ +* @see http://plugins.jquery.com/project/touchSwipe +* +* Copyright (c) 2010 Matt Bryson +* Dual licensed under the MIT or GPL Version 2 licenses. +* +*/ + +/* +* +* Changelog +* $Date: 2010-12-12 (Wed, 12 Dec 2010) $ +* $version: 1.0.0 +* $version: 1.0.1 - removed multibyte comments +* +* $Date: 2011-21-02 (Mon, 21 Feb 2011) $ +* $version: 1.1.0 - added allowPageScroll property to allow swiping and scrolling of page +* - changed handler signatures so one handler can be used for multiple events +* $Date: 2011-23-02 (Wed, 23 Feb 2011) $ +* $version: 1.2.0 - added click handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler. +* - If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object. +* $version: 1.2.1 - removed console log! +* +* $version: 1.2.2 - Fixed bug where scope was not preserved in callback methods. +* +* $Date: 2011-28-04 (Thurs, 28 April 2011) $ +* $version: 1.2.4 - Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring. +* +* $Date: 2011-27-09 (Tues, 27 September 2011) $ +* $version: 1.2.5 - Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy) +* +* $Date: 2012-14-05 (Mon, 14 May 2012) $ +* $version: 1.2.6 - Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected +* +* $Date: 2012-05-06 (Tues, 05 June 2012) $ +* $version: 1.2.7 - Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled. +* +* $Date: 2012-05-06 (Tues, 05 June 2012) $ +* $version: 1.2.8 - Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event. +* +* $Date: 2012-06-06 (Wed, 06 June 2012) $ +* $version: 1.3.0 - Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added 'enable', 'disable', and 'destroy' methods +* +* $Date: 2012-05-06 (Fri, 05 June 2012) $ +* $version: 1.3.1 - Bug fixes - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly. +* +* $Date: 2012-29-07 (Sun, 29 July 2012) $ +* $version: 1.3.2 - Added fallbackToMouseEvents option to NOT capture mouse events on non touch devices. +* - Added "all" fingers value to the fingers property, so any combination of fingers triggers the swipe, allowing event handlers to check the finger count +* +* $Date: 2012-09-08 (Thurs, 9 Aug 2012) $ +* $version: 1.3.3 - Code tidy prep for minefied version +* +* $Date: 2012-04-10 (wed, 4 Oct 2012) $ +* $version: 1.4.0 - Added pinch support, pinchIn and pinchOut +* +* $Date: 2012-11-10 (Thurs, 11 Oct 2012) $ +* $version: 1.5.0 - Added excludedElements, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements. +* +* $Date: 2012-22-10 (Mon, 22 Oct 2012) $ +* $version: 1.5.1 - Fixed bug with jQuery 1.8 and trailing comma in excludedElements +* - Fixed bug with IE and eventPreventDefault() +* $Date: 2013-01-12 (Fri, 12 Jan 2013) $ +* $version: 1.6.0 - Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture. +* - made the demo site all static local HTML pages so they can be run locally by a developer +* - added jsDoc comments and added documentation for the plugin +* - code tidy +* - added triggerOnTouchLeave property that will end the event when the user swipes off the element. +* $Date: 2013-03-23 (Sat, 23 Mar 2013) $ +* $version: 1.6.1 - Added support for ie8 touch events +* $version: 1.6.2 - Added support for events binding with on / off / bind in jQ for all callback names. +* - Deprecated the 'click' handler in favour of tap. +* - added cancelThreshold property +* - added option method to update init options at runtime +* $version 1.6.3 - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property +* +* $Date: 2013-04-04 (Thurs, 04 April 2013) $ +* $version 1.6.4 - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back. +* +* $Date: 2013-08-24 (Sat, 24 Aug 2013) $ +* $version 1.6.5 - Merged a few pull requests fixing various bugs, added AMD support. +* +* $Date: 2014-06-04 (Wed, 04 June 2014) $ +* $version 1.6.6 - Merge of pull requests. +* - IE10 touch support +* - Only prevent default event handling on valid swipe +* - Separate license/changelog comment +* - Detect if the swipe is valid at the end of the touch event. +* - Pass fingerdata to event handlers. +* - Add 'hold' gesture +* - Be more tolerant about the tap distance +* - Typos and minor fixes +*/ + +/** + * See (http://jquery.com/). + * @name $ + * @class + * See the jQuery Library (http://jquery.com/) for full details. This just + * documents the function and classes that are added to jQuery by this plug-in. + */ + +/** + * See (http://jquery.com/) + * @name fn + * @class + * See the jQuery Library (http://jquery.com/) for full details. This just + * documents the function and classes that are added to jQuery by this plug-in. + * @memberOf $ + */ + + + +(function (factory) { + if (typeof define === 'function' && define.amd && define.amd.jQuery) { + // AMD. Register as anonymous module. + define(['jquery'], factory); + } else { + // Browser globals. + factory(jQuery); + } +}(function ($) { + "use strict"; + + //Constants + var LEFT = "left", + RIGHT = "right", + UP = "up", + DOWN = "down", + IN = "in", + OUT = "out", + + NONE = "none", + AUTO = "auto", + + SWIPE = "swipe", + PINCH = "pinch", + TAP = "tap", + DOUBLE_TAP = "doubletap", + LONG_TAP = "longtap", + HOLD = "hold", + + HORIZONTAL = "horizontal", + VERTICAL = "vertical", + + ALL_FINGERS = "all", + + DOUBLE_TAP_THRESHOLD = 10, + + PHASE_START = "start", + PHASE_MOVE = "move", + PHASE_END = "end", + PHASE_CANCEL = "cancel", + + SUPPORTS_TOUCH = 'ontouchstart' in window, + + SUPPORTS_POINTER_IE10 = window.navigator.msPointerEnabled && !window.navigator.pointerEnabled, + + SUPPORTS_POINTER = window.navigator.pointerEnabled || window.navigator.msPointerEnabled, + + PLUGIN_NS = 'TouchSwipe'; + + + + /** + * The default configuration, and available options to configure touch swipe with. + * You can set the default values by updating any of the properties prior to instantiation. + * @name $.fn.swipe.defaults + * @namespace + * @property {int} [fingers=1] The number of fingers to detect in a swipe. Any swipes that do not meet this requirement will NOT trigger swipe handlers. + * @property {int} [threshold=75] The number of pixels that the user must move their finger by before it is considered a swipe. + * @property {int} [cancelThreshold=null] The number of pixels that the user must move their finger back from the original swipe direction to cancel the gesture. + * @property {int} [pinchThreshold=20] The number of pixels that the user must pinch their finger by before it is considered a pinch. + * @property {int} [maxTimeThreshold=null] Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe. + * @property {int} [fingerReleaseThreshold=250] Time in milliseconds between releasing multiple fingers. If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release. + * @property {int} [longTapThreshold=500] Time in milliseconds between tap and release for a long tap + * @property {int} [doubleTapThreshold=200] Time in milliseconds between 2 taps to count as a double tap + * @property {function} [swipe=null] A handler to catch all swipes. See {@link $.fn.swipe#event:swipe} + * @property {function} [swipeLeft=null] A handler that is triggered for "left" swipes. See {@link $.fn.swipe#event:swipeLeft} + * @property {function} [swipeRight=null] A handler that is triggered for "right" swipes. See {@link $.fn.swipe#event:swipeRight} + * @property {function} [swipeUp=null] A handler that is triggered for "up" swipes. See {@link $.fn.swipe#event:swipeUp} + * @property {function} [swipeDown=null] A handler that is triggered for "down" swipes. See {@link $.fn.swipe#event:swipeDown} + * @property {function} [swipeStatus=null] A handler triggered for every phase of the swipe. See {@link $.fn.swipe#event:swipeStatus} + * @property {function} [pinchIn=null] A handler triggered for pinch in events. See {@link $.fn.swipe#event:pinchIn} + * @property {function} [pinchOut=null] A handler triggered for pinch out events. See {@link $.fn.swipe#event:pinchOut} + * @property {function} [pinchStatus=null] A handler triggered for every phase of a pinch. See {@link $.fn.swipe#event:pinchStatus} + * @property {function} [tap=null] A handler triggered when a user just taps on the item, rather than swipes it. If they do not move, tap is triggered, if they do move, it is not. + * @property {function} [doubleTap=null] A handler triggered when a user double taps on the item. The delay between taps can be set with the doubleTapThreshold property. See {@link $.fn.swipe.defaults#doubleTapThreshold} + * @property {function} [longTap=null] A handler triggered when a user long taps on the item. The delay between start and end can be set with the longTapThreshold property. See {@link $.fn.swipe.defaults#longTapThreshold} + * @property (function) [hold=null] A handler triggered when a user reaches longTapThreshold on the item. See {@link $.fn.swipe.defaults#longTapThreshold} + * @property {boolean} [triggerOnTouchEnd=true] If true, the swipe events are triggered when the touch end event is received (user releases finger). If false, it will be triggered on reaching the threshold, and then cancel the touch event automatically. + * @property {boolean} [triggerOnTouchLeave=false] If true, then when the user leaves the swipe object, the swipe will end and trigger appropriate handlers. + * @property {string|undefined} [allowPageScroll='auto'] How the browser handles page scrolls when the user is swiping on a touchSwipe object. See {@link $.fn.swipe.pageScroll}.

+ "auto" : all undefined swipes will cause the page to scroll in that direction.
+ "none" : the page will not scroll when user swipes.
+ "horizontal" : will force page to scroll on horizontal swipes.
+ "vertical" : will force page to scroll on vertical swipes.
+ * @property {boolean} [fallbackToMouseEvents=true] If true mouse events are used when run on a non touch device, false will stop swipes being triggered by mouse events on non tocuh devices. + * @property {string} [excludedElements="button, input, select, textarea, a, .noSwipe"] A jquery selector that specifies child elements that do NOT trigger swipes. By default this excludes all form, input, select, button, anchor and .noSwipe elements. + + */ + var defaults = { + fingers: 1, + threshold: 75, + cancelThreshold:null, + pinchThreshold:20, + maxTimeThreshold: null, + fingerReleaseThreshold:250, + longTapThreshold:500, + doubleTapThreshold:200, + swipe: null, + swipeLeft: null, + swipeRight: null, + swipeUp: null, + swipeDown: null, + swipeStatus: null, + pinchIn:null, + pinchOut:null, + pinchStatus:null, + click:null, //Deprecated since 1.6.2 + tap:null, + doubleTap:null, + longTap:null, + hold:null, + triggerOnTouchEnd: true, + triggerOnTouchLeave:false, + allowPageScroll: "auto", + fallbackToMouseEvents: true, + excludedElements:"label, button, input, select, textarea, a, .noSwipe" + }; + + + + /** + * Applies TouchSwipe behaviour to one or more jQuery objects. + * The TouchSwipe plugin can be instantiated via this method, or methods within + * TouchSwipe can be executed via this method as per jQuery plugin architecture. + * @see TouchSwipe + * @class + * @param {Mixed} method If the current DOMNode is a TouchSwipe object, and method is a TouchSwipe method, then + * the method is executed, and any following arguments are passed to the TouchSwipe method. + * If method is an object, then the TouchSwipe class is instantiated on the current DOMNode, passing the + * configuration properties defined in the object. See TouchSwipe + * + */ + $.fn.swipe = function (method) { + var $this = $(this), + plugin = $this.data(PLUGIN_NS); + + //Check if we are already instantiated and trying to execute a method + if (plugin && typeof method === 'string') { + if (plugin[method]) { + return plugin[method].apply(this, Array.prototype.slice.call(arguments, 1)); + } else { + $.error('Method ' + method + ' does not exist on jQuery.swipe'); + } + } + //Else not instantiated and trying to pass init object (or nothing) + else if (!plugin && (typeof method === 'object' || !method)) { + return init.apply(this, arguments); + } + + return $this; + }; + + //Expose our defaults so a user could override the plugin defaults + $.fn.swipe.defaults = defaults; + + /** + * The phases that a touch event goes through. The phase is passed to the event handlers. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @property {string} PHASE_START Constant indicating the start phase of the touch event. Value is "start". + * @property {string} PHASE_MOVE Constant indicating the move phase of the touch event. Value is "move". + * @property {string} PHASE_END Constant indicating the end phase of the touch event. Value is "end". + * @property {string} PHASE_CANCEL Constant indicating the cancel phase of the touch event. Value is "cancel". + */ + $.fn.swipe.phases = { + PHASE_START: PHASE_START, + PHASE_MOVE: PHASE_MOVE, + PHASE_END: PHASE_END, + PHASE_CANCEL: PHASE_CANCEL + }; + + /** + * The direction constants that are passed to the event handlers. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @property {string} LEFT Constant indicating the left direction. Value is "left". + * @property {string} RIGHT Constant indicating the right direction. Value is "right". + * @property {string} UP Constant indicating the up direction. Value is "up". + * @property {string} DOWN Constant indicating the down direction. Value is "cancel". + * @property {string} IN Constant indicating the in direction. Value is "in". + * @property {string} OUT Constant indicating the out direction. Value is "out". + */ + $.fn.swipe.directions = { + LEFT: LEFT, + RIGHT: RIGHT, + UP: UP, + DOWN: DOWN, + IN : IN, + OUT: OUT + }; + + /** + * The page scroll constants that can be used to set the value of allowPageScroll option + * These properties are read only + * @namespace + * @readonly + * @see $.fn.swipe.defaults#allowPageScroll + * @property {string} NONE Constant indicating no page scrolling is allowed. Value is "none". + * @property {string} HORIZONTAL Constant indicating horizontal page scrolling is allowed. Value is "horizontal". + * @property {string} VERTICAL Constant indicating vertical page scrolling is allowed. Value is "vertical". + * @property {string} AUTO Constant indicating either horizontal or vertical will be allowed, depending on the swipe handlers registered. Value is "auto". + */ + $.fn.swipe.pageScroll = { + NONE: NONE, + HORIZONTAL: HORIZONTAL, + VERTICAL: VERTICAL, + AUTO: AUTO + }; + + /** + * Constants representing the number of fingers used in a swipe. These are used to set both the value of fingers in the + * options object, as well as the value of the fingers event property. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @see $.fn.swipe.defaults#fingers + * @property {string} ONE Constant indicating 1 finger is to be detected / was detected. Value is 1. + * @property {string} TWO Constant indicating 2 fingers are to be detected / were detected. Value is 1. + * @property {string} THREE Constant indicating 3 finger are to be detected / were detected. Value is 1. + * @property {string} ALL Constant indicating any combination of finger are to be detected. Value is "all". + */ + $.fn.swipe.fingers = { + ONE: 1, + TWO: 2, + THREE: 3, + ALL: ALL_FINGERS + }; + + /** + * Initialise the plugin for each DOM element matched + * This creates a new instance of the main TouchSwipe class for each DOM element, and then + * saves a reference to that instance in the elements data property. + * @internal + */ + function init(options) { + //Prep and extend the options + if (options && (options.allowPageScroll === undefined && (options.swipe !== undefined || options.swipeStatus !== undefined))) { + options.allowPageScroll = NONE; + } + + //Check for deprecated options + //Ensure that any old click handlers are assigned to the new tap, unless we have a tap + if(options.click!==undefined && options.tap===undefined) { + options.tap = options.click; + } + + if (!options) { + options = {}; + } + + //pass empty object so we dont modify the defaults + options = $.extend({}, $.fn.swipe.defaults, options); + + //For each element instantiate the plugin + return this.each(function () { + var $this = $(this); + + //Check we havent already initialised the plugin + var plugin = $this.data(PLUGIN_NS); + + if (!plugin) { + plugin = new TouchSwipe(this, options); + $this.data(PLUGIN_NS, plugin); + } + }); + } + + /** + * Main TouchSwipe Plugin Class. + * Do not use this to construct your TouchSwipe object, use the jQuery plugin method $.fn.swipe(); {@link $.fn.swipe} + * @private + * @name TouchSwipe + * @param {DOMNode} element The HTML DOM object to apply to plugin to + * @param {Object} options The options to configure the plugin with. @link {$.fn.swipe.defaults} + * @see $.fh.swipe.defaults + * @see $.fh.swipe + * @class + */ + function TouchSwipe(element, options) { + var useTouchEvents = (SUPPORTS_TOUCH || SUPPORTS_POINTER || !options.fallbackToMouseEvents), + START_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerDown' : 'pointerdown') : 'touchstart') : 'mousedown', + MOVE_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerMove' : 'pointermove') : 'touchmove') : 'mousemove', + END_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerUp' : 'pointerup') : 'touchend') : 'mouseup', + LEAVE_EV = useTouchEvents ? null : 'mouseleave', //we manually detect leave on touch devices, so null event here + CANCEL_EV = (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerCancel' : 'pointercancel') : 'touchcancel'); + + + + //touch properties + var distance = 0, + direction = null, + duration = 0, + startTouchesDistance = 0, + endTouchesDistance = 0, + pinchZoom = 1, + pinchDistance = 0, + pinchDirection = 0, + maximumsMap=null; + + + + //jQuery wrapped element for this instance + var $element = $(element); + + //Current phase of th touch cycle + var phase = "start"; + + // the current number of fingers being used. + var fingerCount = 0; + + //track mouse points / delta + var fingerData=null; + + //track times + var startTime = 0, + endTime = 0, + previousTouchEndTime=0, + previousTouchFingerCount=0, + doubleTapStartTime=0; + + //Timeouts + var singleTapTimeout=null, + holdTimeout=null; + + // Add gestures to all swipable areas if supported + try { + $element.bind(START_EV, touchStart); + $element.bind(CANCEL_EV, touchCancel); + } + catch (e) { + $.error('events not supported ' + START_EV + ',' + CANCEL_EV + ' on jQuery.swipe'); + } + + // + //Public methods + // + + /** + * re-enables the swipe plugin with the previous configuration + * @function + * @name $.fn.swipe#enable + * @return {DOMNode} The Dom element that was registered with TouchSwipe + * @example $("#element").swipe("enable"); + */ + this.enable = function () { + $element.bind(START_EV, touchStart); + $element.bind(CANCEL_EV, touchCancel); + return $element; + }; + + /** + * disables the swipe plugin + * @function + * @name $.fn.swipe#disable + * @return {DOMNode} The Dom element that is now registered with TouchSwipe + * @example $("#element").swipe("disable"); + */ + this.disable = function () { + removeListeners(); + return $element; + }; + + /** + * Destroy the swipe plugin completely. To use any swipe methods, you must re initialise the plugin. + * @function + * @name $.fn.swipe#destroy + * @return {DOMNode} The Dom element that was registered with TouchSwipe + * @example $("#element").swipe("destroy"); + */ + this.destroy = function () { + removeListeners(); + $element.data(PLUGIN_NS, null); + return $element; + }; + + + /** + * Allows run time updating of the swipe configuration options. + * @function + * @name $.fn.swipe#option + * @param {String} property The option property to get or set + * @param {Object} [value] The value to set the property to + * @return {Object} If only a property name is passed, then that property value is returned. + * @example $("#element").swipe("option", "threshold"); // return the threshold + * @example $("#element").swipe("option", "threshold", 100); // set the threshold after init + * @see $.fn.swipe.defaults + * + */ + this.option = function (property, value) { + if(options[property]!==undefined) { + if(value===undefined) { + return options[property]; + } else { + options[property] = value; + } + } else { + $.error('Option ' + property + ' does not exist on jQuery.swipe.options'); + } + + return null; + } + + // + // Private methods + // + + // + // EVENTS + // + /** + * Event handler for a touch start event. + * Stops the default click event from triggering and stores where we touched + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchStart(jqEvent) { + //If we already in a touch event (a finger already in use) then ignore subsequent ones.. + if( getTouchInProgress() ) + return; + + //Check if this element matches any in the excluded elements selectors, or its parent is excluded, if so, DON'T swipe + if( $(jqEvent.target).closest( options.excludedElements, $element ).length>0 ) + return; + + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + var ret, + evt = SUPPORTS_TOUCH ? event.touches[0] : event; + + phase = PHASE_START; + + //If we support touches, get the finger count + if (SUPPORTS_TOUCH) { + // get the total number of fingers touching the screen + fingerCount = event.touches.length; + } + //Else this is the desktop, so stop the browser from dragging the image + else { + jqEvent.preventDefault(); //call this on jq event so we are cross browser + } + + //clear vars.. + distance = 0; + direction = null; + pinchDirection=null; + duration = 0; + startTouchesDistance=0; + endTouchesDistance=0; + pinchZoom = 1; + pinchDistance = 0; + fingerData=createAllFingerData(); + maximumsMap=createMaximumsData(); + cancelMultiFingerRelease(); + + + // check the number of fingers is what we are looking for, or we are capturing pinches + if (!SUPPORTS_TOUCH || (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || hasPinches()) { + // get the coordinates of the touch + createFingerData( 0, evt ); + startTime = getTimeStamp(); + + if(fingerCount==2) { + //Keep track of the initial pinch distance, so we can calculate the diff later + //Store second finger data as start + createFingerData( 1, event.touches[1] ); + startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start); + } + + if (options.swipeStatus || options.pinchStatus) { + ret = triggerHandler(event, phase); + } + } + else { + //A touch with more or less than the fingers we are looking for, so cancel + ret = false; + } + + //If we have a return value from the users handler, then return and cancel + if (ret === false) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + return ret; + } + else { + if (options.hold) { + holdTimeout = setTimeout($.proxy(function() { + //Trigger the event + $element.trigger('hold', [event.target]); + //Fire the callback + if(options.hold) { + ret = options.hold.call($element, event, event.target); + } + }, this), options.longTapThreshold ); + } + + setTouchInProgress(true); + } + + return null; + }; + + + + /** + * Event handler for a touch move event. + * If we change fingers during move, then cancel the event + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchMove(jqEvent) { + + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + //If we are ending, cancelling, or within the threshold of 2 fingers being released, don't track anything.. + if (phase === PHASE_END || phase === PHASE_CANCEL || inMultiFingerRelease()) + return; + + var ret, + evt = SUPPORTS_TOUCH ? event.touches[0] : event; + + + //Update the finger data + var currentFinger = updateFingerData(evt); + endTime = getTimeStamp(); + + if (SUPPORTS_TOUCH) { + fingerCount = event.touches.length; + } + + if (options.hold) + clearTimeout(holdTimeout); + + phase = PHASE_MOVE; + + //If we have 2 fingers get Touches distance as well + if(fingerCount==2) { + + //Keep track of the initial pinch distance, so we can calculate the diff later + //We do this here as well as the start event, in case they start with 1 finger, and the press 2 fingers + if(startTouchesDistance==0) { + //Create second finger if this is the first time... + createFingerData( 1, event.touches[1] ); + + startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start); + } else { + //Else just update the second finger + updateFingerData(event.touches[1]); + + endTouchesDistance = calculateTouchesDistance(fingerData[0].end, fingerData[1].end); + pinchDirection = calculatePinchDirection(fingerData[0].end, fingerData[1].end); + } + + + pinchZoom = calculatePinchZoom(startTouchesDistance, endTouchesDistance); + pinchDistance = Math.abs(startTouchesDistance - endTouchesDistance); + } + + + if ( (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !SUPPORTS_TOUCH || hasPinches() ) { + + direction = calculateDirection(currentFinger.start, currentFinger.end); + + //Check if we need to prevent default event (page scroll / pinch zoom) or not + validateDefaultEvent(jqEvent, direction); + + //Distance and duration are all off the main finger + distance = calculateDistance(currentFinger.start, currentFinger.end); + duration = calculateDuration(); + + //Cache the maximum distance we made in this direction + setMaxDistance(direction, distance); + + + if (options.swipeStatus || options.pinchStatus) { + ret = triggerHandler(event, phase); + } + + + //If we trigger end events when threshold are met, or trigger events when touch leaves element + if(!options.triggerOnTouchEnd || options.triggerOnTouchLeave) { + + var inBounds = true; + + //If checking if we leave the element, run the bounds check (we can use touchleave as its not supported on webkit) + if(options.triggerOnTouchLeave) { + var bounds = getbounds( this ); + inBounds = isInBounds( currentFinger.end, bounds ); + } + + //Trigger end handles as we swipe if thresholds met or if we have left the element if the user has asked to check these.. + if(!options.triggerOnTouchEnd && inBounds) { + phase = getNextPhase( PHASE_MOVE ); + } + //We end if out of bounds here, so set current phase to END, and check if its modified + else if(options.triggerOnTouchLeave && !inBounds ) { + phase = getNextPhase( PHASE_END ); + } + + if(phase==PHASE_CANCEL || phase==PHASE_END) { + triggerHandler(event, phase); + } + } + } + else { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + + if (ret === false) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + } + + + + /** + * Event handler for a touch end event. + * Calculate the direction and trigger events + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchEnd(jqEvent) { + //As we use Jquery bind for events, we need to target the original event object + var event = jqEvent.originalEvent; + + + //If we are still in a touch with another finger return + //This allows us to wait a fraction and see if the other finger comes up, if it does within the threshold, then we treat it as a multi release, not a single release. + if (SUPPORTS_TOUCH) { + if(event.touches.length>0) { + startMultiFingerRelease(); + return true; + } + } + + //If a previous finger has been released, check how long ago, if within the threshold, then assume it was a multifinger release. + //This is used to allow 2 fingers to release fractionally after each other, whilst maintainig the event as containg 2 fingers, not 1 + if(inMultiFingerRelease()) { + fingerCount=previousTouchFingerCount; + } + + //Set end of swipe + endTime = getTimeStamp(); + + //Get duration incase move was never fired + duration = calculateDuration(); + + //If we trigger handlers at end of swipe OR, we trigger during, but they didnt trigger and we are still in the move phase + if(didSwipeBackToCancel() || !validateSwipeDistance()) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } else if (options.triggerOnTouchEnd || (options.triggerOnTouchEnd == false && phase === PHASE_MOVE)) { + //call this on jq event so we are cross browser + jqEvent.preventDefault(); + phase = PHASE_END; + triggerHandler(event, phase); + } + //Special cases - A tap should always fire on touch end regardless, + //So here we manually trigger the tap end handler by itself + //We dont run trigger handler as it will re-trigger events that may have fired already + else if (!options.triggerOnTouchEnd && hasTap()) { + //Trigger the pinch events... + phase = PHASE_END; + triggerHandlerForGesture(event, phase, TAP); + } + else if (phase === PHASE_MOVE) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + + setTouchInProgress(false); + + return null; + } + + + + /** + * Event handler for a touch cancel event. + * Clears current vars + * @inner + */ + function touchCancel() { + // reset the variables back to default values + fingerCount = 0; + endTime = 0; + startTime = 0; + startTouchesDistance=0; + endTouchesDistance=0; + pinchZoom=1; + + //If we were in progress of tracking a possible multi touch end, then re set it. + cancelMultiFingerRelease(); + + setTouchInProgress(false); + } + + + /** + * Event handler for a touch leave event. + * This is only triggered on desktops, in touch we work this out manually + * as the touchleave event is not supported in webkit + * @inner + */ + function touchLeave(jqEvent) { + var event = jqEvent.originalEvent; + + //If we have the trigger on leave property set.... + if(options.triggerOnTouchLeave) { + phase = getNextPhase( PHASE_END ); + triggerHandler(event, phase); + } + } + + /** + * Removes all listeners that were associated with the plugin + * @inner + */ + function removeListeners() { + $element.unbind(START_EV, touchStart); + $element.unbind(CANCEL_EV, touchCancel); + $element.unbind(MOVE_EV, touchMove); + $element.unbind(END_EV, touchEnd); + + //we only have leave events on desktop, we manually calculate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.unbind(LEAVE_EV, touchLeave); + } + + setTouchInProgress(false); + } + + + /** + * Checks if the time and distance thresholds have been met, and if so then the appropriate handlers are fired. + */ + function getNextPhase(currentPhase) { + + var nextPhase = currentPhase; + + // Ensure we have valid swipe (under time and over distance and check if we are out of bound...) + var validTime = validateSwipeTime(); + var validDistance = validateSwipeDistance(); + var didCancel = didSwipeBackToCancel(); + + //If we have exceeded our time, then cancel + if(!validTime || didCancel) { + nextPhase = PHASE_CANCEL; + } + //Else if we are moving, and have reached distance then end + else if (validDistance && currentPhase == PHASE_MOVE && (!options.triggerOnTouchEnd || options.triggerOnTouchLeave) ) { + nextPhase = PHASE_END; + } + //Else if we have ended by leaving and didn't reach distance, then cancel + else if (!validDistance && currentPhase==PHASE_END && options.triggerOnTouchLeave) { + nextPhase = PHASE_CANCEL; + } + + return nextPhase; + } + + + /** + * Trigger the relevant event handler + * The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down" + * @param {object} event the original event object + * @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases} + * @inner + */ + function triggerHandler(event, phase) { + + var ret = undefined; + + // SWIPE GESTURES + if(didSwipe() || hasSwipes()) { //hasSwipes as status needs to fire even if swipe is invalid + //Trigger the swipe events... + ret = triggerHandlerForGesture(event, phase, SWIPE); + } + + // PINCH GESTURES (if the above didn't cancel) + else if((didPinch() || hasPinches()) && ret!==false) { + //Trigger the pinch events... + ret = triggerHandlerForGesture(event, phase, PINCH); + } + + // CLICK / TAP (if the above didn't cancel) + if(didDoubleTap() && ret!==false) { + //Trigger the tap events... + ret = triggerHandlerForGesture(event, phase, DOUBLE_TAP); + } + + // CLICK / TAP (if the above didn't cancel) + else if(didLongTap() && ret!==false) { + //Trigger the tap events... + ret = triggerHandlerForGesture(event, phase, LONG_TAP); + } + + // CLICK / TAP (if the above didn't cancel) + else if(didTap() && ret!==false) { + //Trigger the tap event.. + ret = triggerHandlerForGesture(event, phase, TAP); + } + + + + // If we are cancelling the gesture, then manually trigger the reset handler + if (phase === PHASE_CANCEL) { + touchCancel(event); + } + + // If we are ending the gesture, then manually trigger the reset handler IF all fingers are off + if(phase === PHASE_END) { + //If we support touch, then check that all fingers are off before we cancel + if (SUPPORTS_TOUCH) { + if(event.touches.length==0) { + touchCancel(event); + } + } + else { + touchCancel(event); + } + } + + return ret; + } + + + + /** + * Trigger the relevant event handler + * The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down" + * @param {object} event the original event object + * @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases} + * @param {string} gesture the gesture to trigger a handler for : PINCH or SWIPE {@link $.fn.swipe.gestures} + * @return Boolean False, to indicate that the event should stop propagation, or void. + * @inner + */ + function triggerHandlerForGesture(event, phase, gesture) { + + var ret=undefined; + + //SWIPES.... + if(gesture==SWIPE) { + //Trigger status every time.. + + //Trigger the event... + $element.trigger('swipeStatus', [phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeStatus) { + ret = options.swipeStatus.call($element, event, phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + + + + if (phase == PHASE_END && validateSwipe()) { + //Fire the catch all event + $element.trigger('swipe', [direction, distance, duration, fingerCount, fingerData]); + + //Fire catch all callback + if (options.swipe) { + ret = options.swipe.call($element, event, direction, distance, duration, fingerCount, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + //trigger direction specific event handlers + switch (direction) { + case LEFT: + //Trigger the event + $element.trigger('swipeLeft', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeLeft) { + ret = options.swipeLeft.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case RIGHT: + //Trigger the event + $element.trigger('swipeRight', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeRight) { + ret = options.swipeRight.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case UP: + //Trigger the event + $element.trigger('swipeUp', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeUp) { + ret = options.swipeUp.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case DOWN: + //Trigger the event + $element.trigger('swipeDown', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeDown) { + ret = options.swipeDown.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + } + } + } + + + //PINCHES.... + if(gesture==PINCH) { + //Trigger the event + $element.trigger('pinchStatus', [phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchStatus) { + ret = options.pinchStatus.call($element, event, phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + if(phase==PHASE_END && validatePinch()) { + + switch (pinchDirection) { + case IN: + //Trigger the event + $element.trigger('pinchIn', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchIn) { + ret = options.pinchIn.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + } + break; + + case OUT: + //Trigger the event + $element.trigger('pinchOut', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchOut) { + ret = options.pinchOut.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + } + break; + } + } + } + + + + + + if(gesture==TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + + + //Cancel any existing double tap + clearTimeout(singleTapTimeout); + //Cancel hold timeout + clearTimeout(holdTimeout); + + //If we are also looking for doubelTaps, wait incase this is one... + if(hasDoubleTap() && !inDoubleTap()) { + //Cache the time of this tap + doubleTapStartTime = getTimeStamp(); + + //Now wait for the double tap timeout, and trigger this single tap + //if its not cancelled by a double tap + singleTapTimeout = setTimeout($.proxy(function() { + doubleTapStartTime=null; + //Trigger the event + $element.trigger('tap', [event.target]); + + + //Fire the callback + if(options.tap) { + ret = options.tap.call($element, event, event.target); + } + }, this), options.doubleTapThreshold ); + + } else { + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('tap', [event.target]); + + + //Fire the callback + if(options.tap) { + ret = options.tap.call($element, event, event.target); + } + } + } + } + + else if (gesture==DOUBLE_TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + //Cancel any pending singletap + clearTimeout(singleTapTimeout); + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('doubletap', [event.target]); + + //Fire the callback + if(options.doubleTap) { + ret = options.doubleTap.call($element, event, event.target); + } + } + } + + else if (gesture==LONG_TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + //Cancel any pending singletap (shouldnt be one) + clearTimeout(singleTapTimeout); + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('longtap', [event.target]); + + //Fire the callback + if(options.longTap) { + ret = options.longTap.call($element, event, event.target); + } + } + } + + return ret; + } + + + + + // + // GESTURE VALIDATION + // + + /** + * Checks the user has swipe far enough + * @return Boolean if threshold has been set, return true if the threshold was met, else false. + * If no threshold was set, then we return true. + * @inner + */ + function validateSwipeDistance() { + var valid = true; + //If we made it past the min swipe distance.. + if (options.threshold !== null) { + valid = distance >= options.threshold; + } + + return valid; + } + + /** + * Checks the user has swiped back to cancel. + * @return Boolean if cancelThreshold has been set, return true if the cancelThreshold was met, else false. + * If no cancelThreshold was set, then we return true. + * @inner + */ + function didSwipeBackToCancel() { + var cancelled = false; + if(options.cancelThreshold !== null && direction !==null) { + cancelled = (getMaxDistance( direction ) - distance) >= options.cancelThreshold; + } + + return cancelled; + } + + /** + * Checks the user has pinched far enough + * @return Boolean if pinchThreshold has been set, return true if the threshold was met, else false. + * If no threshold was set, then we return true. + * @inner + */ + function validatePinchDistance() { + if (options.pinchThreshold !== null) { + return pinchDistance >= options.pinchThreshold; + } + return true; + } + + /** + * Checks that the time taken to swipe meets the minimum / maximum requirements + * @return Boolean + * @inner + */ + function validateSwipeTime() { + var result; + //If no time set, then return true + + if (options.maxTimeThreshold) { + if (duration >= options.maxTimeThreshold) { + result = false; + } else { + result = true; + } + } + else { + result = true; + } + + return result; + } + + + /** + * Checks direction of the swipe and the value allowPageScroll to see if we should allow or prevent the default behaviour from occurring. + * This will essentially allow page scrolling or not when the user is swiping on a touchSwipe object. + * @param {object} jqEvent The normalised jQuery representation of the event object. + * @param {string} direction The direction of the event. See {@link $.fn.swipe.directions} + * @see $.fn.swipe.directions + * @inner + */ + function validateDefaultEvent(jqEvent, direction) { + if (options.allowPageScroll === NONE || hasPinches()) { + jqEvent.preventDefault(); + } else { + var auto = options.allowPageScroll === AUTO; + + switch (direction) { + case LEFT: + if ((options.swipeLeft && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) { + jqEvent.preventDefault(); + } + break; + + case RIGHT: + if ((options.swipeRight && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) { + jqEvent.preventDefault(); + } + break; + + case UP: + if ((options.swipeUp && auto) || (!auto && options.allowPageScroll != VERTICAL)) { + jqEvent.preventDefault(); + } + break; + + case DOWN: + if ((options.swipeDown && auto) || (!auto && options.allowPageScroll != VERTICAL)) { + jqEvent.preventDefault(); + } + break; + } + } + + } + + + // PINCHES + /** + * Returns true of the current pinch meets the thresholds + * @return Boolean + * @inner + */ + function validatePinch() { + var hasCorrectFingerCount = validateFingers(); + var hasEndPoint = validateEndPoint(); + var hasCorrectDistance = validatePinchDistance(); + return hasCorrectFingerCount && hasEndPoint && hasCorrectDistance; + + } + + /** + * Returns true if any Pinch events have been registered + * @return Boolean + * @inner + */ + function hasPinches() { + //Enure we dont return 0 or null for false values + return !!(options.pinchStatus || options.pinchIn || options.pinchOut); + } + + /** + * Returns true if we are detecting pinches, and have one + * @return Boolean + * @inner + */ + function didPinch() { + //Enure we dont return 0 or null for false values + return !!(validatePinch() && hasPinches()); + } + + + + + // SWIPES + /** + * Returns true if the current swipe meets the thresholds + * @return Boolean + * @inner + */ + function validateSwipe() { + //Check validity of swipe + var hasValidTime = validateSwipeTime(); + var hasValidDistance = validateSwipeDistance(); + var hasCorrectFingerCount = validateFingers(); + var hasEndPoint = validateEndPoint(); + var didCancel = didSwipeBackToCancel(); + + // if the user swiped more than the minimum length, perform the appropriate action + // hasValidDistance is null when no distance is set + var valid = !didCancel && hasEndPoint && hasCorrectFingerCount && hasValidDistance && hasValidTime; + + return valid; + } + + /** + * Returns true if any Swipe events have been registered + * @return Boolean + * @inner + */ + function hasSwipes() { + //Enure we dont return 0 or null for false values + return !!(options.swipe || options.swipeStatus || options.swipeLeft || options.swipeRight || options.swipeUp || options.swipeDown); + } + + + /** + * Returns true if we are detecting swipes and have one + * @return Boolean + * @inner + */ + function didSwipe() { + //Enure we dont return 0 or null for false values + return !!(validateSwipe() && hasSwipes()); + } + + /** + * Returns true if we have matched the number of fingers we are looking for + * @return Boolean + * @inner + */ + function validateFingers() { + //The number of fingers we want were matched, or on desktop we ignore + return ((fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !SUPPORTS_TOUCH); + } + + /** + * Returns true if we have an end point for the swipe + * @return Boolean + * @inner + */ + function validateEndPoint() { + //We have an end value for the finger + return fingerData[0].end.x !== 0; + } + + // TAP / CLICK + /** + * Returns true if a click / tap events have been registered + * @return Boolean + * @inner + */ + function hasTap() { + //Enure we dont return 0 or null for false values + return !!(options.tap) ; + } + + /** + * Returns true if a double tap events have been registered + * @return Boolean + * @inner + */ + function hasDoubleTap() { + //Enure we dont return 0 or null for false values + return !!(options.doubleTap) ; + } + + /** + * Returns true if any long tap events have been registered + * @return Boolean + * @inner + */ + function hasLongTap() { + //Enure we dont return 0 or null for false values + return !!(options.longTap) ; + } + + /** + * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past. + * @return Boolean + * @inner + */ + function validateDoubleTap() { + if(doubleTapStartTime==null){ + return false; + } + var now = getTimeStamp(); + return (hasDoubleTap() && ((now-doubleTapStartTime) <= options.doubleTapThreshold)); + } + + /** + * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past. + * @return Boolean + * @inner + */ + function inDoubleTap() { + return validateDoubleTap(); + } + + + /** + * Returns true if we have a valid tap + * @return Boolean + * @inner + */ + function validateTap() { + return ((fingerCount === 1 || !SUPPORTS_TOUCH) && (isNaN(distance) || distance < options.threshold)); + } + + /** + * Returns true if we have a valid long tap + * @return Boolean + * @inner + */ + function validateLongTap() { + //slight threshold on moving finger + return ((duration > options.longTapThreshold) && (distance < DOUBLE_TAP_THRESHOLD)); + } + + /** + * Returns true if we are detecting taps and have one + * @return Boolean + * @inner + */ + function didTap() { + //Enure we dont return 0 or null for false values + return !!(validateTap() && hasTap()); + } + + + /** + * Returns true if we are detecting double taps and have one + * @return Boolean + * @inner + */ + function didDoubleTap() { + //Enure we dont return 0 or null for false values + return !!(validateDoubleTap() && hasDoubleTap()); + } + + /** + * Returns true if we are detecting long taps and have one + * @return Boolean + * @inner + */ + function didLongTap() { + //Enure we dont return 0 or null for false values + return !!(validateLongTap() && hasLongTap()); + } + + + + + // MULTI FINGER TOUCH + /** + * Starts tracking the time between 2 finger releases, and keeps track of how many fingers we initially had up + * @inner + */ + function startMultiFingerRelease() { + previousTouchEndTime = getTimeStamp(); + previousTouchFingerCount = event.touches.length+1; + } + + /** + * Cancels the tracking of time between 2 finger releases, and resets counters + * @inner + */ + function cancelMultiFingerRelease() { + previousTouchEndTime = 0; + previousTouchFingerCount = 0; + } + + /** + * Checks if we are in the threshold between 2 fingers being released + * @return Boolean + * @inner + */ + function inMultiFingerRelease() { + + var withinThreshold = false; + + if(previousTouchEndTime) { + var diff = getTimeStamp() - previousTouchEndTime + if( diff<=options.fingerReleaseThreshold ) { + withinThreshold = true; + } + } + + return withinThreshold; + } + + + /** + * gets a data flag to indicate that a touch is in progress + * @return Boolean + * @inner + */ + function getTouchInProgress() { + //strict equality to ensure only true and false are returned + return !!($element.data(PLUGIN_NS+'_intouch') === true); + } + + /** + * Sets a data flag to indicate that a touch is in progress + * @param {boolean} val The value to set the property to + * @inner + */ + function setTouchInProgress(val) { + + //Add or remove event listeners depending on touch status + if(val===true) { + $element.bind(MOVE_EV, touchMove); + $element.bind(END_EV, touchEnd); + + //we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.bind(LEAVE_EV, touchLeave); + } + } else { + $element.unbind(MOVE_EV, touchMove, false); + $element.unbind(END_EV, touchEnd, false); + + //we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.unbind(LEAVE_EV, touchLeave, false); + } + } + + + //strict equality to ensure only true and false can update the value + $element.data(PLUGIN_NS+'_intouch', val === true); + } + + + /** + * Creates the finger data for the touch/finger in the event object. + * @param {int} index The index in the array to store the finger data (usually the order the fingers were pressed) + * @param {object} evt The event object containing finger data + * @return finger data object + * @inner + */ + function createFingerData( index, evt ) { + var id = evt.identifier!==undefined ? evt.identifier : 0; + + fingerData[index].identifier = id; + fingerData[index].start.x = fingerData[index].end.x = evt.pageX||evt.clientX; + fingerData[index].start.y = fingerData[index].end.y = evt.pageY||evt.clientY; + + return fingerData[index]; + } + + /** + * Updates the finger data for a particular event object + * @param {object} evt The event object containing the touch/finger data to upadte + * @return a finger data object. + * @inner + */ + function updateFingerData(evt) { + + var id = evt.identifier!==undefined ? evt.identifier : 0; + var f = getFingerData( id ); + + f.end.x = evt.pageX||evt.clientX; + f.end.y = evt.pageY||evt.clientY; + + return f; + } + + /** + * Returns a finger data object by its event ID. + * Each touch event has an identifier property, which is used + * to track repeat touches + * @param {int} id The unique id of the finger in the sequence of touch events. + * @return a finger data object. + * @inner + */ + function getFingerData( id ) { + for(var i=0; i= 0)) { + return LEFT; + } else if ((angle <= 360) && (angle >= 315)) { + return LEFT; + } else if ((angle >= 135) && (angle <= 225)) { + return RIGHT; + } else if ((angle > 45) && (angle < 135)) { + return DOWN; + } else { + return UP; + } + } + + + /** + * Returns a MS time stamp of the current time + * @return int + * @inner + */ + function getTimeStamp() { + var now = new Date(); + return now.getTime(); + } + + + + /** + * Returns a bounds object with left, right, top and bottom properties for the element specified. + * @param {DomNode} The DOM node to get the bounds for. + */ + function getbounds( el ) { + el = $(el); + var offset = el.offset(); + + var bounds = { + left:offset.left, + right:offset.left+el.outerWidth(), + top:offset.top, + bottom:offset.top+el.outerHeight() + } + + return bounds; + } + + + /** + * Checks if the point object is in the bounds object. + * @param {object} point A point object. + * @param {int} point.x The x value of the point. + * @param {int} point.y The x value of the point. + * @param {object} bounds The bounds object to test + * @param {int} bounds.left The leftmost value + * @param {int} bounds.right The righttmost value + * @param {int} bounds.top The topmost value + * @param {int} bounds.bottom The bottommost value + */ + function isInBounds(point, bounds) { + return (point.x > bounds.left && point.x < bounds.right && point.y > bounds.top && point.y < bounds.bottom); + }; + + + } + + + + +/** + * A catch all handler that is triggered for all swipe directions. + * @name $.fn.swipe#swipe + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + + + + +/** + * A handler that is triggered for "left" swipes. + * @name $.fn.swipe#swipeLeft + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "right" swipes. + * @name $.fn.swipe#swipeRight + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "up" swipes. + * @name $.fn.swipe#swipeUp + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "down" swipes. + * @name $.fn.swipe#swipeDown + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for every phase of the swipe. This handler is constantly fired for the duration of the pinch. + * This is triggered regardless of swipe thresholds. + * @name $.fn.swipe#swipeStatus + * @event + * @default null + * @param {EventObject} event The original event object + * @param {string} phase The phase of the swipe event. See {@link $.fn.swipe.phases} + * @param {string} direction The direction the user swiped in. This is null if the user has yet to move. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped. This is 0 if the user has yet to move. + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for pinch in events. + * @name $.fn.swipe#pinchIn + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for pinch out events. + * @name $.fn.swipe#pinchOut + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for all pinch events. This handler is constantly fired for the duration of the pinch. This is triggered regardless of thresholds. + * @name $.fn.swipe#pinchStatus + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A click handler triggered when a user simply clicks, rather than swipes on an element. + * This is deprecated since version 1.6.2, any assignment to click will be assigned to the tap handler. + * You cannot use on to bind to this event as the default jQ click event will be triggered. + * Use the tap event instead. + * @name $.fn.swipe#click + * @event + * @deprecated since version 1.6.2, please use {@link $.fn.swipe#tap} instead + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A click / tap handler triggered when a user simply clicks or taps, rather than swipes on an element. + * @name $.fn.swipe#tap + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + +/** + * A double tap handler triggered when a user double clicks or taps on an element. + * You can set the time delay for a double tap with the {@link $.fn.swipe.defaults#doubleTapThreshold} property. + * Note: If you set both doubleTap and tap handlers, the tap event will be delayed by the doubleTapThreshold + * as the script needs to check if its a double tap. + * @name $.fn.swipe#doubleTap + * @see $.fn.swipe.defaults#doubleTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A long tap handler triggered once a tap has been release if the tap was longer than the longTapThreshold. + * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. + * @name $.fn.swipe#longTap + * @see $.fn.swipe.defaults#longTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A hold tap handler triggered as soon as the longTapThreshold is reached + * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. + * @name $.fn.swipe#hold + * @see $.fn.swipe.defaults#longTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + +})); diff --git a/phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.min.js b/phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.min.js new file mode 100644 index 0000000000..f053f10bf3 --- /dev/null +++ b/phpgwapi/js/jquery/TouchSwipe/jquery.touchSwipe.min.js @@ -0,0 +1 @@ +(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",A="tap",j="doubletap",b="longtap",y="hold",D="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};f.fn.swipe=function(G){var F=f(this),E=F.data(B);if(E&&typeof G==="string"){if(E[G]){return E[G].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+G+" does not exist on jQuery.swipe")}}else{if(!E&&(typeof G==="object"||!G)){return w.apply(this,arguments)}}return F};f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:z};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:D,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(E){if(E&&(E.allowPageScroll===undefined&&(E.swipe!==undefined||E.swipeStatus!==undefined))){E.allowPageScroll=m}if(E.click!==undefined&&E.tap===undefined){E.tap=E.click}if(!E){E={}}E=f.extend({},f.fn.swipe.defaults,E);return this.each(function(){var G=f(this);var F=G.data(B);if(!F){F=new C(this,E);G.data(B,F)}})}function C(a4,av){var az=(a||d||!av.fallbackToMouseEvents),J=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",U=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",S=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ab=0,a1=0,aZ=0,G=1,aq=0,aJ=0,M=null;var aR=f(a4);var Z="start";var W=0;var aQ=null;var T=0,a2=0,a5=0,ad=0,N=0;var aW=null,af=null;try{aR.bind(J,aN);aR.bind(aD,a9)}catch(ak){f.error("events not supported "+J+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(J,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(B,null);return aR};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(av.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bb=a?be.touches[0]:be;Z=g;if(a){W=be.touches.length}else{bd.preventDefault()}ag=0;aP=null;aJ=null;ab=0;a1=0;aZ=0;G=1;aq=0;aQ=aj();M=aa();R();if(!a||(W===av.fingers||av.fingers===i)||aX()){ai(0,bb);T=at();if(W==2){ai(1,be.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}if(av.swipeStatus||av.pinchStatus){bc=O(be,Z)}}else{bc=false}if(bc===false){Z=q;O(be,Z);return bc}else{if(av.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(aR,be,be.target)}},this),av.longTapThreshold)}ao(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(Z===h||Z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=aH(bc);a2=at();if(a){W=bh.touches.length}if(av.hold){clearTimeout(af)}Z=k;if(W==2){if(a1==0){ai(1,bh.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}else{aH(bh.touches[1]);aZ=au(aQ[0].end,aQ[1].end);aJ=ar(aQ[0].end,aQ[1].end)}G=a7(a1,aZ);aq=Math.abs(a1-aZ)}if((W===av.fingers||av.fingers===i)||!a||aX()){aP=aL(bf.start,bf.end);al(be,aP);ag=aS(bf.start,bf.end);ab=aM();aI(aP,ag);if(av.swipeStatus||av.pinchStatus){bd=O(bh,Z)}if(!av.triggerOnTouchEnd||av.triggerOnTouchLeave){var bb=true;if(av.triggerOnTouchLeave){var bg=aY(this);bb=E(bf.end,bg)}if(!av.triggerOnTouchEnd&&bb){Z=aC(k)}else{if(av.triggerOnTouchLeave&&!bb){Z=aC(h)}}if(Z==q||Z==h){O(bh,Z)}}}else{Z=q;O(bh,Z)}if(bd===false){Z=q;O(bh,Z)}}function L(bb){var bc=bb.originalEvent;if(a){if(bc.touches.length>0){F();return true}}if(am()){W=ad}a2=at();ab=aM();if(ba()||!an()){Z=q;O(bc,Z)}else{if(av.triggerOnTouchEnd||(av.triggerOnTouchEnd==false&&Z===k)){bb.preventDefault();Z=h;O(bc,Z)}else{if(!av.triggerOnTouchEnd&&a6()){Z=h;aF(bc,Z,A)}else{if(Z===k){Z=q;O(bc,Z)}}}}ao(false);return null}function a9(){W=0;a2=0;T=0;a1=0;aZ=0;G=1;R();ao(false)}function K(bb){var bc=bb.originalEvent;if(av.triggerOnTouchLeave){Z=aC(h);O(bc,Z)}}function aK(){aR.unbind(J,aN);aR.unbind(aD,a9);aR.unbind(ay,a3);aR.unbind(U,L);if(S){aR.unbind(S,K)}ao(false)}function aC(bf){var be=bf;var bd=aA();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerOnTouchEnd||av.triggerOnTouchLeave)){be=h}else{if(!bc&&bf==h&&av.triggerOnTouchLeave){be=q}}}return be}function O(bd,bb){var bc=undefined;if(I()||V()){bc=aF(bd,bb,l)}else{if((P()||aX())&&bc!==false){bc=aF(bd,bb,t)}}if(aG()&&bc!==false){bc=aF(bd,bb,j)}else{if(ap()&&bc!==false){bc=aF(bd,bb,b)}else{if(ah()&&bc!==false){bc=aF(bd,bb,A)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function aF(be,bb,bd){var bc=undefined;if(bd==l){aR.trigger("swipeStatus",[bb,aP||null,ag||0,ab||0,W,aQ]);if(av.swipeStatus){bc=av.swipeStatus.call(aR,be,bb,aP||null,ag||0,ab||0,W,aQ);if(bc===false){return false}}if(bb==h&&aV()){aR.trigger("swipe",[aP,ag,ab,W,aQ]);if(av.swipe){bc=av.swipe.call(aR,be,aP,ag,ab,W,aQ);if(bc===false){return false}}switch(aP){case p:aR.trigger("swipeLeft",[aP,ag,ab,W,aQ]);if(av.swipeLeft){bc=av.swipeLeft.call(aR,be,aP,ag,ab,W,aQ)}break;case o:aR.trigger("swipeRight",[aP,ag,ab,W,aQ]);if(av.swipeRight){bc=av.swipeRight.call(aR,be,aP,ag,ab,W,aQ)}break;case e:aR.trigger("swipeUp",[aP,ag,ab,W,aQ]);if(av.swipeUp){bc=av.swipeUp.call(aR,be,aP,ag,ab,W,aQ)}break;case x:aR.trigger("swipeDown",[aP,ag,ab,W,aQ]);if(av.swipeDown){bc=av.swipeDown.call(aR,be,aP,ag,ab,W,aQ)}break}}}if(bd==t){aR.trigger("pinchStatus",[bb,aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchStatus){bc=av.pinchStatus.call(aR,be,bb,aJ||null,aq||0,ab||0,W,G,aQ);if(bc===false){return false}}if(bb==h&&a8()){switch(aJ){case c:aR.trigger("pinchIn",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchIn){bc=av.pinchIn.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break;case z:aR.trigger("pinchOut",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchOut){bc=av.pinchOut.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break}}}if(bd==A){if(bb===q||bb===h){clearTimeout(aW);clearTimeout(af);if(Y()&&!H()){N=at();aW=setTimeout(f.proxy(function(){N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}},this),av.doubleTapThreshold)}else{N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("doubletap",[be.target]);if(av.doubleTap){bc=av.doubleTap.call(aR,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("longtap",[be.target]);if(av.longTap){bc=av.longTap.call(aR,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelThreshold!==null&&aP!==null){bb=(aT(aP)-ag)>=av.cancelThreshold}return bb}function ae(){if(av.pinchThreshold!==null){return aq>=av.pinchThreshold}return true}function aA(){var bb;if(av.maxTimeThreshold){if(ab>=av.maxTimeThreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowPageScroll===m||aX()){bb.preventDefault()}else{var bd=av.allowPageScroll===s;switch(bc){case p:if((av.swipeLeft&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case o:if((av.swipeRight&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case e:if((av.swipeUp&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break;case x:if((av.swipeDown&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break}}}function a8(){var bc=aO();var bb=X();var bd=ae();return bc&&bb&&bd}function aX(){return !!(av.pinchStatus||av.pinchIn||av.pinchOut)}function P(){return !!(a8()&&aX())}function aV(){var be=aA();var bg=an();var bd=aO();var bb=X();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function V(){return !!(av.swipe||av.swipeStatus||av.swipeLeft||av.swipeRight||av.swipeUp||av.swipeDown)}function I(){return !!(aV()&&V())}function aO(){return((W===av.fingers||av.fingers===i)||!a)}function X(){return aQ[0].end.x!==0}function a6(){return !!(av.tap)}function Y(){return !!(av.doubleTap)}function aU(){return !!(av.longTap)}function Q(){if(N==null){return false}var bb=at();return(Y()&&((bb-N)<=av.doubleTapThreshold))}function H(){return Q()}function ax(){return((W===1||!a)&&(isNaN(ag)||agav.longTapThreshold)&&(ag=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new Date();return bb.getTime()}function aY(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerWidth(),top:bd.top,bottom:bd.top+bb.outerHeight()};return bc}function E(bb,bc){return(bb.x>bc.left&&bb.xbc.top&&bb.y