paint-rails 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.gitmodules +3 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +31 -0
  7. data/Rakefile +32 -0
  8. data/lib/paint-rails/version.rb +5 -0
  9. data/lib/paint-rails.rb +8 -0
  10. data/paint-rails.gemspec +21 -0
  11. data/vendor/assets/images/favicon.ico +0 -0
  12. data/vendor/assets/images/logo.png +0 -0
  13. data/vendor/assets/stylesheets/bower_components/fastclick/.bower.json +23 -0
  14. data/vendor/assets/stylesheets/bower_components/fastclick/LICENSE +22 -0
  15. data/vendor/assets/stylesheets/bower_components/fastclick/README.md +140 -0
  16. data/vendor/assets/stylesheets/bower_components/fastclick/bower.json +12 -0
  17. data/vendor/assets/stylesheets/bower_components/fastclick/lib/fastclick.js +841 -0
  18. data/vendor/assets/stylesheets/bower_components/fontawesome/.bower.json +36 -0
  19. data/vendor/assets/stylesheets/bower_components/fontawesome/.gitignore +32 -0
  20. data/vendor/assets/stylesheets/bower_components/fontawesome/.npmignore +42 -0
  21. data/vendor/assets/stylesheets/bower_components/fontawesome/bower.json +23 -0
  22. data/vendor/assets/stylesheets/bower_components/fontawesome/css/font-awesome.css +1672 -0
  23. data/vendor/assets/stylesheets/bower_components/fontawesome/css/font-awesome.min.css +4 -0
  24. data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/FontAwesome.otf +0 -0
  25. data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.eot +0 -0
  26. data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.svg +520 -0
  27. data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
  28. data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.woff +0 -0
  29. data/vendor/assets/stylesheets/bower_components/fontawesome/less/bordered-pulled.less +16 -0
  30. data/vendor/assets/stylesheets/bower_components/fontawesome/less/core.less +11 -0
  31. data/vendor/assets/stylesheets/bower_components/fontawesome/less/extras.less +2 -0
  32. data/vendor/assets/stylesheets/bower_components/fontawesome/less/fixed-width.less +6 -0
  33. data/vendor/assets/stylesheets/bower_components/fontawesome/less/font-awesome.less +17 -0
  34. data/vendor/assets/stylesheets/bower_components/fontawesome/less/icons.less +552 -0
  35. data/vendor/assets/stylesheets/bower_components/fontawesome/less/larger.less +13 -0
  36. data/vendor/assets/stylesheets/bower_components/fontawesome/less/list.less +19 -0
  37. data/vendor/assets/stylesheets/bower_components/fontawesome/less/mixins.less +25 -0
  38. data/vendor/assets/stylesheets/bower_components/fontawesome/less/path.less +14 -0
  39. data/vendor/assets/stylesheets/bower_components/fontawesome/less/rotated-flipped.less +20 -0
  40. data/vendor/assets/stylesheets/bower_components/fontawesome/less/spinning.less +29 -0
  41. data/vendor/assets/stylesheets/bower_components/fontawesome/less/stacked.less +20 -0
  42. data/vendor/assets/stylesheets/bower_components/fontawesome/less/variables.less +561 -0
  43. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_bordered-pulled.scss +16 -0
  44. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_core.scss +11 -0
  45. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_extras.scss +44 -0
  46. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_fixed-width.scss +6 -0
  47. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_icons.scss +552 -0
  48. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_larger.scss +13 -0
  49. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_list.scss +19 -0
  50. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_mixins.scss +25 -0
  51. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_path.scss +14 -0
  52. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_rotated-flipped.scss +20 -0
  53. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_spinning.scss +29 -0
  54. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_stacked.scss +20 -0
  55. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_variables.scss +561 -0
  56. data/vendor/assets/stylesheets/bower_components/fontawesome/scss/font-awesome.scss +17 -0
  57. data/vendor/assets/stylesheets/bower_components/foundation/.bower.json +32 -0
  58. data/vendor/assets/stylesheets/bower_components/foundation/bower.json +23 -0
  59. data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.css +6138 -0
  60. data/vendor/assets/stylesheets/bower_components/foundation/css/normalize.css +357 -0
  61. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.abide.js +314 -0
  62. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.accordion.js +66 -0
  63. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.alert.js +43 -0
  64. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.clearing.js +558 -0
  65. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.dropdown.js +326 -0
  66. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.equalizer.js +74 -0
  67. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.interchange.js +344 -0
  68. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.joyride.js +917 -0
  69. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.js +625 -0
  70. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.magellan.js +189 -0
  71. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.offcanvas.js +152 -0
  72. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.orbit.js +472 -0
  73. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.reveal.js +444 -0
  74. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.slider.js +239 -0
  75. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.tab.js +217 -0
  76. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.tooltip.js +300 -0
  77. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.topbar.js +445 -0
  78. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation.js +5741 -0
  79. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation.min.js +4 -0
  80. data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/fastclick.js +9 -0
  81. data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/jquery.cookie.js +8 -0
  82. data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/jquery.js +26 -0
  83. data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/modernizr.js +8 -0
  84. data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/placeholder.js +2 -0
  85. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/_functions.scss +102 -0
  86. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/_settings.scss +1441 -0
  87. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_accordion.scss +157 -0
  88. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +128 -0
  89. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_block-grid.scss +132 -0
  90. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +132 -0
  91. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_button-groups.scss +197 -0
  92. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_buttons.scss +259 -0
  93. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_clearing.scss +247 -0
  94. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +130 -0
  95. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_dropdown.scss +262 -0
  96. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_flex-video.scss +51 -0
  97. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_forms.scss +585 -0
  98. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_global.scss +460 -0
  99. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_grid.scss +275 -0
  100. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_icon-bar.scss +293 -0
  101. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_inline-lists.scss +57 -0
  102. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_joyride.scss +222 -0
  103. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_keystrokes.scss +61 -0
  104. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_labels.scss +106 -0
  105. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_magellan.scss +34 -0
  106. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_offcanvas.scss +513 -0
  107. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_orbit.scss +368 -0
  108. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_pagination.scss +162 -0
  109. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_panels.scss +95 -0
  110. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +150 -0
  111. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_progress-bars.scss +79 -0
  112. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_range-slider.scss +168 -0
  113. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_reveal.scss +222 -0
  114. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_side-nav.scss +116 -0
  115. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_split-buttons.scss +191 -0
  116. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_sub-nav.scss +123 -0
  117. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_switches.scss +230 -0
  118. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tables.scss +135 -0
  119. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tabs.scss +123 -0
  120. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_thumbs.scss +66 -0
  121. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_toolbar.scss +70 -0
  122. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tooltips.scss +142 -0
  123. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_top-bar.scss +685 -0
  124. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_type.scss +525 -0
  125. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_visibility.scss +408 -0
  126. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation.scss +45 -0
  127. data/vendor/assets/stylesheets/bower_components/foundation/scss/normalize.scss +427 -0
  128. data/vendor/assets/stylesheets/bower_components/jquery/.bower.json +37 -0
  129. data/vendor/assets/stylesheets/bower_components/jquery/MIT-LICENSE.txt +21 -0
  130. data/vendor/assets/stylesheets/bower_components/jquery/bower.json +27 -0
  131. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.js +9205 -0
  132. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.min.js +5 -0
  133. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.min.map +1 -0
  134. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/jsonp.js +89 -0
  135. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/load.js +75 -0
  136. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/parseJSON.js +13 -0
  137. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/parseXML.js +28 -0
  138. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/script.js +64 -0
  139. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/var/nonce.js +5 -0
  140. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/var/rquery.js +3 -0
  141. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/xhr.js +136 -0
  142. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax.js +786 -0
  143. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/attr.js +141 -0
  144. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/classes.js +158 -0
  145. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/prop.js +94 -0
  146. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/support.js +35 -0
  147. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/val.js +161 -0
  148. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes.js +11 -0
  149. data/vendor/assets/stylesheets/bower_components/jquery/src/callbacks.js +205 -0
  150. data/vendor/assets/stylesheets/bower_components/jquery/src/core/access.js +60 -0
  151. data/vendor/assets/stylesheets/bower_components/jquery/src/core/init.js +123 -0
  152. data/vendor/assets/stylesheets/bower_components/jquery/src/core/parseHTML.js +39 -0
  153. data/vendor/assets/stylesheets/bower_components/jquery/src/core/ready.js +97 -0
  154. data/vendor/assets/stylesheets/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
  155. data/vendor/assets/stylesheets/bower_components/jquery/src/core.js +497 -0
  156. data/vendor/assets/stylesheets/bower_components/jquery/src/css/addGetHookIf.js +22 -0
  157. data/vendor/assets/stylesheets/bower_components/jquery/src/css/curCSS.js +57 -0
  158. data/vendor/assets/stylesheets/bower_components/jquery/src/css/defaultDisplay.js +70 -0
  159. data/vendor/assets/stylesheets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  160. data/vendor/assets/stylesheets/bower_components/jquery/src/css/support.js +96 -0
  161. data/vendor/assets/stylesheets/bower_components/jquery/src/css/swap.js +28 -0
  162. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/cssExpand.js +3 -0
  163. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/getStyles.js +12 -0
  164. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/isHidden.js +13 -0
  165. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/rmargin.js +3 -0
  166. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
  167. data/vendor/assets/stylesheets/bower_components/jquery/src/css.js +450 -0
  168. data/vendor/assets/stylesheets/bower_components/jquery/src/data/Data.js +181 -0
  169. data/vendor/assets/stylesheets/bower_components/jquery/src/data/accepts.js +20 -0
  170. data/vendor/assets/stylesheets/bower_components/jquery/src/data/var/data_priv.js +5 -0
  171. data/vendor/assets/stylesheets/bower_components/jquery/src/data/var/data_user.js +5 -0
  172. data/vendor/assets/stylesheets/bower_components/jquery/src/data.js +178 -0
  173. data/vendor/assets/stylesheets/bower_components/jquery/src/deferred.js +149 -0
  174. data/vendor/assets/stylesheets/bower_components/jquery/src/deprecated.js +13 -0
  175. data/vendor/assets/stylesheets/bower_components/jquery/src/dimensions.js +50 -0
  176. data/vendor/assets/stylesheets/bower_components/jquery/src/effects/Tween.js +114 -0
  177. data/vendor/assets/stylesheets/bower_components/jquery/src/effects/animatedSelector.js +13 -0
  178. data/vendor/assets/stylesheets/bower_components/jquery/src/effects.js +648 -0
  179. data/vendor/assets/stylesheets/bower_components/jquery/src/event/ajax.js +13 -0
  180. data/vendor/assets/stylesheets/bower_components/jquery/src/event/alias.js +39 -0
  181. data/vendor/assets/stylesheets/bower_components/jquery/src/event/support.js +9 -0
  182. data/vendor/assets/stylesheets/bower_components/jquery/src/event.js +868 -0
  183. data/vendor/assets/stylesheets/bower_components/jquery/src/exports/amd.js +24 -0
  184. data/vendor/assets/stylesheets/bower_components/jquery/src/exports/global.js +32 -0
  185. data/vendor/assets/stylesheets/bower_components/jquery/src/intro.js +44 -0
  186. data/vendor/assets/stylesheets/bower_components/jquery/src/jquery.js +37 -0
  187. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
  188. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/support.js +32 -0
  189. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  190. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation.js +580 -0
  191. data/vendor/assets/stylesheets/bower_components/jquery/src/offset.js +207 -0
  192. data/vendor/assets/stylesheets/bower_components/jquery/src/outro.js +1 -0
  193. data/vendor/assets/stylesheets/bower_components/jquery/src/queue/delay.js +22 -0
  194. data/vendor/assets/stylesheets/bower_components/jquery/src/queue.js +142 -0
  195. data/vendor/assets/stylesheets/bower_components/jquery/src/selector-native.js +172 -0
  196. data/vendor/assets/stylesheets/bower_components/jquery/src/selector-sizzle.js +14 -0
  197. data/vendor/assets/stylesheets/bower_components/jquery/src/selector.js +1 -0
  198. data/vendor/assets/stylesheets/bower_components/jquery/src/serialize.js +111 -0
  199. data/vendor/assets/stylesheets/bower_components/jquery/src/sizzle/dist/sizzle.js +2067 -0
  200. data/vendor/assets/stylesheets/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  201. data/vendor/assets/stylesheets/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  202. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing/findFilter.js +100 -0
  203. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
  204. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing.js +199 -0
  205. data/vendor/assets/stylesheets/bower_components/jquery/src/var/arr.js +3 -0
  206. data/vendor/assets/stylesheets/bower_components/jquery/src/var/class2type.js +4 -0
  207. data/vendor/assets/stylesheets/bower_components/jquery/src/var/concat.js +5 -0
  208. data/vendor/assets/stylesheets/bower_components/jquery/src/var/hasOwn.js +5 -0
  209. data/vendor/assets/stylesheets/bower_components/jquery/src/var/indexOf.js +5 -0
  210. data/vendor/assets/stylesheets/bower_components/jquery/src/var/pnum.js +3 -0
  211. data/vendor/assets/stylesheets/bower_components/jquery/src/var/push.js +5 -0
  212. data/vendor/assets/stylesheets/bower_components/jquery/src/var/rnotwhite.js +3 -0
  213. data/vendor/assets/stylesheets/bower_components/jquery/src/var/slice.js +5 -0
  214. data/vendor/assets/stylesheets/bower_components/jquery/src/var/strundefined.js +3 -0
  215. data/vendor/assets/stylesheets/bower_components/jquery/src/var/support.js +4 -0
  216. data/vendor/assets/stylesheets/bower_components/jquery/src/var/toString.js +5 -0
  217. data/vendor/assets/stylesheets/bower_components/jquery/src/wrap.js +79 -0
  218. data/vendor/assets/stylesheets/bower_components/jquery-placeholder/.bower.json +33 -0
  219. data/vendor/assets/stylesheets/bower_components/jquery-placeholder/bower.json +21 -0
  220. data/vendor/assets/stylesheets/bower_components/jquery-placeholder/jquery.placeholder.js +192 -0
  221. data/vendor/assets/stylesheets/bower_components/jquery.cookie/.bower.json +28 -0
  222. data/vendor/assets/stylesheets/bower_components/jquery.cookie/bower.json +18 -0
  223. data/vendor/assets/stylesheets/bower_components/jquery.cookie/jquery.cookie.js +117 -0
  224. data/vendor/assets/stylesheets/bower_components/modernizr/.bower.json +14 -0
  225. data/vendor/assets/stylesheets/bower_components/modernizr/.editorconfig +10 -0
  226. data/vendor/assets/stylesheets/bower_components/modernizr/.gitignore +2 -0
  227. data/vendor/assets/stylesheets/bower_components/modernizr/.travis.yml +6 -0
  228. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/a-download.js +8 -0
  229. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/audio-audiodata-api.js +4 -0
  230. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/audio-webaudio-api.js +4 -0
  231. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/battery-api.js +8 -0
  232. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/battery-level.js +11 -0
  233. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/blob-constructor.js +10 -0
  234. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/canvas-todataurl-type.js +28 -0
  235. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/contenteditable.js +9 -0
  236. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/contentsecuritypolicy.js +10 -0
  237. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/contextmenu.js +11 -0
  238. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/cookies.js +15 -0
  239. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/cors.js +3 -0
  240. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-backgroundposition-shorthand.js +19 -0
  241. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-backgroundposition-xy.js +15 -0
  242. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-backgroundrepeat.js +31 -0
  243. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-backgroundsizecover.js +10 -0
  244. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-boxsizing.js +9 -0
  245. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-calc.js +12 -0
  246. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-cubicbezierrange.js +8 -0
  247. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-displayrunin.js +18 -0
  248. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-displaytable.js +27 -0
  249. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-filters.js +7 -0
  250. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-hyphens.js +205 -0
  251. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-lastchild.js +11 -0
  252. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-mask.js +12 -0
  253. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-mediaqueries.js +3 -0
  254. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-objectfit.js +6 -0
  255. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-overflow-scrolling.js +9 -0
  256. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-pointerevents.js +25 -0
  257. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-positionsticky.js +13 -0
  258. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-regions.js +55 -0
  259. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-remunit.js +19 -0
  260. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-resize.js +8 -0
  261. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-scrollbars.js +19 -0
  262. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-shapes.js +4 -0
  263. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-subpixelfont.js +23 -0
  264. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-supports.js +6 -0
  265. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-userselect.js +10 -0
  266. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-vhunit.js +14 -0
  267. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-vmaxunit.js +14 -0
  268. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-vminunit.js +14 -0
  269. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/css-vwunit.js +14 -0
  270. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/custom-protocol-handler.js +10 -0
  271. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/dart.js +6 -0
  272. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/dataview-api.js +4 -0
  273. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/dom-classlist.js +4 -0
  274. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/dom-createElement-attrs.js +11 -0
  275. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/dom-dataset.js +9 -0
  276. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/dom-microdata.js +4 -0
  277. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-datalist.js +12 -0
  278. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-details.js +25 -0
  279. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-output.js +4 -0
  280. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-progress-meter.js +11 -0
  281. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-ruby.js +53 -0
  282. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-time.js +4 -0
  283. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/elem-track.js +11 -0
  284. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/emoji.js +11 -0
  285. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/es5-strictmode.js +7 -0
  286. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js +11 -0
  287. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/exif-orientation.js +32 -0
  288. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/file-api.js +12 -0
  289. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/file-filesystem.js +9 -0
  290. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/forms-fileinput.js +13 -0
  291. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/forms-formattribute.js +29 -0
  292. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/forms-inputnumber-l10n.js +32 -0
  293. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/forms-placeholder.js +10 -0
  294. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/forms-speechinput.js +19 -0
  295. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/forms-validation.js +62 -0
  296. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/fullscreen-api.js +10 -0
  297. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/gamepad.js +12 -0
  298. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/getusermedia.js +5 -0
  299. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/ie8compat.js +12 -0
  300. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/iframe-sandbox.js +5 -0
  301. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/iframe-seamless.js +5 -0
  302. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/iframe-srcdoc.js +5 -0
  303. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/img-apng.js +26 -0
  304. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/img-webp.js +20 -0
  305. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/json.js +7 -0
  306. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/lists-reversed.js +6 -0
  307. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/mathml.js +23 -0
  308. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/network-connection.js +22 -0
  309. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/network-eventsource.js +5 -0
  310. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/network-xhr2.js +13 -0
  311. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/notification.js +10 -0
  312. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/performance.js +5 -0
  313. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/pointerlock-api.js +4 -0
  314. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/quota-management-api.js +11 -0
  315. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/requestanimationframe.js +7 -0
  316. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/script-async.js +3 -0
  317. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/script-defer.js +3 -0
  318. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/style-scoped.js +6 -0
  319. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/svg-filters.js +13 -0
  320. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/unicode.js +32 -0
  321. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/url-data-uri.js +26 -0
  322. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/userdata.js +7 -0
  323. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/vibration.js +4 -0
  324. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/web-intents.js +6 -0
  325. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/webgl-extensions.js +42 -0
  326. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/websockets-binary.js +20 -0
  327. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/window-framed.js +8 -0
  328. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/workers-blobworkers.js +66 -0
  329. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/workers-dataworkers.js +34 -0
  330. data/vendor/assets/stylesheets/bower_components/modernizr/feature-detects/workers-sharedworkers.js +3 -0
  331. data/vendor/assets/stylesheets/bower_components/modernizr/grunt.js +69 -0
  332. data/vendor/assets/stylesheets/bower_components/modernizr/media/Modernizr 2 Logo.ai +292 -1
  333. data/vendor/assets/stylesheets/bower_components/modernizr/media/Modernizr 2 Logo.eps +0 -0
  334. data/vendor/assets/stylesheets/bower_components/modernizr/media/Modernizr 2 Logo.pdf +292 -1
  335. data/vendor/assets/stylesheets/bower_components/modernizr/media/Modernizr 2 Logo.png +0 -0
  336. data/vendor/assets/stylesheets/bower_components/modernizr/media/Modernizr 2 Logo.svg +35 -0
  337. data/vendor/assets/stylesheets/bower_components/modernizr/modernizr.js +1406 -0
  338. data/vendor/assets/stylesheets/bower_components/modernizr/readme.md +28 -0
  339. data/vendor/assets/stylesheets/bower_components/modernizr/test/basic.html +65 -0
  340. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse.html +1451 -0
  341. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/Windsong-webfont.eot +0 -0
  342. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/Windsong-webfont.otf +0 -0
  343. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/Windsong-webfont.svg +147 -0
  344. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/Windsong-webfont.ttf +0 -0
  345. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/Windsong-webfont.woff +0 -0
  346. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/alpha.png +0 -0
  347. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/apng_test.png +0 -0
  348. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/before-after.png +0 -0
  349. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/form_validation.html +15 -0
  350. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/ga.js +43 -0
  351. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/green5x5.png +0 -0
  352. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/hashchange.html +16 -0
  353. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/jquery.min.js +18 -0
  354. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/mathml.html +120 -0
  355. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/mathml_ref.png +0 -0
  356. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/modernizr-1.7.min.js +2 -0
  357. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/png_alpha_result.png +0 -0
  358. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/pushstate.html +40 -0
  359. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/red30x30.png +0 -0
  360. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/ruby.png +0 -0
  361. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/stroked-text.png +0 -0
  362. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/style.css +168 -0
  363. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/svg-html-blur.png +0 -0
  364. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/svg-img.svg +5 -0
  365. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/svg-img.svg.1 +5 -0
  366. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/svg_blur.png +0 -0
  367. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/table.png +0 -0
  368. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/text-shadow1.png +0 -0
  369. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/text-shadow2.png +0 -0
  370. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/windsong_font.png +0 -0
  371. data/vendor/assets/stylesheets/bower_components/modernizr/test/caniuse_files/xhtml.html +14 -0
  372. data/vendor/assets/stylesheets/bower_components/modernizr/test/index.html +104 -0
  373. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/basic.html +65 -0
  374. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/dumpdata.js +75 -0
  375. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/lib/detect-global.js +153 -0
  376. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/lib/jquery-1.7b2.js +9279 -0
  377. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/lib/jsonselect.js +279 -0
  378. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/lib/polyfills.js +96 -0
  379. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/lib/uaparser.js +215 -0
  380. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/setup.js +44 -0
  381. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/unit-caniuse.js +191 -0
  382. data/vendor/assets/stylesheets/bower_components/modernizr/test/js/unit.js +669 -0
  383. data/vendor/assets/stylesheets/bower_components/modernizr/test/qunit/qunit.css +231 -0
  384. data/vendor/assets/stylesheets/bower_components/modernizr/test/qunit/qunit.js +1932 -0
  385. data/vendor/assets/stylesheets/bower_components/modernizr/test/qunit/run-qunit.js +72 -0
  386. data/vendor/assets/stylesheets/components/_button.scss +61 -0
  387. data/vendor/assets/stylesheets/components/_dropdown.scss +27 -0
  388. data/vendor/assets/stylesheets/components/_grid.scss +37 -0
  389. data/vendor/assets/stylesheets/components/_heading.scss +17 -0
  390. data/vendor/assets/stylesheets/components/_icon.scss +4 -0
  391. data/vendor/assets/stylesheets/components/_label.scss +3 -0
  392. data/vendor/assets/stylesheets/components/_layout.scss +263 -0
  393. data/vendor/assets/stylesheets/components/_progress-bar.scss +14 -0
  394. data/vendor/assets/stylesheets/globals/_mixins.scss +5 -0
  395. data/vendor/assets/stylesheets/globals/_settings.scss +64 -0
  396. data/vendor/assets/stylesheets/paint.scss +20 -0
  397. metadata +481 -0
@@ -0,0 +1,917 @@
1
+ ;(function ($, window, document, undefined) {
2
+ 'use strict';
3
+
4
+ var Modernizr = Modernizr || false;
5
+
6
+ Foundation.libs.joyride = {
7
+ name : 'joyride',
8
+
9
+ version : '5.4.7',
10
+
11
+ defaults : {
12
+ expose : false, // turn on or off the expose feature
13
+ modal : true, // Whether to cover page with modal during the tour
14
+ keyboard : true, // enable left, right and esc keystrokes
15
+ tip_location : 'bottom', // 'top' or 'bottom' in relation to parent
16
+ nub_position : 'auto', // override on a per tooltip bases
17
+ scroll_speed : 1500, // Page scrolling speed in milliseconds, 0 = no scroll animation
18
+ scroll_animation : 'linear', // supports 'swing' and 'linear', extend with jQuery UI.
19
+ timer : 0, // 0 = no timer , all other numbers = timer in milliseconds
20
+ start_timer_on_click : true, // true or false - true requires clicking the first button start the timer
21
+ start_offset : 0, // the index of the tooltip you want to start on (index of the li)
22
+ next_button : true, // true or false to control whether a next button is used
23
+ prev_button : true, // true or false to control whether a prev button is used
24
+ tip_animation : 'fade', // 'pop' or 'fade' in each tip
25
+ pause_after : [], // array of indexes where to pause the tour after
26
+ exposed : [], // array of expose elements
27
+ tip_animation_fade_speed : 300, // when tipAnimation = 'fade' this is speed in milliseconds for the transition
28
+ cookie_monster : false, // true or false to control whether cookies are used
29
+ cookie_name : 'joyride', // Name the cookie you'll use
30
+ cookie_domain : false, // Will this cookie be attached to a domain, ie. '.notableapp.com'
31
+ cookie_expires : 365, // set when you would like the cookie to expire.
32
+ tip_container : 'body', // Where will the tip be attached
33
+ abort_on_close : true, // When true, the close event will not fire any callback
34
+ tip_location_patterns : {
35
+ top: ['bottom'],
36
+ bottom: [], // bottom should not need to be repositioned
37
+ left: ['right', 'top', 'bottom'],
38
+ right: ['left', 'top', 'bottom']
39
+ },
40
+ post_ride_callback : function (){}, // A method to call once the tour closes (canceled or complete)
41
+ post_step_callback : function (){}, // A method to call after each step
42
+ pre_step_callback : function (){}, // A method to call before each step
43
+ pre_ride_callback : function (){}, // A method to call before the tour starts (passed index, tip, and cloned exposed element)
44
+ post_expose_callback : function (){}, // A method to call after an element has been exposed
45
+ template : { // HTML segments for tip layout
46
+ link : '<a href="#close" class="joyride-close-tip">&times;</a>',
47
+ timer : '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',
48
+ tip : '<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',
49
+ wrapper : '<div class="joyride-content-wrapper"></div>',
50
+ button : '<a href="#" class="small button joyride-next-tip"></a>',
51
+ prev_button : '<a href="#" class="small button joyride-prev-tip"></a>',
52
+ modal : '<div class="joyride-modal-bg"></div>',
53
+ expose : '<div class="joyride-expose-wrapper"></div>',
54
+ expose_cover : '<div class="joyride-expose-cover"></div>'
55
+ },
56
+ expose_add_class : '' // One or more space-separated class names to be added to exposed element
57
+ },
58
+
59
+ init : function (scope, method, options) {
60
+ Foundation.inherit(this, 'throttle random_str');
61
+
62
+ this.settings = this.settings || $.extend({}, this.defaults, (options || method));
63
+
64
+ this.bindings(method, options)
65
+ },
66
+
67
+ go_next : function() {
68
+ if (this.settings.$li.next().length < 1) {
69
+ this.end();
70
+ } else if (this.settings.timer > 0) {
71
+ clearTimeout(this.settings.automate);
72
+ this.hide();
73
+ this.show();
74
+ this.startTimer();
75
+ } else {
76
+ this.hide();
77
+ this.show();
78
+ }
79
+ },
80
+
81
+ go_prev : function() {
82
+ if (this.settings.$li.prev().length < 1) {
83
+ // Do nothing if there are no prev element
84
+ } else if (this.settings.timer > 0) {
85
+ clearTimeout(this.settings.automate);
86
+ this.hide();
87
+ this.show(null, true);
88
+ this.startTimer();
89
+ } else {
90
+ this.hide();
91
+ this.show(null, true);
92
+ }
93
+ },
94
+
95
+ events : function () {
96
+ var self = this;
97
+
98
+ $(this.scope)
99
+ .off('.joyride')
100
+ .on('click.fndtn.joyride', '.joyride-next-tip, .joyride-modal-bg', function (e) {
101
+ e.preventDefault();
102
+ this.go_next()
103
+ }.bind(this))
104
+ .on('click.fndtn.joyride', '.joyride-prev-tip', function (e) {
105
+ e.preventDefault();
106
+ this.go_prev();
107
+ }.bind(this))
108
+
109
+ .on('click.fndtn.joyride', '.joyride-close-tip', function (e) {
110
+ e.preventDefault();
111
+ this.end(this.settings.abort_on_close);
112
+ }.bind(this))
113
+
114
+ .on("keyup.fndtn.joyride", function(e) {
115
+ // Don't do anything if keystrokes are disabled
116
+ // or if the joyride is not being shown
117
+ if (!this.settings.keyboard || !this.settings.riding) return;
118
+
119
+ switch (e.which) {
120
+ case 39: // right arrow
121
+ e.preventDefault();
122
+ this.go_next();
123
+ break;
124
+ case 37: // left arrow
125
+ e.preventDefault();
126
+ this.go_prev();
127
+ break;
128
+ case 27: // escape
129
+ e.preventDefault();
130
+ this.end(this.settings.abort_on_close);
131
+ }
132
+ }.bind(this));
133
+
134
+ $(window)
135
+ .off('.joyride')
136
+ .on('resize.fndtn.joyride', self.throttle(function () {
137
+ if ($('[' + self.attr_name() + ']').length > 0 && self.settings.$next_tip && self.settings.riding) {
138
+ if (self.settings.exposed.length > 0) {
139
+ var $els = $(self.settings.exposed);
140
+
141
+ $els.each(function () {
142
+ var $this = $(this);
143
+ self.un_expose($this);
144
+ self.expose($this);
145
+ });
146
+ }
147
+
148
+ if (self.is_phone()) {
149
+ self.pos_phone();
150
+ } else {
151
+ self.pos_default(false);
152
+ }
153
+ }
154
+ }, 100));
155
+ },
156
+
157
+ start : function () {
158
+ var self = this,
159
+ $this = $('[' + this.attr_name() + ']', this.scope),
160
+ integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'],
161
+ int_settings_count = integer_settings.length;
162
+
163
+ if (!$this.length > 0) return;
164
+
165
+ if (!this.settings.init) this.events();
166
+
167
+ this.settings = $this.data(this.attr_name(true) + '-init');
168
+
169
+ // non configureable settings
170
+ this.settings.$content_el = $this;
171
+ this.settings.$body = $(this.settings.tip_container);
172
+ this.settings.body_offset = $(this.settings.tip_container).position();
173
+ this.settings.$tip_content = this.settings.$content_el.find('> li');
174
+ this.settings.paused = false;
175
+ this.settings.attempts = 0;
176
+ this.settings.riding = true;
177
+
178
+ // can we create cookies?
179
+ if (typeof $.cookie !== 'function') {
180
+ this.settings.cookie_monster = false;
181
+ }
182
+
183
+ // generate the tips and insert into dom.
184
+ if (!this.settings.cookie_monster || this.settings.cookie_monster && !$.cookie(this.settings.cookie_name)) {
185
+ this.settings.$tip_content.each(function (index) {
186
+ var $this = $(this);
187
+ this.settings = $.extend({}, self.defaults, self.data_options($this));
188
+
189
+ // Make sure that settings parsed from data_options are integers where necessary
190
+ var i = int_settings_count;
191
+ while (i--) {
192
+ self.settings[integer_settings[i]] = parseInt(self.settings[integer_settings[i]], 10);
193
+ }
194
+ self.create({$li : $this, index : index});
195
+ });
196
+
197
+ // show first tip
198
+ if (!this.settings.start_timer_on_click && this.settings.timer > 0) {
199
+ this.show('init');
200
+ this.startTimer();
201
+ } else {
202
+ this.show('init');
203
+ }
204
+
205
+ }
206
+ },
207
+
208
+ resume : function () {
209
+ this.set_li();
210
+ this.show();
211
+ },
212
+
213
+ tip_template : function (opts) {
214
+ var $blank, content;
215
+
216
+ opts.tip_class = opts.tip_class || '';
217
+
218
+ $blank = $(this.settings.template.tip).addClass(opts.tip_class);
219
+ content = $.trim($(opts.li).html()) +
220
+ this.prev_button_text(opts.prev_button_text, opts.index) +
221
+ this.button_text(opts.button_text) +
222
+ this.settings.template.link +
223
+ this.timer_instance(opts.index);
224
+
225
+ $blank.append($(this.settings.template.wrapper));
226
+ $blank.first().attr(this.add_namespace('data-index'), opts.index);
227
+ $('.joyride-content-wrapper', $blank).append(content);
228
+
229
+ return $blank[0];
230
+ },
231
+
232
+ timer_instance : function (index) {
233
+ var txt;
234
+
235
+ if ((index === 0 && this.settings.start_timer_on_click && this.settings.timer > 0) || this.settings.timer === 0) {
236
+ txt = '';
237
+ } else {
238
+ txt = $(this.settings.template.timer)[0].outerHTML;
239
+ }
240
+ return txt;
241
+ },
242
+
243
+ button_text : function (txt) {
244
+ if (this.settings.tip_settings.next_button) {
245
+ txt = $.trim(txt) || 'Next';
246
+ txt = $(this.settings.template.button).append(txt)[0].outerHTML;
247
+ } else {
248
+ txt = '';
249
+ }
250
+ return txt;
251
+ },
252
+
253
+ prev_button_text : function (txt, idx) {
254
+ if (this.settings.tip_settings.prev_button) {
255
+ txt = $.trim(txt) || 'Previous';
256
+
257
+ // Add the disabled class to the button if it's the first element
258
+ if (idx == 0)
259
+ txt = $(this.settings.template.prev_button).append(txt).addClass('disabled')[0].outerHTML;
260
+ else
261
+ txt = $(this.settings.template.prev_button).append(txt)[0].outerHTML;
262
+ } else {
263
+ txt = '';
264
+ }
265
+ return txt;
266
+ },
267
+
268
+ create : function (opts) {
269
+ this.settings.tip_settings = $.extend({}, this.settings, this.data_options(opts.$li));
270
+ var buttonText = opts.$li.attr(this.add_namespace('data-button'))
271
+ || opts.$li.attr(this.add_namespace('data-text')),
272
+ prevButtonText = opts.$li.attr(this.add_namespace('data-button-prev'))
273
+ || opts.$li.attr(this.add_namespace('data-prev-text')),
274
+ tipClass = opts.$li.attr('class'),
275
+ $tip_content = $(this.tip_template({
276
+ tip_class : tipClass,
277
+ index : opts.index,
278
+ button_text : buttonText,
279
+ prev_button_text : prevButtonText,
280
+ li : opts.$li
281
+ }));
282
+
283
+ $(this.settings.tip_container).append($tip_content);
284
+ },
285
+
286
+ show : function (init, is_prev) {
287
+ var $timer = null;
288
+
289
+ // are we paused?
290
+ if (this.settings.$li === undefined
291
+ || ($.inArray(this.settings.$li.index(), this.settings.pause_after) === -1)) {
292
+
293
+ // don't go to the next li if the tour was paused
294
+ if (this.settings.paused) {
295
+ this.settings.paused = false;
296
+ } else {
297
+ this.set_li(init, is_prev);
298
+ }
299
+
300
+ this.settings.attempts = 0;
301
+
302
+ if (this.settings.$li.length && this.settings.$target.length > 0) {
303
+ if (init) { //run when we first start
304
+ this.settings.pre_ride_callback(this.settings.$li.index(), this.settings.$next_tip);
305
+ if (this.settings.modal) {
306
+ this.show_modal();
307
+ }
308
+ }
309
+
310
+ this.settings.pre_step_callback(this.settings.$li.index(), this.settings.$next_tip);
311
+
312
+ if (this.settings.modal && this.settings.expose) {
313
+ this.expose();
314
+ }
315
+
316
+ this.settings.tip_settings = $.extend({}, this.settings, this.data_options(this.settings.$li));
317
+
318
+ this.settings.timer = parseInt(this.settings.timer, 10);
319
+
320
+ this.settings.tip_settings.tip_location_pattern = this.settings.tip_location_patterns[this.settings.tip_settings.tip_location];
321
+
322
+ // scroll if not modal
323
+ if (!/body/i.test(this.settings.$target.selector)) {
324
+ this.scroll_to();
325
+ }
326
+
327
+ if (this.is_phone()) {
328
+ this.pos_phone(true);
329
+ } else {
330
+ this.pos_default(true);
331
+ }
332
+
333
+ $timer = this.settings.$next_tip.find('.joyride-timer-indicator');
334
+
335
+ if (/pop/i.test(this.settings.tip_animation)) {
336
+
337
+ $timer.width(0);
338
+
339
+ if (this.settings.timer > 0) {
340
+
341
+ this.settings.$next_tip.show();
342
+
343
+ setTimeout(function () {
344
+ $timer.animate({
345
+ width: $timer.parent().width()
346
+ }, this.settings.timer, 'linear');
347
+ }.bind(this), this.settings.tip_animation_fade_speed);
348
+
349
+ } else {
350
+ this.settings.$next_tip.show();
351
+
352
+ }
353
+
354
+
355
+ } else if (/fade/i.test(this.settings.tip_animation)) {
356
+
357
+ $timer.width(0);
358
+
359
+ if (this.settings.timer > 0) {
360
+
361
+ this.settings.$next_tip
362
+ .fadeIn(this.settings.tip_animation_fade_speed)
363
+ .show();
364
+
365
+ setTimeout(function () {
366
+ $timer.animate({
367
+ width: $timer.parent().width()
368
+ }, this.settings.timer, 'linear');
369
+ }.bind(this), this.settings.tip_animation_fade_speed);
370
+
371
+ } else {
372
+ this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed);
373
+ }
374
+ }
375
+
376
+ this.settings.$current_tip = this.settings.$next_tip;
377
+
378
+ // skip non-existant targets
379
+ } else if (this.settings.$li && this.settings.$target.length < 1) {
380
+
381
+ this.show(init, is_prev);
382
+
383
+ } else {
384
+
385
+ this.end();
386
+
387
+ }
388
+ } else {
389
+
390
+ this.settings.paused = true;
391
+
392
+ }
393
+
394
+ },
395
+
396
+ is_phone : function () {
397
+ return matchMedia(Foundation.media_queries.small).matches &&
398
+ !matchMedia(Foundation.media_queries.medium).matches;
399
+ },
400
+
401
+ hide : function () {
402
+ if (this.settings.modal && this.settings.expose) {
403
+ this.un_expose();
404
+ }
405
+
406
+ if (!this.settings.modal) {
407
+ $('.joyride-modal-bg').hide();
408
+ }
409
+
410
+ // Prevent scroll bouncing...wait to remove from layout
411
+ this.settings.$current_tip.css('visibility', 'hidden');
412
+ setTimeout($.proxy(function() {
413
+ this.hide();
414
+ this.css('visibility', 'visible');
415
+ }, this.settings.$current_tip), 0);
416
+ this.settings.post_step_callback(this.settings.$li.index(),
417
+ this.settings.$current_tip);
418
+ },
419
+
420
+ set_li : function (init, is_prev) {
421
+ if (init) {
422
+ this.settings.$li = this.settings.$tip_content.eq(this.settings.start_offset);
423
+ this.set_next_tip();
424
+ this.settings.$current_tip = this.settings.$next_tip;
425
+ } else {
426
+ if (is_prev)
427
+ this.settings.$li = this.settings.$li.prev();
428
+ else
429
+ this.settings.$li = this.settings.$li.next();
430
+ this.set_next_tip();
431
+ }
432
+
433
+ this.set_target();
434
+ },
435
+
436
+ set_next_tip : function () {
437
+ this.settings.$next_tip = $(".joyride-tip-guide").eq(this.settings.$li.index());
438
+ this.settings.$next_tip.data('closed', '');
439
+ },
440
+
441
+ set_target : function () {
442
+ var cl = this.settings.$li.attr(this.add_namespace('data-class')),
443
+ id = this.settings.$li.attr(this.add_namespace('data-id')),
444
+ $sel = function () {
445
+ if (id) {
446
+ return $(document.getElementById(id));
447
+ } else if (cl) {
448
+ return $('.' + cl).first();
449
+ } else {
450
+ return $('body');
451
+ }
452
+ };
453
+
454
+ this.settings.$target = $sel();
455
+ },
456
+
457
+ scroll_to : function () {
458
+ var window_half, tipOffset;
459
+
460
+ window_half = $(window).height() / 2;
461
+ tipOffset = Math.ceil(this.settings.$target.offset().top - window_half + this.settings.$next_tip.outerHeight());
462
+
463
+ if (tipOffset != 0) {
464
+ $('html, body').stop().animate({
465
+ scrollTop: tipOffset
466
+ }, this.settings.scroll_speed, 'swing');
467
+ }
468
+ },
469
+
470
+ paused : function () {
471
+ return ($.inArray((this.settings.$li.index() + 1), this.settings.pause_after) === -1);
472
+ },
473
+
474
+ restart : function () {
475
+ this.hide();
476
+ this.settings.$li = undefined;
477
+ this.show('init');
478
+ },
479
+
480
+ pos_default : function (init) {
481
+ var $nub = this.settings.$next_tip.find('.joyride-nub'),
482
+ nub_width = Math.ceil($nub.outerWidth() / 2),
483
+ nub_height = Math.ceil($nub.outerHeight() / 2),
484
+ toggle = init || false;
485
+
486
+ // tip must not be "display: none" to calculate position
487
+ if (toggle) {
488
+ this.settings.$next_tip.css('visibility', 'hidden');
489
+ this.settings.$next_tip.show();
490
+ }
491
+
492
+ if (!/body/i.test(this.settings.$target.selector)) {
493
+ var topAdjustment = this.settings.tip_settings.tipAdjustmentY ? parseInt(this.settings.tip_settings.tipAdjustmentY) : 0,
494
+ leftAdjustment = this.settings.tip_settings.tipAdjustmentX ? parseInt(this.settings.tip_settings.tipAdjustmentX) : 0;
495
+
496
+ if (this.bottom()) {
497
+ if (this.rtl) {
498
+ this.settings.$next_tip.css({
499
+ top: (this.settings.$target.offset().top + nub_height + this.settings.$target.outerHeight() + topAdjustment),
500
+ left: this.settings.$target.offset().left + this.settings.$target.outerWidth() - this.settings.$next_tip.outerWidth() + leftAdjustment});
501
+ } else {
502
+ this.settings.$next_tip.css({
503
+ top: (this.settings.$target.offset().top + nub_height + this.settings.$target.outerHeight() + topAdjustment),
504
+ left: this.settings.$target.offset().left + leftAdjustment});
505
+ }
506
+
507
+ this.nub_position($nub, this.settings.tip_settings.nub_position, 'top');
508
+
509
+ } else if (this.top()) {
510
+ if (this.rtl) {
511
+ this.settings.$next_tip.css({
512
+ top: (this.settings.$target.offset().top - this.settings.$next_tip.outerHeight() - nub_height + topAdjustment),
513
+ left: this.settings.$target.offset().left + this.settings.$target.outerWidth() - this.settings.$next_tip.outerWidth()});
514
+ } else {
515
+ this.settings.$next_tip.css({
516
+ top: (this.settings.$target.offset().top - this.settings.$next_tip.outerHeight() - nub_height + topAdjustment),
517
+ left: this.settings.$target.offset().left + leftAdjustment});
518
+ }
519
+
520
+ this.nub_position($nub, this.settings.tip_settings.nub_position, 'bottom');
521
+
522
+ } else if (this.right()) {
523
+
524
+ this.settings.$next_tip.css({
525
+ top: this.settings.$target.offset().top + topAdjustment,
526
+ left: (this.settings.$target.outerWidth() + this.settings.$target.offset().left + nub_width + leftAdjustment)});
527
+
528
+ this.nub_position($nub, this.settings.tip_settings.nub_position, 'left');
529
+
530
+ } else if (this.left()) {
531
+
532
+ this.settings.$next_tip.css({
533
+ top: this.settings.$target.offset().top + topAdjustment,
534
+ left: (this.settings.$target.offset().left - this.settings.$next_tip.outerWidth() - nub_width + leftAdjustment)});
535
+
536
+ this.nub_position($nub, this.settings.tip_settings.nub_position, 'right');
537
+
538
+ }
539
+
540
+ if (!this.visible(this.corners(this.settings.$next_tip)) && this.settings.attempts < this.settings.tip_settings.tip_location_pattern.length) {
541
+
542
+ $nub.removeClass('bottom')
543
+ .removeClass('top')
544
+ .removeClass('right')
545
+ .removeClass('left');
546
+
547
+ this.settings.tip_settings.tip_location = this.settings.tip_settings.tip_location_pattern[this.settings.attempts];
548
+
549
+ this.settings.attempts++;
550
+
551
+ this.pos_default();
552
+
553
+ }
554
+
555
+ } else if (this.settings.$li.length) {
556
+
557
+ this.pos_modal($nub);
558
+
559
+ }
560
+
561
+ if (toggle) {
562
+ this.settings.$next_tip.hide();
563
+ this.settings.$next_tip.css('visibility', 'visible');
564
+ }
565
+
566
+ },
567
+
568
+ pos_phone : function (init) {
569
+ var tip_height = this.settings.$next_tip.outerHeight(),
570
+ tip_offset = this.settings.$next_tip.offset(),
571
+ target_height = this.settings.$target.outerHeight(),
572
+ $nub = $('.joyride-nub', this.settings.$next_tip),
573
+ nub_height = Math.ceil($nub.outerHeight() / 2),
574
+ toggle = init || false;
575
+
576
+ $nub.removeClass('bottom')
577
+ .removeClass('top')
578
+ .removeClass('right')
579
+ .removeClass('left');
580
+
581
+ if (toggle) {
582
+ this.settings.$next_tip.css('visibility', 'hidden');
583
+ this.settings.$next_tip.show();
584
+ }
585
+
586
+ if (!/body/i.test(this.settings.$target.selector)) {
587
+
588
+ if (this.top()) {
589
+
590
+ this.settings.$next_tip.offset({top: this.settings.$target.offset().top - tip_height - nub_height});
591
+ $nub.addClass('bottom');
592
+
593
+ } else {
594
+
595
+ this.settings.$next_tip.offset({top: this.settings.$target.offset().top + target_height + nub_height});
596
+ $nub.addClass('top');
597
+
598
+ }
599
+
600
+ } else if (this.settings.$li.length) {
601
+ this.pos_modal($nub);
602
+ }
603
+
604
+ if (toggle) {
605
+ this.settings.$next_tip.hide();
606
+ this.settings.$next_tip.css('visibility', 'visible');
607
+ }
608
+ },
609
+
610
+ pos_modal : function ($nub) {
611
+ this.center();
612
+ $nub.hide();
613
+
614
+ this.show_modal();
615
+ },
616
+
617
+ show_modal : function () {
618
+ if (!this.settings.$next_tip.data('closed')) {
619
+ var joyridemodalbg = $('.joyride-modal-bg');
620
+ if (joyridemodalbg.length < 1) {
621
+ $('body').append(this.settings.template.modal).show();
622
+ }
623
+
624
+ if (/pop/i.test(this.settings.tip_animation)) {
625
+ joyridemodalbg.show();
626
+ } else {
627
+ joyridemodalbg.fadeIn(this.settings.tip_animation_fade_speed);
628
+ }
629
+ }
630
+ },
631
+
632
+ expose : function () {
633
+ var expose,
634
+ exposeCover,
635
+ el,
636
+ origCSS,
637
+ origClasses,
638
+ randId = 'expose-' + this.random_str(6);
639
+
640
+ if (arguments.length > 0 && arguments[0] instanceof $) {
641
+ el = arguments[0];
642
+ } else if(this.settings.$target && !/body/i.test(this.settings.$target.selector)){
643
+ el = this.settings.$target;
644
+ } else {
645
+ return false;
646
+ }
647
+
648
+ if(el.length < 1){
649
+ if(window.console){
650
+ console.error('element not valid', el);
651
+ }
652
+ return false;
653
+ }
654
+
655
+ expose = $(this.settings.template.expose);
656
+ this.settings.$body.append(expose);
657
+ expose.css({
658
+ top: el.offset().top,
659
+ left: el.offset().left,
660
+ width: el.outerWidth(true),
661
+ height: el.outerHeight(true)
662
+ });
663
+
664
+ exposeCover = $(this.settings.template.expose_cover);
665
+
666
+ origCSS = {
667
+ zIndex: el.css('z-index'),
668
+ position: el.css('position')
669
+ };
670
+
671
+ origClasses = el.attr('class') == null ? '' : el.attr('class');
672
+
673
+ el.css('z-index',parseInt(expose.css('z-index'))+1);
674
+
675
+ if (origCSS.position == 'static') {
676
+ el.css('position','relative');
677
+ }
678
+
679
+ el.data('expose-css',origCSS);
680
+ el.data('orig-class', origClasses);
681
+ el.attr('class', origClasses + ' ' + this.settings.expose_add_class);
682
+
683
+ exposeCover.css({
684
+ top: el.offset().top,
685
+ left: el.offset().left,
686
+ width: el.outerWidth(true),
687
+ height: el.outerHeight(true)
688
+ });
689
+
690
+ if (this.settings.modal) this.show_modal();
691
+
692
+ this.settings.$body.append(exposeCover);
693
+ expose.addClass(randId);
694
+ exposeCover.addClass(randId);
695
+ el.data('expose', randId);
696
+ this.settings.post_expose_callback(this.settings.$li.index(), this.settings.$next_tip, el);
697
+ this.add_exposed(el);
698
+ },
699
+
700
+ un_expose : function () {
701
+ var exposeId,
702
+ el,
703
+ expose ,
704
+ origCSS,
705
+ origClasses,
706
+ clearAll = false;
707
+
708
+ if (arguments.length > 0 && arguments[0] instanceof $) {
709
+ el = arguments[0];
710
+ } else if(this.settings.$target && !/body/i.test(this.settings.$target.selector)){
711
+ el = this.settings.$target;
712
+ } else {
713
+ return false;
714
+ }
715
+
716
+ if(el.length < 1){
717
+ if (window.console) {
718
+ console.error('element not valid', el);
719
+ }
720
+ return false;
721
+ }
722
+
723
+ exposeId = el.data('expose');
724
+ expose = $('.' + exposeId);
725
+
726
+ if (arguments.length > 1) {
727
+ clearAll = arguments[1];
728
+ }
729
+
730
+ if (clearAll === true) {
731
+ $('.joyride-expose-wrapper,.joyride-expose-cover').remove();
732
+ } else {
733
+ expose.remove();
734
+ }
735
+
736
+ origCSS = el.data('expose-css');
737
+
738
+ if (origCSS.zIndex == 'auto') {
739
+ el.css('z-index', '');
740
+ } else {
741
+ el.css('z-index', origCSS.zIndex);
742
+ }
743
+
744
+ if (origCSS.position != el.css('position')) {
745
+ if(origCSS.position == 'static') {// this is default, no need to set it.
746
+ el.css('position', '');
747
+ } else {
748
+ el.css('position', origCSS.position);
749
+ }
750
+ }
751
+
752
+ origClasses = el.data('orig-class');
753
+ el.attr('class', origClasses);
754
+ el.removeData('orig-classes');
755
+
756
+ el.removeData('expose');
757
+ el.removeData('expose-z-index');
758
+ this.remove_exposed(el);
759
+ },
760
+
761
+ add_exposed: function(el){
762
+ this.settings.exposed = this.settings.exposed || [];
763
+ if (el instanceof $ || typeof el === 'object') {
764
+ this.settings.exposed.push(el[0]);
765
+ } else if (typeof el == 'string') {
766
+ this.settings.exposed.push(el);
767
+ }
768
+ },
769
+
770
+ remove_exposed: function(el){
771
+ var search, i;
772
+ if (el instanceof $) {
773
+ search = el[0]
774
+ } else if (typeof el == 'string'){
775
+ search = el;
776
+ }
777
+
778
+ this.settings.exposed = this.settings.exposed || [];
779
+ i = this.settings.exposed.length;
780
+
781
+ while (i--) {
782
+ if (this.settings.exposed[i] == search) {
783
+ this.settings.exposed.splice(i, 1);
784
+ return;
785
+ }
786
+ }
787
+ },
788
+
789
+ center : function () {
790
+ var $w = $(window);
791
+
792
+ this.settings.$next_tip.css({
793
+ top : ((($w.height() - this.settings.$next_tip.outerHeight()) / 2) + $w.scrollTop()),
794
+ left : ((($w.width() - this.settings.$next_tip.outerWidth()) / 2) + $w.scrollLeft())
795
+ });
796
+
797
+ return true;
798
+ },
799
+
800
+ bottom : function () {
801
+ return /bottom/i.test(this.settings.tip_settings.tip_location);
802
+ },
803
+
804
+ top : function () {
805
+ return /top/i.test(this.settings.tip_settings.tip_location);
806
+ },
807
+
808
+ right : function () {
809
+ return /right/i.test(this.settings.tip_settings.tip_location);
810
+ },
811
+
812
+ left : function () {
813
+ return /left/i.test(this.settings.tip_settings.tip_location);
814
+ },
815
+
816
+ corners : function (el) {
817
+ var w = $(window),
818
+ window_half = w.height() / 2,
819
+ //using this to calculate since scroll may not have finished yet.
820
+ tipOffset = Math.ceil(this.settings.$target.offset().top - window_half + this.settings.$next_tip.outerHeight()),
821
+ right = w.width() + w.scrollLeft(),
822
+ offsetBottom = w.height() + tipOffset,
823
+ bottom = w.height() + w.scrollTop(),
824
+ top = w.scrollTop();
825
+
826
+ if (tipOffset < top) {
827
+ if (tipOffset < 0) {
828
+ top = 0;
829
+ } else {
830
+ top = tipOffset;
831
+ }
832
+ }
833
+
834
+ if (offsetBottom > bottom) {
835
+ bottom = offsetBottom;
836
+ }
837
+
838
+ return [
839
+ el.offset().top < top,
840
+ right < el.offset().left + el.outerWidth(),
841
+ bottom < el.offset().top + el.outerHeight(),
842
+ w.scrollLeft() > el.offset().left
843
+ ];
844
+ },
845
+
846
+ visible : function (hidden_corners) {
847
+ var i = hidden_corners.length;
848
+
849
+ while (i--) {
850
+ if (hidden_corners[i]) return false;
851
+ }
852
+
853
+ return true;
854
+ },
855
+
856
+ nub_position : function (nub, pos, def) {
857
+ if (pos === 'auto') {
858
+ nub.addClass(def);
859
+ } else {
860
+ nub.addClass(pos);
861
+ }
862
+ },
863
+
864
+ startTimer : function () {
865
+ if (this.settings.$li.length) {
866
+ this.settings.automate = setTimeout(function () {
867
+ this.hide();
868
+ this.show();
869
+ this.startTimer();
870
+ }.bind(this), this.settings.timer);
871
+ } else {
872
+ clearTimeout(this.settings.automate);
873
+ }
874
+ },
875
+
876
+ end : function (abort) {
877
+ if (this.settings.cookie_monster) {
878
+ $.cookie(this.settings.cookie_name, 'ridden', { expires: this.settings.cookie_expires, domain: this.settings.cookie_domain });
879
+ }
880
+
881
+ if (this.settings.timer > 0) {
882
+ clearTimeout(this.settings.automate);
883
+ }
884
+
885
+ if (this.settings.modal && this.settings.expose) {
886
+ this.un_expose();
887
+ }
888
+
889
+ // Unplug keystrokes listener
890
+ $(this.scope).off('keyup.joyride')
891
+
892
+ this.settings.$next_tip.data('closed', true);
893
+ this.settings.riding = false;
894
+
895
+ $('.joyride-modal-bg').hide();
896
+ this.settings.$current_tip.hide();
897
+
898
+ if (typeof abort === 'undefined' || abort === false) {
899
+ this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip);
900
+ this.settings.post_ride_callback(this.settings.$li.index(), this.settings.$current_tip);
901
+ }
902
+
903
+ $('.joyride-tip-guide').remove();
904
+ },
905
+
906
+ off : function () {
907
+ $(this.scope).off('.joyride');
908
+ $(window).off('.joyride');
909
+ $('.joyride-close-tip, .joyride-next-tip, .joyride-modal-bg').off('.joyride');
910
+ $('.joyride-tip-guide, .joyride-modal-bg').remove();
911
+ clearTimeout(this.settings.automate);
912
+ this.settings = {};
913
+ },
914
+
915
+ reflow : function () {}
916
+ };
917
+ }(jQuery, window, window.document));