alchemy 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (620) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +6 -0
  3. data/Rakefile +21 -0
  4. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.eot +0 -0
  5. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.svg +154 -0
  6. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.ttf +0 -0
  7. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.woff +0 -0
  8. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.eot +0 -0
  9. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.svg +154 -0
  10. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.ttf +0 -0
  11. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.woff +0 -0
  12. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.eot +0 -0
  13. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.svg +154 -0
  14. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.ttf +0 -0
  15. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.woff +0 -0
  16. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.eot +0 -0
  17. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.svg +154 -0
  18. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.ttf +0 -0
  19. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.woff +0 -0
  20. data/app/assets/fonts/alchemy/Red Hat Liberation License.txt +78 -0
  21. data/app/assets/fonts/alchemy/overpass_bold-web.eot +0 -0
  22. data/app/assets/fonts/alchemy/overpass_bold-web.svg +470 -0
  23. data/app/assets/fonts/alchemy/overpass_bold-web.ttf +0 -0
  24. data/app/assets/fonts/alchemy/overpass_bold-web.woff +0 -0
  25. data/app/assets/fonts/alchemy/overpass_regular-web.eot +0 -0
  26. data/app/assets/fonts/alchemy/overpass_regular-web.svg +470 -0
  27. data/app/assets/fonts/alchemy/overpass_regular-web.ttf +0 -0
  28. data/app/assets/fonts/alchemy/overpass_regular-web.woff +0 -0
  29. data/app/assets/images/alchemy/icons/action-icons.png +0 -0
  30. data/app/assets/images/alchemy/icons/arrow_icon.png +0 -0
  31. data/app/assets/images/alchemy/icons/chosen-sprite.png +0 -0
  32. data/app/assets/images/alchemy/icons/error_icon.png +0 -0
  33. data/app/assets/images/alchemy/icons/objects.png +0 -0
  34. data/app/assets/images/alchemy/icons/spinner.gif +0 -0
  35. data/app/assets/images/alchemy/icons/spinner_head.gif +0 -0
  36. data/app/assets/images/alchemy/icons/success_icon.png +0 -0
  37. data/app/assets/images/alchemy/icons/warning_icon.png +0 -0
  38. data/app/assets/javascripts/alchemy/flash_messages.js +12 -0
  39. data/app/assets/javascripts/alchemy/forms.js +25 -0
  40. data/app/assets/javascripts/alchemy/i18n.js +36 -0
  41. data/app/assets/javascripts/alchemy/login.js +130 -0
  42. data/app/assets/javascripts/alchemy/password.js +99 -0
  43. data/app/assets/stylesheets/alchemy/components/_chosen.scss +423 -0
  44. data/app/assets/stylesheets/alchemy/components/_content.scss +58 -0
  45. data/app/assets/stylesheets/alchemy/components/_helpers.scss +38 -0
  46. data/app/assets/stylesheets/alchemy/components/_media.scss +49 -0
  47. data/app/assets/stylesheets/alchemy/components/_normalize.scss +448 -0
  48. data/app/assets/stylesheets/alchemy/components/_shared.scss +18 -0
  49. data/app/assets/stylesheets/alchemy/components/buttons/_buttons.scss +241 -0
  50. data/app/assets/stylesheets/alchemy/components/buttons/_buttons_vars.scss +10 -0
  51. data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages.scss +93 -0
  52. data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages_vars.scss +3 -0
  53. data/app/assets/stylesheets/alchemy/components/fonts/_liberation.scss +44 -0
  54. data/app/assets/stylesheets/alchemy/components/fonts/_overpass.scss +24 -0
  55. data/app/assets/stylesheets/alchemy/components/footer/_footer.scss +53 -0
  56. data/app/assets/stylesheets/alchemy/components/footer/_footer_vars.scss +4 -0
  57. data/app/assets/stylesheets/alchemy/components/forms/_forms.scss +536 -0
  58. data/app/assets/stylesheets/alchemy/components/forms/_forms_ie.scss +45 -0
  59. data/app/assets/stylesheets/alchemy/components/forms/_forms_mixins.scss +18 -0
  60. data/app/assets/stylesheets/alchemy/components/forms/_forms_responsive.scss +161 -0
  61. data/app/assets/stylesheets/alchemy/components/forms/_forms_vars.scss +25 -0
  62. data/app/assets/stylesheets/alchemy/components/header/_header.scss +214 -0
  63. data/app/assets/stylesheets/alchemy/components/header/_header_vars.scss +11 -0
  64. data/app/assets/stylesheets/alchemy/components/login/_login.scss +169 -0
  65. data/app/assets/stylesheets/alchemy/components/login/_login_mixins.scss +7 -0
  66. data/app/assets/stylesheets/alchemy/components/login/_login_vars.scss +19 -0
  67. data/app/assets/stylesheets/alchemy/components/sprites/_sprites.scss +110 -0
  68. data/app/assets/stylesheets/alchemy/components/sprites/_sprites_mixins.scss +9 -0
  69. data/app/assets/stylesheets/alchemy/components/text/_text.scss +30 -0
  70. data/app/assets/stylesheets/alchemy/components/text/_text_vars.scss +1 -0
  71. data/app/assets/stylesheets/alchemy/composites/content_elements.scss +6 -0
  72. data/app/assets/stylesheets/alchemy/composites/login.scss +9 -0
  73. data/app/assets/stylesheets/alchemy/composites/shell.scss +4 -0
  74. data/app/assets/stylesheets/alchemy/partials/_base.scss +8 -0
  75. data/app/assets/stylesheets/alchemy/partials/_colors.scss +99 -0
  76. data/app/assets/stylesheets/alchemy/partials/_mixins.scss +24 -0
  77. data/app/assets/stylesheets/alchemy/partials/_vars.scss +31 -0
  78. data/app/helpers/alchemy/gettext_translations.rb +27 -0
  79. data/app/helpers/alchemy/layout_helper.rb +19 -0
  80. data/app/helpers/alchemy/rails_translations.rb +21 -0
  81. data/app/helpers/alchemy/translation_helper.rb +19 -0
  82. data/app/views/alchemy/layouts/_base.haml +20 -0
  83. data/app/views/alchemy/layouts/_change_password_layout.html.haml +20 -0
  84. data/app/views/alchemy/layouts/_common_i18n.haml +4 -0
  85. data/app/views/alchemy/layouts/_header_layout.haml +13 -0
  86. data/app/views/alchemy/layouts/_login_layout.html.haml +58 -0
  87. data/app/views/alchemy/layouts/_user_session_layout.haml +17 -0
  88. data/app/views/alchemy/layouts/shell_layout.haml +10 -0
  89. data/lib/alchemy.rb +6 -0
  90. data/lib/alchemy/version.rb +3 -0
  91. data/test/alchemy_test.rb +7 -0
  92. data/test/test_helper.rb +9 -0
  93. data/vendor/assets/javascripts/alchemy/html5shiv.js +298 -0
  94. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  95. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  96. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_dadada_1x100.png +0 -0
  97. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_e6e6e6_1x100.png +0 -0
  98. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_95_ffffff_1x100.png +0 -0
  99. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-soft_80_e0e0e0_1x100.png +0 -0
  100. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-hard_65_ffffff_1x100.png +0 -0
  101. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  102. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_8f8f8f_256x240.png +0 -0
  103. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_97baed_256x240.png +0 -0
  104. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  105. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/jquery-ui-1.8.11.custom.css +573 -0
  106. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/AUTHORS.txt +30 -0
  107. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/GPL-LICENSE.txt +278 -0
  108. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/MIT-LICENSE.txt +25 -0
  109. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/collapsible.html +57 -0
  110. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/custom-icons.html +69 -0
  111. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/default.html +85 -0
  112. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/fillspace.html +76 -0
  113. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/hoverintent.html +134 -0
  114. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/index.html +25 -0
  115. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/mouseover.html +57 -0
  116. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/no-auto-height.html +60 -0
  117. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/accordion/sortable.html +83 -0
  118. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/addClass/default.html +52 -0
  119. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/addClass/index.html +18 -0
  120. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/animate/default.html +61 -0
  121. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/animate/index.html +18 -0
  122. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/categories.html +71 -0
  123. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/combobox.html +171 -0
  124. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/custom-data.html +95 -0
  125. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/default.html +64 -0
  126. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/folding.html +62 -0
  127. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
  128. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
  129. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
  130. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
  131. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
  132. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/index.html +27 -0
  133. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/london.xml +114 -0
  134. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/maxheight.html +79 -0
  135. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/multiple-remote.html +84 -0
  136. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/multiple.html +99 -0
  137. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/remote-jsonp.html +86 -0
  138. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/remote-with-cache.html +59 -0
  139. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/remote.html +59 -0
  140. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/search.php +640 -0
  141. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/autocomplete/xml.html +72 -0
  142. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/checkbox.html +44 -0
  143. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/default.html +38 -0
  144. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/icons.html +56 -0
  145. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/index.html +23 -0
  146. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/radio.html +39 -0
  147. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/splitbutton.html +55 -0
  148. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/button/toolbar.html +120 -0
  149. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/alt-field.html +36 -0
  150. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/animation.html +58 -0
  151. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/buttonbar.html +35 -0
  152. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/date-formats.html +47 -0
  153. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/date-range.html +49 -0
  154. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/default.html +33 -0
  155. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/dropdown-month-year.html +36 -0
  156. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/icon-trigger.html +37 -0
  157. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/images/calendar.gif +0 -0
  158. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/index.html +31 -0
  159. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/inline.html +33 -0
  160. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/localization.html +162 -0
  161. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/min-max.html +33 -0
  162. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/multiple-calendars.html +36 -0
  163. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/other-months.html +37 -0
  164. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/datepicker/show-week.html +39 -0
  165. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/demos.css +334 -0
  166. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/animated.html +56 -0
  167. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/default.html +54 -0
  168. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/index.html +23 -0
  169. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/modal-confirmation.html +69 -0
  170. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/modal-form.html +167 -0
  171. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/modal-message.html +71 -0
  172. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/dialog/modal.html +60 -0
  173. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/constrain-movement.html +69 -0
  174. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/cursor-style.html +49 -0
  175. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/default.html +39 -0
  176. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/delay-start.html +45 -0
  177. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/events.html +77 -0
  178. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/handle.html +50 -0
  179. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/index.html +28 -0
  180. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/revert.html +44 -0
  181. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/scroll.html +51 -0
  182. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/snap-to.html +68 -0
  183. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/sortable.html +57 -0
  184. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/draggable/visual-feedback.html +77 -0
  185. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/accepted-elements.html +60 -0
  186. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/default.html +53 -0
  187. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  188. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  189. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  190. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  191. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  192. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  193. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  194. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  195. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/index.html +24 -0
  196. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/photo-manager.html +184 -0
  197. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/propagation.html +80 -0
  198. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/revert.html +61 -0
  199. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/shopping-cart.html +101 -0
  200. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/droppable/visual-feedback.html +78 -0
  201. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/effect/default.html +109 -0
  202. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/effect/easing.html +108 -0
  203. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/effect/index.html +19 -0
  204. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/hide/default.html +102 -0
  205. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/hide/index.html +18 -0
  206. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/calendar.gif +0 -0
  207. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  208. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/demo-config-on.gif +0 -0
  209. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  210. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  211. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/icon-docs-info.gif +0 -0
  212. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/images/pbar-ani.gif +0 -0
  213. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/index.html +321 -0
  214. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/position/cycler.html +122 -0
  215. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/position/default.html +153 -0
  216. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/position/images/earth.jpg +0 -0
  217. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/position/images/flight.jpg +0 -0
  218. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/position/images/rocket.jpg +0 -0
  219. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/position/index.html +19 -0
  220. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/progressbar/animated.html +44 -0
  221. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/progressbar/default.html +35 -0
  222. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
  223. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/progressbar/index.html +20 -0
  224. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/progressbar/resize.html +40 -0
  225. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/removeClass/default.html +52 -0
  226. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/removeClass/index.html +18 -0
  227. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/animate.html +43 -0
  228. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/aspect-ratio.html +42 -0
  229. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/constrain-area.html +47 -0
  230. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/default.html +40 -0
  231. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/delay-start.html +52 -0
  232. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/helper.html +43 -0
  233. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/index.html +28 -0
  234. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/max-min.html +45 -0
  235. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/snap-to-grid.html +42 -0
  236. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/synchronous-resize.html +49 -0
  237. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/textarea.html +41 -0
  238. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/resizable/visual-feedback.html +43 -0
  239. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/selectable/default.html +50 -0
  240. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/selectable/display-grid.html +55 -0
  241. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/selectable/index.html +20 -0
  242. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/selectable/serialize.html +61 -0
  243. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/show/default.html +104 -0
  244. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/show/index.html +18 -0
  245. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/colorpicker.html +95 -0
  246. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/default.html +37 -0
  247. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/hotelrooms.html +59 -0
  248. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/index.html +29 -0
  249. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/multiple-vertical.html +77 -0
  250. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/range-vertical.html +51 -0
  251. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/range.html +52 -0
  252. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/rangemax.html +50 -0
  253. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/rangemin.html +51 -0
  254. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/side-scroll.html +140 -0
  255. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/slider-vertical.html +52 -0
  256. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/steps.html +51 -0
  257. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/slider/tabs.html +67 -0
  258. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html +78 -0
  259. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/connect-lists.html +58 -0
  260. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/default.html +51 -0
  261. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/delay-start.html +67 -0
  262. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/display-grid.html +54 -0
  263. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/empty-lists.html +69 -0
  264. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/index.html +26 -0
  265. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/items.html +70 -0
  266. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/placeholder.html +56 -0
  267. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/sortable/portlets.html +96 -0
  268. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/switchClass/default.html +47 -0
  269. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/switchClass/index.html +18 -0
  270. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/ajax.html +53 -0
  271. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/ajax/content1.html +4 -0
  272. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/ajax/content2.html +4 -0
  273. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/ajax/content3-slow.php +7 -0
  274. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/ajax/content4-broken.php +3 -0
  275. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/bottom.html +60 -0
  276. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/collapsible.html +55 -0
  277. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/cookie.html +56 -0
  278. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/default.html +49 -0
  279. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/index.html +25 -0
  280. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/manipulation.html +124 -0
  281. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/mouseover.html +53 -0
  282. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/sortable.html +58 -0
  283. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/tabs/vertical.html +61 -0
  284. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/toggle/default.html +94 -0
  285. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/toggle/index.html +18 -0
  286. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/toggleClass/default.html +46 -0
  287. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/demos/toggleClass/index.html +18 -0
  288. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/accordion.html +1017 -0
  289. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/addClass.html +109 -0
  290. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/animate.html +78 -0
  291. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/autocomplete.html +833 -0
  292. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/button.html +500 -0
  293. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/datepicker.html +2570 -0
  294. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/dialog.html +1698 -0
  295. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/draggable.html +1577 -0
  296. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/droppable.html +829 -0
  297. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/effect.html +143 -0
  298. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/hide.html +144 -0
  299. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/position.html +227 -0
  300. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/progressbar.html +460 -0
  301. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/removeClass.html +113 -0
  302. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/resizable.html +1201 -0
  303. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/selectable.html +848 -0
  304. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/show.html +144 -0
  305. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/slider.html +860 -0
  306. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/sortable.html +1952 -0
  307. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/switchClass.html +129 -0
  308. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/tabs.html +1549 -0
  309. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/toggle.html +144 -0
  310. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/docs/toggleClass.html +111 -0
  311. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/external/jquery.bgiframe-2.1.2.js +39 -0
  312. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/external/jquery.cookie.js +89 -0
  313. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/external/jquery.metadata.js +122 -0
  314. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/external/qunit.css +153 -0
  315. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/external/qunit.js +1261 -0
  316. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/jquery-1.5.1.js +8316 -0
  317. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  318. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  319. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  320. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  321. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  322. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  323. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  324. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  325. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  326. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  327. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  328. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  329. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  330. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.accordion.css +19 -0
  331. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.all.css +11 -0
  332. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.autocomplete.css +53 -0
  333. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.base.css +11 -0
  334. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.button.css +38 -0
  335. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.core.css +41 -0
  336. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.datepicker.css +68 -0
  337. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
  338. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.progressbar.css +11 -0
  339. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
  340. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
  341. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.slider.css +24 -0
  342. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.tabs.css +18 -0
  343. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/base/jquery.ui.theme.css +252 -0
  344. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  345. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  346. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_highlight-hard_75_dadada_1x100.png +0 -0
  347. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_highlight-hard_75_e6e6e6_1x100.png +0 -0
  348. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_highlight-hard_95_ffffff_1x100.png +0 -0
  349. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_highlight-soft_80_e0e0e0_1x100.png +0 -0
  350. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_inset-hard_65_ffffff_1x100.png +0 -0
  351. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  352. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-icons_8f8f8f_256x240.png +0 -0
  353. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-icons_97baed_256x240.png +0 -0
  354. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  355. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery-ui-1.8.11.custom.css +573 -0
  356. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.accordion.css +19 -0
  357. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.all.css +11 -0
  358. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.autocomplete.css +53 -0
  359. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.base.css +11 -0
  360. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.button.css +38 -0
  361. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.core.css +41 -0
  362. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.datepicker.css +68 -0
  363. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.dialog.css +21 -0
  364. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.progressbar.css +11 -0
  365. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.resizable.css +20 -0
  366. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.selectable.css +10 -0
  367. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.slider.css +24 -0
  368. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.tabs.css +18 -0
  369. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/themes/custom-theme/jquery.ui.theme.css +254 -0
  370. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery-ui-i18n.js +1379 -0
  371. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
  372. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ar-DZ.js +23 -0
  373. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +23 -0
  374. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
  375. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
  376. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
  377. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
  378. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
  379. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +23 -0
  380. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +23 -0
  381. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +23 -0
  382. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-en-AU.js +23 -0
  383. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
  384. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-en-NZ.js +23 -0
  385. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
  386. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +23 -0
  387. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
  388. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
  389. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
  390. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
  391. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
  392. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
  393. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +25 -0
  394. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js +23 -0
  395. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +23 -0
  396. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
  397. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
  398. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
  399. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +23 -0
  400. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +23 -0
  401. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +23 -0
  402. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
  403. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
  404. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
  405. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
  406. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
  407. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ml.js +23 -0
  408. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
  409. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
  410. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +23 -0
  411. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
  412. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
  413. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js +22 -0
  414. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-rm.js +21 -0
  415. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
  416. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
  417. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
  418. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
  419. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
  420. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
  421. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
  422. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
  423. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
  424. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +23 -0
  425. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-tj.js +23 -0
  426. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
  427. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
  428. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
  429. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
  430. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
  431. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
  432. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery-ui-1.8.11.custom.js +11577 -0
  433. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.blind.js +49 -0
  434. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.bounce.js +78 -0
  435. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.clip.js +54 -0
  436. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.core.js +747 -0
  437. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.drop.js +50 -0
  438. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.explode.js +79 -0
  439. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.fade.js +32 -0
  440. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.fold.js +56 -0
  441. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.highlight.js +50 -0
  442. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.pulsate.js +51 -0
  443. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.scale.js +178 -0
  444. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.shake.js +57 -0
  445. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.slide.js +50 -0
  446. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.effects.transfer.js +45 -0
  447. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.accordion.js +611 -0
  448. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.autocomplete.js +612 -0
  449. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.button.js +387 -0
  450. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.core.js +308 -0
  451. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.datepicker.js +1773 -0
  452. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.dialog.js +857 -0
  453. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.draggable.js +799 -0
  454. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.droppable.js +285 -0
  455. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.mouse.js +156 -0
  456. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.position.js +252 -0
  457. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.progressbar.js +108 -0
  458. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.resizable.js +812 -0
  459. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.selectable.js +266 -0
  460. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.slider.js +682 -0
  461. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.sortable.js +1073 -0
  462. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.tabs.js +758 -0
  463. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/jquery.ui.widget.js +262 -0
  464. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.blind.min.js +14 -0
  465. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.bounce.min.js +15 -0
  466. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.clip.min.js +14 -0
  467. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.core.min.js +30 -0
  468. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.drop.min.js +14 -0
  469. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.explode.min.js +15 -0
  470. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.fade.min.js +13 -0
  471. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.fold.min.js +14 -0
  472. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.highlight.min.js +14 -0
  473. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.pulsate.min.js +14 -0
  474. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.scale.min.js +20 -0
  475. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.shake.min.js +14 -0
  476. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.slide.min.js +14 -0
  477. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.effects.transfer.min.js +14 -0
  478. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.accordion.min.js +30 -0
  479. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +32 -0
  480. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.button.min.js +25 -0
  481. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.core.min.js +17 -0
  482. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.datepicker.min.js +82 -0
  483. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.dialog.min.js +40 -0
  484. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.draggable.min.js +50 -0
  485. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.droppable.min.js +26 -0
  486. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.mouse.min.js +17 -0
  487. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.position.min.js +16 -0
  488. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.progressbar.min.js +16 -0
  489. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.resizable.min.js +47 -0
  490. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.selectable.min.js +22 -0
  491. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.slider.min.js +33 -0
  492. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.sortable.min.js +60 -0
  493. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.tabs.min.js +35 -0
  494. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/ui/minified/jquery.ui.widget.min.js +15 -0
  495. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/development-bundle/version.txt +1 -0
  496. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-1.5.1.min.js +16 -0
  497. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-ui-1.8.11.custom.min.js +783 -0
  498. data/vendor/assets/javascripts/alchemy/jquery/jquery-1.6.2.js +8981 -0
  499. data/vendor/assets/javascripts/alchemy/jquery/plugins/chosen.jquery.js +1003 -0
  500. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/API.txt +1201 -0
  501. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/FAQ.txt +76 -0
  502. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/LICENSE.txt +22 -0
  503. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/Makefile +9 -0
  504. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/NEWS.txt +508 -0
  505. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/PLUGINS.txt +137 -0
  506. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/README.txt +90 -0
  507. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/ajax.html +143 -0
  508. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/annotating.html +75 -0
  509. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-down.gif +0 -0
  510. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-left.gif +0 -0
  511. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-right.gif +0 -0
  512. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-up.gif +0 -0
  513. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/basic.html +38 -0
  514. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-1.json +4 -0
  515. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-2.json +4 -0
  516. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-3.json +4 -0
  517. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-4.json +4 -0
  518. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-5.json +4 -0
  519. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth.json +4 -0
  520. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-japan-gdp-growth.json +4 -0
  521. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-usa-gdp-growth.json +4 -0
  522. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/graph-types.html +75 -0
  523. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/hs-2004-27-a-large_web.jpg +0 -0
  524. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/image.html +45 -0
  525. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/index.html +44 -0
  526. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting-axes.html +97 -0
  527. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting.html +93 -0
  528. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/layout.css +6 -0
  529. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/multiple-axes.html +60 -0
  530. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/navigate.html +118 -0
  531. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/percentiles.html +57 -0
  532. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/pie.html +756 -0
  533. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/realtime.html +83 -0
  534. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/resize.html +61 -0
  535. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/selection.html +114 -0
  536. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/setting-options.html +61 -0
  537. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/stacking.html +77 -0
  538. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/symbols.html +49 -0
  539. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/thresholding.html +54 -0
  540. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/time.html +71 -0
  541. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/tracking.html +95 -0
  542. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/turning-series.html +98 -0
  543. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/visitors.html +90 -0
  544. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/zooming.html +98 -0
  545. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.js +1427 -0
  546. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.min.js +1 -0
  547. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.js +179 -0
  548. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.min.js +1 -0
  549. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.js +167 -0
  550. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.min.js +1 -0
  551. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.js +183 -0
  552. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.min.js +1 -0
  553. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.js +238 -0
  554. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.min.js +1 -0
  555. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.js +2599 -0
  556. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.min.js +6 -0
  557. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.js +336 -0
  558. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.min.js +1 -0
  559. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.js +750 -0
  560. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.min.js +1 -0
  561. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.js +60 -0
  562. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.min.js +1 -0
  563. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.js +344 -0
  564. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.min.js +1 -0
  565. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.js +184 -0
  566. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.min.js +1 -0
  567. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.js +70 -0
  568. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.min.js +1 -0
  569. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.js +103 -0
  570. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js +1 -0
  571. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/blank.svg +3 -0
  572. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/custom_test.js +67 -0
  573. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.css +9 -0
  574. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.js +1101 -0
  575. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.min.js +7 -0
  576. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.pack.js +7 -0
  577. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.js +396 -0
  578. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.min.js +7 -0
  579. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.pack.js +7 -0
  580. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.js +1337 -0
  581. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.min.js +7 -0
  582. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.pack.js +7 -0
  583. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/lion.svg +161 -0
  584. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/test.js +714 -0
  585. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ajaxfileupload.js +205 -0
  586. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-bbq.js +1137 -0
  587. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-resize.js +246 -0
  588. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.cookie.js +92 -0
  589. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.easing.1.3.js +205 -0
  590. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.fancyqueries.js +106 -0
  591. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.flash.js +288 -0
  592. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.form.js +964 -0
  593. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.hoverIntent.js +106 -0
  594. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.ajaxupload.js +62 -0
  595. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.js +556 -0
  596. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jnotify.js +210 -0
  597. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.js +1390 -0
  598. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.min.js +11 -0
  599. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.linkHover.js +89 -0
  600. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.loadmask.min.js +10 -0
  601. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.mousewheel.js +78 -0
  602. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.filter.js +176 -0
  603. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.js +668 -0
  604. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.pack.js +11 -0
  605. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.periodicalupdater.js +175 -0
  606. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sortElements.js +75 -0
  607. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sparkline.min.js +94 -0
  608. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.text-overflow.js +60 -0
  609. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timepickr.js +214 -0
  610. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timers.js +142 -0
  611. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.tipsy.js +358 -0
  612. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.treeTable.js +226 -0
  613. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.trunk8.js +203 -0
  614. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.multiselect.js +338 -0
  615. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.totop.js +58 -0
  616. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.uitablefilter.js +95 -0
  617. data/vendor/assets/javascripts/alchemy/jquery/plugins/ui.spinner.js +683 -0
  618. data/vendor/assets/javascripts/alchemy/rails.js +331 -0
  619. data/vendor/assets/javascripts/alchemy/underscore-1.3.1.js +999 -0
  620. metadata +683 -0
@@ -0,0 +1,210 @@
1
+ /*!
2
+ * jNotify jQuery Plug-in
3
+ *
4
+ * Copyright 2010 Giva, Inc. (http://www.givainc.com/labs/)
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Date: 2010-09-30
19
+ * Rev: 1.1.00
20
+ */
21
+ ;(function($){
22
+ $.jnotify = function (m, o, d){
23
+ return new jNotify(m, o, d);
24
+ };
25
+
26
+ // set the version of the plug-in
27
+ $.jnotify.version = "1.1.00";
28
+
29
+ var $jnotify, queue = [], count = 0, playing = false, paused = false, queuedId, queuedNote,
30
+ // define default settings
31
+ defaults = {
32
+ // define core settings
33
+ type: "" // if a type is specified, then an additional class of classNotification + type is created for each notification
34
+ , delay: 2000 // the default time to show each notification (in milliseconds)
35
+ , sticky: false // determines if the message should be considered "sticky" (user must manually close notification)
36
+ , closeLabel: "×" // the HTML to use for the "Close" link
37
+ , showClose: true // determines if the "Close" link should be shown if notification is also sticky
38
+ , fadeSpeed: 1000 // the speed to fade messages out (in milliseconds)
39
+ , slideSpeed: 250 // the speed used to slide messages out (in milliseconds)
40
+ , alwaysClosable: false // makes notifications always closable, even if they're not sticky. off by default
41
+
42
+ // define the class statements
43
+ , classContainer: "jnotify-container" // className to use for the outer most container--this is where all the notifications appear
44
+ , classNotification: "jnotify-notification" // className of the individual notification containers
45
+ , classBackground: "jnotify-background" // className of the background layer for each notification container
46
+ , classClose: "jnotify-close" // className to use for the "Close" link
47
+ , classMessage: "jnotify-message" // className to use for the actual notification text container--this is where the message is actually written
48
+
49
+ // event handlers
50
+ , init: null // callback that occurs when the main jnotify container is created
51
+ , create: null // callback that occurs when when the note is created (occurs just before appearing in DOM)
52
+ , beforeRemove: null // callback that occurs when before the notification starts to fade away
53
+ , remove: null // callback that occurs when notification is removed
54
+ , transition: null // allows you to overwrite how the transitions between messages are handled
55
+ // receives the following arguments:
56
+ // container - jQuery object containing the notification
57
+ // message - jQuery object of the actual message
58
+ // count - the number of items left in queue
59
+ // callback - a function you must execute once your transition has executed
60
+ // options - the options used for this jnotify instance
61
+ };
62
+
63
+ // override the defaults
64
+ $.jnotify.setup = function (o){
65
+ defaults = $.extend({}, defaults, o) ;
66
+ };
67
+
68
+ $.jnotify.play = function (f, d){
69
+ if( playing && (f !== true ) || (queue.length == 0) ) return;
70
+ playing = true;
71
+
72
+ // get first note
73
+ var note = queue.shift();
74
+ queuedNote = note;
75
+
76
+ // determine delay to use
77
+ var delay = (arguments.length >= 2) ? parseInt(d, 10) : note.options.delay;
78
+
79
+ // run delay before removing message
80
+ queuedId = setTimeout(function(){
81
+ // clear timeout id
82
+ queuedId = 0;
83
+ note.remove(function (){
84
+ // makr that the queue is empty
85
+ if( queue.length == 0 ) playing = false;
86
+ // force playing the next item in queue
87
+ else if( !paused ) $.jnotify.play(true);
88
+ });
89
+ }, delay);
90
+ };
91
+
92
+ $.jnotify.pause = function(){
93
+ clearTimeout(queuedId);
94
+ // push the item back into the queue
95
+ if( queuedId ) queue.unshift(queuedNote);
96
+ // mark that we're playing (so it doesn't automatically start playing)
97
+ paused = playing = true;
98
+ };
99
+
100
+ $.jnotify.resume = function(){
101
+ // mark that we're no longer pause
102
+ paused = false;
103
+
104
+ // resume playing
105
+ $.jnotify.play(true, 0);
106
+ };
107
+
108
+
109
+ function jNotify(message, options){
110
+ // a reference to the jNotify object
111
+ var self = this, TO = typeof options;
112
+
113
+ if( TO == "number" ){
114
+ options = $.extend({}, defaults, {delay: options});
115
+ } else if( TO == "boolean" ){
116
+ options = $.extend({}, defaults, {sticky: true}) ;
117
+ } else if( TO == "string" ){
118
+ options = $.extend({}, defaults, {type: options, delay: ((arguments.length > 2) && (typeof arguments[2] == "number")) ? arguments[2] : defaults.delay, sticky: ((arguments.length > 2) && (typeof arguments[2] == "boolean")) ? arguments[2] : defaults.sticky}) ;
119
+ } else {
120
+ options = $.extend({}, defaults, options);
121
+ }
122
+
123
+ // store the options
124
+ this.options = options;
125
+
126
+ // if the container doesn't exist, create it
127
+ if( !$jnotify ){
128
+ // we want to use one single container, so always use the default container class
129
+ $jnotify = $('<div class="' + defaults.classContainer + '" />').appendTo("body");
130
+ if( $.isFunction(options.init) ) options.init.apply(self, [$jnotify]);
131
+ }
132
+
133
+ // create the notification
134
+ function create(message){
135
+ var html = '<div class="' + options.classNotification + (options.type.length ? (" " + options.classNotification + "-" + options.type) : "") + '">'
136
+ + '<div class="' + options.classBackground + '"></div>'
137
+ + ((options.sticky && options.showClose) || options.alwaysClosable ? ('<a class="' + options.classClose + '">' + options.closeLabel + '</a>') : '')
138
+ + '<div class="' + options.classMessage + '">'
139
+ + '<div>' + message + '</div>'
140
+ + '</div></div>';
141
+
142
+ // increase the counter tracking the notification instances
143
+ count++;
144
+
145
+ // create the note
146
+ var $note = $(html);
147
+
148
+ if( options.alwaysClosable || options.sticky ){
149
+ // add click handler to remove the sticky notification
150
+ $note.find("a." + options.classClose).bind("click.jnotify", function (){
151
+ self.remove();
152
+ });
153
+ }
154
+
155
+ // run callback
156
+ if( $.isFunction(options.create) ) options.create.apply(self, [$note]);
157
+
158
+ // return the new note
159
+ return $note.appendTo($jnotify);
160
+ }
161
+
162
+ // remove the notification
163
+ this.remove = function (callback){
164
+ var $msg = $note.find("." + options.classMessage), $parent = $msg.parent();
165
+ // remove message from counter
166
+ var index = count--;
167
+
168
+ // run callback
169
+ if( $.isFunction(options.beforeRemove) ) options.beforeRemove.apply(self, [$msg]);
170
+
171
+ // cleans up notification
172
+ function finished(){
173
+ // remove the parent container
174
+ $parent.remove();
175
+
176
+ // if there's a callback, run it
177
+ if( $.isFunction(callback) ) callback.apply(self, [$msg]);
178
+ if( $.isFunction(options.remove) ) options.remove.apply(self, [$msg]);
179
+ }
180
+
181
+ // check if a custom transition has been specified
182
+ if( $.isFunction(options.transition) ) options.transition.apply(self, [$parent, $msg, index, finished, options]);
183
+ else {
184
+ $msg.fadeTo(options.fadeSpeed, 0.01, function (){
185
+ // if last item, just remove
186
+ if( index <= 1 ) finished();
187
+ // slide the parent closed
188
+ else $parent.slideUp(options.slideSpeed, finished);
189
+ });
190
+
191
+ // if the last notification, fade out the container
192
+ if( count <= 0 ) $parent.fadeOut(options.fadeSpeed);
193
+ }
194
+ };
195
+
196
+ // create the note
197
+ var $note = create(message);
198
+
199
+ // if not a sticky, add to show queue
200
+ if( !options.sticky ){
201
+ // add the message to the queue
202
+ queue.push(this);
203
+ // play queue
204
+ $.jnotify.play();
205
+ }
206
+
207
+ return this;
208
+ }
209
+
210
+ })(jQuery);
@@ -0,0 +1,1390 @@
1
+ /*!
2
+ * jScrollPane - v2.0.0beta11 - 2011-07-04
3
+ * http://jscrollpane.kelvinluck.com/
4
+ *
5
+ * Copyright (c) 2010 Kelvin Luck
6
+ * Dual licensed under the MIT and GPL licenses.
7
+ */
8
+
9
+ // Script: jScrollPane - cross browser customisable scrollbars
10
+ //
11
+ // *Version: 2.0.0beta11, Last updated: 2011-07-04*
12
+ //
13
+ // Project Home - http://jscrollpane.kelvinluck.com/
14
+ // GitHub - http://github.com/vitch/jScrollPane
15
+ // Source - http://github.com/vitch/jScrollPane/raw/master/script/jquery.jscrollpane.js
16
+ // (Minified) - http://github.com/vitch/jScrollPane/raw/master/script/jquery.jscrollpane.min.js
17
+ //
18
+ // About: License
19
+ //
20
+ // Copyright (c) 2011 Kelvin Luck
21
+ // Dual licensed under the MIT or GPL Version 2 licenses.
22
+ // http://jscrollpane.kelvinluck.com/MIT-LICENSE.txt
23
+ // http://jscrollpane.kelvinluck.com/GPL-LICENSE.txt
24
+ //
25
+ // About: Examples
26
+ //
27
+ // All examples and demos are available through the jScrollPane example site at:
28
+ // http://jscrollpane.kelvinluck.com/
29
+ //
30
+ // About: Support and Testing
31
+ //
32
+ // This plugin is tested on the browsers below and has been found to work reliably on them. If you run
33
+ // into a problem on one of the supported browsers then please visit the support section on the jScrollPane
34
+ // website (http://jscrollpane.kelvinluck.com/) for more information on getting support. You are also
35
+ // welcome to fork the project on GitHub if you can contribute a fix for a given issue.
36
+ //
37
+ // jQuery Versions - tested in 1.4.2+ - reported to work in 1.3.x
38
+ // Browsers Tested - Firefox 3.6.8, Safari 5, Opera 10.6, Chrome 5.0, IE 6, 7, 8
39
+ //
40
+ // About: Release History
41
+ //
42
+ // 2.0.0beta11 - (in progress)
43
+ // 2.0.0beta10 - (2011-04-17) cleaner required size calculation, improved keyboard support, stickToBottom/Left, other small fixes
44
+ // 2.0.0beta9 - (2011-01-31) new API methods, bug fixes and correct keyboard support for FF/OSX
45
+ // 2.0.0beta8 - (2011-01-29) touchscreen support, improved keyboard support
46
+ // 2.0.0beta7 - (2011-01-23) scroll speed consistent (thanks Aivo Paas)
47
+ // 2.0.0beta6 - (2010-12-07) scrollToElement horizontal support
48
+ // 2.0.0beta5 - (2010-10-18) jQuery 1.4.3 support, various bug fixes
49
+ // 2.0.0beta4 - (2010-09-17) clickOnTrack support, bug fixes
50
+ // 2.0.0beta3 - (2010-08-27) Horizontal mousewheel, mwheelIntent, keyboard support, bug fixes
51
+ // 2.0.0beta2 - (2010-08-21) Bug fixes
52
+ // 2.0.0beta1 - (2010-08-17) Rewrite to follow modern best practices and enable horizontal scrolling, initially hidden
53
+ // elements and dynamically sized elements.
54
+ // 1.x - (2006-12-31 - 2010-07-31) Initial version, hosted at googlecode, deprecated
55
+
56
+ (function($,window,undefined){
57
+
58
+ $.fn.jScrollPane = function(settings)
59
+ {
60
+ // JScrollPane "class" - public methods are available through $('selector').data('jsp')
61
+ function JScrollPane(elem, s)
62
+ {
63
+ var settings, jsp = this, pane, paneWidth, paneHeight, container, contentWidth, contentHeight,
64
+ percentInViewH, percentInViewV, isScrollableV, isScrollableH, verticalDrag, dragMaxY,
65
+ verticalDragPosition, horizontalDrag, dragMaxX, horizontalDragPosition,
66
+ verticalBar, verticalTrack, scrollbarWidth, verticalTrackHeight, verticalDragHeight, arrowUp, arrowDown,
67
+ horizontalBar, horizontalTrack, horizontalTrackWidth, horizontalDragWidth, arrowLeft, arrowRight,
68
+ reinitialiseInterval, originalPadding, originalPaddingTotalWidth, previousContentWidth,
69
+ wasAtTop = true, wasAtLeft = true, wasAtBottom = false, wasAtRight = false,
70
+ originalElement = elem.clone(false, false).empty(),
71
+ mwEvent = $.fn.mwheelIntent ? 'mwheelIntent.jsp' : 'mousewheel.jsp';
72
+
73
+ originalPadding = elem.css('paddingTop') + ' ' +
74
+ elem.css('paddingRight') + ' ' +
75
+ elem.css('paddingBottom') + ' ' +
76
+ elem.css('paddingLeft');
77
+ originalPaddingTotalWidth = (parseInt(elem.css('paddingLeft'), 10) || 0) +
78
+ (parseInt(elem.css('paddingRight'), 10) || 0);
79
+
80
+ function initialise(s)
81
+ {
82
+
83
+ var /*firstChild, lastChild, */isMaintainingPositon, lastContentX, lastContentY,
84
+ hasContainingSpaceChanged, originalScrollTop, originalScrollLeft,
85
+ maintainAtBottom = false, maintainAtRight = false;
86
+
87
+ settings = s;
88
+
89
+ if (pane === undefined) {
90
+ originalScrollTop = elem.scrollTop();
91
+ originalScrollLeft = elem.scrollLeft();
92
+
93
+ elem.css(
94
+ {
95
+ overflow: 'hidden',
96
+ padding: 0
97
+ }
98
+ );
99
+ // TODO: Deal with where width/ height is 0 as it probably means the element is hidden and we should
100
+ // come back to it later and check once it is unhidden...
101
+ paneWidth = elem.innerWidth() + originalPaddingTotalWidth;
102
+ paneHeight = elem.innerHeight();
103
+
104
+ elem.width(paneWidth);
105
+
106
+ pane = $('<div class="jspPane" />').css('padding', originalPadding).append(elem.children());
107
+ container = $('<div class="jspContainer" />')
108
+ .css({
109
+ 'width': paneWidth + 'px',
110
+ 'height': paneHeight + 'px'
111
+ }
112
+ ).append(pane).appendTo(elem);
113
+
114
+ /*
115
+ // Move any margins from the first and last children up to the container so they can still
116
+ // collapse with neighbouring elements as they would before jScrollPane
117
+ firstChild = pane.find(':first-child');
118
+ lastChild = pane.find(':last-child');
119
+ elem.css(
120
+ {
121
+ 'margin-top': firstChild.css('margin-top'),
122
+ 'margin-bottom': lastChild.css('margin-bottom')
123
+ }
124
+ );
125
+ firstChild.css('margin-top', 0);
126
+ lastChild.css('margin-bottom', 0);
127
+ */
128
+ } else {
129
+ elem.css('width', '');
130
+
131
+ maintainAtBottom = settings.stickToBottom && isCloseToBottom();
132
+ maintainAtRight = settings.stickToRight && isCloseToRight();
133
+
134
+ hasContainingSpaceChanged = elem.innerWidth() + originalPaddingTotalWidth != paneWidth || elem.outerHeight() != paneHeight;
135
+
136
+ if (hasContainingSpaceChanged) {
137
+ paneWidth = elem.innerWidth() + originalPaddingTotalWidth;
138
+ paneHeight = elem.innerHeight();
139
+ container.css({
140
+ width: paneWidth + 'px',
141
+ height: paneHeight + 'px'
142
+ });
143
+ }
144
+
145
+ // If nothing changed since last check...
146
+ if (!hasContainingSpaceChanged && previousContentWidth == contentWidth && pane.outerHeight() == contentHeight) {
147
+ elem.width(paneWidth);
148
+ return;
149
+ }
150
+ previousContentWidth = contentWidth;
151
+
152
+ pane.css('width', '');
153
+ elem.width(paneWidth);
154
+
155
+ container.find('>.jspVerticalBar,>.jspHorizontalBar').remove().end();
156
+ }
157
+
158
+ pane.css('overflow', 'auto');
159
+ if (s.contentWidth) {
160
+ contentWidth = s.contentWidth;
161
+ } else {
162
+ contentWidth = pane[0].scrollWidth;
163
+ }
164
+ contentHeight = pane[0].scrollHeight;
165
+ pane.css('overflow', '');
166
+
167
+ percentInViewH = contentWidth / paneWidth;
168
+ percentInViewV = contentHeight / paneHeight;
169
+ isScrollableV = percentInViewV > 1;
170
+
171
+ isScrollableH = percentInViewH > 1;
172
+
173
+ //console.log(paneWidth, paneHeight, contentWidth, contentHeight, percentInViewH, percentInViewV, isScrollableH, isScrollableV);
174
+
175
+ if (!(isScrollableH || isScrollableV)) {
176
+ elem.removeClass('jspScrollable');
177
+ pane.css({
178
+ top: 0,
179
+ width: container.width() - originalPaddingTotalWidth
180
+ });
181
+ removeMousewheel();
182
+ removeFocusHandler();
183
+ removeKeyboardNav();
184
+ removeClickOnTrack();
185
+ unhijackInternalLinks();
186
+ } else {
187
+ elem.addClass('jspScrollable');
188
+
189
+ isMaintainingPositon = settings.maintainPosition && (verticalDragPosition || horizontalDragPosition);
190
+ if (isMaintainingPositon) {
191
+ lastContentX = contentPositionX();
192
+ lastContentY = contentPositionY();
193
+ }
194
+
195
+ initialiseVerticalScroll();
196
+ initialiseHorizontalScroll();
197
+ resizeScrollbars();
198
+
199
+ if (isMaintainingPositon) {
200
+ scrollToX(maintainAtRight ? (contentWidth - paneWidth ) : lastContentX, false);
201
+ scrollToY(maintainAtBottom ? (contentHeight - paneHeight) : lastContentY, false);
202
+ }
203
+
204
+ initFocusHandler();
205
+ initMousewheel();
206
+ initTouch();
207
+
208
+ if (settings.enableKeyboardNavigation) {
209
+ initKeyboardNav();
210
+ }
211
+ if (settings.clickOnTrack) {
212
+ initClickOnTrack();
213
+ }
214
+
215
+ observeHash();
216
+ if (settings.hijackInternalLinks) {
217
+ hijackInternalLinks();
218
+ }
219
+ }
220
+
221
+ if (settings.autoReinitialise && !reinitialiseInterval) {
222
+ reinitialiseInterval = setInterval(
223
+ function()
224
+ {
225
+ initialise(settings);
226
+ },
227
+ settings.autoReinitialiseDelay
228
+ );
229
+ } else if (!settings.autoReinitialise && reinitialiseInterval) {
230
+ clearInterval(reinitialiseInterval);
231
+ }
232
+
233
+ originalScrollTop && elem.scrollTop(0) && scrollToY(originalScrollTop, false);
234
+ originalScrollLeft && elem.scrollLeft(0) && scrollToX(originalScrollLeft, false);
235
+
236
+ elem.trigger('jsp-initialised', [isScrollableH || isScrollableV]);
237
+ }
238
+
239
+ function initialiseVerticalScroll()
240
+ {
241
+ if (isScrollableV) {
242
+
243
+ container.append(
244
+ $('<div class="jspVerticalBar" />').append(
245
+ $('<div class="jspCap jspCapTop" />'),
246
+ $('<div class="jspTrack" />').append(
247
+ $('<div class="jspDrag" />').append(
248
+ $('<div class="jspDragTop" />'),
249
+ $('<div class="jspDragBottom" />')
250
+ )
251
+ ),
252
+ $('<div class="jspCap jspCapBottom" />')
253
+ )
254
+ );
255
+
256
+ verticalBar = container.find('>.jspVerticalBar');
257
+ verticalTrack = verticalBar.find('>.jspTrack');
258
+ verticalDrag = verticalTrack.find('>.jspDrag');
259
+
260
+ if (settings.showArrows) {
261
+ arrowUp = $('<a class="jspArrow jspArrowUp" />').bind(
262
+ 'mousedown.jsp', getArrowScroll(0, -1)
263
+ ).bind('click.jsp', nil);
264
+ arrowDown = $('<a class="jspArrow jspArrowDown" />').bind(
265
+ 'mousedown.jsp', getArrowScroll(0, 1)
266
+ ).bind('click.jsp', nil);
267
+ if (settings.arrowScrollOnHover) {
268
+ arrowUp.bind('mouseover.jsp', getArrowScroll(0, -1, arrowUp));
269
+ arrowDown.bind('mouseover.jsp', getArrowScroll(0, 1, arrowDown));
270
+ }
271
+
272
+ appendArrows(verticalTrack, settings.verticalArrowPositions, arrowUp, arrowDown);
273
+ }
274
+
275
+ verticalTrackHeight = paneHeight;
276
+ container.find('>.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow').each(
277
+ function()
278
+ {
279
+ verticalTrackHeight -= $(this).outerHeight();
280
+ }
281
+ );
282
+
283
+
284
+ verticalDrag.hover(
285
+ function()
286
+ {
287
+ verticalDrag.addClass('jspHover');
288
+ },
289
+ function()
290
+ {
291
+ verticalDrag.removeClass('jspHover');
292
+ }
293
+ ).bind(
294
+ 'mousedown.jsp',
295
+ function(e)
296
+ {
297
+ // Stop IE from allowing text selection
298
+ $('html').bind('dragstart.jsp selectstart.jsp', nil);
299
+
300
+ verticalDrag.addClass('jspActive');
301
+
302
+ var startY = e.pageY - verticalDrag.position().top;
303
+
304
+ $('html').bind(
305
+ 'mousemove.jsp',
306
+ function(e)
307
+ {
308
+ positionDragY(e.pageY - startY, false);
309
+ }
310
+ ).bind('mouseup.jsp mouseleave.jsp', cancelDrag);
311
+ return false;
312
+ }
313
+ );
314
+ sizeVerticalScrollbar();
315
+ }
316
+ }
317
+
318
+ function sizeVerticalScrollbar()
319
+ {
320
+ verticalTrack.height(verticalTrackHeight + 'px');
321
+ verticalDragPosition = 0;
322
+ scrollbarWidth = settings.verticalGutter + verticalTrack.outerWidth();
323
+
324
+ // Make the pane thinner to allow for the vertical scrollbar
325
+ pane.width(paneWidth - scrollbarWidth - originalPaddingTotalWidth);
326
+
327
+ // Add margin to the left of the pane if scrollbars are on that side (to position
328
+ // the scrollbar on the left or right set it's left or right property in CSS)
329
+ try {
330
+ if (verticalBar.position().left === 0) {
331
+ pane.css('margin-left', scrollbarWidth + 'px');
332
+ }
333
+ } catch (err) {
334
+ }
335
+ }
336
+
337
+ function initialiseHorizontalScroll()
338
+ {
339
+ if (isScrollableH) {
340
+
341
+ container.append(
342
+ $('<div class="jspHorizontalBar" />').append(
343
+ $('<div class="jspCap jspCapLeft" />'),
344
+ $('<div class="jspTrack" />').append(
345
+ $('<div class="jspDrag" />').append(
346
+ $('<div class="jspDragLeft" />'),
347
+ $('<div class="jspDragRight" />')
348
+ )
349
+ ),
350
+ $('<div class="jspCap jspCapRight" />')
351
+ )
352
+ );
353
+
354
+ horizontalBar = container.find('>.jspHorizontalBar');
355
+ horizontalTrack = horizontalBar.find('>.jspTrack');
356
+ horizontalDrag = horizontalTrack.find('>.jspDrag');
357
+
358
+ if (settings.showArrows) {
359
+ arrowLeft = $('<a class="jspArrow jspArrowLeft" />').bind(
360
+ 'mousedown.jsp', getArrowScroll(-1, 0)
361
+ ).bind('click.jsp', nil);
362
+ arrowRight = $('<a class="jspArrow jspArrowRight" />').bind(
363
+ 'mousedown.jsp', getArrowScroll(1, 0)
364
+ ).bind('click.jsp', nil);
365
+ if (settings.arrowScrollOnHover) {
366
+ arrowLeft.bind('mouseover.jsp', getArrowScroll(-1, 0, arrowLeft));
367
+ arrowRight.bind('mouseover.jsp', getArrowScroll(1, 0, arrowRight));
368
+ }
369
+ appendArrows(horizontalTrack, settings.horizontalArrowPositions, arrowLeft, arrowRight);
370
+ }
371
+
372
+ horizontalDrag.hover(
373
+ function()
374
+ {
375
+ horizontalDrag.addClass('jspHover');
376
+ },
377
+ function()
378
+ {
379
+ horizontalDrag.removeClass('jspHover');
380
+ }
381
+ ).bind(
382
+ 'mousedown.jsp',
383
+ function(e)
384
+ {
385
+ // Stop IE from allowing text selection
386
+ $('html').bind('dragstart.jsp selectstart.jsp', nil);
387
+
388
+ horizontalDrag.addClass('jspActive');
389
+
390
+ var startX = e.pageX - horizontalDrag.position().left;
391
+
392
+ $('html').bind(
393
+ 'mousemove.jsp',
394
+ function(e)
395
+ {
396
+ positionDragX(e.pageX - startX, false);
397
+ }
398
+ ).bind('mouseup.jsp mouseleave.jsp', cancelDrag);
399
+ return false;
400
+ }
401
+ );
402
+ horizontalTrackWidth = container.innerWidth();
403
+ sizeHorizontalScrollbar();
404
+ }
405
+ }
406
+
407
+ function sizeHorizontalScrollbar()
408
+ {
409
+ container.find('>.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow').each(
410
+ function()
411
+ {
412
+ horizontalTrackWidth -= $(this).outerWidth();
413
+ }
414
+ );
415
+
416
+ horizontalTrack.width(horizontalTrackWidth + 'px');
417
+ horizontalDragPosition = 0;
418
+ }
419
+
420
+ function resizeScrollbars()
421
+ {
422
+ if (isScrollableH && isScrollableV) {
423
+ var horizontalTrackHeight = horizontalTrack.outerHeight(),
424
+ verticalTrackWidth = verticalTrack.outerWidth();
425
+ verticalTrackHeight -= horizontalTrackHeight;
426
+ $(horizontalBar).find('>.jspCap:visible,>.jspArrow').each(
427
+ function()
428
+ {
429
+ horizontalTrackWidth += $(this).outerWidth();
430
+ }
431
+ );
432
+ horizontalTrackWidth -= verticalTrackWidth;
433
+ paneHeight -= verticalTrackWidth;
434
+ paneWidth -= horizontalTrackHeight;
435
+ horizontalTrack.parent().append(
436
+ $('<div class="jspCorner" />').css('width', horizontalTrackHeight + 'px')
437
+ );
438
+ sizeVerticalScrollbar();
439
+ sizeHorizontalScrollbar();
440
+ }
441
+ // reflow content
442
+ if (isScrollableH) {
443
+ pane.width((container.outerWidth() - originalPaddingTotalWidth) + 'px');
444
+ }
445
+ contentHeight = pane.outerHeight();
446
+ percentInViewV = contentHeight / paneHeight;
447
+
448
+ if (isScrollableH) {
449
+ horizontalDragWidth = Math.ceil(1 / percentInViewH * horizontalTrackWidth);
450
+ if (horizontalDragWidth > settings.horizontalDragMaxWidth) {
451
+ horizontalDragWidth = settings.horizontalDragMaxWidth;
452
+ } else if (horizontalDragWidth < settings.horizontalDragMinWidth) {
453
+ horizontalDragWidth = settings.horizontalDragMinWidth;
454
+ }
455
+ horizontalDrag.width(horizontalDragWidth + 'px');
456
+ dragMaxX = horizontalTrackWidth - horizontalDragWidth;
457
+ _positionDragX(horizontalDragPosition); // To update the state for the arrow buttons
458
+ }
459
+ if (isScrollableV) {
460
+ verticalDragHeight = Math.ceil(1 / percentInViewV * verticalTrackHeight);
461
+ if (verticalDragHeight > settings.verticalDragMaxHeight) {
462
+ verticalDragHeight = settings.verticalDragMaxHeight;
463
+ } else if (verticalDragHeight < settings.verticalDragMinHeight) {
464
+ verticalDragHeight = settings.verticalDragMinHeight;
465
+ }
466
+ verticalDrag.height(verticalDragHeight + 'px');
467
+ dragMaxY = verticalTrackHeight - verticalDragHeight;
468
+ _positionDragY(verticalDragPosition); // To update the state for the arrow buttons
469
+ }
470
+ }
471
+
472
+ function appendArrows(ele, p, a1, a2)
473
+ {
474
+ var p1 = "before", p2 = "after", aTemp;
475
+
476
+ // Sniff for mac... Is there a better way to determine whether the arrows would naturally appear
477
+ // at the top or the bottom of the bar?
478
+ if (p == "os") {
479
+ p = /Mac/.test(navigator.platform) ? "after" : "split";
480
+ }
481
+ if (p == p1) {
482
+ p2 = p;
483
+ } else if (p == p2) {
484
+ p1 = p;
485
+ aTemp = a1;
486
+ a1 = a2;
487
+ a2 = aTemp;
488
+ }
489
+
490
+ ele[p1](a1)[p2](a2);
491
+ }
492
+
493
+ function getArrowScroll(dirX, dirY, ele)
494
+ {
495
+ return function()
496
+ {
497
+ arrowScroll(dirX, dirY, this, ele);
498
+ this.blur();
499
+ return false;
500
+ };
501
+ }
502
+
503
+ function arrowScroll(dirX, dirY, arrow, ele)
504
+ {
505
+ arrow = $(arrow).addClass('jspActive');
506
+
507
+ var eve,
508
+ scrollTimeout,
509
+ isFirst = true,
510
+ doScroll = function()
511
+ {
512
+ if (dirX !== 0) {
513
+ jsp.scrollByX(dirX * settings.arrowButtonSpeed);
514
+ }
515
+ if (dirY !== 0) {
516
+ jsp.scrollByY(dirY * settings.arrowButtonSpeed);
517
+ }
518
+ scrollTimeout = setTimeout(doScroll, isFirst ? settings.initialDelay : settings.arrowRepeatFreq);
519
+ isFirst = false;
520
+ };
521
+
522
+ doScroll();
523
+
524
+ eve = ele ? 'mouseout.jsp' : 'mouseup.jsp';
525
+ ele = ele || $('html');
526
+ ele.bind(
527
+ eve,
528
+ function()
529
+ {
530
+ arrow.removeClass('jspActive');
531
+ scrollTimeout && clearTimeout(scrollTimeout);
532
+ scrollTimeout = null;
533
+ ele.unbind(eve);
534
+ }
535
+ );
536
+ }
537
+
538
+ function initClickOnTrack()
539
+ {
540
+ removeClickOnTrack();
541
+ if (isScrollableV) {
542
+ verticalTrack.bind(
543
+ 'mousedown.jsp',
544
+ function(e)
545
+ {
546
+ if (e.originalTarget === undefined || e.originalTarget == e.currentTarget) {
547
+ var clickedTrack = $(this),
548
+ offset = clickedTrack.offset(),
549
+ direction = e.pageY - offset.top - verticalDragPosition,
550
+ scrollTimeout,
551
+ isFirst = true,
552
+ doScroll = function()
553
+ {
554
+ var offset = clickedTrack.offset(),
555
+ pos = e.pageY - offset.top - verticalDragHeight / 2,
556
+ contentDragY = paneHeight * settings.scrollPagePercent,
557
+ dragY = dragMaxY * contentDragY / (contentHeight - paneHeight);
558
+ if (direction < 0) {
559
+ if (verticalDragPosition - dragY > pos) {
560
+ jsp.scrollByY(-contentDragY);
561
+ } else {
562
+ positionDragY(pos);
563
+ }
564
+ } else if (direction > 0) {
565
+ if (verticalDragPosition + dragY < pos) {
566
+ jsp.scrollByY(contentDragY);
567
+ } else {
568
+ positionDragY(pos);
569
+ }
570
+ } else {
571
+ cancelClick();
572
+ return;
573
+ }
574
+ scrollTimeout = setTimeout(doScroll, isFirst ? settings.initialDelay : settings.trackClickRepeatFreq);
575
+ isFirst = false;
576
+ },
577
+ cancelClick = function()
578
+ {
579
+ scrollTimeout && clearTimeout(scrollTimeout);
580
+ scrollTimeout = null;
581
+ $(document).unbind('mouseup.jsp', cancelClick);
582
+ };
583
+ doScroll();
584
+ $(document).bind('mouseup.jsp', cancelClick);
585
+ return false;
586
+ }
587
+ }
588
+ );
589
+ }
590
+
591
+ if (isScrollableH) {
592
+ horizontalTrack.bind(
593
+ 'mousedown.jsp',
594
+ function(e)
595
+ {
596
+ if (e.originalTarget === undefined || e.originalTarget == e.currentTarget) {
597
+ var clickedTrack = $(this),
598
+ offset = clickedTrack.offset(),
599
+ direction = e.pageX - offset.left - horizontalDragPosition,
600
+ scrollTimeout,
601
+ isFirst = true,
602
+ doScroll = function()
603
+ {
604
+ var offset = clickedTrack.offset(),
605
+ pos = e.pageX - offset.left - horizontalDragWidth / 2,
606
+ contentDragX = paneWidth * settings.scrollPagePercent,
607
+ dragX = dragMaxX * contentDragX / (contentWidth - paneWidth);
608
+ if (direction < 0) {
609
+ if (horizontalDragPosition - dragX > pos) {
610
+ jsp.scrollByX(-contentDragX);
611
+ } else {
612
+ positionDragX(pos);
613
+ }
614
+ } else if (direction > 0) {
615
+ if (horizontalDragPosition + dragX < pos) {
616
+ jsp.scrollByX(contentDragX);
617
+ } else {
618
+ positionDragX(pos);
619
+ }
620
+ } else {
621
+ cancelClick();
622
+ return;
623
+ }
624
+ scrollTimeout = setTimeout(doScroll, isFirst ? settings.initialDelay : settings.trackClickRepeatFreq);
625
+ isFirst = false;
626
+ },
627
+ cancelClick = function()
628
+ {
629
+ scrollTimeout && clearTimeout(scrollTimeout);
630
+ scrollTimeout = null;
631
+ $(document).unbind('mouseup.jsp', cancelClick);
632
+ };
633
+ doScroll();
634
+ $(document).bind('mouseup.jsp', cancelClick);
635
+ return false;
636
+ }
637
+ }
638
+ );
639
+ }
640
+ }
641
+
642
+ function removeClickOnTrack()
643
+ {
644
+ if (horizontalTrack) {
645
+ horizontalTrack.unbind('mousedown.jsp');
646
+ }
647
+ if (verticalTrack) {
648
+ verticalTrack.unbind('mousedown.jsp');
649
+ }
650
+ }
651
+
652
+ function cancelDrag()
653
+ {
654
+ $('html').unbind('dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp');
655
+
656
+ if (verticalDrag) {
657
+ verticalDrag.removeClass('jspActive');
658
+ }
659
+ if (horizontalDrag) {
660
+ horizontalDrag.removeClass('jspActive');
661
+ }
662
+ }
663
+
664
+ function positionDragY(destY, animate)
665
+ {
666
+ if (!isScrollableV) {
667
+ return;
668
+ }
669
+ if (destY < 0) {
670
+ destY = 0;
671
+ } else if (destY > dragMaxY) {
672
+ destY = dragMaxY;
673
+ }
674
+
675
+ // can't just check if(animate) because false is a valid value that could be passed in...
676
+ if (animate === undefined) {
677
+ animate = settings.animateScroll;
678
+ }
679
+ if (animate) {
680
+ jsp.animate(verticalDrag, 'top', destY, _positionDragY);
681
+ } else {
682
+ verticalDrag.css('top', destY);
683
+ _positionDragY(destY);
684
+ }
685
+
686
+ }
687
+
688
+ function _positionDragY(destY)
689
+ {
690
+ if (destY === undefined) {
691
+ destY = verticalDrag.position().top;
692
+ }
693
+
694
+ container.scrollTop(0);
695
+ verticalDragPosition = destY;
696
+
697
+ var isAtTop = verticalDragPosition === 0,
698
+ isAtBottom = verticalDragPosition == dragMaxY,
699
+ percentScrolled = destY/ dragMaxY,
700
+ destTop = -percentScrolled * (contentHeight - paneHeight);
701
+
702
+ if (wasAtTop != isAtTop || wasAtBottom != isAtBottom) {
703
+ wasAtTop = isAtTop;
704
+ wasAtBottom = isAtBottom;
705
+ elem.trigger('jsp-arrow-change', [wasAtTop, wasAtBottom, wasAtLeft, wasAtRight]);
706
+ }
707
+
708
+ updateVerticalArrows(isAtTop, isAtBottom);
709
+ pane.css('top', destTop);
710
+ elem.trigger('jsp-scroll-y', [-destTop, isAtTop, isAtBottom]).trigger('scroll');
711
+ }
712
+
713
+ function positionDragX(destX, animate)
714
+ {
715
+ if (!isScrollableH) {
716
+ return;
717
+ }
718
+ if (destX < 0) {
719
+ destX = 0;
720
+ } else if (destX > dragMaxX) {
721
+ destX = dragMaxX;
722
+ }
723
+
724
+ if (animate === undefined) {
725
+ animate = settings.animateScroll;
726
+ }
727
+ if (animate) {
728
+ jsp.animate(horizontalDrag, 'left', destX, _positionDragX);
729
+ } else {
730
+ horizontalDrag.css('left', destX);
731
+ _positionDragX(destX);
732
+ }
733
+ }
734
+
735
+ function _positionDragX(destX)
736
+ {
737
+ if (destX === undefined) {
738
+ destX = horizontalDrag.position().left;
739
+ }
740
+
741
+ container.scrollTop(0);
742
+ horizontalDragPosition = destX;
743
+
744
+ var isAtLeft = horizontalDragPosition === 0,
745
+ isAtRight = horizontalDragPosition == dragMaxX,
746
+ percentScrolled = destX / dragMaxX,
747
+ destLeft = -percentScrolled * (contentWidth - paneWidth);
748
+
749
+ if (wasAtLeft != isAtLeft || wasAtRight != isAtRight) {
750
+ wasAtLeft = isAtLeft;
751
+ wasAtRight = isAtRight;
752
+ elem.trigger('jsp-arrow-change', [wasAtTop, wasAtBottom, wasAtLeft, wasAtRight]);
753
+ }
754
+
755
+ updateHorizontalArrows(isAtLeft, isAtRight);
756
+ pane.css('left', destLeft);
757
+ elem.trigger('jsp-scroll-x', [-destLeft, isAtLeft, isAtRight]).trigger('scroll');
758
+ }
759
+
760
+ function updateVerticalArrows(isAtTop, isAtBottom)
761
+ {
762
+ if (settings.showArrows) {
763
+ arrowUp[isAtTop ? 'addClass' : 'removeClass']('jspDisabled');
764
+ arrowDown[isAtBottom ? 'addClass' : 'removeClass']('jspDisabled');
765
+ }
766
+ }
767
+
768
+ function updateHorizontalArrows(isAtLeft, isAtRight)
769
+ {
770
+ if (settings.showArrows) {
771
+ arrowLeft[isAtLeft ? 'addClass' : 'removeClass']('jspDisabled');
772
+ arrowRight[isAtRight ? 'addClass' : 'removeClass']('jspDisabled');
773
+ }
774
+ }
775
+
776
+ function scrollToY(destY, animate)
777
+ {
778
+ var percentScrolled = destY / (contentHeight - paneHeight);
779
+ positionDragY(percentScrolled * dragMaxY, animate);
780
+ }
781
+
782
+ function scrollToX(destX, animate)
783
+ {
784
+ var percentScrolled = destX / (contentWidth - paneWidth);
785
+ positionDragX(percentScrolled * dragMaxX, animate);
786
+ }
787
+
788
+ function scrollToElement(ele, stickToTop, animate)
789
+ {
790
+ var e, eleHeight, eleWidth, eleTop = 0, eleLeft = 0, viewportTop, viewportLeft, maxVisibleEleTop, maxVisibleEleLeft, destY, destX;
791
+
792
+ // Legal hash values aren't necessarily legal jQuery selectors so we need to catch any
793
+ // errors from the lookup...
794
+ try {
795
+ e = $(ele);
796
+ } catch (err) {
797
+ return;
798
+ }
799
+ eleHeight = e.outerHeight();
800
+ eleWidth= e.outerWidth();
801
+
802
+ container.scrollTop(0);
803
+ container.scrollLeft(0);
804
+
805
+ // loop through parents adding the offset top of any elements that are relatively positioned between
806
+ // the focused element and the jspPane so we can get the true distance from the top
807
+ // of the focused element to the top of the scrollpane...
808
+ while (!e.is('.jspPane')) {
809
+ eleTop += e.position().top;
810
+ eleLeft += e.position().left;
811
+ e = e.offsetParent();
812
+ if (/^body|html$/i.test(e[0].nodeName)) {
813
+ // we ended up too high in the document structure. Quit!
814
+ return;
815
+ }
816
+ }
817
+
818
+ viewportTop = contentPositionY();
819
+ maxVisibleEleTop = viewportTop + paneHeight;
820
+ if (eleTop < viewportTop || stickToTop) { // element is above viewport
821
+ destY = eleTop - settings.verticalGutter;
822
+ } else if (eleTop + eleHeight > maxVisibleEleTop) { // element is below viewport
823
+ destY = eleTop - paneHeight + eleHeight + settings.verticalGutter;
824
+ }
825
+ if (destY) {
826
+ scrollToY(destY, animate);
827
+ }
828
+
829
+ viewportLeft = contentPositionX();
830
+ maxVisibleEleLeft = viewportLeft + paneWidth;
831
+ if (eleLeft < viewportLeft || stickToTop) { // element is to the left of viewport
832
+ destX = eleLeft - settings.horizontalGutter;
833
+ } else if (eleLeft + eleWidth > maxVisibleEleLeft) { // element is to the right viewport
834
+ destX = eleLeft - paneWidth + eleWidth + settings.horizontalGutter;
835
+ }
836
+ if (destX) {
837
+ scrollToX(destX, animate);
838
+ }
839
+
840
+ }
841
+
842
+ function contentPositionX()
843
+ {
844
+ return -pane.position().left;
845
+ }
846
+
847
+ function contentPositionY()
848
+ {
849
+ return -pane.position().top;
850
+ }
851
+
852
+ function isCloseToBottom()
853
+ {
854
+ var scrollableHeight = contentHeight - paneHeight;
855
+ return (scrollableHeight > 20) && (scrollableHeight - contentPositionY() < 10);
856
+ }
857
+
858
+ function isCloseToRight()
859
+ {
860
+ var scrollableWidth = contentWidth - paneWidth;
861
+ return (scrollableWidth > 20) && (scrollableWidth - contentPositionX() < 10);
862
+ }
863
+
864
+ function initMousewheel()
865
+ {
866
+ container.unbind(mwEvent).bind(
867
+ mwEvent,
868
+ function (event, delta, deltaX, deltaY) {
869
+ var dX = horizontalDragPosition, dY = verticalDragPosition;
870
+ jsp.scrollBy(deltaX * settings.mouseWheelSpeed, -deltaY * settings.mouseWheelSpeed, false);
871
+ // return true if there was no movement so rest of screen can scroll
872
+ return dX == horizontalDragPosition && dY == verticalDragPosition;
873
+ }
874
+ );
875
+ }
876
+
877
+ function removeMousewheel()
878
+ {
879
+ container.unbind(mwEvent);
880
+ }
881
+
882
+ function nil()
883
+ {
884
+ return false;
885
+ }
886
+
887
+ function initFocusHandler()
888
+ {
889
+ pane.find(':input,a').unbind('focus.jsp').bind(
890
+ 'focus.jsp',
891
+ function(e)
892
+ {
893
+ scrollToElement(e.target, false);
894
+ }
895
+ );
896
+ }
897
+
898
+ function removeFocusHandler()
899
+ {
900
+ pane.find(':input,a').unbind('focus.jsp');
901
+ }
902
+
903
+ function initKeyboardNav()
904
+ {
905
+ var keyDown, elementHasScrolled, validParents = [];
906
+ isScrollableH && validParents.push(horizontalBar[0]);
907
+ isScrollableV && validParents.push(verticalBar[0]);
908
+
909
+ // IE also focuses elements that don't have tabindex set.
910
+ pane.focus(
911
+ function()
912
+ {
913
+ elem.focus();
914
+ }
915
+ );
916
+
917
+ elem.attr('tabindex', 0)
918
+ .unbind('keydown.jsp keypress.jsp')
919
+ .bind(
920
+ 'keydown.jsp',
921
+ function(e)
922
+ {
923
+ if (e.target !== this && !(validParents.length && $(e.target).closest(validParents).length)){
924
+ return;
925
+ }
926
+ var dX = horizontalDragPosition, dY = verticalDragPosition;
927
+ switch(e.keyCode) {
928
+ case 40: // down
929
+ case 38: // up
930
+ case 34: // page down
931
+ case 32: // space
932
+ case 33: // page up
933
+ case 39: // right
934
+ case 37: // left
935
+ keyDown = e.keyCode;
936
+ keyDownHandler();
937
+ break;
938
+ case 35: // end
939
+ scrollToY(contentHeight - paneHeight);
940
+ keyDown = null;
941
+ break;
942
+ case 36: // home
943
+ scrollToY(0);
944
+ keyDown = null;
945
+ break;
946
+ }
947
+
948
+ elementHasScrolled = e.keyCode == keyDown && dX != horizontalDragPosition || dY != verticalDragPosition;
949
+ return !elementHasScrolled;
950
+ }
951
+ ).bind(
952
+ 'keypress.jsp', // For FF/ OSX so that we can cancel the repeat key presses if the JSP scrolls...
953
+ function(e)
954
+ {
955
+ if (e.keyCode == keyDown) {
956
+ keyDownHandler();
957
+ }
958
+ return !elementHasScrolled;
959
+ }
960
+ );
961
+
962
+ if (settings.hideFocus) {
963
+ elem.css('outline', 'none');
964
+ if ('hideFocus' in container[0]){
965
+ elem.attr('hideFocus', true);
966
+ }
967
+ } else {
968
+ elem.css('outline', '');
969
+ if ('hideFocus' in container[0]){
970
+ elem.attr('hideFocus', false);
971
+ }
972
+ }
973
+
974
+ function keyDownHandler()
975
+ {
976
+ var dX = horizontalDragPosition, dY = verticalDragPosition;
977
+ switch(keyDown) {
978
+ case 40: // down
979
+ jsp.scrollByY(settings.keyboardSpeed, false);
980
+ break;
981
+ case 38: // up
982
+ jsp.scrollByY(-settings.keyboardSpeed, false);
983
+ break;
984
+ case 34: // page down
985
+ case 32: // space
986
+ jsp.scrollByY(paneHeight * settings.scrollPagePercent, false);
987
+ break;
988
+ case 33: // page up
989
+ jsp.scrollByY(-paneHeight * settings.scrollPagePercent, false);
990
+ break;
991
+ case 39: // right
992
+ jsp.scrollByX(settings.keyboardSpeed, false);
993
+ break;
994
+ case 37: // left
995
+ jsp.scrollByX(-settings.keyboardSpeed, false);
996
+ break;
997
+ }
998
+
999
+ elementHasScrolled = dX != horizontalDragPosition || dY != verticalDragPosition;
1000
+ return elementHasScrolled;
1001
+ }
1002
+ }
1003
+
1004
+ function removeKeyboardNav()
1005
+ {
1006
+ elem.attr('tabindex', '-1')
1007
+ .removeAttr('tabindex')
1008
+ .unbind('keydown.jsp keypress.jsp');
1009
+ }
1010
+
1011
+ function observeHash()
1012
+ {
1013
+ if (location.hash && location.hash.length > 1) {
1014
+ var e,
1015
+ retryInt,
1016
+ hash = escape(location.hash) // hash must be escaped to prevent XSS
1017
+ ;
1018
+ try {
1019
+ e = $(hash);
1020
+ } catch (err) {
1021
+ return;
1022
+ }
1023
+
1024
+ if (e.length && pane.find(hash)) {
1025
+ // nasty workaround but it appears to take a little while before the hash has done its thing
1026
+ // to the rendered page so we just wait until the container's scrollTop has been messed up.
1027
+ if (container.scrollTop() === 0) {
1028
+ retryInt = setInterval(
1029
+ function()
1030
+ {
1031
+ if (container.scrollTop() > 0) {
1032
+ scrollToElement(hash, true);
1033
+ $(document).scrollTop(container.position().top);
1034
+ clearInterval(retryInt);
1035
+ }
1036
+ },
1037
+ 50
1038
+ );
1039
+ } else {
1040
+ scrollToElement(hash, true);
1041
+ $(document).scrollTop(container.position().top);
1042
+ }
1043
+ }
1044
+ }
1045
+ }
1046
+
1047
+ function unhijackInternalLinks()
1048
+ {
1049
+ $('a.jspHijack').unbind('click.jsp-hijack').removeClass('jspHijack');
1050
+ }
1051
+
1052
+ function hijackInternalLinks()
1053
+ {
1054
+ unhijackInternalLinks();
1055
+ $('a[href^=#]').addClass('jspHijack').bind(
1056
+ 'click.jsp-hijack',
1057
+ function()
1058
+ {
1059
+ var uriParts = this.href.split('#'), hash;
1060
+ if (uriParts.length > 1) {
1061
+ hash = uriParts[1];
1062
+ if (hash.length > 0 && pane.find('#' + hash).length > 0) {
1063
+ scrollToElement('#' + hash, true);
1064
+ // Need to return false otherwise things mess up... Would be nice to maybe also scroll
1065
+ // the window to the top of the scrollpane?
1066
+ return false;
1067
+ }
1068
+ }
1069
+ }
1070
+ );
1071
+ }
1072
+
1073
+ // Init touch on iPad, iPhone, iPod, Android
1074
+ function initTouch()
1075
+ {
1076
+ var startX,
1077
+ startY,
1078
+ touchStartX,
1079
+ touchStartY,
1080
+ moved,
1081
+ moving = false;
1082
+
1083
+ container.unbind('touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick').bind(
1084
+ 'touchstart.jsp',
1085
+ function(e)
1086
+ {
1087
+ var touch = e.originalEvent.touches[0];
1088
+ startX = contentPositionX();
1089
+ startY = contentPositionY();
1090
+ touchStartX = touch.pageX;
1091
+ touchStartY = touch.pageY;
1092
+ moved = false;
1093
+ moving = true;
1094
+ }
1095
+ ).bind(
1096
+ 'touchmove.jsp',
1097
+ function(ev)
1098
+ {
1099
+ if(!moving) {
1100
+ return;
1101
+ }
1102
+
1103
+ var touchPos = ev.originalEvent.touches[0],
1104
+ dX = horizontalDragPosition, dY = verticalDragPosition;
1105
+
1106
+ jsp.scrollTo(startX + touchStartX - touchPos.pageX, startY + touchStartY - touchPos.pageY);
1107
+
1108
+ moved = moved || Math.abs(touchStartX - touchPos.pageX) > 5 || Math.abs(touchStartY - touchPos.pageY) > 5;
1109
+
1110
+ // return true if there was no movement so rest of screen can scroll
1111
+ return dX == horizontalDragPosition && dY == verticalDragPosition;
1112
+ }
1113
+ ).bind(
1114
+ 'touchend.jsp',
1115
+ function(e)
1116
+ {
1117
+ moving = false;
1118
+ /*if(moved) {
1119
+ return false;
1120
+ }*/
1121
+ }
1122
+ ).bind(
1123
+ 'click.jsp-touchclick',
1124
+ function(e)
1125
+ {
1126
+ if(moved) {
1127
+ moved = false;
1128
+ return false;
1129
+ }
1130
+ }
1131
+ );
1132
+ }
1133
+
1134
+ function destroy(){
1135
+ var currentY = contentPositionY(),
1136
+ currentX = contentPositionX();
1137
+ elem.removeClass('jspScrollable').unbind('.jsp');
1138
+ elem.replaceWith(originalElement.append(pane.children()));
1139
+ originalElement.scrollTop(currentY);
1140
+ originalElement.scrollLeft(currentX);
1141
+ }
1142
+
1143
+ // Public API
1144
+ $.extend(
1145
+ jsp,
1146
+ {
1147
+ // Reinitialises the scroll pane (if it's internal dimensions have changed since the last time it
1148
+ // was initialised). The settings object which is passed in will override any settings from the
1149
+ // previous time it was initialised - if you don't pass any settings then the ones from the previous
1150
+ // initialisation will be used.
1151
+ reinitialise: function(s)
1152
+ {
1153
+ s = $.extend({}, settings, s);
1154
+ initialise(s);
1155
+ },
1156
+ // Scrolls the specified element (a jQuery object, DOM node or jQuery selector string) into view so
1157
+ // that it can be seen within the viewport. If stickToTop is true then the element will appear at
1158
+ // the top of the viewport, if it is false then the viewport will scroll as little as possible to
1159
+ // show the element. You can also specify if you want animation to occur. If you don't provide this
1160
+ // argument then the animateScroll value from the settings object is used instead.
1161
+ scrollToElement: function(ele, stickToTop, animate)
1162
+ {
1163
+ scrollToElement(ele, stickToTop, animate);
1164
+ },
1165
+ // Scrolls the pane so that the specified co-ordinates within the content are at the top left
1166
+ // of the viewport. animate is optional and if not passed then the value of animateScroll from
1167
+ // the settings object this jScrollPane was initialised with is used.
1168
+ scrollTo: function(destX, destY, animate)
1169
+ {
1170
+ scrollToX(destX, animate);
1171
+ scrollToY(destY, animate);
1172
+ },
1173
+ // Scrolls the pane so that the specified co-ordinate within the content is at the left of the
1174
+ // viewport. animate is optional and if not passed then the value of animateScroll from the settings
1175
+ // object this jScrollPane was initialised with is used.
1176
+ scrollToX: function(destX, animate)
1177
+ {
1178
+ scrollToX(destX, animate);
1179
+ },
1180
+ // Scrolls the pane so that the specified co-ordinate within the content is at the top of the
1181
+ // viewport. animate is optional and if not passed then the value of animateScroll from the settings
1182
+ // object this jScrollPane was initialised with is used.
1183
+ scrollToY: function(destY, animate)
1184
+ {
1185
+ scrollToY(destY, animate);
1186
+ },
1187
+ // Scrolls the pane to the specified percentage of its maximum horizontal scroll position. animate
1188
+ // is optional and if not passed then the value of animateScroll from the settings object this
1189
+ // jScrollPane was initialised with is used.
1190
+ scrollToPercentX: function(destPercentX, animate)
1191
+ {
1192
+ scrollToX(destPercentX * (contentWidth - paneWidth), animate);
1193
+ },
1194
+ // Scrolls the pane to the specified percentage of its maximum vertical scroll position. animate
1195
+ // is optional and if not passed then the value of animateScroll from the settings object this
1196
+ // jScrollPane was initialised with is used.
1197
+ scrollToPercentY: function(destPercentY, animate)
1198
+ {
1199
+ scrollToY(destPercentY * (contentHeight - paneHeight), animate);
1200
+ },
1201
+ // Scrolls the pane by the specified amount of pixels. animate is optional and if not passed then
1202
+ // the value of animateScroll from the settings object this jScrollPane was initialised with is used.
1203
+ scrollBy: function(deltaX, deltaY, animate)
1204
+ {
1205
+ jsp.scrollByX(deltaX, animate);
1206
+ jsp.scrollByY(deltaY, animate);
1207
+ },
1208
+ // Scrolls the pane by the specified amount of pixels. animate is optional and if not passed then
1209
+ // the value of animateScroll from the settings object this jScrollPane was initialised with is used.
1210
+ scrollByX: function(deltaX, animate)
1211
+ {
1212
+ var destX = contentPositionX() + Math[deltaX<0 ? 'floor' : 'ceil'](deltaX),
1213
+ percentScrolled = destX / (contentWidth - paneWidth);
1214
+ positionDragX(percentScrolled * dragMaxX, animate);
1215
+ },
1216
+ // Scrolls the pane by the specified amount of pixels. animate is optional and if not passed then
1217
+ // the value of animateScroll from the settings object this jScrollPane was initialised with is used.
1218
+ scrollByY: function(deltaY, animate)
1219
+ {
1220
+ var destY = contentPositionY() + Math[deltaY<0 ? 'floor' : 'ceil'](deltaY),
1221
+ percentScrolled = destY / (contentHeight - paneHeight);
1222
+ positionDragY(percentScrolled * dragMaxY, animate);
1223
+ },
1224
+ // Positions the horizontal drag at the specified x position (and updates the viewport to reflect
1225
+ // this). animate is optional and if not passed then the value of animateScroll from the settings
1226
+ // object this jScrollPane was initialised with is used.
1227
+ positionDragX: function(x, animate)
1228
+ {
1229
+ positionDragX(x, animate);
1230
+ },
1231
+ // Positions the vertical drag at the specified y position (and updates the viewport to reflect
1232
+ // this). animate is optional and if not passed then the value of animateScroll from the settings
1233
+ // object this jScrollPane was initialised with is used.
1234
+ positionDragY: function(y, animate)
1235
+ {
1236
+ positionDragY(y, animate);
1237
+ },
1238
+ // This method is called when jScrollPane is trying to animate to a new position. You can override
1239
+ // it if you want to provide advanced animation functionality. It is passed the following arguments:
1240
+ // * ele - the element whose position is being animated
1241
+ // * prop - the property that is being animated
1242
+ // * value - the value it's being animated to
1243
+ // * stepCallback - a function that you must execute each time you update the value of the property
1244
+ // You can use the default implementation (below) as a starting point for your own implementation.
1245
+ animate: function(ele, prop, value, stepCallback)
1246
+ {
1247
+ var params = {};
1248
+ params[prop] = value;
1249
+ ele.animate(
1250
+ params,
1251
+ {
1252
+ 'duration' : settings.animateDuration,
1253
+ 'easing' : settings.animateEase,
1254
+ 'queue' : false,
1255
+ 'step' : stepCallback
1256
+ }
1257
+ );
1258
+ },
1259
+ // Returns the current x position of the viewport with regards to the content pane.
1260
+ getContentPositionX: function()
1261
+ {
1262
+ return contentPositionX();
1263
+ },
1264
+ // Returns the current y position of the viewport with regards to the content pane.
1265
+ getContentPositionY: function()
1266
+ {
1267
+ return contentPositionY();
1268
+ },
1269
+ // Returns the width of the content within the scroll pane.
1270
+ getContentWidth: function()
1271
+ {
1272
+ return contentWidth;
1273
+ },
1274
+ // Returns the height of the content within the scroll pane.
1275
+ getContentHeight: function()
1276
+ {
1277
+ return contentHeight;
1278
+ },
1279
+ // Returns the horizontal position of the viewport within the pane content.
1280
+ getPercentScrolledX: function()
1281
+ {
1282
+ return contentPositionX() / (contentWidth - paneWidth);
1283
+ },
1284
+ // Returns the vertical position of the viewport within the pane content.
1285
+ getPercentScrolledY: function()
1286
+ {
1287
+ return contentPositionY() / (contentHeight - paneHeight);
1288
+ },
1289
+ // Returns whether or not this scrollpane has a horizontal scrollbar.
1290
+ getIsScrollableH: function()
1291
+ {
1292
+ return isScrollableH;
1293
+ },
1294
+ // Returns whether or not this scrollpane has a vertical scrollbar.
1295
+ getIsScrollableV: function()
1296
+ {
1297
+ return isScrollableV;
1298
+ },
1299
+ // Gets a reference to the content pane. It is important that you use this method if you want to
1300
+ // edit the content of your jScrollPane as if you access the element directly then you may have some
1301
+ // problems (as your original element has had additional elements for the scrollbars etc added into
1302
+ // it).
1303
+ getContentPane: function()
1304
+ {
1305
+ return pane;
1306
+ },
1307
+ // Scrolls this jScrollPane down as far as it can currently scroll. If animate isn't passed then the
1308
+ // animateScroll value from settings is used instead.
1309
+ scrollToBottom: function(animate)
1310
+ {
1311
+ positionDragY(dragMaxY, animate);
1312
+ },
1313
+ // Hijacks the links on the page which link to content inside the scrollpane. If you have changed
1314
+ // the content of your page (e.g. via AJAX) and want to make sure any new anchor links to the
1315
+ // contents of your scroll pane will work then call this function.
1316
+ hijackInternalLinks: function()
1317
+ {
1318
+ hijackInternalLinks();
1319
+ },
1320
+ // Removes the jScrollPane and returns the page to the state it was in before jScrollPane was
1321
+ // initialised.
1322
+ destroy: function()
1323
+ {
1324
+ destroy();
1325
+ }
1326
+ }
1327
+ );
1328
+
1329
+ initialise(s);
1330
+ }
1331
+
1332
+ // Pluginifying code...
1333
+ settings = $.extend({}, $.fn.jScrollPane.defaults, settings);
1334
+
1335
+ // Apply default speed
1336
+ $.each(['mouseWheelSpeed', 'arrowButtonSpeed', 'trackClickSpeed', 'keyboardSpeed'], function() {
1337
+ settings[this] = settings[this] || settings.speed;
1338
+ });
1339
+
1340
+ return this.each(
1341
+ function()
1342
+ {
1343
+ var elem = $(this), jspApi = elem.data('jsp');
1344
+ if (jspApi) {
1345
+ jspApi.reinitialise(settings);
1346
+ } else {
1347
+ jspApi = new JScrollPane(elem, settings);
1348
+ elem.data('jsp', jspApi);
1349
+ }
1350
+ }
1351
+ );
1352
+ };
1353
+
1354
+ $.fn.jScrollPane.defaults = {
1355
+ showArrows : false,
1356
+ maintainPosition : true,
1357
+ stickToBottom : false,
1358
+ stickToRight : false,
1359
+ clickOnTrack : true,
1360
+ autoReinitialise : false,
1361
+ autoReinitialiseDelay : 500,
1362
+ verticalDragMinHeight : 0,
1363
+ verticalDragMaxHeight : 99999,
1364
+ horizontalDragMinWidth : 0,
1365
+ horizontalDragMaxWidth : 99999,
1366
+ contentWidth : undefined,
1367
+ animateScroll : false,
1368
+ animateDuration : 300,
1369
+ animateEase : 'linear',
1370
+ hijackInternalLinks : false,
1371
+ verticalGutter : 4,
1372
+ horizontalGutter : 4,
1373
+ mouseWheelSpeed : 0,
1374
+ arrowButtonSpeed : 0,
1375
+ arrowRepeatFreq : 50,
1376
+ arrowScrollOnHover : false,
1377
+ trackClickSpeed : 0,
1378
+ trackClickRepeatFreq : 70,
1379
+ verticalArrowPositions : 'split',
1380
+ horizontalArrowPositions : 'split',
1381
+ enableKeyboardNavigation : true,
1382
+ hideFocus : false,
1383
+ keyboardSpeed : 0,
1384
+ initialDelay : 300, // Delay before starting repeating
1385
+ speed : 30, // Default speed when others falsey
1386
+ scrollPagePercent : .8 // Percent of visible area scrolled when pageUp/Down or track area pressed
1387
+ };
1388
+
1389
+ })(jQuery,this);
1390
+