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,13 @@
1
+ ;(function( $ ) {
2
+
3
+ $.fn.removeWhitespace = function()
4
+ {
5
+ this.contents().filter(
6
+ function() {
7
+ return (this.nodeType == 3 && !/\S/.test(this.nodeValue));
8
+ }
9
+ ).remove();
10
+ return this;
11
+ }
12
+
13
+ })( jQuery );
@@ -0,0 +1,2 @@
1
+ // https://github.com/jackmoore/colorbox
2
+ //= require jquery.colorbox/v1.5.14/jquery.colorbox.js
@@ -0,0 +1,1090 @@
1
+ /*!
2
+ Colorbox 1.5.14
3
+ license: MIT
4
+ http://www.jacklmoore.com/colorbox
5
+ */
6
+ (function ($, document, window) {
7
+ var
8
+ // Default settings object.
9
+ // See http://jacklmoore.com/colorbox for details.
10
+ defaults = {
11
+ // data sources
12
+ html: false,
13
+ photo: false,
14
+ iframe: false,
15
+ inline: false,
16
+
17
+ // behavior and appearance
18
+ transition: "elastic",
19
+ speed: 300,
20
+ fadeOut: 300,
21
+ width: false,
22
+ initialWidth: "600",
23
+ innerWidth: false,
24
+ maxWidth: false,
25
+ height: false,
26
+ initialHeight: "450",
27
+ innerHeight: false,
28
+ maxHeight: false,
29
+ scalePhotos: true,
30
+ scrolling: true,
31
+ opacity: 0.9,
32
+ preloading: true,
33
+ className: false,
34
+ overlayClose: true,
35
+ escKey: true,
36
+ arrowKey: true,
37
+ top: false,
38
+ bottom: false,
39
+ left: false,
40
+ right: false,
41
+ fixed: false,
42
+ data: undefined,
43
+ closeButton: true,
44
+ fastIframe: true,
45
+ open: false,
46
+ reposition: true,
47
+ loop: true,
48
+ slideshow: false,
49
+ slideshowAuto: true,
50
+ slideshowSpeed: 2500,
51
+ slideshowStart: "start slideshow",
52
+ slideshowStop: "stop slideshow",
53
+ photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,
54
+
55
+ // alternate image paths for high-res displays
56
+ retinaImage: false,
57
+ retinaUrl: false,
58
+ retinaSuffix: '@2x.$1',
59
+
60
+ // internationalization
61
+ current: "image {current} of {total}",
62
+ previous: "previous",
63
+ next: "next",
64
+ close: "close",
65
+ xhrError: "This content failed to load.",
66
+ imgError: "This image failed to load.",
67
+
68
+ // accessbility
69
+ returnFocus: true,
70
+ trapFocus: true,
71
+
72
+ // callbacks
73
+ onOpen: false,
74
+ onLoad: false,
75
+ onComplete: false,
76
+ onCleanup: false,
77
+ onClosed: false,
78
+
79
+ rel: function() {
80
+ return this.rel;
81
+ },
82
+ href: function() {
83
+ // using this.href would give the absolute url, when the href may have been inteded as a selector (e.g. '#container')
84
+ return $(this).attr('href');
85
+ },
86
+ title: function() {
87
+ return this.title;
88
+ }
89
+ },
90
+
91
+ // Abstracting the HTML and event identifiers for easy rebranding
92
+ colorbox = 'colorbox',
93
+ prefix = 'cbox',
94
+ boxElement = prefix + 'Element',
95
+
96
+ // Events
97
+ event_open = prefix + '_open',
98
+ event_load = prefix + '_load',
99
+ event_complete = prefix + '_complete',
100
+ event_cleanup = prefix + '_cleanup',
101
+ event_closed = prefix + '_closed',
102
+ event_purge = prefix + '_purge',
103
+
104
+ // Cached jQuery Object Variables
105
+ $overlay,
106
+ $box,
107
+ $wrap,
108
+ $content,
109
+ $topBorder,
110
+ $leftBorder,
111
+ $rightBorder,
112
+ $bottomBorder,
113
+ $related,
114
+ $window,
115
+ $loaded,
116
+ $loadingBay,
117
+ $loadingOverlay,
118
+ $title,
119
+ $current,
120
+ $slideshow,
121
+ $next,
122
+ $prev,
123
+ $close,
124
+ $groupControls,
125
+ $events = $('<a/>'), // $({}) would be prefered, but there is an issue with jQuery 1.4.2
126
+
127
+ // Variables for cached values or use across multiple functions
128
+ settings,
129
+ interfaceHeight,
130
+ interfaceWidth,
131
+ loadedHeight,
132
+ loadedWidth,
133
+ index,
134
+ photo,
135
+ open,
136
+ active,
137
+ closing,
138
+ loadingTimer,
139
+ publicMethod,
140
+ div = "div",
141
+ requests = 0,
142
+ previousCSS = {},
143
+ init;
144
+
145
+ // ****************
146
+ // HELPER FUNCTIONS
147
+ // ****************
148
+
149
+ // Convenience function for creating new jQuery objects
150
+ function $tag(tag, id, css) {
151
+ var element = document.createElement(tag);
152
+
153
+ if (id) {
154
+ element.id = prefix + id;
155
+ }
156
+
157
+ if (css) {
158
+ element.style.cssText = css;
159
+ }
160
+
161
+ return $(element);
162
+ }
163
+
164
+ // Get the window height using innerHeight when available to avoid an issue with iOS
165
+ // http://bugs.jquery.com/ticket/6724
166
+ function winheight() {
167
+ return window.innerHeight ? window.innerHeight : $(window).height();
168
+ }
169
+
170
+ function Settings(element, options) {
171
+ if (options !== Object(options)) {
172
+ options = {};
173
+ }
174
+
175
+ this.cache = {};
176
+ this.el = element;
177
+
178
+ this.value = function(key) {
179
+ var dataAttr;
180
+
181
+ if (this.cache[key] === undefined) {
182
+ dataAttr = $(this.el).attr('data-cbox-'+key);
183
+
184
+ if (dataAttr !== undefined) {
185
+ this.cache[key] = dataAttr;
186
+ } else if (options[key] !== undefined) {
187
+ this.cache[key] = options[key];
188
+ } else if (defaults[key] !== undefined) {
189
+ this.cache[key] = defaults[key];
190
+ }
191
+ }
192
+
193
+ return this.cache[key];
194
+ };
195
+
196
+ this.get = function(key) {
197
+ var value = this.value(key);
198
+ return $.isFunction(value) ? value.call(this.el, this) : value;
199
+ };
200
+ }
201
+
202
+ // Determine the next and previous members in a group.
203
+ function getIndex(increment) {
204
+ var
205
+ max = $related.length,
206
+ newIndex = (index + increment) % max;
207
+
208
+ return (newIndex < 0) ? max + newIndex : newIndex;
209
+ }
210
+
211
+ // Convert '%' and 'px' values to integers
212
+ function setSize(size, dimension) {
213
+ return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : winheight()) / 100) : 1) * parseInt(size, 10));
214
+ }
215
+
216
+ // Checks an href to see if it is a photo.
217
+ // There is a force photo option (photo: true) for hrefs that cannot be matched by the regex.
218
+ function isImage(settings, url) {
219
+ return settings.get('photo') || settings.get('photoRegex').test(url);
220
+ }
221
+
222
+ function retinaUrl(settings, url) {
223
+ return settings.get('retinaUrl') && window.devicePixelRatio > 1 ? url.replace(settings.get('photoRegex'), settings.get('retinaSuffix')) : url;
224
+ }
225
+
226
+ function trapFocus(e) {
227
+ if ('contains' in $box[0] && !$box[0].contains(e.target) && e.target !== $overlay[0]) {
228
+ e.stopPropagation();
229
+ $box.focus();
230
+ }
231
+ }
232
+
233
+ function setClass(str) {
234
+ if (setClass.str !== str) {
235
+ $box.add($overlay).removeClass(setClass.str).addClass(str);
236
+ setClass.str = str;
237
+ }
238
+ }
239
+
240
+ function getRelated(rel) {
241
+ index = 0;
242
+
243
+ if (rel && rel !== false && rel !== 'nofollow') {
244
+ $related = $('.' + boxElement).filter(function () {
245
+ var options = $.data(this, colorbox);
246
+ var settings = new Settings(this, options);
247
+ return (settings.get('rel') === rel);
248
+ });
249
+ index = $related.index(settings.el);
250
+
251
+ // Check direct calls to Colorbox.
252
+ if (index === -1) {
253
+ $related = $related.add(settings.el);
254
+ index = $related.length - 1;
255
+ }
256
+ } else {
257
+ $related = $(settings.el);
258
+ }
259
+ }
260
+
261
+ function trigger(event) {
262
+ // for external use
263
+ $(document).trigger(event);
264
+ // for internal use
265
+ $events.triggerHandler(event);
266
+ }
267
+
268
+ var slideshow = (function(){
269
+ var active,
270
+ className = prefix + "Slideshow_",
271
+ click = "click." + prefix,
272
+ timeOut;
273
+
274
+ function clear () {
275
+ clearTimeout(timeOut);
276
+ }
277
+
278
+ function set() {
279
+ if (settings.get('loop') || $related[index + 1]) {
280
+ clear();
281
+ timeOut = setTimeout(publicMethod.next, settings.get('slideshowSpeed'));
282
+ }
283
+ }
284
+
285
+ function start() {
286
+ $slideshow
287
+ .html(settings.get('slideshowStop'))
288
+ .unbind(click)
289
+ .one(click, stop);
290
+
291
+ $events
292
+ .bind(event_complete, set)
293
+ .bind(event_load, clear);
294
+
295
+ $box.removeClass(className + "off").addClass(className + "on");
296
+ }
297
+
298
+ function stop() {
299
+ clear();
300
+
301
+ $events
302
+ .unbind(event_complete, set)
303
+ .unbind(event_load, clear);
304
+
305
+ $slideshow
306
+ .html(settings.get('slideshowStart'))
307
+ .unbind(click)
308
+ .one(click, function () {
309
+ publicMethod.next();
310
+ start();
311
+ });
312
+
313
+ $box.removeClass(className + "on").addClass(className + "off");
314
+ }
315
+
316
+ function reset() {
317
+ active = false;
318
+ $slideshow.hide();
319
+ clear();
320
+ $events
321
+ .unbind(event_complete, set)
322
+ .unbind(event_load, clear);
323
+ $box.removeClass(className + "off " + className + "on");
324
+ }
325
+
326
+ return function(){
327
+ if (active) {
328
+ if (!settings.get('slideshow')) {
329
+ $events.unbind(event_cleanup, reset);
330
+ reset();
331
+ }
332
+ } else {
333
+ if (settings.get('slideshow') && $related[1]) {
334
+ active = true;
335
+ $events.one(event_cleanup, reset);
336
+ if (settings.get('slideshowAuto')) {
337
+ start();
338
+ } else {
339
+ stop();
340
+ }
341
+ $slideshow.show();
342
+ }
343
+ }
344
+ };
345
+
346
+ }());
347
+
348
+
349
+ function launch(element) {
350
+ var options;
351
+
352
+ if (!closing) {
353
+
354
+ options = $(element).data(colorbox);
355
+
356
+ settings = new Settings(element, options);
357
+
358
+ getRelated(settings.get('rel'));
359
+
360
+ if (!open) {
361
+ open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
362
+
363
+ setClass(settings.get('className'));
364
+
365
+ // Show colorbox so the sizes can be calculated in older versions of jQuery
366
+ $box.css({visibility:'hidden', display:'block', opacity:''});
367
+
368
+ $loaded = $tag(div, 'LoadedContent', 'width:0; height:0; overflow:hidden; visibility:hidden');
369
+ $content.css({width:'', height:''}).append($loaded);
370
+
371
+ // Cache values needed for size calculations
372
+ interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();
373
+ interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
374
+ loadedHeight = $loaded.outerHeight(true);
375
+ loadedWidth = $loaded.outerWidth(true);
376
+
377
+ // Opens inital empty Colorbox prior to content being loaded.
378
+ var initialWidth = setSize(settings.get('initialWidth'), 'x');
379
+ var initialHeight = setSize(settings.get('initialHeight'), 'y');
380
+ var maxWidth = settings.get('maxWidth');
381
+ var maxHeight = settings.get('maxHeight');
382
+
383
+ settings.w = (maxWidth !== false ? Math.min(initialWidth, setSize(maxWidth, 'x')) : initialWidth) - loadedWidth - interfaceWidth;
384
+ settings.h = (maxHeight !== false ? Math.min(initialHeight, setSize(maxHeight, 'y')) : initialHeight) - loadedHeight - interfaceHeight;
385
+
386
+ $loaded.css({width:'', height:settings.h});
387
+ publicMethod.position();
388
+
389
+ trigger(event_open);
390
+ settings.get('onOpen');
391
+
392
+ $groupControls.add($title).hide();
393
+
394
+ $box.focus();
395
+
396
+ if (settings.get('trapFocus')) {
397
+ // Confine focus to the modal
398
+ // Uses event capturing that is not supported in IE8-
399
+ if (document.addEventListener) {
400
+
401
+ document.addEventListener('focus', trapFocus, true);
402
+
403
+ $events.one(event_closed, function () {
404
+ document.removeEventListener('focus', trapFocus, true);
405
+ });
406
+ }
407
+ }
408
+
409
+ // Return focus on closing
410
+ if (settings.get('returnFocus')) {
411
+ $events.one(event_closed, function () {
412
+ $(settings.el).focus();
413
+ });
414
+ }
415
+ }
416
+
417
+ var opacity = parseFloat(settings.get('opacity'));
418
+ $overlay.css({
419
+ opacity: opacity === opacity ? opacity : '',
420
+ cursor: settings.get('overlayClose') ? 'pointer' : '',
421
+ visibility: 'visible'
422
+ }).show();
423
+
424
+ if (settings.get('closeButton')) {
425
+ $close.html(settings.get('close')).appendTo($content);
426
+ } else {
427
+ $close.appendTo('<div/>'); // replace with .detach() when dropping jQuery < 1.4
428
+ }
429
+
430
+ load();
431
+ }
432
+ }
433
+
434
+ // Colorbox's markup needs to be added to the DOM prior to being called
435
+ // so that the browser will go ahead and load the CSS background images.
436
+ function appendHTML() {
437
+ if (!$box) {
438
+ init = false;
439
+ $window = $(window);
440
+ $box = $tag(div).attr({
441
+ id: colorbox,
442
+ 'class': $.support.opacity === false ? prefix + 'IE' : '', // class for optional IE8 & lower targeted CSS.
443
+ role: 'dialog',
444
+ tabindex: '-1'
445
+ }).hide();
446
+ $overlay = $tag(div, "Overlay").hide();
447
+ $loadingOverlay = $([$tag(div, "LoadingOverlay")[0],$tag(div, "LoadingGraphic")[0]]);
448
+ $wrap = $tag(div, "Wrapper");
449
+ $content = $tag(div, "Content").append(
450
+ $title = $tag(div, "Title"),
451
+ $current = $tag(div, "Current"),
452
+ $prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
453
+ $next = $('<button type="button"/>').attr({id:prefix+'Next'}),
454
+ $slideshow = $tag('button', "Slideshow"),
455
+ $loadingOverlay
456
+ );
457
+
458
+ $close = $('<button type="button"/>').attr({id:prefix+'Close'});
459
+
460
+ $wrap.append( // The 3x3 Grid that makes up Colorbox
461
+ $tag(div).append(
462
+ $tag(div, "TopLeft"),
463
+ $topBorder = $tag(div, "TopCenter"),
464
+ $tag(div, "TopRight")
465
+ ),
466
+ $tag(div, false, 'clear:left').append(
467
+ $leftBorder = $tag(div, "MiddleLeft"),
468
+ $content,
469
+ $rightBorder = $tag(div, "MiddleRight")
470
+ ),
471
+ $tag(div, false, 'clear:left').append(
472
+ $tag(div, "BottomLeft"),
473
+ $bottomBorder = $tag(div, "BottomCenter"),
474
+ $tag(div, "BottomRight")
475
+ )
476
+ ).find('div div').css({'float': 'left'});
477
+
478
+ $loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;');
479
+
480
+ $groupControls = $next.add($prev).add($current).add($slideshow);
481
+ }
482
+ if (document.body && !$box.parent().length) {
483
+ $(document.body).append($overlay, $box.append($wrap, $loadingBay));
484
+ }
485
+ }
486
+
487
+ // Add Colorbox's event bindings
488
+ function addBindings() {
489
+ function clickHandler(e) {
490
+ // ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
491
+ // See: http://jacklmoore.com/notes/click-events/
492
+ if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey)) {
493
+ e.preventDefault();
494
+ launch(this);
495
+ }
496
+ }
497
+
498
+ if ($box) {
499
+ if (!init) {
500
+ init = true;
501
+
502
+ // Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
503
+ $next.click(function () {
504
+ publicMethod.next();
505
+ });
506
+ $prev.click(function () {
507
+ publicMethod.prev();
508
+ });
509
+ $close.click(function () {
510
+ publicMethod.close();
511
+ });
512
+ $overlay.click(function () {
513
+ if (settings.get('overlayClose')) {
514
+ publicMethod.close();
515
+ }
516
+ });
517
+
518
+ // Key Bindings
519
+ $(document).bind('keydown.' + prefix, function (e) {
520
+ var key = e.keyCode;
521
+ if (open && settings.get('escKey') && key === 27) {
522
+ e.preventDefault();
523
+ publicMethod.close();
524
+ }
525
+ if (open && settings.get('arrowKey') && $related[1] && !e.altKey) {
526
+ if (key === 37) {
527
+ e.preventDefault();
528
+ $prev.click();
529
+ } else if (key === 39) {
530
+ e.preventDefault();
531
+ $next.click();
532
+ }
533
+ }
534
+ });
535
+
536
+ if ($.isFunction($.fn.on)) {
537
+ // For jQuery 1.7+
538
+ $(document).on('click.'+prefix, '.'+boxElement, clickHandler);
539
+ } else {
540
+ // For jQuery 1.3.x -> 1.6.x
541
+ // This code is never reached in jQuery 1.9, so do not contact me about 'live' being removed.
542
+ // This is not here for jQuery 1.9, it's here for legacy users.
543
+ $('.'+boxElement).live('click.'+prefix, clickHandler);
544
+ }
545
+ }
546
+ return true;
547
+ }
548
+ return false;
549
+ }
550
+
551
+ // Don't do anything if Colorbox already exists.
552
+ if ($[colorbox]) {
553
+ return;
554
+ }
555
+
556
+ // Append the HTML when the DOM loads
557
+ $(appendHTML);
558
+
559
+
560
+ // ****************
561
+ // PUBLIC FUNCTIONS
562
+ // Usage format: $.colorbox.close();
563
+ // Usage from within an iframe: parent.jQuery.colorbox.close();
564
+ // ****************
565
+
566
+ publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
567
+ var settings;
568
+ var $obj = this;
569
+
570
+ options = options || {};
571
+
572
+ if ($.isFunction($obj)) { // assume a call to $.colorbox
573
+ $obj = $('<a/>');
574
+ options.open = true;
575
+ } else if (!$obj[0]) { // colorbox being applied to empty collection
576
+ return $obj;
577
+ }
578
+
579
+
580
+ if (!$obj[0]) { // colorbox being applied to empty collection
581
+ return $obj;
582
+ }
583
+
584
+ appendHTML();
585
+
586
+ if (addBindings()) {
587
+
588
+ if (callback) {
589
+ options.onComplete = callback;
590
+ }
591
+
592
+ $obj.each(function () {
593
+ var old = $.data(this, colorbox) || {};
594
+ $.data(this, colorbox, $.extend(old, options));
595
+ }).addClass(boxElement);
596
+
597
+ settings = new Settings($obj[0], options);
598
+
599
+ if (settings.get('open')) {
600
+ launch($obj[0]);
601
+ }
602
+ }
603
+
604
+ return $obj;
605
+ };
606
+
607
+ publicMethod.position = function (speed, loadedCallback) {
608
+ var
609
+ css,
610
+ top = 0,
611
+ left = 0,
612
+ offset = $box.offset(),
613
+ scrollTop,
614
+ scrollLeft;
615
+
616
+ $window.unbind('resize.' + prefix);
617
+
618
+ // remove the modal so that it doesn't influence the document width/height
619
+ $box.css({top: -9e4, left: -9e4});
620
+
621
+ scrollTop = $window.scrollTop();
622
+ scrollLeft = $window.scrollLeft();
623
+
624
+ if (settings.get('fixed')) {
625
+ offset.top -= scrollTop;
626
+ offset.left -= scrollLeft;
627
+ $box.css({position: 'fixed'});
628
+ } else {
629
+ top = scrollTop;
630
+ left = scrollLeft;
631
+ $box.css({position: 'absolute'});
632
+ }
633
+
634
+ // keeps the top and left positions within the browser's viewport.
635
+ if (settings.get('right') !== false) {
636
+ left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.get('right'), 'x'), 0);
637
+ } else if (settings.get('left') !== false) {
638
+ left += setSize(settings.get('left'), 'x');
639
+ } else {
640
+ left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2);
641
+ }
642
+
643
+ if (settings.get('bottom') !== false) {
644
+ top += Math.max(winheight() - settings.h - loadedHeight - interfaceHeight - setSize(settings.get('bottom'), 'y'), 0);
645
+ } else if (settings.get('top') !== false) {
646
+ top += setSize(settings.get('top'), 'y');
647
+ } else {
648
+ top += Math.round(Math.max(winheight() - settings.h - loadedHeight - interfaceHeight, 0) / 2);
649
+ }
650
+
651
+ $box.css({top: offset.top, left: offset.left, visibility:'visible'});
652
+
653
+ // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
654
+ // but it has to be shrank down around the size of div#colorbox when it's done. If not,
655
+ // it can invoke an obscure IE bug when using iframes.
656
+ $wrap[0].style.width = $wrap[0].style.height = "9999px";
657
+
658
+ function modalDimensions() {
659
+ $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt($box[0].style.width,10) - interfaceWidth)+'px';
660
+ $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt($box[0].style.height,10) - interfaceHeight)+'px';
661
+ }
662
+
663
+ css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};
664
+
665
+ // setting the speed to 0 if the content hasn't changed size or position
666
+ if (speed) {
667
+ var tempSpeed = 0;
668
+ $.each(css, function(i){
669
+ if (css[i] !== previousCSS[i]) {
670
+ tempSpeed = speed;
671
+ return;
672
+ }
673
+ });
674
+ speed = tempSpeed;
675
+ }
676
+
677
+ previousCSS = css;
678
+
679
+ if (!speed) {
680
+ $box.css(css);
681
+ }
682
+
683
+ $box.dequeue().animate(css, {
684
+ duration: speed || 0,
685
+ complete: function () {
686
+ modalDimensions();
687
+
688
+ active = false;
689
+
690
+ // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
691
+ $wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
692
+ $wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
693
+
694
+ if (settings.get('reposition')) {
695
+ setTimeout(function () { // small delay before binding onresize due to an IE8 bug.
696
+ $window.bind('resize.' + prefix, publicMethod.position);
697
+ }, 1);
698
+ }
699
+
700
+ if ($.isFunction(loadedCallback)) {
701
+ loadedCallback();
702
+ }
703
+ },
704
+ step: modalDimensions
705
+ });
706
+ };
707
+
708
+ publicMethod.resize = function (options) {
709
+ var scrolltop;
710
+
711
+ if (open) {
712
+ options = options || {};
713
+
714
+ if (options.width) {
715
+ settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
716
+ }
717
+
718
+ if (options.innerWidth) {
719
+ settings.w = setSize(options.innerWidth, 'x');
720
+ }
721
+
722
+ $loaded.css({width: settings.w});
723
+
724
+ if (options.height) {
725
+ settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
726
+ }
727
+
728
+ if (options.innerHeight) {
729
+ settings.h = setSize(options.innerHeight, 'y');
730
+ }
731
+
732
+ if (!options.innerHeight && !options.height) {
733
+ scrolltop = $loaded.scrollTop();
734
+ $loaded.css({height: "auto"});
735
+ settings.h = $loaded.height();
736
+ }
737
+
738
+ $loaded.css({height: settings.h});
739
+
740
+ if(scrolltop) {
741
+ $loaded.scrollTop(scrolltop);
742
+ }
743
+
744
+ publicMethod.position(settings.get('transition') === "none" ? 0 : settings.get('speed'));
745
+ }
746
+ };
747
+
748
+ publicMethod.prep = function (object) {
749
+ if (!open) {
750
+ return;
751
+ }
752
+
753
+ var callback, speed = settings.get('transition') === "none" ? 0 : settings.get('speed');
754
+
755
+ $loaded.remove();
756
+
757
+ $loaded = $tag(div, 'LoadedContent').append(object);
758
+
759
+ function getWidth() {
760
+ settings.w = settings.w || $loaded.width();
761
+ settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
762
+ return settings.w;
763
+ }
764
+ function getHeight() {
765
+ settings.h = settings.h || $loaded.height();
766
+ settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
767
+ return settings.h;
768
+ }
769
+
770
+ $loaded.hide()
771
+ .appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
772
+ .css({width: getWidth(), overflow: settings.get('scrolling') ? 'auto' : 'hidden'})
773
+ .css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
774
+ .prependTo($content);
775
+
776
+ $loadingBay.hide();
777
+
778
+ // floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
779
+
780
+ $(photo).css({'float': 'none'});
781
+
782
+ setClass(settings.get('className'));
783
+
784
+ callback = function () {
785
+ var total = $related.length,
786
+ iframe,
787
+ complete;
788
+
789
+ if (!open) {
790
+ return;
791
+ }
792
+
793
+ function removeFilter() { // Needed for IE8 in versions of jQuery prior to 1.7.2
794
+ if ($.support.opacity === false) {
795
+ $box[0].style.removeAttribute('filter');
796
+ }
797
+ }
798
+
799
+ complete = function () {
800
+ clearTimeout(loadingTimer);
801
+ $loadingOverlay.hide();
802
+ trigger(event_complete);
803
+ settings.get('onComplete');
804
+ };
805
+
806
+
807
+ $title.html(settings.get('title')).show();
808
+ $loaded.show();
809
+
810
+ if (total > 1) { // handle grouping
811
+ if (typeof settings.get('current') === "string") {
812
+ $current.html(settings.get('current').replace('{current}', index + 1).replace('{total}', total)).show();
813
+ }
814
+
815
+ $next[(settings.get('loop') || index < total - 1) ? "show" : "hide"]().html(settings.get('next'));
816
+ $prev[(settings.get('loop') || index) ? "show" : "hide"]().html(settings.get('previous'));
817
+
818
+ slideshow();
819
+
820
+ // Preloads images within a rel group
821
+ if (settings.get('preloading')) {
822
+ $.each([getIndex(-1), getIndex(1)], function(){
823
+ var img,
824
+ i = $related[this],
825
+ settings = new Settings(i, $.data(i, colorbox)),
826
+ src = settings.get('href');
827
+
828
+ if (src && isImage(settings, src)) {
829
+ src = retinaUrl(settings, src);
830
+ img = document.createElement('img');
831
+ img.src = src;
832
+ }
833
+ });
834
+ }
835
+ } else {
836
+ $groupControls.hide();
837
+ }
838
+
839
+ if (settings.get('iframe')) {
840
+ iframe = document.createElement('iframe');
841
+
842
+ if ('frameBorder' in iframe) {
843
+ iframe.frameBorder = 0;
844
+ }
845
+
846
+ if ('allowTransparency' in iframe) {
847
+ iframe.allowTransparency = "true";
848
+ }
849
+
850
+ if (!settings.get('scrolling')) {
851
+ iframe.scrolling = "no";
852
+ }
853
+
854
+ $(iframe)
855
+ .attr({
856
+ src: settings.get('href'),
857
+ name: (new Date()).getTime(), // give the iframe a unique name to prevent caching
858
+ 'class': prefix + 'Iframe',
859
+ allowFullScreen : true // allow HTML5 video to go fullscreen
860
+ })
861
+ .one('load', complete)
862
+ .appendTo($loaded);
863
+
864
+ $events.one(event_purge, function () {
865
+ iframe.src = "//about:blank";
866
+ });
867
+
868
+ if (settings.get('fastIframe')) {
869
+ $(iframe).trigger('load');
870
+ }
871
+ } else {
872
+ complete();
873
+ }
874
+
875
+ if (settings.get('transition') === 'fade') {
876
+ $box.fadeTo(speed, 1, removeFilter);
877
+ } else {
878
+ removeFilter();
879
+ }
880
+ };
881
+
882
+ if (settings.get('transition') === 'fade') {
883
+ $box.fadeTo(speed, 0, function () {
884
+ publicMethod.position(0, callback);
885
+ });
886
+ } else {
887
+ publicMethod.position(speed, callback);
888
+ }
889
+ };
890
+
891
+ function load () {
892
+ var href, setResize, prep = publicMethod.prep, $inline, request = ++requests;
893
+
894
+ active = true;
895
+
896
+ photo = false;
897
+
898
+ trigger(event_purge);
899
+ trigger(event_load);
900
+ settings.get('onLoad');
901
+
902
+ settings.h = settings.get('height') ?
903
+ setSize(settings.get('height'), 'y') - loadedHeight - interfaceHeight :
904
+ settings.get('innerHeight') && setSize(settings.get('innerHeight'), 'y');
905
+
906
+ settings.w = settings.get('width') ?
907
+ setSize(settings.get('width'), 'x') - loadedWidth - interfaceWidth :
908
+ settings.get('innerWidth') && setSize(settings.get('innerWidth'), 'x');
909
+
910
+ // Sets the minimum dimensions for use in image scaling
911
+ settings.mw = settings.w;
912
+ settings.mh = settings.h;
913
+
914
+ // Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
915
+ // If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
916
+ if (settings.get('maxWidth')) {
917
+ settings.mw = setSize(settings.get('maxWidth'), 'x') - loadedWidth - interfaceWidth;
918
+ settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
919
+ }
920
+ if (settings.get('maxHeight')) {
921
+ settings.mh = setSize(settings.get('maxHeight'), 'y') - loadedHeight - interfaceHeight;
922
+ settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
923
+ }
924
+
925
+ href = settings.get('href');
926
+
927
+ loadingTimer = setTimeout(function () {
928
+ $loadingOverlay.show();
929
+ }, 100);
930
+
931
+ if (settings.get('inline')) {
932
+ var $target = $(href);
933
+ // Inserts an empty placeholder where inline content is being pulled from.
934
+ // An event is bound to put inline content back when Colorbox closes or loads new content.
935
+ $inline = $('<div>').hide().insertBefore($target);
936
+
937
+ $events.one(event_purge, function () {
938
+ $inline.replaceWith($target);
939
+ });
940
+
941
+ prep($target);
942
+ } else if (settings.get('iframe')) {
943
+ // IFrame element won't be added to the DOM until it is ready to be displayed,
944
+ // to avoid problems with DOM-ready JS that might be trying to run in that iframe.
945
+ prep(" ");
946
+ } else if (settings.get('html')) {
947
+ prep(settings.get('html'));
948
+ } else if (isImage(settings, href)) {
949
+
950
+ href = retinaUrl(settings, href);
951
+
952
+ photo = new Image();
953
+
954
+ $(photo)
955
+ .addClass(prefix + 'Photo')
956
+ .bind('error',function () {
957
+ prep($tag(div, 'Error').html(settings.get('imgError')));
958
+ })
959
+ .one('load', function () {
960
+ if (request !== requests) {
961
+ return;
962
+ }
963
+
964
+ // A small pause because some browsers will occassionaly report a
965
+ // img.width and img.height of zero immediately after the img.onload fires
966
+ setTimeout(function(){
967
+ var percent;
968
+
969
+ $.each(['alt', 'longdesc', 'aria-describedby'], function(i,val){
970
+ var attr = $(settings.el).attr(val) || $(settings.el).attr('data-'+val);
971
+ if (attr) {
972
+ photo.setAttribute(val, attr);
973
+ }
974
+ });
975
+
976
+ if (settings.get('retinaImage') && window.devicePixelRatio > 1) {
977
+ photo.height = photo.height / window.devicePixelRatio;
978
+ photo.width = photo.width / window.devicePixelRatio;
979
+ }
980
+
981
+ if (settings.get('scalePhotos')) {
982
+ setResize = function () {
983
+ photo.height -= photo.height * percent;
984
+ photo.width -= photo.width * percent;
985
+ };
986
+ if (settings.mw && photo.width > settings.mw) {
987
+ percent = (photo.width - settings.mw) / photo.width;
988
+ setResize();
989
+ }
990
+ if (settings.mh && photo.height > settings.mh) {
991
+ percent = (photo.height - settings.mh) / photo.height;
992
+ setResize();
993
+ }
994
+ }
995
+
996
+ if (settings.h) {
997
+ photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
998
+ }
999
+
1000
+ if ($related[1] && (settings.get('loop') || $related[index + 1])) {
1001
+ photo.style.cursor = 'pointer';
1002
+ photo.onclick = function () {
1003
+ publicMethod.next();
1004
+ };
1005
+ }
1006
+
1007
+ photo.style.width = photo.width + 'px';
1008
+ photo.style.height = photo.height + 'px';
1009
+ prep(photo);
1010
+ }, 1);
1011
+ });
1012
+
1013
+ photo.src = href;
1014
+
1015
+ } else if (href) {
1016
+ $loadingBay.load(href, settings.get('data'), function (data, status) {
1017
+ if (request === requests) {
1018
+ prep(status === 'error' ? $tag(div, 'Error').html(settings.get('xhrError')) : $(this).contents());
1019
+ }
1020
+ });
1021
+ }
1022
+ }
1023
+
1024
+ // Navigates to the next page/image in a set.
1025
+ publicMethod.next = function () {
1026
+ if (!active && $related[1] && (settings.get('loop') || $related[index + 1])) {
1027
+ index = getIndex(1);
1028
+ launch($related[index]);
1029
+ }
1030
+ };
1031
+
1032
+ publicMethod.prev = function () {
1033
+ if (!active && $related[1] && (settings.get('loop') || index)) {
1034
+ index = getIndex(-1);
1035
+ launch($related[index]);
1036
+ }
1037
+ };
1038
+
1039
+ // Note: to use this within an iframe use the following format: parent.jQuery.colorbox.close();
1040
+ publicMethod.close = function () {
1041
+ if (open && !closing) {
1042
+
1043
+ closing = true;
1044
+ open = false;
1045
+ trigger(event_cleanup);
1046
+ settings.get('onCleanup');
1047
+ $window.unbind('.' + prefix);
1048
+ $overlay.fadeTo(settings.get('fadeOut') || 0, 0);
1049
+
1050
+ $box.stop().fadeTo(settings.get('fadeOut') || 0, 0, function () {
1051
+ $box.hide();
1052
+ $overlay.hide();
1053
+ trigger(event_purge);
1054
+ $loaded.remove();
1055
+
1056
+ setTimeout(function () {
1057
+ closing = false;
1058
+ trigger(event_closed);
1059
+ settings.get('onClosed');
1060
+ }, 1);
1061
+ });
1062
+ }
1063
+ };
1064
+
1065
+ // Removes changes Colorbox made to the document, but does not remove the plugin.
1066
+ publicMethod.remove = function () {
1067
+ if (!$box) { return; }
1068
+
1069
+ $box.stop();
1070
+ $[colorbox].close();
1071
+ $box.stop(false, true).remove();
1072
+ $overlay.remove();
1073
+ closing = false;
1074
+ $box = null;
1075
+ $('.' + boxElement)
1076
+ .removeData(colorbox)
1077
+ .removeClass(boxElement);
1078
+
1079
+ $(document).unbind('click.'+prefix).unbind('keydown.'+prefix);
1080
+ };
1081
+
1082
+ // A method for fetching the current element Colorbox is referencing.
1083
+ // returns a jQuery object.
1084
+ publicMethod.element = function () {
1085
+ return $(settings.el);
1086
+ };
1087
+
1088
+ publicMethod.settings = defaults;
1089
+
1090
+ }(jQuery, document, window));