assets-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +65 -0
  8. data/Rakefile +2 -0
  9. data/assets-rails.gemspec +25 -0
  10. data/lib/assets-rails.rb +7 -0
  11. data/lib/assets-rails/engine.rb +9 -0
  12. data/lib/assets-rails/version.rb +5 -0
  13. data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.eot +0 -0
  14. data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.svg +229 -0
  15. data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.ttf +0 -0
  16. data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.woff +0 -0
  17. data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.eot +0 -0
  18. data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.svg +229 -0
  19. data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.ttf +0 -0
  20. data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.woff +0 -0
  21. data/vendor/assets/fonts/font-awesome/v4.2.0/FontAwesome.otf +0 -0
  22. data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.eot +0 -0
  23. data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.svg +520 -0
  24. data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.ttf +0 -0
  25. data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.woff +0 -0
  26. data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.eot +0 -0
  27. data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.svg +19 -0
  28. data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.ttf +0 -0
  29. data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.woff +0 -0
  30. data/vendor/assets/images/fancybox/blank.gif +0 -0
  31. data/vendor/assets/images/fancybox/fancybox_buttons.png +0 -0
  32. data/vendor/assets/images/fancybox/fancybox_loading.gif +0 -0
  33. data/vendor/assets/images/fancybox/fancybox_loading@2x.gif +0 -0
  34. data/vendor/assets/images/fancybox/fancybox_overlay.png +0 -0
  35. data/vendor/assets/images/fancybox/fancybox_sprite.png +0 -0
  36. data/vendor/assets/images/fancybox/fancybox_sprite@2x.png +0 -0
  37. data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/border.png +0 -0
  38. data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/controls.png +0 -0
  39. data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/loading.gif +0 -0
  40. data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/loading_background.png +0 -0
  41. data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/overlay.png +0 -0
  42. data/vendor/assets/images/jquery.colorbox/v1.5.14/example2/controls.png +0 -0
  43. data/vendor/assets/images/jquery.colorbox/v1.5.14/example2/loading.gif +0 -0
  44. data/vendor/assets/images/jquery.colorbox/v1.5.14/example3/controls.png +0 -0
  45. data/vendor/assets/images/jquery.colorbox/v1.5.14/example3/loading.gif +0 -0
  46. data/vendor/assets/images/jquery.colorbox/v1.5.14/example4/border1.png +0 -0
  47. data/vendor/assets/images/jquery.colorbox/v1.5.14/example4/border2.png +0 -0
  48. data/vendor/assets/images/jquery.colorbox/v1.5.14/example4/loading.gif +0 -0
  49. data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/border.png +0 -0
  50. data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/controls.png +0 -0
  51. data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/loading.gif +0 -0
  52. data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/loading_background.png +0 -0
  53. data/vendor/assets/images/jquery.flexslider/bg_play_pause.png +0 -0
  54. data/vendor/assets/images/jquery.owlcarousel/AjaxLoader.gif +0 -0
  55. data/vendor/assets/images/jquery.owlcarousel/grabbing.png +0 -0
  56. data/vendor/assets/images/zebra_datepicker/calendar-disabled.png +0 -0
  57. data/vendor/assets/images/zebra_datepicker/calendar.png +0 -0
  58. data/vendor/assets/images/zebra_datepicker/metallic/default-date.png +0 -0
  59. data/vendor/assets/images/zebra_datepicker/metallic/disabled-date.png +0 -0
  60. data/vendor/assets/images/zebra_datepicker/metallic/header.png +0 -0
  61. data/vendor/assets/images/zebra_datepicker/metallic/selected-date.png +0 -0
  62. data/vendor/assets/javascripts/bootstrap/v3.2.0.js +12 -0
  63. data/vendor/assets/javascripts/bootstrap/v3.2.0/affix.js +142 -0
  64. data/vendor/assets/javascripts/bootstrap/v3.2.0/alert.js +92 -0
  65. data/vendor/assets/javascripts/bootstrap/v3.2.0/button.js +110 -0
  66. data/vendor/assets/javascripts/bootstrap/v3.2.0/carousel.js +223 -0
  67. data/vendor/assets/javascripts/bootstrap/v3.2.0/collapse.js +170 -0
  68. data/vendor/assets/javascripts/bootstrap/v3.2.0/dropdown.js +151 -0
  69. data/vendor/assets/javascripts/bootstrap/v3.2.0/modal.js +280 -0
  70. data/vendor/assets/javascripts/bootstrap/v3.2.0/popover.js +113 -0
  71. data/vendor/assets/javascripts/bootstrap/v3.2.0/scrollspy.js +170 -0
  72. data/vendor/assets/javascripts/bootstrap/v3.2.0/tab.js +128 -0
  73. data/vendor/assets/javascripts/bootstrap/v3.2.0/tooltip.js +457 -0
  74. data/vendor/assets/javascripts/bootstrap/v3.2.0/transition.js +59 -0
  75. data/vendor/assets/javascripts/bootstrap/v3.3.0/affix.js +162 -0
  76. data/vendor/assets/javascripts/bootstrap/v3.3.0/alert.js +94 -0
  77. data/vendor/assets/javascripts/bootstrap/v3.3.0/button.js +116 -0
  78. data/vendor/assets/javascripts/bootstrap/v3.3.0/carousel.js +239 -0
  79. data/vendor/assets/javascripts/bootstrap/v3.3.0/collapse.js +211 -0
  80. data/vendor/assets/javascripts/bootstrap/v3.3.0/dropdown.js +161 -0
  81. data/vendor/assets/javascripts/bootstrap/v3.3.0/modal.js +281 -0
  82. data/vendor/assets/javascripts/bootstrap/v3.3.0/popover.js +119 -0
  83. data/vendor/assets/javascripts/bootstrap/v3.3.0/scrollspy.js +175 -0
  84. data/vendor/assets/javascripts/bootstrap/v3.3.0/tab.js +153 -0
  85. data/vendor/assets/javascripts/bootstrap/v3.3.0/tooltip.js +478 -0
  86. data/vendor/assets/javascripts/bootstrap/v3.3.0/transition.js +59 -0
  87. data/vendor/assets/javascripts/draggabilly/v1.1.1.js +2 -0
  88. data/vendor/assets/javascripts/draggabilly/v1.1.1/draggabilly.js +615 -0
  89. data/vendor/assets/javascripts/imagesloaded/v3.1.8.js +2 -0
  90. data/vendor/assets/javascripts/imagesloaded/v3.1.8/imagesloaded.js +335 -0
  91. data/vendor/assets/javascripts/isotope/v2.0.1.js +1 -0
  92. data/vendor/assets/javascripts/isotope/v2.0.1/isotope.js +628 -0
  93. data/vendor/assets/javascripts/jquery.collageplus/v0.3.3.js +2 -0
  94. data/vendor/assets/javascripts/jquery.collageplus/v0.3.3/jquery.collagecaption.js +143 -0
  95. data/vendor/assets/javascripts/jquery.collageplus/v0.3.3/jquery.collageplus.js +401 -0
  96. data/vendor/assets/javascripts/jquery.collageplus/v0.3.3/remove_whitespace.js +13 -0
  97. data/vendor/assets/javascripts/jquery.colorbox/v1.5.14.js +2 -0
  98. data/vendor/assets/javascripts/jquery.colorbox/v1.5.14/jquery.colorbox.js +1090 -0
  99. data/vendor/assets/javascripts/jquery.expander/v1.4.12.js +1 -0
  100. data/vendor/assets/javascripts/jquery.expander/v1.4.12/jquery.expander.js +453 -0
  101. data/vendor/assets/javascripts/jquery.fakecrop.js +1 -0
  102. data/vendor/assets/javascripts/jquery.fakecrop/jquery.fakecrop.js +153 -0
  103. data/vendor/assets/javascripts/jquery.fancybox/v2.1.5.js +4 -0
  104. data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-buttons.js +122 -0
  105. data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-media.js +199 -0
  106. data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-thumbs.js +162 -0
  107. data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox.js +2020 -0
  108. data/vendor/assets/javascripts/jquery.flexslider/v2.2.2.js +1 -0
  109. data/vendor/assets/javascripts/jquery.flexslider/v2.2.2/jquery.flexslider.js +1157 -0
  110. data/vendor/assets/javascripts/jquery.infinitescroll/v2.0.2.js +2 -0
  111. data/vendor/assets/javascripts/jquery.infinitescroll/v2.0.2/jquery.infinitescroll.js +821 -0
  112. data/vendor/assets/javascripts/jquery.nivo.slider/v3.2.js +2 -0
  113. data/vendor/assets/javascripts/jquery.nivo.slider/v3.2/jquery.nivo.slider.js +662 -0
  114. data/vendor/assets/javascripts/jquery.owlcarousel/v1.3.3.js +2 -0
  115. data/vendor/assets/javascripts/jquery.owlcarousel/v1.3.3/jquery.owlcarousel.js +1517 -0
  116. data/vendor/assets/javascripts/jquery.pageless.js +2 -0
  117. data/vendor/assets/javascripts/jquery.pageless/jquery.pageless.js +251 -0
  118. data/vendor/assets/javascripts/jquery.render/v1.1.0.js +2 -0
  119. data/vendor/assets/javascripts/jquery.render/v1.1.0/jquery.render.js +56 -0
  120. data/vendor/assets/javascripts/jquery.scrollto/v1.4.13.js +2 -0
  121. data/vendor/assets/javascripts/jquery.scrollto/v1.4.13/jquery.scrollto.js +187 -0
  122. data/vendor/assets/javascripts/jquery.timeago/v1.4.1.js +1 -0
  123. data/vendor/assets/javascripts/jquery.timeago/v1.4.1/jquery.timeago.js +214 -0
  124. data/vendor/assets/javascripts/jquery.turbolinks/v2.1.0.js +1 -0
  125. data/vendor/assets/javascripts/jquery.turbolinks/v2.1.0/jquery.turbolinks.js +49 -0
  126. data/vendor/assets/javascripts/jquery/v1.11.1.js +1 -0
  127. data/vendor/assets/javascripts/jquery/v1.11.1/jquery.js +10308 -0
  128. data/vendor/assets/javascripts/jquery/v2.1.1.js +1 -0
  129. data/vendor/assets/javascripts/jquery/v2.1.1/jquery.js +9190 -0
  130. data/vendor/assets/javascripts/masonry/v3.1.5.js +2 -0
  131. data/vendor/assets/javascripts/masonry/v3.1.5/masonry.js +205 -0
  132. data/vendor/assets/javascripts/nprogress/v0.1.6.js +2 -0
  133. data/vendor/assets/javascripts/nprogress/v0.1.6/nprogress-ajax.js +4 -0
  134. data/vendor/assets/javascripts/nprogress/v0.1.6/nprogress-turbolinks.js +5 -0
  135. data/vendor/assets/javascripts/nprogress/v0.1.6/nprogress.js +475 -0
  136. data/vendor/assets/javascripts/responsiveCarousel/v1.2.0.js +2 -0
  137. data/vendor/assets/javascripts/responsiveCarousel/v1.2.0/responsiveCarousel.js +410 -0
  138. data/vendor/assets/javascripts/responsiveslides/v1.54.js +2 -0
  139. data/vendor/assets/javascripts/responsiveslides/v1.54/responsiveslides.js +391 -0
  140. data/vendor/assets/javascripts/zebra_datepicker/v1.8.9.js +2 -0
  141. data/vendor/assets/javascripts/zebra_datepicker/v1.8.9/zebra_datepicker.js +2965 -0
  142. data/vendor/assets/stylesheets/bootstrap/_v3.2.0.scss +52 -0
  143. data/vendor/assets/stylesheets/bootstrap/_v3.3.0.scss +52 -0
  144. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_alerts.scss +68 -0
  145. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_badges.scss +57 -0
  146. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_bootstrap-sprockets.scss +7 -0
  147. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_breadcrumbs.scss +26 -0
  148. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_button-groups.scss +240 -0
  149. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_buttons.scss +157 -0
  150. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_carousel.scss +243 -0
  151. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_close.scss +35 -0
  152. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_code.scss +68 -0
  153. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_component-animations.scss +35 -0
  154. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_dropdowns.scss +215 -0
  155. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_forms.scss +538 -0
  156. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_glyphicons.scss +237 -0
  157. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_grid.scss +84 -0
  158. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_input-groups.scss +166 -0
  159. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_jumbotron.scss +48 -0
  160. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_labels.scss +66 -0
  161. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_list-group.scss +131 -0
  162. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_media.scss +56 -0
  163. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_mixins.scss +39 -0
  164. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_modals.scss +150 -0
  165. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_navbar.scss +659 -0
  166. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_navs.scss +242 -0
  167. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_normalize.scss +425 -0
  168. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_pager.scss +55 -0
  169. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_pagination.scss +88 -0
  170. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_panels.scss +243 -0
  171. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_popovers.scss +133 -0
  172. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_print.scss +101 -0
  173. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_progress-bars.scss +105 -0
  174. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_responsive-embed.scss +34 -0
  175. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_responsive-utilities.scss +174 -0
  176. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_scaffolding.scss +150 -0
  177. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_tables.scss +233 -0
  178. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_theme.scss +258 -0
  179. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_thumbnails.scss +38 -0
  180. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_tooltip.scss +95 -0
  181. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_type.scss +304 -0
  182. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_utilities.scss +57 -0
  183. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_variables.scss +854 -0
  184. data/vendor/assets/stylesheets/bootstrap/v3.2.0/_wells.scss +29 -0
  185. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_alerts.scss +14 -0
  186. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_background-variant.scss +11 -0
  187. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_border-radius.scss +18 -0
  188. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_buttons.scss +50 -0
  189. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_center-block.scss +7 -0
  190. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_clearfix.scss +22 -0
  191. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_forms.scss +84 -0
  192. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_gradients.scss +58 -0
  193. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_grid-framework.scss +81 -0
  194. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_grid.scss +122 -0
  195. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_hide-text.scss +21 -0
  196. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_image.scss +34 -0
  197. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_labels.scss +12 -0
  198. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_list-group.scss +31 -0
  199. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_nav-divider.scss +10 -0
  200. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_nav-vertical-align.scss +9 -0
  201. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_opacity.scss +8 -0
  202. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_pagination.scss +23 -0
  203. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_panels.scss +24 -0
  204. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_progress-bar.scss +10 -0
  205. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_reset-filter.scss +8 -0
  206. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_resize.scss +6 -0
  207. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_responsive-visibility.scss +21 -0
  208. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_size.scss +10 -0
  209. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_tab-focus.scss +9 -0
  210. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_table-row.scss +28 -0
  211. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_text-emphasis.scss +11 -0
  212. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_text-overflow.scss +8 -0
  213. data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_vendor-prefixes.scss +219 -0
  214. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_alerts.scss +68 -0
  215. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_badges.scss +57 -0
  216. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_bootstrap-sprockets.scss +7 -0
  217. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_breadcrumbs.scss +26 -0
  218. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_button-groups.scss +247 -0
  219. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_buttons.scss +160 -0
  220. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_carousel.scss +267 -0
  221. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_close.scss +35 -0
  222. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_code.scss +69 -0
  223. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_component-animations.scss +38 -0
  224. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_dropdowns.scss +213 -0
  225. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_forms.scss +561 -0
  226. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_glyphicons.scss +234 -0
  227. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_grid.scss +84 -0
  228. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_input-groups.scss +166 -0
  229. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_jumbotron.scss +48 -0
  230. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_labels.scss +66 -0
  231. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_list-group.scss +132 -0
  232. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_media.scss +47 -0
  233. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_mixins.scss +39 -0
  234. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_modals.scss +149 -0
  235. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_navbar.scss +661 -0
  236. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_navs.scss +244 -0
  237. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_normalize.scss +427 -0
  238. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_pager.scss +54 -0
  239. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_pagination.scss +88 -0
  240. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_panels.scss +261 -0
  241. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_popovers.scss +134 -0
  242. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_print.scss +107 -0
  243. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_progress-bars.scss +87 -0
  244. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_responsive-embed.scss +35 -0
  245. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_responsive-utilities.scss +174 -0
  246. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_scaffolding.scss +150 -0
  247. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_tables.scss +234 -0
  248. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_theme.scss +260 -0
  249. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_thumbnails.scss +38 -0
  250. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_tooltip.scss +95 -0
  251. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_type.scss +298 -0
  252. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_utilities.scss +56 -0
  253. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_variables.scss +864 -0
  254. data/vendor/assets/stylesheets/bootstrap/v3.3.0/_wells.scss +29 -0
  255. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_alerts.scss +14 -0
  256. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_background-variant.scss +11 -0
  257. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_border-radius.scss +18 -0
  258. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_buttons.scss +52 -0
  259. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_center-block.scss +7 -0
  260. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_clearfix.scss +22 -0
  261. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_forms.scss +88 -0
  262. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_gradients.scss +58 -0
  263. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_grid-framework.scss +81 -0
  264. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_grid.scss +122 -0
  265. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_hide-text.scss +21 -0
  266. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_image.scss +33 -0
  267. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_labels.scss +12 -0
  268. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_list-group.scss +31 -0
  269. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_nav-divider.scss +10 -0
  270. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_nav-vertical-align.scss +9 -0
  271. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_opacity.scss +8 -0
  272. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_pagination.scss +23 -0
  273. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_panels.scss +24 -0
  274. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_progress-bar.scss +10 -0
  275. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_reset-filter.scss +8 -0
  276. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_resize.scss +6 -0
  277. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_responsive-visibility.scss +21 -0
  278. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_size.scss +10 -0
  279. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_tab-focus.scss +9 -0
  280. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_table-row.scss +28 -0
  281. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_text-emphasis.scss +11 -0
  282. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_text-overflow.scss +8 -0
  283. data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_vendor-prefixes.scss +222 -0
  284. data/vendor/assets/stylesheets/font-awesome/v4.2.0.css +3 -0
  285. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_bordered-pulled.scss +16 -0
  286. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_core.scss +11 -0
  287. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_extras.scss +44 -0
  288. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_fixed-width.scss +6 -0
  289. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_icons.scss +552 -0
  290. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_larger.scss +13 -0
  291. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_list.scss +19 -0
  292. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_mixins.scss +25 -0
  293. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_path.scss +14 -0
  294. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_rotated-flipped.scss +20 -0
  295. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_spinning.scss +29 -0
  296. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_stacked.scss +20 -0
  297. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_variables.scss +561 -0
  298. data/vendor/assets/stylesheets/font-awesome/v4.2.0/font-awesome.scss +17 -0
  299. data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example1.css.scss +70 -0
  300. data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example2.css.scss +50 -0
  301. data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example3.css.scss +45 -0
  302. data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example4.css.scss +66 -0
  303. data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example5.css.scss +58 -0
  304. data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5.css +5 -0
  305. data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox-buttons.css.erb +97 -0
  306. data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox-thumbs.css +55 -0
  307. data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox.css.erb +274 -0
  308. data/vendor/assets/stylesheets/jquery.flexslider/v2.2.2.css +3 -0
  309. data/vendor/assets/stylesheets/jquery.flexslider/v2.2.2/jquery.flexslider.scss +96 -0
  310. data/vendor/assets/stylesheets/jquery.nivo.slider/v3.2.css +3 -0
  311. data/vendor/assets/stylesheets/jquery.nivo.slider/v3.2/jquery.nivo.slider.css +113 -0
  312. data/vendor/assets/stylesheets/jquery.owlcarousel/v1.3.3/jquery.owlcarousel.scss +71 -0
  313. data/vendor/assets/stylesheets/jquery.owlcarousel/v1.3.3/theme.scss +79 -0
  314. data/vendor/assets/stylesheets/jquery.owlcarousel/v1.3.3/transitions.scss +163 -0
  315. data/vendor/assets/stylesheets/nprogress/v0.1.6/nprogress-bootstrap.css +4 -0
  316. data/vendor/assets/stylesheets/nprogress/v0.1.6/nprogress.css.scss +77 -0
  317. data/vendor/assets/stylesheets/responsiveslides/v1.54.css +3 -0
  318. data/vendor/assets/stylesheets/responsiveslides/v1.54/responsiveslides.css +33 -0
  319. data/vendor/assets/stylesheets/zebra_datepicker/v1.8.9/bootstrap.scss +95 -0
  320. data/vendor/assets/stylesheets/zebra_datepicker/v1.8.9/default.scss +102 -0
  321. data/vendor/assets/stylesheets/zebra_datepicker/v1.8.9/metallic.scss +106 -0
  322. metadata +407 -0
@@ -0,0 +1 @@
1
+ //= require jquery.expander/v1.4.12/jquery.expander.js
@@ -0,0 +1,453 @@
1
+ /*!
2
+ * Expander - v1.4.12 - 2014-10-05
3
+ * http://plugins.learningjquery.com/expander/
4
+ * Copyright (c) 2014 Karl Swedberg
5
+ * Licensed MIT (http://www.opensource.org/licenses/mit-license.php)
6
+ */
7
+
8
+ (function($) {
9
+ $.expander = {
10
+ version: '1.4.12',
11
+ defaults: {
12
+ // the number of characters at which the contents will be sliced into two parts.
13
+ slicePoint: 100,
14
+
15
+ // a string of characters at which to slice the contents into two parts,
16
+ // but only if the string appears before slicePoint
17
+ // Useful for slicing at the first line break, e.g. {sliceOn: '<br'}
18
+ sliceOn: null,
19
+
20
+ // whether to keep the last word of the summary whole (true) or let it slice in the middle of a word (false)
21
+ preserveWords: true,
22
+
23
+ // whether to count and display the number of words inside the collapsed text
24
+ showWordCount: false,
25
+
26
+ // What to display around the counted number of words, set to '{{count}}' to show only the number
27
+ wordCountText: ' ({{count}} words)',
28
+
29
+ // a threshold of sorts for whether to initially hide/collapse part of the element's contents.
30
+ // If after slicing the contents in two there are fewer words in the second part than
31
+ // the value set by widow, we won't bother hiding/collapsing anything.
32
+ widow: 4,
33
+
34
+ // text displayed in a link instead of the hidden part of the element.
35
+ // clicking this will expand/show the hidden/collapsed text
36
+ expandText: 'read more',
37
+ expandPrefix: '&hellip; ',
38
+
39
+ expandAfterSummary: false,
40
+
41
+ // Possible word endings to test against for when preserveWords: true
42
+ wordEnd: /(&(?:[^;]+;)?|[a-zA-Z\u00C0-\u0100]+|[^\u0000-\u007F]+)$/,
43
+
44
+ // class names for summary element and detail element
45
+ summaryClass: 'summary',
46
+ detailClass: 'details',
47
+
48
+ // class names for <span> around "read-more" link and "read-less" link
49
+ moreClass: 'read-more',
50
+ lessClass: 'read-less',
51
+
52
+ // class names for <a> around "read-more" link and "read-less" link
53
+ moreLinkClass: 'more-link',
54
+ lessLinkClass: 'less-link',
55
+
56
+ // number of milliseconds after text has been expanded at which to collapse the text again.
57
+ // when 0, no auto-collapsing
58
+ collapseTimer: 0,
59
+
60
+ // effects for expanding and collapsing
61
+ expandEffect: 'slideDown',
62
+ expandSpeed: 250,
63
+ collapseEffect: 'slideUp',
64
+ collapseSpeed: 200,
65
+
66
+ // allow the user to re-collapse the expanded text.
67
+ userCollapse: true,
68
+
69
+ // text to use for the link to re-collapse the text
70
+ userCollapseText: 'read less',
71
+ userCollapsePrefix: ' ',
72
+
73
+
74
+ // all callback functions have the this keyword mapped to the element in the jQuery set when .expander() is called
75
+
76
+ onSlice: null, // function() {}
77
+ beforeExpand: null, // function() {},
78
+ afterExpand: null, // function() {},
79
+ onCollapse: null, // function(byUser) {}
80
+ afterCollapse: null // function() {}
81
+ }
82
+ };
83
+
84
+ $.fn.expander = function(options) {
85
+ var meth = 'init';
86
+
87
+ if (typeof options === 'string') {
88
+ meth = options;
89
+ options = {};
90
+ }
91
+
92
+ var opts = $.extend({}, $.expander.defaults, options),
93
+ rSelfClose = /^<(?:area|br|col|embed|hr|img|input|link|meta|param).*>$/i,
94
+ rAmpWordEnd = opts.wordEnd,
95
+ rOpenCloseTag = /<\/?(\w+)[^>]*>/g,
96
+ rOpenTag = /<(\w+)[^>]*>/g,
97
+ rCloseTag = /<\/(\w+)>/g,
98
+ rLastCloseTag = /(<\/([^>]+)>)\s*$/,
99
+ rTagPlus = /^(<[^>]+>)+.?/,
100
+ rMultiSpace = /\s\s+/g,
101
+ delayedCollapse;
102
+
103
+ var removeSpaces = function(str) {
104
+ return $.trim( str || '' ).replace(rMultiSpace, ' ');
105
+ };
106
+
107
+ var methods = {
108
+ init: function() {
109
+ this.each(function() {
110
+ var i, l, tmp, newChar, summTagless, summOpens, summCloses,
111
+ lastCloseTag, detailText, detailTagless, html, expand,
112
+ $thisDetails, $readMore,
113
+ openTagsForDetails = [],
114
+ closeTagsForsummaryText = [],
115
+ strayChars = '',
116
+ defined = {},
117
+ thisEl = this,
118
+ $this = $(this),
119
+ $summEl = $([]),
120
+ o = $.extend({}, opts, $this.data('expander') || $.meta && $this.data() || {}),
121
+ hasDetails = !!$this.find('.' + o.detailClass).length,
122
+ hasBlocks = !!$this.find('*').filter(function() {
123
+ var display = $(this).css('display');
124
+ return (/^block|table|list/).test(display);
125
+ }).length,
126
+ el = hasBlocks ? 'div' : 'span',
127
+ detailSelector = el + '.' + o.detailClass,
128
+ moreClass = o.moreClass + '',
129
+ lessClass = o.lessClass + '',
130
+ expandSpeed = o.expandSpeed || 0,
131
+ allHtml = removeSpaces( $this.html() ),
132
+ summaryText = allHtml.slice(0, o.slicePoint);
133
+
134
+ // allow multiple classes for more/less links
135
+ o.moreSelector = 'span.' + moreClass.split(' ').join('.');
136
+ o.lessSelector = 'span.' + lessClass.split(' ').join('.');
137
+ // bail out if we've already set up the expander on this element
138
+ if ( $.data(this, 'expanderInit') ) {
139
+ return;
140
+ }
141
+
142
+ $.data(this, 'expanderInit', true);
143
+ $.data(this, 'expander', o);
144
+ // determine which callback functions are defined
145
+ $.each(['onSlice','beforeExpand', 'afterExpand', 'onCollapse', 'afterCollapse'], function(index, val) {
146
+ defined[val] = $.isFunction(o[val]);
147
+ });
148
+
149
+ // back up if we're in the middle of a tag or word
150
+ summaryText = backup(summaryText);
151
+
152
+ // summary text sans tags length
153
+ summTagless = summaryText.replace(rOpenCloseTag, '').length;
154
+
155
+ // add more characters to the summary, one for each character in the tags
156
+ while (summTagless < o.slicePoint) {
157
+ newChar = allHtml.charAt(summaryText.length);
158
+ if (newChar === '<') {
159
+ newChar = allHtml.slice(summaryText.length).match(rTagPlus)[0];
160
+ }
161
+ summaryText += newChar;
162
+ summTagless++;
163
+ }
164
+
165
+ //SliceOn script, Closes #16, resolves #59
166
+ //Original SliceEarlierAt code (since modfied): Sascha Peilicke @saschpe
167
+ if (o.sliceOn) {
168
+ var sliceOnIndex = summaryText.indexOf(o.sliceOn);
169
+
170
+ if (sliceOnIndex !== -1 && sliceOnIndex < o.slicePoint) {
171
+ o.slicePoint = sliceOnIndex;
172
+ summaryText = allHtml.slice(0, o.slicePoint);
173
+ }
174
+ }
175
+
176
+ summaryText = backup(summaryText, o.preserveWords && allHtml.slice(summaryText.length).length);
177
+
178
+ // separate open tags from close tags and clean up the lists
179
+ summOpens = summaryText.match(rOpenTag) || [];
180
+ summCloses = summaryText.match(rCloseTag) || [];
181
+
182
+ // filter out self-closing tags
183
+ tmp = [];
184
+ $.each(summOpens, function(index, val) {
185
+ if ( !rSelfClose.test(val) ) {
186
+ tmp.push(val);
187
+ }
188
+ });
189
+ summOpens = tmp;
190
+
191
+ // strip close tags to just the tag name
192
+ l = summCloses.length;
193
+ for (i = 0; i < l; i++) {
194
+ summCloses[i] = summCloses[i].replace(rCloseTag, '$1');
195
+ }
196
+
197
+ // tags that start in summary and end in detail need:
198
+ // a). close tag at end of summary
199
+ // b). open tag at beginning of detail
200
+ $.each(summOpens, function(index, val) {
201
+ var thisTagName = val.replace(rOpenTag, '$1');
202
+ var closePosition = $.inArray(thisTagName, summCloses);
203
+
204
+ if (closePosition === -1) {
205
+ openTagsForDetails.push(val);
206
+ closeTagsForsummaryText.push('</' + thisTagName + '>');
207
+
208
+ } else {
209
+ summCloses.splice(closePosition, 1);
210
+ }
211
+ });
212
+
213
+ // reverse the order of the close tags for the summary so they line up right
214
+ closeTagsForsummaryText.reverse();
215
+
216
+ // create necessary summary and detail elements if they don't already exist
217
+ if ( !hasDetails ) {
218
+
219
+ // end script if there is no detail text or if detail has fewer words than widow option
220
+ detailText = allHtml.slice(summaryText.length);
221
+ detailTagless = $.trim( detailText.replace(rOpenCloseTag, '') );
222
+
223
+ if ( detailTagless === '' || detailTagless.split(/\s+/).length < o.widow ) {
224
+ return;
225
+ }
226
+ // otherwise, continue...
227
+ lastCloseTag = closeTagsForsummaryText.pop() || '';
228
+ summaryText += closeTagsForsummaryText.join('');
229
+ detailText = openTagsForDetails.join('') + detailText;
230
+
231
+ } else {
232
+ // assume that even if there are details, we still need readMore/readLess/summary elements
233
+ // (we already bailed out earlier when readMore el was found)
234
+ // but we need to create els differently
235
+
236
+ // remove the detail from the rest of the content
237
+ detailText = $this.find(detailSelector).remove().html();
238
+
239
+ // The summary is what's left
240
+ summaryText = $this.html();
241
+
242
+ // allHtml is the summary and detail combined (this is needed when content has block-level elements)
243
+ allHtml = summaryText + detailText;
244
+
245
+ lastCloseTag = '';
246
+ }
247
+ o.moreLabel = $this.find(o.moreSelector).length ? '' : buildMoreLabel(o, detailText);
248
+
249
+ if (hasBlocks) {
250
+ detailText = allHtml;
251
+ //Fixes issue #89; Tested by 'split html escapes'
252
+ } else if (summaryText.charAt(summaryText.length-1) === '&') {
253
+ strayChars = /^[#\w\d\\]+;/.exec(detailText);
254
+ if (strayChars) {
255
+ detailText = detailText.slice(strayChars[0].length);
256
+ summaryText += strayChars[0];
257
+ }
258
+ }
259
+ summaryText += lastCloseTag;
260
+
261
+ // onSlice callback
262
+ o.summary = summaryText;
263
+ o.details = detailText;
264
+ o.lastCloseTag = lastCloseTag;
265
+
266
+ if (defined.onSlice) {
267
+ // user can choose to return a modified options object
268
+ // one last chance for user to change the options. sneaky, huh?
269
+ // but could be tricky so use at your own risk.
270
+ tmp = o.onSlice.call(thisEl, o);
271
+
272
+ // so, if the returned value from the onSlice function is an object with a details property, we'll use that!
273
+ o = tmp && tmp.details ? tmp : o;
274
+ }
275
+
276
+ // build the html with summary and detail and use it to replace old contents
277
+ html = buildHTML(o, hasBlocks);
278
+
279
+ $this.html( html );
280
+
281
+ // set up details and summary for expanding/collapsing
282
+ $thisDetails = $this.find(detailSelector);
283
+ $readMore = $this.find(o.moreSelector);
284
+
285
+ // Hide details span using collapseEffect unless
286
+ // expandEffect is NOT slideDown and collapseEffect IS slideUp.
287
+ // The slideUp effect sets span's "default" display to
288
+ // inline-block. This is necessary for slideDown, but
289
+ // problematic for other "showing" animations.
290
+ // Fixes #46
291
+ if (o.collapseEffect === 'slideUp' && o.expandEffect !== 'slideDown' || $this.is(':hidden')) {
292
+ $thisDetails.css({display: 'none'});
293
+ } else {
294
+ $thisDetails[o.collapseEffect](0);
295
+ }
296
+
297
+ $summEl = $this.find('div.' + o.summaryClass);
298
+
299
+ expand = function(event) {
300
+ event.preventDefault();
301
+ $readMore.hide();
302
+ $summEl.hide();
303
+ if (defined.beforeExpand) {
304
+ o.beforeExpand.call(thisEl);
305
+ }
306
+
307
+ $thisDetails.stop(false, true)[o.expandEffect](expandSpeed, function() {
308
+ $thisDetails.css({zoom: ''});
309
+ if (defined.afterExpand) {o.afterExpand.call(thisEl);}
310
+ delayCollapse(o, $thisDetails, thisEl);
311
+ });
312
+ };
313
+
314
+ $readMore.find('a').unbind('click.expander').bind('click.expander', expand);
315
+
316
+ if ( o.userCollapse && !$this.find(o.lessSelector).length ) {
317
+ $this
318
+ .find(detailSelector)
319
+ .append('<span class="' + o.lessClass + '">' + o.userCollapsePrefix + '<a href="#" class="'+ o.lessLinkClass +'">' + o.userCollapseText + '</a></span>');
320
+ }
321
+
322
+ $this
323
+ .find(o.lessSelector + ' a')
324
+ .unbind('click.expander')
325
+ .bind('click.expander', function(event) {
326
+ event.preventDefault();
327
+ clearTimeout(delayedCollapse);
328
+ var $detailsCollapsed = $(this).closest(detailSelector);
329
+ reCollapse(o, $detailsCollapsed);
330
+ if (defined.onCollapse) {
331
+ o.onCollapse.call(thisEl, true);
332
+ }
333
+ });
334
+
335
+ }); // this.each
336
+ },
337
+ destroy: function() {
338
+
339
+ this.each(function() {
340
+ var o, details,
341
+ $this = $(this);
342
+
343
+ if ( !$this.data('expanderInit') ) {
344
+ return;
345
+ }
346
+
347
+ o = $.extend({}, $this.data('expander') || {}, opts);
348
+ details = $this.find('.' + o.detailClass).contents();
349
+
350
+ $this.removeData('expanderInit');
351
+ $this.removeData('expander');
352
+
353
+ $this.find(o.moreSelector).remove();
354
+ $this.find('.' + o.summaryClass).remove();
355
+ $this.find('.' + o.detailClass).after(details).remove();
356
+ $this.find(o.lessSelector).remove();
357
+
358
+ });
359
+ }
360
+ };
361
+
362
+ // run the methods (almost always "init")
363
+ if ( methods[meth] ) {
364
+ methods[ meth ].call(this);
365
+ }
366
+
367
+ // utility functions
368
+ function buildHTML(o, blocks) {
369
+ var el = 'span',
370
+ summary = o.summary,
371
+ closingTagParts = rLastCloseTag.exec(summary),
372
+ closingTag = closingTagParts ? closingTagParts[2].toLowerCase() : '';
373
+ if ( blocks ) {
374
+ el = 'div';
375
+
376
+ // if summary ends with a close tag, tuck the moreLabel inside it
377
+ if ( closingTagParts && closingTag !== 'a' && !o.expandAfterSummary ) {
378
+ summary = summary.replace(rLastCloseTag, o.moreLabel + '$1');
379
+ } else {
380
+ // otherwise (e.g. if ends with self-closing tag) just add moreLabel after summary
381
+ // fixes #19
382
+ summary += o.moreLabel;
383
+ }
384
+
385
+ // and wrap it in a div
386
+ summary = '<div class="' + o.summaryClass + '">' + summary + '</div>';
387
+ } else {
388
+ summary += o.moreLabel;
389
+ }
390
+
391
+ return [
392
+ summary,
393
+ ' <',
394
+ el + ' class="' + o.detailClass + '"',
395
+ '>',
396
+ o.details,
397
+ '</' + el + '>'
398
+ ].join('');
399
+ }
400
+
401
+ function buildMoreLabel(o, detailText) {
402
+ var ret = '<span class="' + o.moreClass + '">' + o.expandPrefix;
403
+
404
+ if (o.showWordCount) {
405
+
406
+ o.wordCountText = o.wordCountText.replace(/\{\{count\}\}/, detailText.replace(rOpenCloseTag, '').replace(/\&(?:amp|nbsp);/g, '').replace(/(?:^\s+|\s+$)/, '').match(/\w+/g).length);
407
+
408
+ } else {
409
+ o.wordCountText = '';
410
+ }
411
+ ret += '<a href="#" class="' + o.moreLinkClass + '">' + o.expandText + o.wordCountText + '</a></span>';
412
+ return ret;
413
+ }
414
+
415
+ function backup(txt, preserveWords) {
416
+ if ( txt.lastIndexOf('<') > txt.lastIndexOf('>') ) {
417
+ txt = txt.slice( 0, txt.lastIndexOf('<') );
418
+ }
419
+ if (preserveWords) {
420
+ txt = txt.replace(rAmpWordEnd,'');
421
+ }
422
+
423
+ return $.trim(txt);
424
+ }
425
+
426
+ function reCollapse(o, el) {
427
+ el.stop(true, true)[o.collapseEffect](o.collapseSpeed, function() {
428
+ var prevMore = el.prev('span.' + o.moreClass).show();
429
+ if (!prevMore.length) {
430
+ el.parent().children('div.' + o.summaryClass).show()
431
+ .find('span.' + o.moreClass).show();
432
+ }
433
+ if (o.afterCollapse) {o.afterCollapse.call(el);}
434
+ });
435
+ }
436
+
437
+ function delayCollapse(option, $collapseEl, thisEl) {
438
+ if (option.collapseTimer) {
439
+ delayedCollapse = setTimeout(function() {
440
+ reCollapse(option, $collapseEl);
441
+ if ( $.isFunction(option.onCollapse) ) {
442
+ option.onCollapse.call(thisEl, false);
443
+ }
444
+ }, option.collapseTimer);
445
+ }
446
+ }
447
+
448
+ return this;
449
+ };
450
+
451
+ // plugin defaults
452
+ $.fn.expander.defaults = $.expander.defaults;
453
+ })(jQuery);