@macallumharvey/first-test-wet 2.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. package/dist/WetButton.d.ts +1 -1
  2. package/dist/first-test-wet.cjs.development.js +5 -0
  3. package/dist/first-test-wet.cjs.development.js.map +1 -1
  4. package/dist/first-test-wet.cjs.production.min.js +1 -1
  5. package/dist/first-test-wet.cjs.production.min.js.map +1 -1
  6. package/dist/first-test-wet.esm.js +5 -1
  7. package/dist/first-test-wet.esm.js.map +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/package.json +1 -1
  10. package/src/WetButton.tsx +1 -1
  11. package/src/WetModal.tsx +1 -0
  12. package/src/index.tsx +1 -0
  13. package/src/theme-wet-boew/assets/favicon-mobile.png +0 -0
  14. package/src/theme-wet-boew/assets/favicon.ico +0 -0
  15. package/src/theme-wet-boew/assets/logo.png +0 -0
  16. package/src/theme-wet-boew/assets/logo.svg +14 -0
  17. package/src/theme-wet-boew/css/ie8-theme.css +17370 -0
  18. package/src/theme-wet-boew/css/ie8-theme.min.css +193 -0
  19. package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js → theme-wet-boew/css/ie8-wet-boew.css} +12 -10
  20. package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js → theme-wet-boew/css/ie8-wet-boew.min.css} +7 -7
  21. package/src/theme-wet-boew/css/theme.css +11357 -0
  22. package/src/theme-wet-boew/css/theme.min.css +6 -0
  23. package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js → theme-wet-boew/css/wet-boew.css} +12 -10
  24. package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js → theme-wet-boew/css/wet-boew.min.css} +6 -7
  25. package/src/theme-wet-boew/payload.json +66 -0
  26. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/mediacontrols.html +32 -33
  27. package/src/wet-boew/assets/sprites_share.png +0 -0
  28. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.css +112 -112
  29. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.min.css +5 -5
  30. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.css +32 -32
  31. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.css +47 -47
  32. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.css +28 -28
  33. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.css +16 -16
  34. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.css +24 -24
  35. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.css +8 -8
  36. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.css +229 -229
  37. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.svg +287 -287
  38. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/additional-methods.js +1511 -1511
  39. package/src/wet-boew/js/deps/additional-methods.min.js +9 -0
  40. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/geomap-lib.js +3758 -3770
  41. package/src/wet-boew/js/deps/geomap-lib.min.js +1 -0
  42. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.dataTables.js +15345 -15733
  43. package/src/wet-boew/js/deps/jquery.dataTables.min.js +4 -0
  44. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.canvas.js +345 -345
  45. package/src/wet-boew/js/deps/jquery.flot.canvas.min.js +1 -0
  46. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.js +3168 -3168
  47. package/src/wet-boew/js/deps/jquery.flot.min.js +1 -0
  48. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.orderBars.js +282 -282
  49. package/src/wet-boew/js/deps/jquery.flot.orderBars.min.js +1 -0
  50. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.pie.js +820 -820
  51. package/src/wet-boew/js/deps/jquery.flot.pie.min.js +1 -0
  52. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.magnific-popup.js +2060 -2060
  53. package/src/wet-boew/js/deps/jquery.magnific-popup.min.js +4 -0
  54. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.validate.js +1660 -1660
  55. package/src/wet-boew/js/deps/jquery.validate.min.js +9 -0
  56. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/json-patch.js +314 -314
  57. package/src/wet-boew/js/deps/json-patch.min.js +1 -0
  58. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jsonpointer.js +349 -349
  59. package/src/wet-boew/js/deps/jsonpointer.min.js +1 -0
  60. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.js +53 -53
  61. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.js +49 -49
  62. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.js +64 -64
  63. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.js +160 -160
  64. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.js +92 -92
  65. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.js +94 -94
  66. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.js +59 -59
  67. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.js +102 -102
  68. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.js +67 -67
  69. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.js +95 -95
  70. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.js +63 -63
  71. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.js +50 -50
  72. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.js +60 -60
  73. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.js +183 -183
  74. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.min.js +1 -1
  75. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.js +57 -57
  76. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.js +140 -140
  77. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.js +67 -67
  78. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.js +49 -49
  79. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.js +37 -37
  80. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.js +59 -59
  81. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.js +50 -50
  82. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.js +81 -81
  83. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.js +56 -56
  84. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.js +59 -59
  85. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.js +60 -60
  86. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.js +63 -63
  87. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.js +49 -49
  88. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.js +67 -67
  89. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.js +51 -51
  90. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.js +55 -55
  91. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.js +71 -71
  92. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.js +45 -45
  93. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/ol.js +1008 -1008
  94. package/src/wet-boew/js/deps/ol.min.js +1 -0
  95. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/prettify.js +1742 -1742
  96. package/src/wet-boew/js/deps/prettify.min.js +1 -0
  97. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/proj4.js +2 -2
  98. package/src/wet-boew/js/deps/proj4.min.js +1 -0
  99. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/run_prettify.js +1998 -1998
  100. package/src/wet-boew/js/deps/run_prettify.min.js +1 -0
  101. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/tableparser.js +2216 -2216
  102. package/src/wet-boew/js/deps/tableparser.min.js +1 -0
  103. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/unorm.js +452 -452
  104. package/src/wet-boew/js/deps/unorm.min.js +1 -0
  105. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/af.js +246 -254
  106. package/src/wet-boew/js/i18n/af.min.js +7 -0
  107. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ar.js +284 -292
  108. package/src/wet-boew/js/i18n/ar.min.js +7 -0
  109. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/bg.js +284 -292
  110. package/src/wet-boew/js/i18n/bg.min.js +7 -0
  111. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/cs.js +285 -293
  112. package/src/wet-boew/js/i18n/cs.min.js +7 -0
  113. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/de.js +354 -362
  114. package/src/wet-boew/js/i18n/de.min.js +7 -0
  115. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/el.js +284 -292
  116. package/src/wet-boew/js/i18n/el.min.js +7 -0
  117. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/en.js +246 -254
  118. package/src/wet-boew/js/i18n/en.min.js +7 -0
  119. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/es.js +287 -295
  120. package/src/wet-boew/js/i18n/es.min.js +7 -0
  121. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/et.js +282 -290
  122. package/src/wet-boew/js/i18n/et.min.js +7 -0
  123. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/fr.js +313 -321
  124. package/src/wet-boew/js/i18n/fr.min.js +7 -0
  125. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hi.js +246 -254
  126. package/src/wet-boew/js/i18n/hi.min.js +7 -0
  127. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hu.js +284 -292
  128. package/src/wet-boew/js/i18n/hu.min.js +7 -0
  129. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hy.js +246 -254
  130. package/src/wet-boew/js/i18n/hy.min.js +7 -0
  131. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/id.js +283 -291
  132. package/src/wet-boew/js/i18n/id.min.js +7 -0
  133. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/is.js +282 -290
  134. package/src/wet-boew/js/i18n/is.min.js +7 -0
  135. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/it.js +311 -319
  136. package/src/wet-boew/js/i18n/it.min.js +7 -0
  137. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/iu.js +246 -254
  138. package/src/wet-boew/js/i18n/iu.min.js +7 -0
  139. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ja.js +285 -293
  140. package/src/wet-boew/js/i18n/ja.min.js +7 -0
  141. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ko.js +284 -292
  142. package/src/wet-boew/js/i18n/ko.min.js +7 -0
  143. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lt.js +284 -292
  144. package/src/wet-boew/js/i18n/lt.min.js +7 -0
  145. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lv.js +284 -292
  146. package/src/wet-boew/js/i18n/lv.min.js +7 -0
  147. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/nl.js +318 -326
  148. package/src/wet-boew/js/i18n/nl.min.js +7 -0
  149. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pl.js +287 -295
  150. package/src/wet-boew/js/i18n/pl.min.js +7 -0
  151. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt-BR.js +246 -254
  152. package/src/wet-boew/js/i18n/pt-BR.min.js +7 -0
  153. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt.js +270 -278
  154. package/src/wet-boew/js/i18n/pt.min.js +7 -0
  155. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ru.js +284 -292
  156. package/src/wet-boew/js/i18n/ru.min.js +7 -0
  157. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sk.js +282 -290
  158. package/src/wet-boew/js/i18n/sk.min.js +7 -0
  159. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sq.js +246 -254
  160. package/src/wet-boew/js/i18n/sq.min.js +7 -0
  161. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/th.js +284 -292
  162. package/src/wet-boew/js/i18n/th.min.js +7 -0
  163. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/tr.js +286 -294
  164. package/src/wet-boew/js/i18n/tr.min.js +7 -0
  165. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/uk.js +284 -292
  166. package/src/wet-boew/js/i18n/uk.min.js +7 -0
  167. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/vi.js +284 -292
  168. package/src/wet-boew/js/i18n/vi.min.js +7 -0
  169. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh-Hans.js +246 -254
  170. package/src/wet-boew/js/i18n/zh-Hans.min.js +7 -0
  171. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh.js +285 -293
  172. package/src/wet-boew/js/i18n/zh.min.js +7 -0
  173. package/src/wet-boew/js/ie8-wet-boew.js +3992 -0
  174. package/src/wet-boew/js/ie8-wet-boew.min.js +7 -0
  175. package/src/wet-boew/js/ie8-wet-boew2.js +15294 -0
  176. package/src/wet-boew/js/ie8-wet-boew2.min.js +7 -0
  177. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.js +9814 -9814
  178. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.js +4 -4
  179. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist.js +423 -419
  180. package/src/wet-boew/js/polyfills/datalist.min.js +8 -0
  181. package/src/wet-boew/js/polyfills/datalist.min.js.map +1 -0
  182. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.js +50 -50
  183. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.min.js +7 -7
  184. package/src/wet-boew/js/polyfills/datalist_dynamic.min.js.map +1 -0
  185. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datepicker.js +338 -338
  186. package/src/wet-boew/js/polyfills/datepicker.min.js +8 -0
  187. package/src/wet-boew/js/polyfills/datepicker.min.js.map +1 -0
  188. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/details.js +126 -126
  189. package/src/wet-boew/js/polyfills/details.min.js +8 -0
  190. package/src/wet-boew/js/polyfills/details.min.js.map +1 -0
  191. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.js +47 -47
  192. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.min.js +15 -15
  193. package/src/wet-boew/js/polyfills/jawsariafixes.min.js.map +1 -0
  194. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/meter.js +140 -140
  195. package/src/wet-boew/js/polyfills/meter.min.js +8 -0
  196. package/src/wet-boew/js/polyfills/meter.min.js.map +1 -0
  197. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/mobile.js +783 -784
  198. package/src/wet-boew/js/polyfills/mobile.min.js +8 -0
  199. package/src/wet-boew/js/polyfills/mobile.min.js.map +1 -0
  200. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/progress.js +107 -107
  201. package/src/wet-boew/js/polyfills/progress.min.js +8 -0
  202. package/src/wet-boew/js/polyfills/progress.min.js.map +1 -0
  203. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider.js +1343 -1343
  204. package/src/wet-boew/js/polyfills/slider.min.js +9 -0
  205. package/src/wet-boew/js/polyfills/slider.min.js.map +1 -0
  206. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.js +73 -73
  207. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.min.js +7 -7
  208. package/src/wet-boew/js/polyfills/slider_wrapper.min.js.map +1 -0
  209. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.js +29 -29
  210. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.min.js +7 -7
  211. package/src/wet-boew/js/polyfills/svg.min.js.map +1 -0
  212. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.js +603 -603
  213. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.min.js +7 -7
  214. package/src/wet-boew/js/polyfills/test.min.js.map +1 -0
  215. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/wet-boew.js +17714 -20264
  216. package/src/wet-boew/js/wet-boew.min.js +9 -0
  217. package/src/wet-boew/js/wet-boew.min.js.map +1 -0
  218. package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/payload.json +1721 -1721
  219. package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +0 -1
  220. package/src/wet-boew-cdn-4.0.81.1/License-en.txt +0 -1
  221. package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
  222. package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +0 -9
  223. package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +0 -1
  224. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +0 -4
  225. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +0 -1
  226. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +0 -1
  227. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +0 -1
  228. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +0 -1
  229. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +0 -4
  230. package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +0 -9
  231. package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +0 -1
  232. package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +0 -1
  233. package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +0 -1
  234. package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +0 -1
  235. package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +0 -1
  236. package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +0 -1
  237. package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +0 -1
  238. package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +0 -1
  239. package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +0 -7
  240. package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +0 -7
  241. package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +0 -7
  242. package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +0 -7
  243. package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +0 -7
  244. package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +0 -7
  245. package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +0 -7
  246. package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +0 -7
  247. package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +0 -7
  248. package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +0 -7
  249. package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +0 -7
  250. package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +0 -7
  251. package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +0 -7
  252. package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +0 -7
  253. package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +0 -7
  254. package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +0 -7
  255. package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +0 -7
  256. package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +0 -7
  257. package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +0 -7
  258. package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +0 -7
  259. package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +0 -7
  260. package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +0 -7
  261. package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +0 -7
  262. package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +0 -7
  263. package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +0 -7
  264. package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +0 -7
  265. package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +0 -7
  266. package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +0 -7
  267. package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +0 -7
  268. package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +0 -7
  269. package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +0 -7
  270. package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +0 -7
  271. package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +0 -7
  272. package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +0 -7
  273. package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +0 -1
  274. package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +0 -1
  275. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +0 -8
  276. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +0 -1
  277. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +0 -1
  278. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +0 -8
  279. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +0 -1
  280. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +0 -8
  281. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +0 -1
  282. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +0 -1
  283. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +0 -8
  284. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +0 -1
  285. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +0 -8
  286. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +0 -1
  287. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +0 -8
  288. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +0 -1
  289. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +0 -9
  290. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +0 -1
  291. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +0 -1
  292. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +0 -1
  293. package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +0 -1
  294. package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +0 -9
  295. package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +0 -1
  296. package/src/wet-boew-cdn-4.0.81.1/package.json +0 -15
  297. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/cloud-popup-relative.png +0 -0
  298. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/fd-slider-sprite.png +0 -0
  299. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/loading.png +0 -0
  300. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-minus-mini.png +0 -0
  301. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-plus-mini.png +0 -0
  302. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-world-mini.png +0 -0
  303. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.min.css +0 -0
  304. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.min.css +0 -0
  305. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.min.css +0 -0
  306. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.min.css +0 -0
  307. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.min.css +0 -0
  308. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.min.css +0 -0
  309. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.min.css +0 -0
  310. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.eot +0 -0
  311. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.ttf +0 -0
  312. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff +0 -0
  313. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff2 +0 -0
  314. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/mml-chtml.js +0 -0
  315. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  316. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  317. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  318. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  319. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  320. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  321. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  322. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  323. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  324. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  325. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  326. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  327. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  328. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  329. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  330. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  331. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  332. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  333. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  334. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  335. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
  336. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
  337. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  338. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.min.js +0 -0
  339. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.min.js +0 -0
  340. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.min.js +0 -0
  341. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.min.js +0 -0
  342. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.min.js +0 -0
  343. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.min.js +0 -0
  344. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.min.js +0 -0
  345. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.min.js +0 -0
  346. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.min.js +0 -0
  347. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.min.js +0 -0
  348. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.min.js +0 -0
  349. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.min.js +0 -0
  350. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.min.js +0 -0
  351. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.min.js +0 -0
  352. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.min.js +0 -0
  353. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.min.js +0 -0
  354. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.min.js +0 -0
  355. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.min.js +0 -0
  356. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.min.js +0 -0
  357. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.min.js +0 -0
  358. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.min.js +0 -0
  359. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.min.js +0 -0
  360. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.min.js +0 -0
  361. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.min.js +0 -0
  362. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.min.js +0 -0
  363. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.min.js +0 -0
  364. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.min.js +0 -0
  365. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.min.js +0 -0
  366. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.min.js +0 -0
  367. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.min.js +0 -0
  368. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.min.js +0 -0
  369. /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.map +0 -0
@@ -1,784 +1,783 @@
1
- /*
2
- * This file is to enable touch on browser
3
- * jQuery Mobile v1.3.2
4
- * https://jquerymobile.com
5
- *
6
- * Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
7
- * Released under the MIT license.
8
- * https://jquery.org/license
9
- *
10
- */
11
-
12
- (function ( root, doc, factory ) {
13
- if ( typeof define === "function" && define.amd ) {
14
- // AMD. Register as an anonymous module.
15
- define( [ "jquery" ], function ( $ ) {
16
- factory( $, root, doc );
17
- return $.mobile;
18
- });
19
- } else {
20
- // Browser globals
21
- factory( root.jQuery, root, doc );
22
- }
23
- }( this, document, function ( jQuery, window, document, undefined ) {
24
-
25
- // throttled resize event
26
- (function( $ ) {
27
- $.event.special.throttledresize = {
28
- setup: function() {
29
- $( this ).bind( "resize", handler );
30
- },
31
- teardown: function() {
32
- $( this ).unbind( "resize", handler );
33
- }
34
- };
35
-
36
- var throttle = 250,
37
- handler = function() {
38
- curr = ( new Date() ).getTime();
39
- diff = curr - lastCall;
40
-
41
- if ( diff >= throttle ) {
42
-
43
- lastCall = curr;
44
- $( this ).trigger( "throttledresize" );
45
-
46
- } else {
47
-
48
- if ( heldCall ) {
49
- clearTimeout( heldCall );
50
- }
51
-
52
- // Promise a held call will still execute
53
- heldCall = setTimeout( handler, throttle - diff );
54
- }
55
- },
56
- lastCall = 0,
57
- heldCall,
58
- curr,
59
- diff;
60
- })( jQuery );
61
- // This plugin is an experiment for abstracting away the touch and mouse
62
- // events so that developers don't have to worry about which method of input
63
- // the device their document is loaded on supports.
64
- //
65
- // The idea here is to allow the developer to register listeners for the
66
- // basic mouse events, such as mousedown, mousemove, mouseup, and click,
67
- // and the plugin will take care of registering the correct listeners
68
- // behind the scenes to invoke the listener at the fastest possible time
69
- // for that device, while still retaining the order of event firing in
70
- // the traditional mouse environment, should multiple handlers be registered
71
- // on the same element for different events.
72
- //
73
- // The current version exposes the following virtual events to jQuery bind methods:
74
- // "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
75
-
76
- (function( $, window, document, undefined ) {
77
-
78
- var dataPropertyName = "virtualMouseBindings",
79
- touchTargetPropertyName = "virtualTouchID",
80
- virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
81
- touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
82
- mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
83
- mouseEventProps = $.event.props.concat( mouseHookProps ),
84
- activeDocHandlers = {},
85
- resetTimerID = 0,
86
- startX = 0,
87
- startY = 0,
88
- didScroll = false,
89
- clickBlockList = [],
90
- blockMouseTriggers = false,
91
- blockTouchTriggers = false,
92
- eventCaptureSupported = "addEventListener" in document,
93
- $document = $( document ),
94
- nextTouchID = 1,
95
- lastTouchID = 0, threshold;
96
-
97
- $.vmouse = {
98
- moveDistanceThreshold: 10,
99
- clickDistanceThreshold: 10,
100
- resetTimerDuration: 1500
101
- };
102
-
103
- function getNativeEvent( event ) {
104
-
105
- while ( event && typeof event.originalEvent !== "undefined" ) {
106
- event = event.originalEvent;
107
- }
108
- return event;
109
- }
110
-
111
- function createVirtualEvent( event, eventType ) {
112
-
113
- var t = event.type,
114
- oe, props, ne, prop, ct, touch, i, j, len;
115
-
116
- event = $.Event( event );
117
- event.type = eventType;
118
-
119
- oe = event.originalEvent;
120
- props = $.event.props;
121
-
122
- // addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
123
- // https://github.com/jquery/jquery-mobile/issues/3280
124
- if ( t.search( /^(mouse|click)/ ) > -1 ) {
125
- props = mouseEventProps;
126
- }
127
-
128
- // copy original event properties over to the new event
129
- // this would happen if we could call $.event.fix instead of $.Event
130
- // but we don't have a way to force an event to be fixed multiple times
131
- if ( oe ) {
132
- for ( i = props.length, prop; i; ) {
133
- prop = props[ --i ];
134
- event[ prop ] = oe[ prop ];
135
- }
136
- }
137
-
138
- // make sure that if the mouse and click virtual events are generated
139
- // without a .which one is defined
140
- if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ) {
141
- event.which = 1;
142
- }
143
-
144
- if ( t.search(/^touch/) !== -1 ) {
145
- ne = getNativeEvent( oe );
146
- t = ne.touches;
147
- ct = ne.changedTouches;
148
- touch = ( t && t.length ) ? t[0] : ( ( ct && ct.length ) ? ct[ 0 ] : undefined );
149
-
150
- if ( touch ) {
151
- for ( j = 0, len = touchEventProps.length; j < len; j++) {
152
- prop = touchEventProps[ j ];
153
- event[ prop ] = touch[ prop ];
154
- }
155
- }
156
- }
157
-
158
- return event;
159
- }
160
-
161
- function getVirtualBindingFlags( element ) {
162
-
163
- var flags = {},
164
- b, k;
165
-
166
- while ( element ) {
167
-
168
- b = $.data( element, dataPropertyName );
169
-
170
- for ( k in b ) {
171
- if ( b[ k ] ) {
172
- flags[ k ] = flags.hasVirtualBinding = true;
173
- }
174
- }
175
- element = element.parentNode;
176
- }
177
- return flags;
178
- }
179
-
180
- function getClosestElementWithVirtualBinding( element, eventType ) {
181
- var b;
182
- while ( element ) {
183
-
184
- b = $.data( element, dataPropertyName );
185
-
186
- if ( b && ( !eventType || b[ eventType ] ) ) {
187
- return element;
188
- }
189
- element = element.parentNode;
190
- }
191
- return null;
192
- }
193
-
194
- function enableTouchBindings() {
195
- blockTouchTriggers = false;
196
- }
197
-
198
- function disableTouchBindings() {
199
- blockTouchTriggers = true;
200
- }
201
-
202
- function enableMouseBindings() {
203
- lastTouchID = 0;
204
- clickBlockList.length = 0;
205
- blockMouseTriggers = false;
206
-
207
- // When mouse bindings are enabled, our
208
- // touch bindings are disabled.
209
- disableTouchBindings();
210
- }
211
-
212
- function disableMouseBindings() {
213
- // When mouse bindings are disabled, our
214
- // touch bindings are enabled.
215
- enableTouchBindings();
216
- }
217
-
218
- function startResetTimer() {
219
- clearResetTimer();
220
- resetTimerID = setTimeout( function() {
221
- resetTimerID = 0;
222
- enableMouseBindings();
223
- }, $.vmouse.resetTimerDuration );
224
- }
225
-
226
- function clearResetTimer() {
227
- if ( resetTimerID ) {
228
- clearTimeout( resetTimerID );
229
- resetTimerID = 0;
230
- }
231
- }
232
-
233
- function triggerVirtualEvent( eventType, event, flags ) {
234
- var ve;
235
-
236
- if ( ( flags && flags[ eventType ] ) ||
237
- ( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
238
-
239
- ve = createVirtualEvent( event, eventType );
240
-
241
- $( event.target).trigger( ve );
242
- }
243
-
244
- return ve;
245
- }
246
-
247
- function mouseEventCallback( event ) {
248
- var touchID = $.data( event.target, touchTargetPropertyName );
249
-
250
- if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ) {
251
- var ve = triggerVirtualEvent( "v" + event.type, event );
252
- if ( ve ) {
253
- if ( ve.isDefaultPrevented() ) {
254
- event.preventDefault();
255
- }
256
- if ( ve.isPropagationStopped() ) {
257
- event.stopPropagation();
258
- }
259
- if ( ve.isImmediatePropagationStopped() ) {
260
- event.stopImmediatePropagation();
261
- }
262
- }
263
- }
264
- }
265
-
266
- function handleTouchStart( event ) {
267
-
268
- var touches = getNativeEvent( event ).touches,
269
- target, flags;
270
-
271
- if ( touches && touches.length === 1 ) {
272
-
273
- target = event.target;
274
- flags = getVirtualBindingFlags( target );
275
-
276
- if ( flags.hasVirtualBinding ) {
277
-
278
- lastTouchID = nextTouchID++;
279
- $.data( target, touchTargetPropertyName, lastTouchID );
280
-
281
- clearResetTimer();
282
-
283
- disableMouseBindings();
284
- didScroll = false;
285
-
286
- var t = getNativeEvent( event ).touches[ 0 ];
287
- startX = t.pageX;
288
- startY = t.pageY;
289
-
290
- triggerVirtualEvent( "vmouseover", event, flags );
291
- triggerVirtualEvent( "vmousedown", event, flags );
292
- }
293
- }
294
- }
295
-
296
- function handleScroll( event ) {
297
- if ( blockTouchTriggers ) {
298
- return;
299
- }
300
-
301
- if ( !didScroll ) {
302
- triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
303
- }
304
-
305
- didScroll = true;
306
- startResetTimer();
307
- }
308
-
309
- function handleTouchMove( event ) {
310
- if ( blockTouchTriggers ) {
311
- return;
312
- }
313
-
314
- var t = getNativeEvent( event ).touches[ 0 ],
315
- didCancel = didScroll,
316
- moveThreshold = $.vmouse.moveDistanceThreshold,
317
- flags = getVirtualBindingFlags( event.target );
318
-
319
- didScroll = didScroll ||
320
- ( Math.abs( t.pageX - startX ) > moveThreshold ||
321
- Math.abs( t.pageY - startY ) > moveThreshold );
322
-
323
-
324
- if ( didScroll && !didCancel ) {
325
- triggerVirtualEvent( "vmousecancel", event, flags );
326
- }
327
-
328
- triggerVirtualEvent( "vmousemove", event, flags );
329
- startResetTimer();
330
- }
331
-
332
- function handleTouchEnd( event ) {
333
- if ( blockTouchTriggers ) {
334
- return;
335
- }
336
-
337
- disableTouchBindings();
338
-
339
- var flags = getVirtualBindingFlags( event.target ),
340
- t;
341
- triggerVirtualEvent( "vmouseup", event, flags );
342
-
343
- if ( !didScroll ) {
344
- var ve = triggerVirtualEvent( "vclick", event, flags );
345
- if ( ve && ve.isDefaultPrevented() ) {
346
- // The target of the mouse events that follow the touchend
347
- // event don't necessarily match the target used during the
348
- // touch. This means we need to rely on coordinates for blocking
349
- // any click that is generated.
350
- t = getNativeEvent( event ).changedTouches[ 0 ];
351
- clickBlockList.push({
352
- touchID: lastTouchID,
353
- x: t.clientX,
354
- y: t.clientY
355
- });
356
-
357
- // Prevent any mouse events that follow from triggering
358
- // virtual event notifications.
359
- blockMouseTriggers = true;
360
- }
361
- }
362
- triggerVirtualEvent( "vmouseout", event, flags);
363
- didScroll = false;
364
-
365
- startResetTimer();
366
- }
367
-
368
- function hasVirtualBindings( ele ) {
369
- var bindings = $.data( ele, dataPropertyName ),
370
- k;
371
-
372
- if ( bindings ) {
373
- for ( k in bindings ) {
374
- if ( bindings[ k ] ) {
375
- return true;
376
- }
377
- }
378
- }
379
- return false;
380
- }
381
-
382
- function dummyMouseHandler() {}
383
-
384
- function getSpecialEventObject( eventType ) {
385
- var realType = eventType.substr( 1 );
386
-
387
- return {
388
- setup: function( data, namespace ) {
389
- // If this is the first virtual mouse binding for this element,
390
- // add a bindings object to its data.
391
-
392
- if ( !hasVirtualBindings( this ) ) {
393
- $.data( this, dataPropertyName, {} );
394
- }
395
-
396
- // If setup is called, we know it is the first binding for this
397
- // eventType, so initialize the count for the eventType to zero.
398
- var bindings = $.data( this, dataPropertyName );
399
- bindings[ eventType ] = true;
400
-
401
- // If this is the first virtual mouse event for this type,
402
- // register a global handler on the document.
403
-
404
- activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
405
-
406
- if ( activeDocHandlers[ eventType ] === 1 ) {
407
- $document.bind( realType, mouseEventCallback );
408
- }
409
-
410
- // Some browsers, like Opera Mini, won't dispatch mouse/click events
411
- // for elements unless they actually have handlers registered on them.
412
- // To get around this, we register dummy handlers on the elements.
413
-
414
- $( this ).bind( realType, dummyMouseHandler );
415
-
416
- // For now, if event capture is not supported, we rely on mouse handlers.
417
- if ( eventCaptureSupported ) {
418
- // If this is the first virtual mouse binding for the document,
419
- // register our touchstart handler on the document.
420
-
421
- activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
422
-
423
- if ( activeDocHandlers[ "touchstart" ] === 1 ) {
424
- $document.bind( "touchstart", handleTouchStart )
425
- .bind( "touchend", handleTouchEnd )
426
-
427
- // On touch platforms, touching the screen and then dragging your finger
428
- // causes the window content to scroll after some distance threshold is
429
- // exceeded. On these platforms, a scroll prevents a click event from being
430
- // dispatched, and on some platforms, even the touchend is suppressed. To
431
- // mimic the suppression of the click event, we need to watch for a scroll
432
- // event. Unfortunately, some platforms like iOS don't dispatch scroll
433
- // events until *AFTER* the user lifts their finger (touchend). This means
434
- // we need to watch both scroll and touchmove events to figure out whether
435
- // or not a scroll happenens before the touchend event is fired.
436
-
437
- .bind( "touchmove", handleTouchMove )
438
- .bind( "scroll", handleScroll );
439
- }
440
- }
441
- },
442
-
443
- teardown: function( data, namespace ) {
444
- // If this is the last virtual binding for this eventType,
445
- // remove its global handler from the document.
446
-
447
- --activeDocHandlers[ eventType ];
448
-
449
- if ( !activeDocHandlers[ eventType ] ) {
450
- $document.unbind( realType, mouseEventCallback );
451
- }
452
-
453
- if ( eventCaptureSupported ) {
454
- // If this is the last virtual mouse binding in existence,
455
- // remove our document touchstart listener.
456
-
457
- --activeDocHandlers[ "touchstart" ];
458
-
459
- if ( !activeDocHandlers[ "touchstart" ] ) {
460
- $document.unbind( "touchstart", handleTouchStart )
461
- .unbind( "touchmove", handleTouchMove )
462
- .unbind( "touchend", handleTouchEnd )
463
- .unbind( "scroll", handleScroll );
464
- }
465
- }
466
-
467
- var $this = $( this ),
468
- bindings = $.data( this, dataPropertyName );
469
-
470
- // teardown may be called when an element was
471
- // removed from the DOM. If this is the case,
472
- // jQuery core may have already stripped the element
473
- // of any data bindings so we need to check it before
474
- // using it.
475
- if ( bindings ) {
476
- bindings[ eventType ] = false;
477
- }
478
-
479
- // Unregister the dummy event handler.
480
-
481
- $this.unbind( realType, dummyMouseHandler );
482
-
483
- // If this is the last virtual mouse binding on the
484
- // element, remove the binding data from the element.
485
-
486
- if ( !hasVirtualBindings( this ) ) {
487
- $this.removeData( dataPropertyName );
488
- }
489
- }
490
- };
491
- }
492
-
493
- // Expose our custom events to the jQuery bind/unbind mechanism.
494
-
495
- for ( var i = 0; i < virtualEventNames.length; i++ ) {
496
- $.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
497
- }
498
-
499
- // Add a capture click handler to block clicks.
500
- // Note that we require event capture support for this so if the device
501
- // doesn't support it, we punt for now and rely solely on mouse events.
502
- if ( eventCaptureSupported ) {
503
- document.addEventListener( "click", function( e ) {
504
- var cnt = clickBlockList.length,
505
- target = e.target,
506
- x, y, ele, i, o, touchID;
507
-
508
- if ( cnt ) {
509
- x = e.clientX;
510
- y = e.clientY;
511
- threshold = $.vmouse.clickDistanceThreshold;
512
-
513
- // The idea here is to run through the clickBlockList to see if
514
- // the current click event is in the proximity of one of our
515
- // vclick events that had preventDefault() called on it. If we find
516
- // one, then we block the click.
517
- //
518
- // Why do we have to rely on proximity?
519
- //
520
- // Because the target of the touch event that triggered the vclick
521
- // can be different from the target of the click event synthesized
522
- // by the browser. The target of a mouse/click event that is syntehsized
523
- // from a touch event seems to be implementation specific. For example,
524
- // some browsers will fire mouse/click events for a link that is near
525
- // a touch event, even though the target of the touchstart/touchend event
526
- // says the user touched outside the link. Also, it seems that with most
527
- // browsers, the target of the mouse/click event is not calculated until the
528
- // time it is dispatched, so if you replace an element that you touched
529
- // with another element, the target of the mouse/click will be the new
530
- // element underneath that point.
531
- //
532
- // Aside from proximity, we also check to see if the target and any
533
- // of its ancestors were the ones that blocked a click. This is necessary
534
- // because of the strange mouse/click target calculation done in the
535
- // Android 2.1 browser, where if you click on an element, and there is a
536
- // mouse/click handler on one of its ancestors, the target will be the
537
- // innermost child of the touched element, even if that child is no where
538
- // near the point of touch.
539
-
540
- ele = target;
541
-
542
- while ( ele ) {
543
- for ( i = 0; i < cnt; i++ ) {
544
- o = clickBlockList[ i ];
545
- touchID = 0;
546
-
547
- if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
548
- $.data( ele, touchTargetPropertyName ) === o.touchID ) {
549
- // XXX: We may want to consider removing matches from the block list
550
- // instead of waiting for the reset timer to fire.
551
- e.preventDefault();
552
- e.stopPropagation();
553
- return;
554
- }
555
- }
556
- ele = ele.parentNode;
557
- }
558
- }
559
- }, true);
560
- }
561
- })( jQuery, window, document );
562
-
563
- (function( $ ) {
564
- $.mobile = {};
565
- }( jQuery ));
566
- (function( $, undefined ) {
567
- var support = {
568
- touch: "ontouchend" in document
569
- };
570
-
571
- $.mobile.support = $.mobile.support || {};
572
- $.extend( $.support, support );
573
- $.extend( $.mobile.support, support );
574
- }( jQuery ));
575
-
576
-
577
- (function( $, window, undefined ) {
578
- var $document = $( document );
579
-
580
- // add new event shortcuts
581
- $.each( ( "touchstart touchmove touchend " +
582
- "tap taphold " +
583
- "swipe swipeleft swiperight " +
584
- "scrollstart scrollstop" ).split( " " ), function( i, name ) {
585
-
586
- $.fn[ name ] = function( fn ) {
587
- return fn ? this.bind( name, fn ) : this.trigger( name );
588
- };
589
-
590
- // jQuery < 1.8
591
- if ( $.attrFn ) {
592
- $.attrFn[ name ] = true;
593
- }
594
- });
595
-
596
- var supportTouch = $.mobile.support.touch,
597
- scrollEvent = "touchmove scroll",
598
- touchStartEvent = supportTouch ? "touchstart" : "mousedown",
599
- touchStopEvent = supportTouch ? "touchend" : "mouseup",
600
- touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
601
-
602
- function triggerCustomEvent( obj, eventType, event ) {
603
- var originalType = event.type;
604
- event.type = eventType;
605
- $.event.dispatch.call( obj, event );
606
- event.type = originalType;
607
- }
608
-
609
- // also handles scrollstop
610
- $.event.special.scrollstart = {
611
-
612
- enabled: true,
613
-
614
- setup: function() {
615
-
616
- var thisObject = this,
617
- $this = $( thisObject ),
618
- scrolling,
619
- timer;
620
-
621
- function trigger( event, state ) {
622
- scrolling = state;
623
- triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
624
- }
625
-
626
- // iPhone triggers scroll after a small delay; use touchmove instead
627
- $this.bind( scrollEvent, function( event ) {
628
-
629
- if ( !$.event.special.scrollstart.enabled ) {
630
- return;
631
- }
632
-
633
- if ( !scrolling ) {
634
- trigger( event, true );
635
- }
636
-
637
- clearTimeout( timer );
638
- timer = setTimeout( function() {
639
- trigger( event, false );
640
- }, 50 );
641
- });
642
- }
643
- };
644
-
645
- // also handles taphold
646
- $.event.special.tap = {
647
- tapholdThreshold: 750,
648
-
649
- setup: function() {
650
- var thisObject = this,
651
- $this = $( thisObject );
652
-
653
- $this.bind( "vmousedown", function( event ) {
654
-
655
- if ( event.which && event.which !== 1 ) {
656
- return false;
657
- }
658
-
659
- var origTarget = event.target,
660
- origEvent = event.originalEvent,
661
- timer;
662
-
663
- function clearTapTimer() {
664
- clearTimeout( timer );
665
- }
666
-
667
- function clearTapHandlers() {
668
- clearTapTimer();
669
-
670
- $this.unbind( "vclick", clickHandler )
671
- .unbind( "vmouseup", clearTapTimer );
672
- $document.unbind( "vmousecancel", clearTapHandlers );
673
- }
674
-
675
- function clickHandler( event ) {
676
- clearTapHandlers();
677
-
678
- // ONLY trigger a 'tap' event if the start target is
679
- // the same as the stop target.
680
- if ( origTarget === event.target ) {
681
- triggerCustomEvent( thisObject, "tap", event );
682
- }
683
- }
684
-
685
- $this.bind( "vmouseup", clearTapTimer )
686
- .bind( "vclick", clickHandler );
687
- $document.bind( "vmousecancel", clearTapHandlers );
688
-
689
- timer = setTimeout( function() {
690
- triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
691
- }, $.event.special.tap.tapholdThreshold );
692
- });
693
- }
694
- };
695
-
696
- // also handles swipeleft, swiperight
697
- $.event.special.swipe = {
698
- scrollSupressionThreshold: 30, // More than this horizontal displacement, and we will suppress scrolling.
699
-
700
- durationThreshold: 1000, // More time than this, and it isn't a swipe.
701
-
702
- horizontalDistanceThreshold: 30, // Swipe horizontal displacement must be more than this.
703
-
704
- verticalDistanceThreshold: 75, // Swipe vertical displacement must be less than this.
705
-
706
- start: function( event ) {
707
- var data = event.originalEvent.touches ?
708
- event.originalEvent.touches[ 0 ] : event;
709
- return {
710
- time: ( new Date() ).getTime(),
711
- coords: [ data.pageX, data.pageY ],
712
- origin: $( event.target )
713
- };
714
- },
715
-
716
- stop: function( event ) {
717
- var data = event.originalEvent.touches ?
718
- event.originalEvent.touches[ 0 ] : event;
719
- return {
720
- time: ( new Date() ).getTime(),
721
- coords: [ data.pageX, data.pageY ]
722
- };
723
- },
724
-
725
- handleSwipe: function( start, stop ) {
726
- if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
727
- Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
728
- Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
729
-
730
- start.origin.trigger( "swipe" )
731
- .trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
732
- }
733
- },
734
-
735
- setup: function() {
736
- var thisObject = this,
737
- $this = $( thisObject );
738
-
739
- $this.bind( touchStartEvent, function( event ) {
740
- var start = $.event.special.swipe.start( event ),
741
- stop;
742
-
743
- function moveHandler( event ) {
744
- if ( !start ) {
745
- return;
746
- }
747
-
748
- stop = $.event.special.swipe.stop( event );
749
-
750
- // prevent scrolling
751
- if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
752
- event.preventDefault();
753
- }
754
- }
755
-
756
- $this.bind( touchMoveEvent, moveHandler )
757
- .one( touchStopEvent, function() {
758
- $this.unbind( touchMoveEvent, moveHandler );
759
-
760
- if ( start && stop ) {
761
- $.event.special.swipe.handleSwipe( start, stop );
762
- }
763
- start = stop = undefined;
764
- });
765
- });
766
- }
767
- };
768
- $.each({
769
- scrollstop: "scrollstart",
770
- taphold: "tap",
771
- swipeleft: "swipe",
772
- swiperight: "swipe"
773
- }, function( event, sourceEvent ) {
774
-
775
- $.event.special[ event ] = {
776
- setup: function() {
777
- $( this ).bind( sourceEvent, $.noop );
778
- }
779
- };
780
- });
781
-
782
- })( jQuery, this );
783
-
784
- }));
1
+ /*
2
+ * jQuery Mobile v1.3.2
3
+ * https://jquerymobile.com
4
+ *
5
+ * Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
6
+ * Released under the MIT license.
7
+ * https://jquery.org/license
8
+ *
9
+ */
10
+
11
+ (function ( root, doc, factory ) {
12
+ if ( typeof define === "function" && define.amd ) {
13
+ // AMD. Register as an anonymous module.
14
+ define( [ "jquery" ], function ( $ ) {
15
+ factory( $, root, doc );
16
+ return $.mobile;
17
+ });
18
+ } else {
19
+ // Browser globals
20
+ factory( root.jQuery, root, doc );
21
+ }
22
+ }( this, document, function ( jQuery, window, document, undefined ) {
23
+
24
+ // throttled resize event
25
+ (function( $ ) {
26
+ $.event.special.throttledresize = {
27
+ setup: function() {
28
+ $( this ).bind( "resize", handler );
29
+ },
30
+ teardown: function() {
31
+ $( this ).unbind( "resize", handler );
32
+ }
33
+ };
34
+
35
+ var throttle = 250,
36
+ handler = function() {
37
+ curr = ( new Date() ).getTime();
38
+ diff = curr - lastCall;
39
+
40
+ if ( diff >= throttle ) {
41
+
42
+ lastCall = curr;
43
+ $( this ).trigger( "throttledresize" );
44
+
45
+ } else {
46
+
47
+ if ( heldCall ) {
48
+ clearTimeout( heldCall );
49
+ }
50
+
51
+ // Promise a held call will still execute
52
+ heldCall = setTimeout( handler, throttle - diff );
53
+ }
54
+ },
55
+ lastCall = 0,
56
+ heldCall,
57
+ curr,
58
+ diff;
59
+ })( jQuery );
60
+ // This plugin is an experiment for abstracting away the touch and mouse
61
+ // events so that developers don't have to worry about which method of input
62
+ // the device their document is loaded on supports.
63
+ //
64
+ // The idea here is to allow the developer to register listeners for the
65
+ // basic mouse events, such as mousedown, mousemove, mouseup, and click,
66
+ // and the plugin will take care of registering the correct listeners
67
+ // behind the scenes to invoke the listener at the fastest possible time
68
+ // for that device, while still retaining the order of event firing in
69
+ // the traditional mouse environment, should multiple handlers be registered
70
+ // on the same element for different events.
71
+ //
72
+ // The current version exposes the following virtual events to jQuery bind methods:
73
+ // "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
74
+
75
+ (function( $, window, document, undefined ) {
76
+
77
+ var dataPropertyName = "virtualMouseBindings",
78
+ touchTargetPropertyName = "virtualTouchID",
79
+ virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
80
+ touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
81
+ mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
82
+ mouseEventProps = $.event.props.concat( mouseHookProps ),
83
+ activeDocHandlers = {},
84
+ resetTimerID = 0,
85
+ startX = 0,
86
+ startY = 0,
87
+ didScroll = false,
88
+ clickBlockList = [],
89
+ blockMouseTriggers = false,
90
+ blockTouchTriggers = false,
91
+ eventCaptureSupported = "addEventListener" in document,
92
+ $document = $( document ),
93
+ nextTouchID = 1,
94
+ lastTouchID = 0, threshold;
95
+
96
+ $.vmouse = {
97
+ moveDistanceThreshold: 10,
98
+ clickDistanceThreshold: 10,
99
+ resetTimerDuration: 1500
100
+ };
101
+
102
+ function getNativeEvent( event ) {
103
+
104
+ while ( event && typeof event.originalEvent !== "undefined" ) {
105
+ event = event.originalEvent;
106
+ }
107
+ return event;
108
+ }
109
+
110
+ function createVirtualEvent( event, eventType ) {
111
+
112
+ var t = event.type,
113
+ oe, props, ne, prop, ct, touch, i, j, len;
114
+
115
+ event = $.Event( event );
116
+ event.type = eventType;
117
+
118
+ oe = event.originalEvent;
119
+ props = $.event.props;
120
+
121
+ // addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
122
+ // https://github.com/jquery/jquery-mobile/issues/3280
123
+ if ( t.search( /^(mouse|click)/ ) > -1 ) {
124
+ props = mouseEventProps;
125
+ }
126
+
127
+ // copy original event properties over to the new event
128
+ // this would happen if we could call $.event.fix instead of $.Event
129
+ // but we don't have a way to force an event to be fixed multiple times
130
+ if ( oe ) {
131
+ for ( i = props.length, prop; i; ) {
132
+ prop = props[ --i ];
133
+ event[ prop ] = oe[ prop ];
134
+ }
135
+ }
136
+
137
+ // make sure that if the mouse and click virtual events are generated
138
+ // without a .which one is defined
139
+ if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ) {
140
+ event.which = 1;
141
+ }
142
+
143
+ if ( t.search(/^touch/) !== -1 ) {
144
+ ne = getNativeEvent( oe );
145
+ t = ne.touches;
146
+ ct = ne.changedTouches;
147
+ touch = ( t && t.length ) ? t[0] : ( ( ct && ct.length ) ? ct[ 0 ] : undefined );
148
+
149
+ if ( touch ) {
150
+ for ( j = 0, len = touchEventProps.length; j < len; j++) {
151
+ prop = touchEventProps[ j ];
152
+ event[ prop ] = touch[ prop ];
153
+ }
154
+ }
155
+ }
156
+
157
+ return event;
158
+ }
159
+
160
+ function getVirtualBindingFlags( element ) {
161
+
162
+ var flags = {},
163
+ b, k;
164
+
165
+ while ( element ) {
166
+
167
+ b = $.data( element, dataPropertyName );
168
+
169
+ for ( k in b ) {
170
+ if ( b[ k ] ) {
171
+ flags[ k ] = flags.hasVirtualBinding = true;
172
+ }
173
+ }
174
+ element = element.parentNode;
175
+ }
176
+ return flags;
177
+ }
178
+
179
+ function getClosestElementWithVirtualBinding( element, eventType ) {
180
+ var b;
181
+ while ( element ) {
182
+
183
+ b = $.data( element, dataPropertyName );
184
+
185
+ if ( b && ( !eventType || b[ eventType ] ) ) {
186
+ return element;
187
+ }
188
+ element = element.parentNode;
189
+ }
190
+ return null;
191
+ }
192
+
193
+ function enableTouchBindings() {
194
+ blockTouchTriggers = false;
195
+ }
196
+
197
+ function disableTouchBindings() {
198
+ blockTouchTriggers = true;
199
+ }
200
+
201
+ function enableMouseBindings() {
202
+ lastTouchID = 0;
203
+ clickBlockList.length = 0;
204
+ blockMouseTriggers = false;
205
+
206
+ // When mouse bindings are enabled, our
207
+ // touch bindings are disabled.
208
+ disableTouchBindings();
209
+ }
210
+
211
+ function disableMouseBindings() {
212
+ // When mouse bindings are disabled, our
213
+ // touch bindings are enabled.
214
+ enableTouchBindings();
215
+ }
216
+
217
+ function startResetTimer() {
218
+ clearResetTimer();
219
+ resetTimerID = setTimeout( function() {
220
+ resetTimerID = 0;
221
+ enableMouseBindings();
222
+ }, $.vmouse.resetTimerDuration );
223
+ }
224
+
225
+ function clearResetTimer() {
226
+ if ( resetTimerID ) {
227
+ clearTimeout( resetTimerID );
228
+ resetTimerID = 0;
229
+ }
230
+ }
231
+
232
+ function triggerVirtualEvent( eventType, event, flags ) {
233
+ var ve;
234
+
235
+ if ( ( flags && flags[ eventType ] ) ||
236
+ ( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
237
+
238
+ ve = createVirtualEvent( event, eventType );
239
+
240
+ $( event.target).trigger( ve );
241
+ }
242
+
243
+ return ve;
244
+ }
245
+
246
+ function mouseEventCallback( event ) {
247
+ var touchID = $.data( event.target, touchTargetPropertyName );
248
+
249
+ if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ) {
250
+ var ve = triggerVirtualEvent( "v" + event.type, event );
251
+ if ( ve ) {
252
+ if ( ve.isDefaultPrevented() ) {
253
+ event.preventDefault();
254
+ }
255
+ if ( ve.isPropagationStopped() ) {
256
+ event.stopPropagation();
257
+ }
258
+ if ( ve.isImmediatePropagationStopped() ) {
259
+ event.stopImmediatePropagation();
260
+ }
261
+ }
262
+ }
263
+ }
264
+
265
+ function handleTouchStart( event ) {
266
+
267
+ var touches = getNativeEvent( event ).touches,
268
+ target, flags;
269
+
270
+ if ( touches && touches.length === 1 ) {
271
+
272
+ target = event.target;
273
+ flags = getVirtualBindingFlags( target );
274
+
275
+ if ( flags.hasVirtualBinding ) {
276
+
277
+ lastTouchID = nextTouchID++;
278
+ $.data( target, touchTargetPropertyName, lastTouchID );
279
+
280
+ clearResetTimer();
281
+
282
+ disableMouseBindings();
283
+ didScroll = false;
284
+
285
+ var t = getNativeEvent( event ).touches[ 0 ];
286
+ startX = t.pageX;
287
+ startY = t.pageY;
288
+
289
+ triggerVirtualEvent( "vmouseover", event, flags );
290
+ triggerVirtualEvent( "vmousedown", event, flags );
291
+ }
292
+ }
293
+ }
294
+
295
+ function handleScroll( event ) {
296
+ if ( blockTouchTriggers ) {
297
+ return;
298
+ }
299
+
300
+ if ( !didScroll ) {
301
+ triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
302
+ }
303
+
304
+ didScroll = true;
305
+ startResetTimer();
306
+ }
307
+
308
+ function handleTouchMove( event ) {
309
+ if ( blockTouchTriggers ) {
310
+ return;
311
+ }
312
+
313
+ var t = getNativeEvent( event ).touches[ 0 ],
314
+ didCancel = didScroll,
315
+ moveThreshold = $.vmouse.moveDistanceThreshold,
316
+ flags = getVirtualBindingFlags( event.target );
317
+
318
+ didScroll = didScroll ||
319
+ ( Math.abs( t.pageX - startX ) > moveThreshold ||
320
+ Math.abs( t.pageY - startY ) > moveThreshold );
321
+
322
+
323
+ if ( didScroll && !didCancel ) {
324
+ triggerVirtualEvent( "vmousecancel", event, flags );
325
+ }
326
+
327
+ triggerVirtualEvent( "vmousemove", event, flags );
328
+ startResetTimer();
329
+ }
330
+
331
+ function handleTouchEnd( event ) {
332
+ if ( blockTouchTriggers ) {
333
+ return;
334
+ }
335
+
336
+ disableTouchBindings();
337
+
338
+ var flags = getVirtualBindingFlags( event.target ),
339
+ t;
340
+ triggerVirtualEvent( "vmouseup", event, flags );
341
+
342
+ if ( !didScroll ) {
343
+ var ve = triggerVirtualEvent( "vclick", event, flags );
344
+ if ( ve && ve.isDefaultPrevented() ) {
345
+ // The target of the mouse events that follow the touchend
346
+ // event don't necessarily match the target used during the
347
+ // touch. This means we need to rely on coordinates for blocking
348
+ // any click that is generated.
349
+ t = getNativeEvent( event ).changedTouches[ 0 ];
350
+ clickBlockList.push({
351
+ touchID: lastTouchID,
352
+ x: t.clientX,
353
+ y: t.clientY
354
+ });
355
+
356
+ // Prevent any mouse events that follow from triggering
357
+ // virtual event notifications.
358
+ blockMouseTriggers = true;
359
+ }
360
+ }
361
+ triggerVirtualEvent( "vmouseout", event, flags);
362
+ didScroll = false;
363
+
364
+ startResetTimer();
365
+ }
366
+
367
+ function hasVirtualBindings( ele ) {
368
+ var bindings = $.data( ele, dataPropertyName ),
369
+ k;
370
+
371
+ if ( bindings ) {
372
+ for ( k in bindings ) {
373
+ if ( bindings[ k ] ) {
374
+ return true;
375
+ }
376
+ }
377
+ }
378
+ return false;
379
+ }
380
+
381
+ function dummyMouseHandler() {}
382
+
383
+ function getSpecialEventObject( eventType ) {
384
+ var realType = eventType.substr( 1 );
385
+
386
+ return {
387
+ setup: function( data, namespace ) {
388
+ // If this is the first virtual mouse binding for this element,
389
+ // add a bindings object to its data.
390
+
391
+ if ( !hasVirtualBindings( this ) ) {
392
+ $.data( this, dataPropertyName, {} );
393
+ }
394
+
395
+ // If setup is called, we know it is the first binding for this
396
+ // eventType, so initialize the count for the eventType to zero.
397
+ var bindings = $.data( this, dataPropertyName );
398
+ bindings[ eventType ] = true;
399
+
400
+ // If this is the first virtual mouse event for this type,
401
+ // register a global handler on the document.
402
+
403
+ activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
404
+
405
+ if ( activeDocHandlers[ eventType ] === 1 ) {
406
+ $document.bind( realType, mouseEventCallback );
407
+ }
408
+
409
+ // Some browsers, like Opera Mini, won't dispatch mouse/click events
410
+ // for elements unless they actually have handlers registered on them.
411
+ // To get around this, we register dummy handlers on the elements.
412
+
413
+ $( this ).bind( realType, dummyMouseHandler );
414
+
415
+ // For now, if event capture is not supported, we rely on mouse handlers.
416
+ if ( eventCaptureSupported ) {
417
+ // If this is the first virtual mouse binding for the document,
418
+ // register our touchstart handler on the document.
419
+
420
+ activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
421
+
422
+ if ( activeDocHandlers[ "touchstart" ] === 1 ) {
423
+ $document.bind( "touchstart", handleTouchStart )
424
+ .bind( "touchend", handleTouchEnd )
425
+
426
+ // On touch platforms, touching the screen and then dragging your finger
427
+ // causes the window content to scroll after some distance threshold is
428
+ // exceeded. On these platforms, a scroll prevents a click event from being
429
+ // dispatched, and on some platforms, even the touchend is suppressed. To
430
+ // mimic the suppression of the click event, we need to watch for a scroll
431
+ // event. Unfortunately, some platforms like iOS don't dispatch scroll
432
+ // events until *AFTER* the user lifts their finger (touchend). This means
433
+ // we need to watch both scroll and touchmove events to figure out whether
434
+ // or not a scroll happenens before the touchend event is fired.
435
+
436
+ .bind( "touchmove", handleTouchMove )
437
+ .bind( "scroll", handleScroll );
438
+ }
439
+ }
440
+ },
441
+
442
+ teardown: function( data, namespace ) {
443
+ // If this is the last virtual binding for this eventType,
444
+ // remove its global handler from the document.
445
+
446
+ --activeDocHandlers[ eventType ];
447
+
448
+ if ( !activeDocHandlers[ eventType ] ) {
449
+ $document.unbind( realType, mouseEventCallback );
450
+ }
451
+
452
+ if ( eventCaptureSupported ) {
453
+ // If this is the last virtual mouse binding in existence,
454
+ // remove our document touchstart listener.
455
+
456
+ --activeDocHandlers[ "touchstart" ];
457
+
458
+ if ( !activeDocHandlers[ "touchstart" ] ) {
459
+ $document.unbind( "touchstart", handleTouchStart )
460
+ .unbind( "touchmove", handleTouchMove )
461
+ .unbind( "touchend", handleTouchEnd )
462
+ .unbind( "scroll", handleScroll );
463
+ }
464
+ }
465
+
466
+ var $this = $( this ),
467
+ bindings = $.data( this, dataPropertyName );
468
+
469
+ // teardown may be called when an element was
470
+ // removed from the DOM. If this is the case,
471
+ // jQuery core may have already stripped the element
472
+ // of any data bindings so we need to check it before
473
+ // using it.
474
+ if ( bindings ) {
475
+ bindings[ eventType ] = false;
476
+ }
477
+
478
+ // Unregister the dummy event handler.
479
+
480
+ $this.unbind( realType, dummyMouseHandler );
481
+
482
+ // If this is the last virtual mouse binding on the
483
+ // element, remove the binding data from the element.
484
+
485
+ if ( !hasVirtualBindings( this ) ) {
486
+ $this.removeData( dataPropertyName );
487
+ }
488
+ }
489
+ };
490
+ }
491
+
492
+ // Expose our custom events to the jQuery bind/unbind mechanism.
493
+
494
+ for ( var i = 0; i < virtualEventNames.length; i++ ) {
495
+ $.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
496
+ }
497
+
498
+ // Add a capture click handler to block clicks.
499
+ // Note that we require event capture support for this so if the device
500
+ // doesn't support it, we punt for now and rely solely on mouse events.
501
+ if ( eventCaptureSupported ) {
502
+ document.addEventListener( "click", function( e ) {
503
+ var cnt = clickBlockList.length,
504
+ target = e.target,
505
+ x, y, ele, i, o, touchID;
506
+
507
+ if ( cnt ) {
508
+ x = e.clientX;
509
+ y = e.clientY;
510
+ threshold = $.vmouse.clickDistanceThreshold;
511
+
512
+ // The idea here is to run through the clickBlockList to see if
513
+ // the current click event is in the proximity of one of our
514
+ // vclick events that had preventDefault() called on it. If we find
515
+ // one, then we block the click.
516
+ //
517
+ // Why do we have to rely on proximity?
518
+ //
519
+ // Because the target of the touch event that triggered the vclick
520
+ // can be different from the target of the click event synthesized
521
+ // by the browser. The target of a mouse/click event that is syntehsized
522
+ // from a touch event seems to be implementation specific. For example,
523
+ // some browsers will fire mouse/click events for a link that is near
524
+ // a touch event, even though the target of the touchstart/touchend event
525
+ // says the user touched outside the link. Also, it seems that with most
526
+ // browsers, the target of the mouse/click event is not calculated until the
527
+ // time it is dispatched, so if you replace an element that you touched
528
+ // with another element, the target of the mouse/click will be the new
529
+ // element underneath that point.
530
+ //
531
+ // Aside from proximity, we also check to see if the target and any
532
+ // of its ancestors were the ones that blocked a click. This is necessary
533
+ // because of the strange mouse/click target calculation done in the
534
+ // Android 2.1 browser, where if you click on an element, and there is a
535
+ // mouse/click handler on one of its ancestors, the target will be the
536
+ // innermost child of the touched element, even if that child is no where
537
+ // near the point of touch.
538
+
539
+ ele = target;
540
+
541
+ while ( ele ) {
542
+ for ( i = 0; i < cnt; i++ ) {
543
+ o = clickBlockList[ i ];
544
+ touchID = 0;
545
+
546
+ if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
547
+ $.data( ele, touchTargetPropertyName ) === o.touchID ) {
548
+ // XXX: We may want to consider removing matches from the block list
549
+ // instead of waiting for the reset timer to fire.
550
+ e.preventDefault();
551
+ e.stopPropagation();
552
+ return;
553
+ }
554
+ }
555
+ ele = ele.parentNode;
556
+ }
557
+ }
558
+ }, true);
559
+ }
560
+ })( jQuery, window, document );
561
+
562
+ (function( $ ) {
563
+ $.mobile = {};
564
+ }( jQuery ));
565
+ (function( $, undefined ) {
566
+ var support = {
567
+ touch: "ontouchend" in document
568
+ };
569
+
570
+ $.mobile.support = $.mobile.support || {};
571
+ $.extend( $.support, support );
572
+ $.extend( $.mobile.support, support );
573
+ }( jQuery ));
574
+
575
+
576
+ (function( $, window, undefined ) {
577
+ var $document = $( document );
578
+
579
+ // add new event shortcuts
580
+ $.each( ( "touchstart touchmove touchend " +
581
+ "tap taphold " +
582
+ "swipe swipeleft swiperight " +
583
+ "scrollstart scrollstop" ).split( " " ), function( i, name ) {
584
+
585
+ $.fn[ name ] = function( fn ) {
586
+ return fn ? this.bind( name, fn ) : this.trigger( name );
587
+ };
588
+
589
+ // jQuery < 1.8
590
+ if ( $.attrFn ) {
591
+ $.attrFn[ name ] = true;
592
+ }
593
+ });
594
+
595
+ var supportTouch = $.mobile.support.touch,
596
+ scrollEvent = "touchmove scroll",
597
+ touchStartEvent = supportTouch ? "touchstart" : "mousedown",
598
+ touchStopEvent = supportTouch ? "touchend" : "mouseup",
599
+ touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
600
+
601
+ function triggerCustomEvent( obj, eventType, event ) {
602
+ var originalType = event.type;
603
+ event.type = eventType;
604
+ $.event.dispatch.call( obj, event );
605
+ event.type = originalType;
606
+ }
607
+
608
+ // also handles scrollstop
609
+ $.event.special.scrollstart = {
610
+
611
+ enabled: true,
612
+
613
+ setup: function() {
614
+
615
+ var thisObject = this,
616
+ $this = $( thisObject ),
617
+ scrolling,
618
+ timer;
619
+
620
+ function trigger( event, state ) {
621
+ scrolling = state;
622
+ triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
623
+ }
624
+
625
+ // iPhone triggers scroll after a small delay; use touchmove instead
626
+ $this.bind( scrollEvent, function( event ) {
627
+
628
+ if ( !$.event.special.scrollstart.enabled ) {
629
+ return;
630
+ }
631
+
632
+ if ( !scrolling ) {
633
+ trigger( event, true );
634
+ }
635
+
636
+ clearTimeout( timer );
637
+ timer = setTimeout( function() {
638
+ trigger( event, false );
639
+ }, 50 );
640
+ });
641
+ }
642
+ };
643
+
644
+ // also handles taphold
645
+ $.event.special.tap = {
646
+ tapholdThreshold: 750,
647
+
648
+ setup: function() {
649
+ var thisObject = this,
650
+ $this = $( thisObject );
651
+
652
+ $this.bind( "vmousedown", function( event ) {
653
+
654
+ if ( event.which && event.which !== 1 ) {
655
+ return false;
656
+ }
657
+
658
+ var origTarget = event.target,
659
+ origEvent = event.originalEvent,
660
+ timer;
661
+
662
+ function clearTapTimer() {
663
+ clearTimeout( timer );
664
+ }
665
+
666
+ function clearTapHandlers() {
667
+ clearTapTimer();
668
+
669
+ $this.unbind( "vclick", clickHandler )
670
+ .unbind( "vmouseup", clearTapTimer );
671
+ $document.unbind( "vmousecancel", clearTapHandlers );
672
+ }
673
+
674
+ function clickHandler( event ) {
675
+ clearTapHandlers();
676
+
677
+ // ONLY trigger a 'tap' event if the start target is
678
+ // the same as the stop target.
679
+ if ( origTarget === event.target ) {
680
+ triggerCustomEvent( thisObject, "tap", event );
681
+ }
682
+ }
683
+
684
+ $this.bind( "vmouseup", clearTapTimer )
685
+ .bind( "vclick", clickHandler );
686
+ $document.bind( "vmousecancel", clearTapHandlers );
687
+
688
+ timer = setTimeout( function() {
689
+ triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
690
+ }, $.event.special.tap.tapholdThreshold );
691
+ });
692
+ }
693
+ };
694
+
695
+ // also handles swipeleft, swiperight
696
+ $.event.special.swipe = {
697
+ scrollSupressionThreshold: 30, // More than this horizontal displacement, and we will suppress scrolling.
698
+
699
+ durationThreshold: 1000, // More time than this, and it isn't a swipe.
700
+
701
+ horizontalDistanceThreshold: 30, // Swipe horizontal displacement must be more than this.
702
+
703
+ verticalDistanceThreshold: 75, // Swipe vertical displacement must be less than this.
704
+
705
+ start: function( event ) {
706
+ var data = event.originalEvent.touches ?
707
+ event.originalEvent.touches[ 0 ] : event;
708
+ return {
709
+ time: ( new Date() ).getTime(),
710
+ coords: [ data.pageX, data.pageY ],
711
+ origin: $( event.target )
712
+ };
713
+ },
714
+
715
+ stop: function( event ) {
716
+ var data = event.originalEvent.touches ?
717
+ event.originalEvent.touches[ 0 ] : event;
718
+ return {
719
+ time: ( new Date() ).getTime(),
720
+ coords: [ data.pageX, data.pageY ]
721
+ };
722
+ },
723
+
724
+ handleSwipe: function( start, stop ) {
725
+ if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
726
+ Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
727
+ Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
728
+
729
+ start.origin.trigger( "swipe" )
730
+ .trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
731
+ }
732
+ },
733
+
734
+ setup: function() {
735
+ var thisObject = this,
736
+ $this = $( thisObject );
737
+
738
+ $this.bind( touchStartEvent, function( event ) {
739
+ var start = $.event.special.swipe.start( event ),
740
+ stop;
741
+
742
+ function moveHandler( event ) {
743
+ if ( !start ) {
744
+ return;
745
+ }
746
+
747
+ stop = $.event.special.swipe.stop( event );
748
+
749
+ // prevent scrolling
750
+ if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
751
+ event.preventDefault();
752
+ }
753
+ }
754
+
755
+ $this.bind( touchMoveEvent, moveHandler )
756
+ .one( touchStopEvent, function() {
757
+ $this.unbind( touchMoveEvent, moveHandler );
758
+
759
+ if ( start && stop ) {
760
+ $.event.special.swipe.handleSwipe( start, stop );
761
+ }
762
+ start = stop = undefined;
763
+ });
764
+ });
765
+ }
766
+ };
767
+ $.each({
768
+ scrollstop: "scrollstart",
769
+ taphold: "tap",
770
+ swipeleft: "swipe",
771
+ swiperight: "swipe"
772
+ }, function( event, sourceEvent ) {
773
+
774
+ $.event.special[ event ] = {
775
+ setup: function() {
776
+ $( this ).bind( sourceEvent, $.noop );
777
+ }
778
+ };
779
+ });
780
+
781
+ })( jQuery, this );
782
+
783
+ }));