assets-rails 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (561) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -29
  3. data/{vendor → app}/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.eot +0 -0
  4. data/{vendor → app}/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.svg +0 -0
  5. data/{vendor → app}/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.ttf +0 -0
  6. data/{vendor → app}/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.woff +0 -0
  7. data/{vendor → app}/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.eot +0 -0
  8. data/{vendor → app}/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.svg +0 -0
  9. data/{vendor → app}/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.ttf +0 -0
  10. data/{vendor → app}/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.woff +0 -0
  11. data/app/assets/fonts/bootstrap/v3.3.2/glyphicons-halflings-regular.eot +0 -0
  12. data/app/assets/fonts/bootstrap/v3.3.2/glyphicons-halflings-regular.svg +288 -0
  13. data/app/assets/fonts/bootstrap/v3.3.2/glyphicons-halflings-regular.ttf +0 -0
  14. data/app/assets/fonts/bootstrap/v3.3.2/glyphicons-halflings-regular.woff +0 -0
  15. data/app/assets/fonts/bootstrap/v3.3.2/glyphicons-halflings-regular.woff2 +0 -0
  16. data/app/assets/fonts/bootstrap/v3.3.4/glyphicons-halflings-regular.eot +0 -0
  17. data/app/assets/fonts/bootstrap/v3.3.4/glyphicons-halflings-regular.svg +288 -0
  18. data/app/assets/fonts/bootstrap/v3.3.4/glyphicons-halflings-regular.ttf +0 -0
  19. data/app/assets/fonts/bootstrap/v3.3.4/glyphicons-halflings-regular.woff +0 -0
  20. data/app/assets/fonts/bootstrap/v3.3.4/glyphicons-halflings-regular.woff2 +0 -0
  21. data/{vendor → app}/assets/fonts/font-awesome/v4.2.0/FontAwesome.otf +0 -0
  22. data/{vendor → app}/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.eot +0 -0
  23. data/{vendor → app}/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.svg +0 -0
  24. data/{vendor → app}/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.ttf +0 -0
  25. data/{vendor → app}/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.woff +0 -0
  26. data/{vendor → app}/assets/fonts/jquery.flexslider/flexslider-icon.eot +0 -0
  27. data/{vendor → app}/assets/fonts/jquery.flexslider/flexslider-icon.svg +0 -0
  28. data/{vendor → app}/assets/fonts/jquery.flexslider/flexslider-icon.ttf +0 -0
  29. data/{vendor → app}/assets/fonts/jquery.flexslider/flexslider-icon.woff +0 -0
  30. data/{vendor → app}/assets/fonts/lightgallery/Slide-icons.dev.svg +0 -0
  31. data/{vendor → app}/assets/fonts/lightgallery/Slide-icons.eot +0 -0
  32. data/{vendor → app}/assets/fonts/lightgallery/Slide-icons.svg +0 -0
  33. data/{vendor → app}/assets/fonts/lightgallery/Slide-icons.ttf +0 -0
  34. data/{vendor → app}/assets/fonts/lightgallery/Slide-icons.woff +0 -0
  35. data/{vendor → app}/assets/fonts/photoswipe/v4.0.0/default-skin/default-skin.svg +0 -0
  36. data/{vendor → app}/assets/fonts/photoswipe/v4.0.2/default-skin/default-skin.svg +0 -0
  37. data/{vendor → app}/assets/images/fancybox/blank.gif +0 -0
  38. data/{vendor → app}/assets/images/fancybox/fancybox_buttons.png +0 -0
  39. data/{vendor → app}/assets/images/fancybox/fancybox_loading.gif +0 -0
  40. data/{vendor → app}/assets/images/fancybox/fancybox_loading@2x.gif +0 -0
  41. data/{vendor → app}/assets/images/fancybox/fancybox_overlay.png +0 -0
  42. data/{vendor → app}/assets/images/fancybox/fancybox_sprite.png +0 -0
  43. data/{vendor → app}/assets/images/fancybox/fancybox_sprite@2x.png +0 -0
  44. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example1/border.png +0 -0
  45. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example1/controls.png +0 -0
  46. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example1/loading.gif +0 -0
  47. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example1/loading_background.png +0 -0
  48. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example1/overlay.png +0 -0
  49. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example2/controls.png +0 -0
  50. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example2/loading.gif +0 -0
  51. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example3/controls.png +0 -0
  52. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example3/loading.gif +0 -0
  53. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example4/border1.png +0 -0
  54. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example4/border2.png +0 -0
  55. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example4/loading.gif +0 -0
  56. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example5/border.png +0 -0
  57. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example5/controls.png +0 -0
  58. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example5/loading.gif +0 -0
  59. data/{vendor → app}/assets/images/jquery.colorbox/v1.5.14/example5/loading_background.png +0 -0
  60. data/{vendor → app}/assets/images/jquery.flexslider/bg_play_pause.png +0 -0
  61. data/{vendor → app}/assets/images/jquery.owlcarousel/AjaxLoader.gif +0 -0
  62. data/{vendor → app}/assets/images/jquery.owlcarousel/grabbing.png +0 -0
  63. data/{vendor → app}/assets/images/jquery.share/social-icons-sprite.png +0 -0
  64. data/{vendor → app}/assets/images/jquery.share/social-icons.png +0 -0
  65. data/{vendor → app}/assets/images/lightgallery/loading.gif +0 -0
  66. data/{vendor → app}/assets/images/photoswipe/v4.0.0/default-skin/default-skin.png +0 -0
  67. data/{vendor → app}/assets/images/photoswipe/v4.0.0/default-skin/preloader.gif +0 -0
  68. data/{vendor → app}/assets/images/photoswipe/v4.0.2/default-skin/default-skin.png +0 -0
  69. data/{vendor → app}/assets/images/photoswipe/v4.0.2/default-skin/preloader.gif +0 -0
  70. data/{vendor → app}/assets/images/zebra_datepicker/calendar-disabled.png +0 -0
  71. data/{vendor → app}/assets/images/zebra_datepicker/calendar.png +0 -0
  72. data/{vendor → app}/assets/images/zebra_datepicker/metallic/default-date.png +0 -0
  73. data/{vendor → app}/assets/images/zebra_datepicker/metallic/disabled-date.png +0 -0
  74. data/{vendor → app}/assets/images/zebra_datepicker/metallic/header.png +0 -0
  75. data/{vendor → app}/assets/images/zebra_datepicker/metallic/selected-date.png +0 -0
  76. data/app/assets/javascripts/bootstrap-hover-dropdown/v2.1.3.js +2 -0
  77. data/app/assets/javascripts/bootstrap-hover-dropdown/v2.1.3/bootstrap-hover-dropdown.js +124 -0
  78. data/app/assets/javascripts/bootstrap-hover-dropdown/v2.1.3/bootstrap-hover-dropdown.min.js +12 -0
  79. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0.js +0 -0
  80. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/affix.js +0 -0
  81. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/alert.js +0 -0
  82. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/button.js +0 -0
  83. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/carousel.js +0 -0
  84. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/collapse.js +0 -0
  85. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/dropdown.js +0 -0
  86. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/modal.js +0 -0
  87. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/popover.js +0 -0
  88. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/scrollspy.js +0 -0
  89. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/tab.js +0 -0
  90. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/tooltip.js +0 -0
  91. data/{vendor → app}/assets/javascripts/bootstrap/v3.2.0/transition.js +0 -0
  92. data/app/assets/javascripts/bootstrap/v3.3.0.js +12 -0
  93. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/affix.js +0 -0
  94. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/alert.js +0 -0
  95. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/button.js +0 -0
  96. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/carousel.js +0 -0
  97. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/collapse.js +0 -0
  98. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/dropdown.js +0 -0
  99. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/modal.js +0 -0
  100. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/popover.js +0 -0
  101. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/scrollspy.js +0 -0
  102. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/tab.js +0 -0
  103. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/tooltip.js +0 -0
  104. data/{vendor → app}/assets/javascripts/bootstrap/v3.3.0/transition.js +0 -0
  105. data/app/assets/javascripts/bootstrap/v3.3.2.js +12 -0
  106. data/app/assets/javascripts/bootstrap/v3.3.2/affix.js +162 -0
  107. data/app/assets/javascripts/bootstrap/v3.3.2/alert.js +94 -0
  108. data/app/assets/javascripts/bootstrap/v3.3.2/button.js +116 -0
  109. data/app/assets/javascripts/bootstrap/v3.3.2/carousel.js +237 -0
  110. data/app/assets/javascripts/bootstrap/v3.3.2/collapse.js +211 -0
  111. data/app/assets/javascripts/bootstrap/v3.3.2/dropdown.js +161 -0
  112. data/app/assets/javascripts/bootstrap/v3.3.2/modal.js +324 -0
  113. data/app/assets/javascripts/bootstrap/v3.3.2/popover.js +113 -0
  114. data/app/assets/javascripts/bootstrap/v3.3.2/scrollspy.js +175 -0
  115. data/app/assets/javascripts/bootstrap/v3.3.2/tab.js +153 -0
  116. data/app/assets/javascripts/bootstrap/v3.3.2/tooltip.js +472 -0
  117. data/app/assets/javascripts/bootstrap/v3.3.2/transition.js +59 -0
  118. data/app/assets/javascripts/bootstrap/v3.3.4.js +12 -0
  119. data/app/assets/javascripts/bootstrap/v3.3.4/affix.js +162 -0
  120. data/app/assets/javascripts/bootstrap/v3.3.4/alert.js +94 -0
  121. data/app/assets/javascripts/bootstrap/v3.3.4/button.js +116 -0
  122. data/app/assets/javascripts/bootstrap/v3.3.4/carousel.js +237 -0
  123. data/app/assets/javascripts/bootstrap/v3.3.4/collapse.js +211 -0
  124. data/app/assets/javascripts/bootstrap/v3.3.4/dropdown.js +161 -0
  125. data/app/assets/javascripts/bootstrap/v3.3.4/modal.js +339 -0
  126. data/app/assets/javascripts/bootstrap/v3.3.4/popover.js +108 -0
  127. data/app/assets/javascripts/bootstrap/v3.3.4/scrollspy.js +172 -0
  128. data/app/assets/javascripts/bootstrap/v3.3.4/tab.js +153 -0
  129. data/app/assets/javascripts/bootstrap/v3.3.4/tooltip.js +476 -0
  130. data/app/assets/javascripts/bootstrap/v3.3.4/transition.js +59 -0
  131. data/{vendor → app}/assets/javascripts/draggabilly/v1.1.1.js +0 -0
  132. data/{vendor → app}/assets/javascripts/draggabilly/v1.1.1/draggabilly.js +0 -0
  133. data/{vendor → app}/assets/javascripts/imagesloaded/v3.1.8.js +0 -0
  134. data/{vendor → app}/assets/javascripts/imagesloaded/v3.1.8/imagesloaded.js +0 -0
  135. data/{vendor → app}/assets/javascripts/isotope/v2.0.1.js +0 -0
  136. data/{vendor → app}/assets/javascripts/isotope/v2.0.1/isotope.js +0 -0
  137. data/app/assets/javascripts/jquery-migrate/v1.2.1.js +2 -0
  138. data/app/assets/javascripts/jquery-migrate/v1.2.1/jquery-migrate-1.2.1.min.js +2 -0
  139. data/{vendor → app}/assets/javascripts/jquery.collageplus/v0.3.3.js +0 -0
  140. data/{vendor → app}/assets/javascripts/jquery.collageplus/v0.3.3/jquery.collagecaption.js +0 -0
  141. data/{vendor → app}/assets/javascripts/jquery.collageplus/v0.3.3/jquery.collageplus.js +0 -0
  142. data/{vendor → app}/assets/javascripts/jquery.collageplus/v0.3.3/remove_whitespace.js +0 -0
  143. data/{vendor → app}/assets/javascripts/jquery.colorbox/v1.5.14.js +0 -0
  144. data/{vendor → app}/assets/javascripts/jquery.colorbox/v1.5.14/jquery.colorbox.js +0 -0
  145. data/{vendor → app}/assets/javascripts/jquery.cookie/v1.4.1.js +0 -0
  146. data/{vendor → app}/assets/javascripts/jquery.cookie/v1.4.1/jquery.cookie.js +0 -0
  147. data/{vendor → app}/assets/javascripts/jquery.expander/v1.4.12.js +0 -0
  148. data/{vendor → app}/assets/javascripts/jquery.expander/v1.4.12/jquery.expander.js +0 -0
  149. data/{vendor → app}/assets/javascripts/jquery.fakecrop.js +0 -0
  150. data/{vendor → app}/assets/javascripts/jquery.fakecrop/jquery.fakecrop.js +0 -0
  151. data/{vendor → app}/assets/javascripts/jquery.fancybox/v2.1.5.js +0 -0
  152. data/{vendor → app}/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-buttons.js +0 -0
  153. data/{vendor → app}/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-media.js +0 -0
  154. data/{vendor → app}/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-thumbs.js +0 -0
  155. data/{vendor → app}/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox.js +0 -0
  156. data/{vendor → app}/assets/javascripts/jquery.flexslider/v2.2.2.js +0 -0
  157. data/{vendor → app}/assets/javascripts/jquery.flexslider/v2.2.2/jquery.flexslider.js +0 -0
  158. data/{vendor → app}/assets/javascripts/jquery.infinitescroll/v2.0.2.js +0 -0
  159. data/{vendor → app}/assets/javascripts/jquery.infinitescroll/v2.0.2/jquery.infinitescroll.js +0 -0
  160. data/app/assets/javascripts/jquery.magnific-popup/v1.0.0.js +2 -0
  161. data/app/assets/javascripts/jquery.magnific-popup/v1.0.0/jquery.magnific-popup.js +2060 -0
  162. data/app/assets/javascripts/jquery.magnific-popup/v1.0.0/jquery.magnific-popup.min.js +4 -0
  163. data/{vendor → app}/assets/javascripts/jquery.nivo.slider/v3.2.js +0 -0
  164. data/{vendor → app}/assets/javascripts/jquery.nivo.slider/v3.2/jquery.nivo.slider.js +0 -0
  165. data/{vendor → app}/assets/javascripts/jquery.owlcarousel/v1.3.3.js +0 -0
  166. data/{vendor → app}/assets/javascripts/jquery.owlcarousel/v1.3.3/jquery.owlcarousel.js +0 -0
  167. data/{vendor → app}/assets/javascripts/jquery.pageless.js +0 -0
  168. data/{vendor → app}/assets/javascripts/jquery.pageless/jquery.pageless.js +0 -0
  169. data/{vendor → app}/assets/javascripts/jquery.render/v1.1.0.js +0 -0
  170. data/{vendor → app}/assets/javascripts/jquery.render/v1.1.0/jquery.render.js +0 -0
  171. data/app/assets/javascripts/jquery.resizeimagetoparent.js +2 -0
  172. data/app/assets/javascripts/jquery.resizeimagetoparent/jquery.resizeimagetoparent.js +88 -0
  173. data/app/assets/javascripts/jquery.resizeimagetoparent/jquery.resizeimagetoparent.min.js +8 -0
  174. data/{vendor → app}/assets/javascripts/jquery.scrollto/v1.4.13.js +0 -0
  175. data/{vendor → app}/assets/javascripts/jquery.scrollto/v1.4.13/jquery.scrollto.js +0 -0
  176. data/{vendor → app}/assets/javascripts/jquery.share.js +0 -0
  177. data/{vendor → app}/assets/javascripts/jquery.share/jquery.share.js +0 -0
  178. data/{vendor → app}/assets/javascripts/jquery.timeago/v1.4.1.js +0 -0
  179. data/{vendor → app}/assets/javascripts/jquery.timeago/v1.4.1/jquery.timeago.js +0 -0
  180. data/{vendor → app}/assets/javascripts/jquery.turbolinks/v2.1.0.js +0 -0
  181. data/{vendor → app}/assets/javascripts/jquery.turbolinks/v2.1.0/jquery.turbolinks.js +0 -0
  182. data/{vendor → app}/assets/javascripts/jquery.zoom/v1.7.13.js +0 -0
  183. data/{vendor → app}/assets/javascripts/jquery.zoom/v1.7.13/jquery.zoom.js +0 -0
  184. data/{vendor → app}/assets/javascripts/jquery/v1.11.1.js +0 -0
  185. data/{vendor → app}/assets/javascripts/jquery/v1.11.1/jquery.js +0 -0
  186. data/{vendor → app}/assets/javascripts/jquery/v2.1.1.js +0 -0
  187. data/{vendor → app}/assets/javascripts/jquery/v2.1.1/jquery.js +0 -0
  188. data/{vendor → app}/assets/javascripts/lightgallery/v1.1.4.js +0 -0
  189. data/{vendor → app}/assets/javascripts/lightgallery/v1.1.4/lightgallery.min.js +0 -0
  190. data/{vendor/assets/javascripts/masonry/v3.1.5.js → app/assets/javascripts/masonry/v3.2.2.js} +1 -1
  191. data/app/assets/javascripts/masonry/v3.2.2/masonry.js +2959 -0
  192. data/{vendor → app}/assets/javascripts/nprogress/v0.1.6.js +0 -0
  193. data/{vendor → app}/assets/javascripts/nprogress/v0.1.6/nprogress-ajax.js +0 -0
  194. data/{vendor → app}/assets/javascripts/nprogress/v0.1.6/nprogress-turbolinks.js +0 -0
  195. data/{vendor → app}/assets/javascripts/nprogress/v0.1.6/nprogress.js +0 -0
  196. data/{vendor → app}/assets/javascripts/photoswipe/v4.0.0.js +0 -0
  197. data/{vendor → app}/assets/javascripts/photoswipe/v4.0.0/photoswipe-ui-default.js +0 -0
  198. data/{vendor → app}/assets/javascripts/photoswipe/v4.0.0/photoswipe.js +0 -0
  199. data/{vendor → app}/assets/javascripts/photoswipe/v4.0.2.js +0 -0
  200. data/{vendor → app}/assets/javascripts/photoswipe/v4.0.2/photoswipe-ui-default.js +0 -0
  201. data/{vendor → app}/assets/javascripts/photoswipe/v4.0.2/photoswipe.js +0 -0
  202. data/{vendor → app}/assets/javascripts/responsiveCarousel/v1.2.0.js +0 -0
  203. data/{vendor → app}/assets/javascripts/responsiveCarousel/v1.2.0/responsiveCarousel.js +0 -0
  204. data/{vendor → app}/assets/javascripts/responsiveslides/v1.54.js +0 -0
  205. data/{vendor → app}/assets/javascripts/responsiveslides/v1.54/responsiveslides.js +0 -0
  206. data/app/assets/javascripts/waypoints/v3.0.1/jquery.waypoints.js +620 -0
  207. data/app/assets/javascripts/waypoints/v3.0.1/noframework.waypoints.js +716 -0
  208. data/app/assets/javascripts/waypoints/v3.0.1/shortcuts/infinite.js +81 -0
  209. data/app/assets/javascripts/waypoints/v3.0.1/shortcuts/inview.js +103 -0
  210. data/app/assets/javascripts/waypoints/v3.0.1/shortcuts/sticky.js +65 -0
  211. data/app/assets/javascripts/waypoints/v3.0.1/zepto.waypoints.js +663 -0
  212. data/{vendor → app}/assets/javascripts/zebra_datepicker/v1.8.9.js +0 -0
  213. data/{vendor → app}/assets/javascripts/zebra_datepicker/v1.8.9/zebra_datepicker.js +0 -0
  214. data/{vendor/assets/stylesheets/bootstrap/_v3.2.0.scss → app/assets/stylesheets/bootstrap/v3.2.0.scss} +0 -0
  215. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_alerts.scss +0 -0
  216. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_badges.scss +0 -0
  217. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_bootstrap-sprockets.scss +0 -0
  218. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_breadcrumbs.scss +0 -0
  219. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_button-groups.scss +0 -0
  220. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_buttons.scss +0 -0
  221. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_carousel.scss +0 -0
  222. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_close.scss +0 -0
  223. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_code.scss +0 -0
  224. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_component-animations.scss +0 -0
  225. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_dropdowns.scss +0 -0
  226. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_forms.scss +0 -0
  227. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_glyphicons.scss +0 -0
  228. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_grid.scss +0 -0
  229. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_input-groups.scss +0 -0
  230. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_jumbotron.scss +0 -0
  231. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_labels.scss +0 -0
  232. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_list-group.scss +0 -0
  233. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_media.scss +0 -0
  234. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_mixins.scss +0 -0
  235. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_modals.scss +0 -0
  236. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_navbar.scss +0 -0
  237. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_navs.scss +0 -0
  238. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_normalize.scss +0 -0
  239. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_pager.scss +0 -0
  240. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_pagination.scss +0 -0
  241. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_panels.scss +0 -0
  242. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_popovers.scss +0 -0
  243. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_print.scss +0 -0
  244. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_progress-bars.scss +0 -0
  245. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_responsive-embed.scss +0 -0
  246. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_responsive-utilities.scss +0 -0
  247. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_scaffolding.scss +0 -0
  248. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_tables.scss +0 -0
  249. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_theme.scss +0 -0
  250. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_thumbnails.scss +0 -0
  251. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_tooltip.scss +0 -0
  252. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_type.scss +0 -0
  253. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_utilities.scss +0 -0
  254. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_variables.scss +0 -0
  255. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/_wells.scss +0 -0
  256. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_alerts.scss +0 -0
  257. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_background-variant.scss +0 -0
  258. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_border-radius.scss +0 -0
  259. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_buttons.scss +0 -0
  260. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_center-block.scss +0 -0
  261. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_clearfix.scss +0 -0
  262. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_forms.scss +0 -0
  263. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_gradients.scss +0 -0
  264. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_grid-framework.scss +0 -0
  265. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_grid.scss +0 -0
  266. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_hide-text.scss +0 -0
  267. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_image.scss +0 -0
  268. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_labels.scss +0 -0
  269. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_list-group.scss +0 -0
  270. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_nav-divider.scss +0 -0
  271. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_nav-vertical-align.scss +0 -0
  272. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_opacity.scss +0 -0
  273. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_pagination.scss +0 -0
  274. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_panels.scss +0 -0
  275. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_progress-bar.scss +0 -0
  276. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_reset-filter.scss +0 -0
  277. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_resize.scss +0 -0
  278. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_responsive-visibility.scss +0 -0
  279. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_size.scss +0 -0
  280. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_tab-focus.scss +0 -0
  281. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_table-row.scss +0 -0
  282. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_text-emphasis.scss +0 -0
  283. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_text-overflow.scss +0 -0
  284. data/{vendor → app}/assets/stylesheets/bootstrap/v3.2.0/mixins/_vendor-prefixes.scss +0 -0
  285. data/{vendor/assets/stylesheets/bootstrap/_v3.3.0.scss → app/assets/stylesheets/bootstrap/v3.3.0.scss} +0 -0
  286. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_alerts.scss +0 -0
  287. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_badges.scss +0 -0
  288. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_bootstrap-sprockets.scss +0 -0
  289. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_breadcrumbs.scss +0 -0
  290. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_button-groups.scss +0 -0
  291. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_buttons.scss +0 -0
  292. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_carousel.scss +0 -0
  293. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_close.scss +0 -0
  294. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_code.scss +0 -0
  295. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_component-animations.scss +0 -0
  296. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_dropdowns.scss +0 -0
  297. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_forms.scss +0 -0
  298. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_glyphicons.scss +0 -0
  299. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_grid.scss +0 -0
  300. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_input-groups.scss +0 -0
  301. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_jumbotron.scss +0 -0
  302. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_labels.scss +0 -0
  303. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_list-group.scss +0 -0
  304. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_media.scss +0 -0
  305. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_mixins.scss +0 -0
  306. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_modals.scss +0 -0
  307. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_navbar.scss +0 -0
  308. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_navs.scss +0 -0
  309. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_normalize.scss +0 -0
  310. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_pager.scss +0 -0
  311. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_pagination.scss +0 -0
  312. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_panels.scss +0 -0
  313. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_popovers.scss +0 -0
  314. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_print.scss +0 -0
  315. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_progress-bars.scss +0 -0
  316. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_responsive-embed.scss +0 -0
  317. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_responsive-utilities.scss +0 -0
  318. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_scaffolding.scss +0 -0
  319. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_tables.scss +0 -0
  320. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_theme.scss +0 -0
  321. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_thumbnails.scss +0 -0
  322. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_tooltip.scss +0 -0
  323. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_type.scss +0 -0
  324. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_utilities.scss +0 -0
  325. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_variables.scss +1 -1
  326. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/_wells.scss +0 -0
  327. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_alerts.scss +0 -0
  328. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_background-variant.scss +0 -0
  329. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_border-radius.scss +0 -0
  330. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_buttons.scss +0 -0
  331. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_center-block.scss +0 -0
  332. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_clearfix.scss +0 -0
  333. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_forms.scss +0 -0
  334. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_gradients.scss +0 -0
  335. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_grid-framework.scss +0 -0
  336. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_grid.scss +0 -0
  337. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_hide-text.scss +0 -0
  338. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_image.scss +0 -0
  339. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_labels.scss +0 -0
  340. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_list-group.scss +0 -0
  341. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_nav-divider.scss +0 -0
  342. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_nav-vertical-align.scss +0 -0
  343. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_opacity.scss +0 -0
  344. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_pagination.scss +0 -0
  345. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_panels.scss +0 -0
  346. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_progress-bar.scss +0 -0
  347. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_reset-filter.scss +0 -0
  348. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_resize.scss +0 -0
  349. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_responsive-visibility.scss +0 -0
  350. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_size.scss +0 -0
  351. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_tab-focus.scss +0 -0
  352. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_table-row.scss +0 -0
  353. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_text-emphasis.scss +0 -0
  354. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_text-overflow.scss +0 -0
  355. data/{vendor → app}/assets/stylesheets/bootstrap/v3.3.0/mixins/_vendor-prefixes.scss +0 -0
  356. data/app/assets/stylesheets/bootstrap/v3.3.2.scss +52 -0
  357. data/app/assets/stylesheets/bootstrap/v3.3.2/_alerts.scss +73 -0
  358. data/app/assets/stylesheets/bootstrap/v3.3.2/_badges.scss +67 -0
  359. data/app/assets/stylesheets/bootstrap/v3.3.2/_bootstrap-sprockets.scss +9 -0
  360. data/app/assets/stylesheets/bootstrap/v3.3.2/_breadcrumbs.scss +26 -0
  361. data/app/assets/stylesheets/bootstrap/v3.3.2/_button-groups.scss +243 -0
  362. data/app/assets/stylesheets/bootstrap/v3.3.2/_buttons.scss +160 -0
  363. data/app/assets/stylesheets/bootstrap/v3.3.2/_carousel.scss +269 -0
  364. data/app/assets/stylesheets/bootstrap/v3.3.2/_close.scss +36 -0
  365. data/app/assets/stylesheets/bootstrap/v3.3.2/_code.scss +69 -0
  366. data/app/assets/stylesheets/bootstrap/v3.3.2/_component-animations.scss +38 -0
  367. data/app/assets/stylesheets/bootstrap/v3.3.2/_dropdowns.scss +214 -0
  368. data/app/assets/stylesheets/bootstrap/v3.3.2/_forms.scss +570 -0
  369. data/app/assets/stylesheets/bootstrap/v3.3.2/_glyphicons.scss +301 -0
  370. data/app/assets/stylesheets/bootstrap/v3.3.2/_grid.scss +84 -0
  371. data/app/assets/stylesheets/bootstrap/v3.3.2/_input-groups.scss +166 -0
  372. data/app/assets/stylesheets/bootstrap/v3.3.2/_jumbotron.scss +50 -0
  373. data/app/assets/stylesheets/bootstrap/v3.3.2/_labels.scss +66 -0
  374. data/app/assets/stylesheets/bootstrap/v3.3.2/_list-group.scss +124 -0
  375. data/app/assets/stylesheets/bootstrap/v3.3.2/_media.scss +61 -0
  376. data/app/assets/stylesheets/bootstrap/v3.3.2/_mixins.scss +39 -0
  377. data/app/assets/stylesheets/bootstrap/v3.3.2/_modals.scss +148 -0
  378. data/app/assets/stylesheets/bootstrap/v3.3.2/_navbar.scss +663 -0
  379. data/app/assets/stylesheets/bootstrap/v3.3.2/_navs.scss +244 -0
  380. data/app/assets/stylesheets/bootstrap/v3.3.2/_normalize.scss +427 -0
  381. data/app/assets/stylesheets/bootstrap/v3.3.2/_pager.scss +54 -0
  382. data/app/assets/stylesheets/bootstrap/v3.3.2/_pagination.scss +88 -0
  383. data/app/assets/stylesheets/bootstrap/v3.3.2/_panels.scss +265 -0
  384. data/app/assets/stylesheets/bootstrap/v3.3.2/_popovers.scss +135 -0
  385. data/app/assets/stylesheets/bootstrap/v3.3.2/_print.scss +107 -0
  386. data/app/assets/stylesheets/bootstrap/v3.3.2/_progress-bars.scss +87 -0
  387. data/app/assets/stylesheets/bootstrap/v3.3.2/_responsive-embed.scss +35 -0
  388. data/app/assets/stylesheets/bootstrap/v3.3.2/_responsive-utilities.scss +177 -0
  389. data/app/assets/stylesheets/bootstrap/v3.3.2/_scaffolding.scss +150 -0
  390. data/app/assets/stylesheets/bootstrap/v3.3.2/_tables.scss +234 -0
  391. data/app/assets/stylesheets/bootstrap/v3.3.2/_theme.scss +273 -0
  392. data/app/assets/stylesheets/bootstrap/v3.3.2/_thumbnails.scss +38 -0
  393. data/app/assets/stylesheets/bootstrap/v3.3.2/_tooltip.scss +103 -0
  394. data/app/assets/stylesheets/bootstrap/v3.3.2/_type.scss +298 -0
  395. data/app/assets/stylesheets/bootstrap/v3.3.2/_utilities.scss +56 -0
  396. data/app/assets/stylesheets/bootstrap/v3.3.2/_variables.scss +862 -0
  397. data/app/assets/stylesheets/bootstrap/v3.3.2/_wells.scss +29 -0
  398. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_alerts.scss +14 -0
  399. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_background-variant.scss +11 -0
  400. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_border-radius.scss +18 -0
  401. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_buttons.scss +52 -0
  402. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_center-block.scss +7 -0
  403. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_clearfix.scss +22 -0
  404. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_forms.scss +88 -0
  405. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_gradients.scss +58 -0
  406. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_grid-framework.scss +81 -0
  407. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_grid.scss +122 -0
  408. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_hide-text.scss +21 -0
  409. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_image.scss +33 -0
  410. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_labels.scss +12 -0
  411. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_list-group.scss +31 -0
  412. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_nav-divider.scss +10 -0
  413. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_nav-vertical-align.scss +9 -0
  414. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_opacity.scss +8 -0
  415. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_pagination.scss +23 -0
  416. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_panels.scss +24 -0
  417. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_progress-bar.scss +10 -0
  418. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_reset-filter.scss +8 -0
  419. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_resize.scss +6 -0
  420. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_responsive-visibility.scss +21 -0
  421. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_size.scss +10 -0
  422. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_tab-focus.scss +9 -0
  423. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_table-row.scss +28 -0
  424. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_text-emphasis.scss +11 -0
  425. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_text-overflow.scss +8 -0
  426. data/app/assets/stylesheets/bootstrap/v3.3.2/mixins/_vendor-prefixes.scss +222 -0
  427. data/app/assets/stylesheets/bootstrap/v3.3.4.scss +52 -0
  428. data/app/assets/stylesheets/bootstrap/v3.3.4/_alerts.scss +73 -0
  429. data/app/assets/stylesheets/bootstrap/v3.3.4/_badges.scss +68 -0
  430. data/app/assets/stylesheets/bootstrap/v3.3.4/_bootstrap-sprockets.scss +9 -0
  431. data/app/assets/stylesheets/bootstrap/v3.3.4/_breadcrumbs.scss +26 -0
  432. data/app/assets/stylesheets/bootstrap/v3.3.4/_button-groups.scss +243 -0
  433. data/app/assets/stylesheets/bootstrap/v3.3.4/_buttons.scss +160 -0
  434. data/app/assets/stylesheets/bootstrap/v3.3.4/_carousel.scss +269 -0
  435. data/app/assets/stylesheets/bootstrap/v3.3.4/_close.scss +36 -0
  436. data/app/assets/stylesheets/bootstrap/v3.3.4/_code.scss +69 -0
  437. data/app/assets/stylesheets/bootstrap/v3.3.4/_component-animations.scss +37 -0
  438. data/app/assets/stylesheets/bootstrap/v3.3.4/_dropdowns.scss +214 -0
  439. data/app/assets/stylesheets/bootstrap/v3.3.4/_forms.scss +578 -0
  440. data/app/assets/stylesheets/bootstrap/v3.3.4/_glyphicons.scss +305 -0
  441. data/app/assets/stylesheets/bootstrap/v3.3.4/_grid.scss +84 -0
  442. data/app/assets/stylesheets/bootstrap/v3.3.4/_input-groups.scss +166 -0
  443. data/app/assets/stylesheets/bootstrap/v3.3.4/_jumbotron.scss +50 -0
  444. data/app/assets/stylesheets/bootstrap/v3.3.4/_labels.scss +66 -0
  445. data/app/assets/stylesheets/bootstrap/v3.3.4/_list-group.scss +124 -0
  446. data/app/assets/stylesheets/bootstrap/v3.3.4/_media.scss +61 -0
  447. data/app/assets/stylesheets/bootstrap/v3.3.4/_mixins.scss +39 -0
  448. data/app/assets/stylesheets/bootstrap/v3.3.4/_modals.scss +150 -0
  449. data/app/assets/stylesheets/bootstrap/v3.3.4/_navbar.scss +662 -0
  450. data/app/assets/stylesheets/bootstrap/v3.3.4/_navs.scss +242 -0
  451. data/app/assets/stylesheets/bootstrap/v3.3.4/_normalize.scss +427 -0
  452. data/app/assets/stylesheets/bootstrap/v3.3.4/_pager.scss +54 -0
  453. data/app/assets/stylesheets/bootstrap/v3.3.4/_pagination.scss +88 -0
  454. data/app/assets/stylesheets/bootstrap/v3.3.4/_panels.scss +265 -0
  455. data/app/assets/stylesheets/bootstrap/v3.3.4/_popovers.scss +135 -0
  456. data/app/assets/stylesheets/bootstrap/v3.3.4/_print.scss +107 -0
  457. data/app/assets/stylesheets/bootstrap/v3.3.4/_progress-bars.scss +87 -0
  458. data/app/assets/stylesheets/bootstrap/v3.3.4/_responsive-embed.scss +35 -0
  459. data/app/assets/stylesheets/bootstrap/v3.3.4/_responsive-utilities.scss +177 -0
  460. data/app/assets/stylesheets/bootstrap/v3.3.4/_scaffolding.scss +162 -0
  461. data/app/assets/stylesheets/bootstrap/v3.3.4/_tables.scss +234 -0
  462. data/app/assets/stylesheets/bootstrap/v3.3.4/_theme.scss +273 -0
  463. data/app/assets/stylesheets/bootstrap/v3.3.4/_thumbnails.scss +38 -0
  464. data/app/assets/stylesheets/bootstrap/v3.3.4/_tooltip.scss +102 -0
  465. data/app/assets/stylesheets/bootstrap/v3.3.4/_type.scss +298 -0
  466. data/app/assets/stylesheets/bootstrap/v3.3.4/_utilities.scss +55 -0
  467. data/app/assets/stylesheets/bootstrap/v3.3.4/_variables.scss +866 -0
  468. data/app/assets/stylesheets/bootstrap/v3.3.4/_wells.scss +29 -0
  469. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_alerts.scss +14 -0
  470. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_background-variant.scss +11 -0
  471. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_border-radius.scss +18 -0
  472. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_buttons.scss +52 -0
  473. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_center-block.scss +7 -0
  474. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_clearfix.scss +22 -0
  475. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_forms.scss +88 -0
  476. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_gradients.scss +58 -0
  477. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_grid-framework.scss +81 -0
  478. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_grid.scss +122 -0
  479. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_hide-text.scss +21 -0
  480. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_image.scss +33 -0
  481. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_labels.scss +12 -0
  482. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_list-group.scss +31 -0
  483. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_nav-divider.scss +10 -0
  484. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_nav-vertical-align.scss +9 -0
  485. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_opacity.scss +8 -0
  486. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_pagination.scss +23 -0
  487. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_panels.scss +24 -0
  488. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_progress-bar.scss +10 -0
  489. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_reset-filter.scss +8 -0
  490. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_resize.scss +6 -0
  491. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_responsive-visibility.scss +21 -0
  492. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_size.scss +10 -0
  493. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_tab-focus.scss +9 -0
  494. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_table-row.scss +28 -0
  495. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_text-emphasis.scss +11 -0
  496. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_text-overflow.scss +8 -0
  497. data/app/assets/stylesheets/bootstrap/v3.3.4/mixins/_vendor-prefixes.scss +222 -0
  498. data/app/assets/stylesheets/font-awesome/v4.2.0.scss +1 -0
  499. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_bordered-pulled.scss +0 -0
  500. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_core.scss +0 -0
  501. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_extras.scss +0 -0
  502. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_fixed-width.scss +0 -0
  503. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_icons.scss +0 -0
  504. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_larger.scss +0 -0
  505. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_list.scss +0 -0
  506. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_mixins.scss +0 -0
  507. data/app/assets/stylesheets/font-awesome/v4.2.0/_path.scss +14 -0
  508. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_rotated-flipped.scss +0 -0
  509. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_spinning.scss +0 -0
  510. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_stacked.scss +0 -0
  511. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/_variables.scss +1 -1
  512. data/{vendor → app}/assets/stylesheets/font-awesome/v4.2.0/font-awesome.scss +1 -1
  513. data/{vendor → app}/assets/stylesheets/jquery.collageplus/v0.3.3/transitions.css +0 -0
  514. data/{vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example1.css.scss → app/assets/stylesheets/jquery.colorbox/v1.5.14/example1.scss} +0 -0
  515. data/{vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example2.css.scss → app/assets/stylesheets/jquery.colorbox/v1.5.14/example2.scss} +0 -0
  516. data/{vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example3.css.scss → app/assets/stylesheets/jquery.colorbox/v1.5.14/example3.scss} +0 -0
  517. data/{vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example4.css.scss → app/assets/stylesheets/jquery.colorbox/v1.5.14/example4.scss} +0 -0
  518. data/{vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example5.css.scss → app/assets/stylesheets/jquery.colorbox/v1.5.14/example5.scss} +0 -0
  519. data/app/assets/stylesheets/jquery.fancybox/v2.1.5.scss +3 -0
  520. data/{vendor → app}/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox-buttons.css.erb +0 -0
  521. data/{vendor → app}/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox-thumbs.css +0 -0
  522. data/{vendor → app}/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox.css.erb +0 -0
  523. data/app/assets/stylesheets/jquery.flexslider/v2.2.2.scss +1 -0
  524. data/{vendor → app}/assets/stylesheets/jquery.flexslider/v2.2.2/jquery.flexslider.scss +0 -0
  525. data/app/assets/stylesheets/jquery.magnific-popup/v1.0.0.scss +1 -0
  526. data/app/assets/stylesheets/jquery.magnific-popup/v1.0.0/magnific-popup.css +374 -0
  527. data/app/assets/stylesheets/jquery.nivo.slider/v3.2.scss +1 -0
  528. data/{vendor → app}/assets/stylesheets/jquery.nivo.slider/v3.2/jquery.nivo.slider.css +0 -0
  529. data/{vendor → app}/assets/stylesheets/jquery.owlcarousel/v1.3.3/jquery.owlcarousel.scss +0 -0
  530. data/{vendor → app}/assets/stylesheets/jquery.owlcarousel/v1.3.3/theme.scss +0 -0
  531. data/{vendor → app}/assets/stylesheets/jquery.owlcarousel/v1.3.3/transitions.scss +0 -0
  532. data/app/assets/stylesheets/jquery.share.css +1 -0
  533. data/{vendor → app}/assets/stylesheets/jquery.share/jquery.share.scss +0 -0
  534. data/app/assets/stylesheets/lightgallery/v1.1.4.scss +1 -0
  535. data/{vendor → app}/assets/stylesheets/lightgallery/v1.1.4/lightgallery.scss +0 -0
  536. data/{vendor → app}/assets/stylesheets/nprogress/v0.1.6/nprogress-bootstrap.css +0 -0
  537. data/{vendor → app}/assets/stylesheets/nprogress/v0.1.6/nprogress.css.scss +0 -0
  538. data/app/assets/stylesheets/photoswipe/v4.0.0.scss +2 -0
  539. data/{vendor → app}/assets/stylesheets/photoswipe/v4.0.0/default-skin.scss +0 -0
  540. data/{vendor → app}/assets/stylesheets/photoswipe/v4.0.0/photoswipe.css +0 -0
  541. data/app/assets/stylesheets/photoswipe/v4.0.2.scss +2 -0
  542. data/{vendor → app}/assets/stylesheets/photoswipe/v4.0.2/default-skin.scss +0 -0
  543. data/{vendor → app}/assets/stylesheets/photoswipe/v4.0.2/photoswipe.css +0 -0
  544. data/app/assets/stylesheets/responsiveslides/v1.54.css +1 -0
  545. data/{vendor → app}/assets/stylesheets/responsiveslides/v1.54/responsiveslides.css +0 -0
  546. data/{vendor → app}/assets/stylesheets/zebra_datepicker/v1.8.9/bootstrap.scss +0 -0
  547. data/{vendor → app}/assets/stylesheets/zebra_datepicker/v1.8.9/default.scss +0 -0
  548. data/{vendor → app}/assets/stylesheets/zebra_datepicker/v1.8.9/metallic.scss +0 -0
  549. data/lib/assets-rails/engine.rb +0 -3
  550. data/lib/assets-rails/version.rb +1 -1
  551. metadata +548 -349
  552. data/vendor/assets/javascripts/masonry/v3.1.5/masonry.js +0 -205
  553. data/vendor/assets/stylesheets/font-awesome/v4.2.0.css +0 -3
  554. data/vendor/assets/stylesheets/font-awesome/v4.2.0/_path.scss +0 -14
  555. data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5.css +0 -5
  556. data/vendor/assets/stylesheets/jquery.flexslider/v2.2.2.css +0 -3
  557. data/vendor/assets/stylesheets/jquery.nivo.slider/v3.2.css +0 -3
  558. data/vendor/assets/stylesheets/jquery.share.css +0 -3
  559. data/vendor/assets/stylesheets/photoswipe/v4.0.0.css +0 -3
  560. data/vendor/assets/stylesheets/photoswipe/v4.0.2.css +0 -3
  561. data/vendor/assets/stylesheets/responsiveslides/v1.54.css +0 -3
@@ -0,0 +1,4 @@
1
+ /*! Magnific Popup - v1.0.0 - 2015-01-03
2
+ * http://dimsemenov.com/plugins/magnific-popup/
3
+ * Copyright (c) 2015 Dmitry Semenov; */
4
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",b.ev=c.mainEl&&c.mainEl.length?c.mainEl.eq(0):d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.wrap.css(b.fixedContentPos?{overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}:{top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),b.currTemplate[d]=f?a(f):!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()});
@@ -0,0 +1,2 @@
1
+ //https://github.com/levymetal/jquery-resize-image-to-parent
2
+ //= require jquery.resizeimagetoparent/jquery.resizeimagetoparent.min.js
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Plugin Name: Resize Image to Parent Container
3
+ *
4
+ * Author: Christian Varga
5
+ * Author URI: http://christianvarga.com
6
+ * Plugin Source: https://github.com/levymetal/jquery-resize-image-to-parent/
7
+ *
8
+ */
9
+
10
+ (function($) {
11
+ $.fn.resizeToParent = function(opts) {
12
+ var defaults = {
13
+ parent: 'div',
14
+ delay: 100
15
+ }
16
+
17
+ var opts = $.extend(defaults, opts);
18
+
19
+ function positionImage(obj) {
20
+ // reset image (in case we're calling this a second time, for example on resize)
21
+ obj.css({'width': '', 'height': '', 'margin-left': '', 'margin-top': ''});
22
+
23
+ // dimensions of the parent
24
+ var parentWidth = obj.parents(opts.parent).width();
25
+ var parentHeight = obj.parents(opts.parent).height();
26
+
27
+ // dimensions of the image
28
+ var imageWidth = obj.width();
29
+ var imageHeight = obj.height();
30
+
31
+ // step 1 - calculate the percentage difference between image width and container width
32
+ var diff = imageWidth / parentWidth;
33
+
34
+ // step 2 - if height divided by difference is smaller than container height, resize by height. otherwise resize by width
35
+ if ((imageHeight / diff) < parentHeight) {
36
+ obj.css({'width': 'auto', 'height': parentHeight});
37
+
38
+ // set image variables to new dimensions
39
+ imageWidth = imageWidth / (imageHeight / parentHeight);
40
+ imageHeight = parentHeight;
41
+ }
42
+ else {
43
+ obj.css({'height': 'auto', 'width': parentWidth});
44
+
45
+ // set image variables to new dimensions
46
+ imageWidth = parentWidth;
47
+ imageHeight = imageHeight / diff;
48
+ }
49
+
50
+ // step 3 - center image in container
51
+ var leftOffset = (imageWidth - parentWidth) / -2;
52
+ var topOffset = (imageHeight - parentHeight) / -2;
53
+
54
+ obj.css({'margin-left': leftOffset, 'margin-top': topOffset});
55
+ }
56
+
57
+ // run the position function on window resize (to make it responsive)
58
+ var tid;
59
+ var elems = this;
60
+
61
+ $(window).on('resize', function() {
62
+ clearTimeout(tid);
63
+ tid = setTimeout(function() {
64
+ elems.each(function() {
65
+ positionImage($(this));
66
+ });
67
+ }, opts.delay);
68
+ });
69
+
70
+ return this.each(function() {
71
+ var obj = $(this);
72
+
73
+ // hack to force ie to run the load function... ridiculous bug
74
+ // http://stackoverflow.com/questions/7137737/ie9-problems-with-jquery-load-event-not-firing
75
+ obj.attr("src", obj.attr("src"));
76
+
77
+ // bind to load of image
78
+ obj.load(function() {
79
+ positionImage(obj);
80
+ });
81
+
82
+ // run the position function if the image is cached
83
+ if (this.complete) {
84
+ positionImage(obj);
85
+ }
86
+ });
87
+ }
88
+ })( jQuery );
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Plugin Name: Resize Image to Parent Container
3
+ *
4
+ * Author: Christian Varga
5
+ * Author URI: http://christianvarga.com
6
+ *
7
+ */
8
+ (function(a){a.fn.resizeToParent=function(c){var e={parent:"div",delay:100};var c=a.extend(e,c);function f(n){n.css({width:"",height:"","margin-left":"","margin-top":""});var k=n.parents(c.parent).width();var j=n.parents(c.parent).height();var h=n.width();var g=n.height();var m=h/k;if((g/m)<j){n.css({width:"auto",height:j});h=h/(g/j);g=j}else{n.css({height:"auto",width:k});h=k;g=g/m}var l=(h-k)/-2;var i=(g-j)/-2;n.css({"margin-left":l,"margin-top":i})}var d;var b=this;a(window).on("resize",function(){clearTimeout(d);d=setTimeout(function(){b.each(function(){f(a(this))})},c.delay)});return this.each(function(){var g=a(this);g.attr("src",g.attr("src"));g.load(function(){f(g)});if(this.complete){f(g)}})}})(jQuery);
@@ -1,2 +1,2 @@
1
1
  // https://github.com/desandro/masonry/
2
- //= require masonry/v3.1.5/masonry.js
2
+ //= require masonry/v3.2.2/masonry.js
@@ -0,0 +1,2959 @@
1
+ /*!
2
+ * Masonry PACKAGED v3.2.2
3
+ * Cascading grid layout library
4
+ * http://masonry.desandro.com
5
+ * MIT License
6
+ * by David DeSandro
7
+ */
8
+
9
+ /**
10
+ * Bridget makes jQuery widgets
11
+ * v1.1.0
12
+ * MIT license
13
+ */
14
+
15
+ ( function( window ) {
16
+
17
+
18
+
19
+ // -------------------------- utils -------------------------- //
20
+
21
+ var slice = Array.prototype.slice;
22
+
23
+ function noop() {}
24
+
25
+ // -------------------------- definition -------------------------- //
26
+
27
+ function defineBridget( $ ) {
28
+
29
+ // bail if no jQuery
30
+ if ( !$ ) {
31
+ return;
32
+ }
33
+
34
+ // -------------------------- addOptionMethod -------------------------- //
35
+
36
+ /**
37
+ * adds option method -> $().plugin('option', {...})
38
+ * @param {Function} PluginClass - constructor class
39
+ */
40
+ function addOptionMethod( PluginClass ) {
41
+ // don't overwrite original option method
42
+ if ( PluginClass.prototype.option ) {
43
+ return;
44
+ }
45
+
46
+ // option setter
47
+ PluginClass.prototype.option = function( opts ) {
48
+ // bail out if not an object
49
+ if ( !$.isPlainObject( opts ) ){
50
+ return;
51
+ }
52
+ this.options = $.extend( true, this.options, opts );
53
+ };
54
+ }
55
+
56
+ // -------------------------- plugin bridge -------------------------- //
57
+
58
+ // helper function for logging errors
59
+ // $.error breaks jQuery chaining
60
+ var logError = typeof console === 'undefined' ? noop :
61
+ function( message ) {
62
+ console.error( message );
63
+ };
64
+
65
+ /**
66
+ * jQuery plugin bridge, access methods like $elem.plugin('method')
67
+ * @param {String} namespace - plugin name
68
+ * @param {Function} PluginClass - constructor class
69
+ */
70
+ function bridge( namespace, PluginClass ) {
71
+ // add to jQuery fn namespace
72
+ $.fn[ namespace ] = function( options ) {
73
+ if ( typeof options === 'string' ) {
74
+ // call plugin method when first argument is a string
75
+ // get arguments for method
76
+ var args = slice.call( arguments, 1 );
77
+
78
+ for ( var i=0, len = this.length; i < len; i++ ) {
79
+ var elem = this[i];
80
+ var instance = $.data( elem, namespace );
81
+ if ( !instance ) {
82
+ logError( "cannot call methods on " + namespace + " prior to initialization; " +
83
+ "attempted to call '" + options + "'" );
84
+ continue;
85
+ }
86
+ if ( !$.isFunction( instance[options] ) || options.charAt(0) === '_' ) {
87
+ logError( "no such method '" + options + "' for " + namespace + " instance" );
88
+ continue;
89
+ }
90
+
91
+ // trigger method with arguments
92
+ var returnValue = instance[ options ].apply( instance, args );
93
+
94
+ // break look and return first value if provided
95
+ if ( returnValue !== undefined ) {
96
+ return returnValue;
97
+ }
98
+ }
99
+ // return this if no return value
100
+ return this;
101
+ } else {
102
+ return this.each( function() {
103
+ var instance = $.data( this, namespace );
104
+ if ( instance ) {
105
+ // apply options & init
106
+ instance.option( options );
107
+ instance._init();
108
+ } else {
109
+ // initialize new instance
110
+ instance = new PluginClass( this, options );
111
+ $.data( this, namespace, instance );
112
+ }
113
+ });
114
+ }
115
+ };
116
+
117
+ }
118
+
119
+ // -------------------------- bridget -------------------------- //
120
+
121
+ /**
122
+ * converts a Prototypical class into a proper jQuery plugin
123
+ * the class must have a ._init method
124
+ * @param {String} namespace - plugin name, used in $().pluginName
125
+ * @param {Function} PluginClass - constructor class
126
+ */
127
+ $.bridget = function( namespace, PluginClass ) {
128
+ addOptionMethod( PluginClass );
129
+ bridge( namespace, PluginClass );
130
+ };
131
+
132
+ return $.bridget;
133
+
134
+ }
135
+
136
+ // transport
137
+ if ( typeof define === 'function' && define.amd ) {
138
+ // AMD
139
+ define( 'jquery-bridget/jquery.bridget',[ 'jquery' ], defineBridget );
140
+ } else if ( typeof exports === 'object' ) {
141
+ defineBridget( require('jquery') );
142
+ } else {
143
+ // get jquery from browser global
144
+ defineBridget( window.jQuery );
145
+ }
146
+
147
+ })( window );
148
+
149
+ /*!
150
+ * eventie v1.0.5
151
+ * event binding helper
152
+ * eventie.bind( elem, 'click', myFn )
153
+ * eventie.unbind( elem, 'click', myFn )
154
+ * MIT license
155
+ */
156
+
157
+ /*jshint browser: true, undef: true, unused: true */
158
+ /*global define: false, module: false */
159
+
160
+ ( function( window ) {
161
+
162
+
163
+
164
+ var docElem = document.documentElement;
165
+
166
+ var bind = function() {};
167
+
168
+ function getIEEvent( obj ) {
169
+ var event = window.event;
170
+ // add event.target
171
+ event.target = event.target || event.srcElement || obj;
172
+ return event;
173
+ }
174
+
175
+ if ( docElem.addEventListener ) {
176
+ bind = function( obj, type, fn ) {
177
+ obj.addEventListener( type, fn, false );
178
+ };
179
+ } else if ( docElem.attachEvent ) {
180
+ bind = function( obj, type, fn ) {
181
+ obj[ type + fn ] = fn.handleEvent ?
182
+ function() {
183
+ var event = getIEEvent( obj );
184
+ fn.handleEvent.call( fn, event );
185
+ } :
186
+ function() {
187
+ var event = getIEEvent( obj );
188
+ fn.call( obj, event );
189
+ };
190
+ obj.attachEvent( "on" + type, obj[ type + fn ] );
191
+ };
192
+ }
193
+
194
+ var unbind = function() {};
195
+
196
+ if ( docElem.removeEventListener ) {
197
+ unbind = function( obj, type, fn ) {
198
+ obj.removeEventListener( type, fn, false );
199
+ };
200
+ } else if ( docElem.detachEvent ) {
201
+ unbind = function( obj, type, fn ) {
202
+ obj.detachEvent( "on" + type, obj[ type + fn ] );
203
+ try {
204
+ delete obj[ type + fn ];
205
+ } catch ( err ) {
206
+ // can't delete window object properties
207
+ obj[ type + fn ] = undefined;
208
+ }
209
+ };
210
+ }
211
+
212
+ var eventie = {
213
+ bind: bind,
214
+ unbind: unbind
215
+ };
216
+
217
+ // ----- module definition ----- //
218
+
219
+ if ( typeof define === 'function' && define.amd ) {
220
+ // AMD
221
+ define( 'eventie/eventie',eventie );
222
+ } else if ( typeof exports === 'object' ) {
223
+ // CommonJS
224
+ module.exports = eventie;
225
+ } else {
226
+ // browser global
227
+ window.eventie = eventie;
228
+ }
229
+
230
+ })( this );
231
+
232
+ /*!
233
+ * docReady v1.0.4
234
+ * Cross browser DOMContentLoaded event emitter
235
+ * MIT license
236
+ */
237
+
238
+ /*jshint browser: true, strict: true, undef: true, unused: true*/
239
+ /*global define: false, require: false, module: false */
240
+
241
+ ( function( window ) {
242
+
243
+
244
+
245
+ var document = window.document;
246
+ // collection of functions to be triggered on ready
247
+ var queue = [];
248
+
249
+ function docReady( fn ) {
250
+ // throw out non-functions
251
+ if ( typeof fn !== 'function' ) {
252
+ return;
253
+ }
254
+
255
+ if ( docReady.isReady ) {
256
+ // ready now, hit it
257
+ fn();
258
+ } else {
259
+ // queue function when ready
260
+ queue.push( fn );
261
+ }
262
+ }
263
+
264
+ docReady.isReady = false;
265
+
266
+ // triggered on various doc ready events
267
+ function onReady( event ) {
268
+ // bail if already triggered or IE8 document is not ready just yet
269
+ var isIE8NotReady = event.type === 'readystatechange' && document.readyState !== 'complete';
270
+ if ( docReady.isReady || isIE8NotReady ) {
271
+ return;
272
+ }
273
+
274
+ trigger();
275
+ }
276
+
277
+ function trigger() {
278
+ docReady.isReady = true;
279
+ // process queue
280
+ for ( var i=0, len = queue.length; i < len; i++ ) {
281
+ var fn = queue[i];
282
+ fn();
283
+ }
284
+ }
285
+
286
+ function defineDocReady( eventie ) {
287
+ // trigger ready if page is ready
288
+ if ( document.readyState === 'complete' ) {
289
+ trigger();
290
+ } else {
291
+ // listen for events
292
+ eventie.bind( document, 'DOMContentLoaded', onReady );
293
+ eventie.bind( document, 'readystatechange', onReady );
294
+ eventie.bind( window, 'load', onReady );
295
+ }
296
+
297
+ return docReady;
298
+ }
299
+
300
+ // transport
301
+ if ( typeof define === 'function' && define.amd ) {
302
+ // AMD
303
+ define( 'doc-ready/doc-ready',[ 'eventie/eventie' ], defineDocReady );
304
+ } else if ( typeof exports === 'object' ) {
305
+ module.exports = defineDocReady( require('eventie') );
306
+ } else {
307
+ // browser global
308
+ window.docReady = defineDocReady( window.eventie );
309
+ }
310
+
311
+ })( window );
312
+
313
+ /*!
314
+ * EventEmitter v4.2.11 - git.io/ee
315
+ * Unlicense - http://unlicense.org/
316
+ * Oliver Caldwell - http://oli.me.uk/
317
+ * @preserve
318
+ */
319
+
320
+ ;(function () {
321
+
322
+
323
+ /**
324
+ * Class for managing events.
325
+ * Can be extended to provide event functionality in other classes.
326
+ *
327
+ * @class EventEmitter Manages event registering and emitting.
328
+ */
329
+ function EventEmitter() {}
330
+
331
+ // Shortcuts to improve speed and size
332
+ var proto = EventEmitter.prototype;
333
+ var exports = this;
334
+ var originalGlobalValue = exports.EventEmitter;
335
+
336
+ /**
337
+ * Finds the index of the listener for the event in its storage array.
338
+ *
339
+ * @param {Function[]} listeners Array of listeners to search through.
340
+ * @param {Function} listener Method to look for.
341
+ * @return {Number} Index of the specified listener, -1 if not found
342
+ * @api private
343
+ */
344
+ function indexOfListener(listeners, listener) {
345
+ var i = listeners.length;
346
+ while (i--) {
347
+ if (listeners[i].listener === listener) {
348
+ return i;
349
+ }
350
+ }
351
+
352
+ return -1;
353
+ }
354
+
355
+ /**
356
+ * Alias a method while keeping the context correct, to allow for overwriting of target method.
357
+ *
358
+ * @param {String} name The name of the target method.
359
+ * @return {Function} The aliased method
360
+ * @api private
361
+ */
362
+ function alias(name) {
363
+ return function aliasClosure() {
364
+ return this[name].apply(this, arguments);
365
+ };
366
+ }
367
+
368
+ /**
369
+ * Returns the listener array for the specified event.
370
+ * Will initialise the event object and listener arrays if required.
371
+ * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.
372
+ * Each property in the object response is an array of listener functions.
373
+ *
374
+ * @param {String|RegExp} evt Name of the event to return the listeners from.
375
+ * @return {Function[]|Object} All listener functions for the event.
376
+ */
377
+ proto.getListeners = function getListeners(evt) {
378
+ var events = this._getEvents();
379
+ var response;
380
+ var key;
381
+
382
+ // Return a concatenated array of all matching events if
383
+ // the selector is a regular expression.
384
+ if (evt instanceof RegExp) {
385
+ response = {};
386
+ for (key in events) {
387
+ if (events.hasOwnProperty(key) && evt.test(key)) {
388
+ response[key] = events[key];
389
+ }
390
+ }
391
+ }
392
+ else {
393
+ response = events[evt] || (events[evt] = []);
394
+ }
395
+
396
+ return response;
397
+ };
398
+
399
+ /**
400
+ * Takes a list of listener objects and flattens it into a list of listener functions.
401
+ *
402
+ * @param {Object[]} listeners Raw listener objects.
403
+ * @return {Function[]} Just the listener functions.
404
+ */
405
+ proto.flattenListeners = function flattenListeners(listeners) {
406
+ var flatListeners = [];
407
+ var i;
408
+
409
+ for (i = 0; i < listeners.length; i += 1) {
410
+ flatListeners.push(listeners[i].listener);
411
+ }
412
+
413
+ return flatListeners;
414
+ };
415
+
416
+ /**
417
+ * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.
418
+ *
419
+ * @param {String|RegExp} evt Name of the event to return the listeners from.
420
+ * @return {Object} All listener functions for an event in an object.
421
+ */
422
+ proto.getListenersAsObject = function getListenersAsObject(evt) {
423
+ var listeners = this.getListeners(evt);
424
+ var response;
425
+
426
+ if (listeners instanceof Array) {
427
+ response = {};
428
+ response[evt] = listeners;
429
+ }
430
+
431
+ return response || listeners;
432
+ };
433
+
434
+ /**
435
+ * Adds a listener function to the specified event.
436
+ * The listener will not be added if it is a duplicate.
437
+ * If the listener returns true then it will be removed after it is called.
438
+ * If you pass a regular expression as the event name then the listener will be added to all events that match it.
439
+ *
440
+ * @param {String|RegExp} evt Name of the event to attach the listener to.
441
+ * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
442
+ * @return {Object} Current instance of EventEmitter for chaining.
443
+ */
444
+ proto.addListener = function addListener(evt, listener) {
445
+ var listeners = this.getListenersAsObject(evt);
446
+ var listenerIsWrapped = typeof listener === 'object';
447
+ var key;
448
+
449
+ for (key in listeners) {
450
+ if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {
451
+ listeners[key].push(listenerIsWrapped ? listener : {
452
+ listener: listener,
453
+ once: false
454
+ });
455
+ }
456
+ }
457
+
458
+ return this;
459
+ };
460
+
461
+ /**
462
+ * Alias of addListener
463
+ */
464
+ proto.on = alias('addListener');
465
+
466
+ /**
467
+ * Semi-alias of addListener. It will add a listener that will be
468
+ * automatically removed after its first execution.
469
+ *
470
+ * @param {String|RegExp} evt Name of the event to attach the listener to.
471
+ * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
472
+ * @return {Object} Current instance of EventEmitter for chaining.
473
+ */
474
+ proto.addOnceListener = function addOnceListener(evt, listener) {
475
+ return this.addListener(evt, {
476
+ listener: listener,
477
+ once: true
478
+ });
479
+ };
480
+
481
+ /**
482
+ * Alias of addOnceListener.
483
+ */
484
+ proto.once = alias('addOnceListener');
485
+
486
+ /**
487
+ * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.
488
+ * You need to tell it what event names should be matched by a regex.
489
+ *
490
+ * @param {String} evt Name of the event to create.
491
+ * @return {Object} Current instance of EventEmitter for chaining.
492
+ */
493
+ proto.defineEvent = function defineEvent(evt) {
494
+ this.getListeners(evt);
495
+ return this;
496
+ };
497
+
498
+ /**
499
+ * Uses defineEvent to define multiple events.
500
+ *
501
+ * @param {String[]} evts An array of event names to define.
502
+ * @return {Object} Current instance of EventEmitter for chaining.
503
+ */
504
+ proto.defineEvents = function defineEvents(evts) {
505
+ for (var i = 0; i < evts.length; i += 1) {
506
+ this.defineEvent(evts[i]);
507
+ }
508
+ return this;
509
+ };
510
+
511
+ /**
512
+ * Removes a listener function from the specified event.
513
+ * When passed a regular expression as the event name, it will remove the listener from all events that match it.
514
+ *
515
+ * @param {String|RegExp} evt Name of the event to remove the listener from.
516
+ * @param {Function} listener Method to remove from the event.
517
+ * @return {Object} Current instance of EventEmitter for chaining.
518
+ */
519
+ proto.removeListener = function removeListener(evt, listener) {
520
+ var listeners = this.getListenersAsObject(evt);
521
+ var index;
522
+ var key;
523
+
524
+ for (key in listeners) {
525
+ if (listeners.hasOwnProperty(key)) {
526
+ index = indexOfListener(listeners[key], listener);
527
+
528
+ if (index !== -1) {
529
+ listeners[key].splice(index, 1);
530
+ }
531
+ }
532
+ }
533
+
534
+ return this;
535
+ };
536
+
537
+ /**
538
+ * Alias of removeListener
539
+ */
540
+ proto.off = alias('removeListener');
541
+
542
+ /**
543
+ * Adds listeners in bulk using the manipulateListeners method.
544
+ * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.
545
+ * You can also pass it a regular expression to add the array of listeners to all events that match it.
546
+ * Yeah, this function does quite a bit. That's probably a bad thing.
547
+ *
548
+ * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.
549
+ * @param {Function[]} [listeners] An optional array of listener functions to add.
550
+ * @return {Object} Current instance of EventEmitter for chaining.
551
+ */
552
+ proto.addListeners = function addListeners(evt, listeners) {
553
+ // Pass through to manipulateListeners
554
+ return this.manipulateListeners(false, evt, listeners);
555
+ };
556
+
557
+ /**
558
+ * Removes listeners in bulk using the manipulateListeners method.
559
+ * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
560
+ * You can also pass it an event name and an array of listeners to be removed.
561
+ * You can also pass it a regular expression to remove the listeners from all events that match it.
562
+ *
563
+ * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.
564
+ * @param {Function[]} [listeners] An optional array of listener functions to remove.
565
+ * @return {Object} Current instance of EventEmitter for chaining.
566
+ */
567
+ proto.removeListeners = function removeListeners(evt, listeners) {
568
+ // Pass through to manipulateListeners
569
+ return this.manipulateListeners(true, evt, listeners);
570
+ };
571
+
572
+ /**
573
+ * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.
574
+ * The first argument will determine if the listeners are removed (true) or added (false).
575
+ * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
576
+ * You can also pass it an event name and an array of listeners to be added/removed.
577
+ * You can also pass it a regular expression to manipulate the listeners of all events that match it.
578
+ *
579
+ * @param {Boolean} remove True if you want to remove listeners, false if you want to add.
580
+ * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.
581
+ * @param {Function[]} [listeners] An optional array of listener functions to add/remove.
582
+ * @return {Object} Current instance of EventEmitter for chaining.
583
+ */
584
+ proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {
585
+ var i;
586
+ var value;
587
+ var single = remove ? this.removeListener : this.addListener;
588
+ var multiple = remove ? this.removeListeners : this.addListeners;
589
+
590
+ // If evt is an object then pass each of its properties to this method
591
+ if (typeof evt === 'object' && !(evt instanceof RegExp)) {
592
+ for (i in evt) {
593
+ if (evt.hasOwnProperty(i) && (value = evt[i])) {
594
+ // Pass the single listener straight through to the singular method
595
+ if (typeof value === 'function') {
596
+ single.call(this, i, value);
597
+ }
598
+ else {
599
+ // Otherwise pass back to the multiple function
600
+ multiple.call(this, i, value);
601
+ }
602
+ }
603
+ }
604
+ }
605
+ else {
606
+ // So evt must be a string
607
+ // And listeners must be an array of listeners
608
+ // Loop over it and pass each one to the multiple method
609
+ i = listeners.length;
610
+ while (i--) {
611
+ single.call(this, evt, listeners[i]);
612
+ }
613
+ }
614
+
615
+ return this;
616
+ };
617
+
618
+ /**
619
+ * Removes all listeners from a specified event.
620
+ * If you do not specify an event then all listeners will be removed.
621
+ * That means every event will be emptied.
622
+ * You can also pass a regex to remove all events that match it.
623
+ *
624
+ * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.
625
+ * @return {Object} Current instance of EventEmitter for chaining.
626
+ */
627
+ proto.removeEvent = function removeEvent(evt) {
628
+ var type = typeof evt;
629
+ var events = this._getEvents();
630
+ var key;
631
+
632
+ // Remove different things depending on the state of evt
633
+ if (type === 'string') {
634
+ // Remove all listeners for the specified event
635
+ delete events[evt];
636
+ }
637
+ else if (evt instanceof RegExp) {
638
+ // Remove all events matching the regex.
639
+ for (key in events) {
640
+ if (events.hasOwnProperty(key) && evt.test(key)) {
641
+ delete events[key];
642
+ }
643
+ }
644
+ }
645
+ else {
646
+ // Remove all listeners in all events
647
+ delete this._events;
648
+ }
649
+
650
+ return this;
651
+ };
652
+
653
+ /**
654
+ * Alias of removeEvent.
655
+ *
656
+ * Added to mirror the node API.
657
+ */
658
+ proto.removeAllListeners = alias('removeEvent');
659
+
660
+ /**
661
+ * Emits an event of your choice.
662
+ * When emitted, every listener attached to that event will be executed.
663
+ * If you pass the optional argument array then those arguments will be passed to every listener upon execution.
664
+ * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.
665
+ * So they will not arrive within the array on the other side, they will be separate.
666
+ * You can also pass a regular expression to emit to all events that match it.
667
+ *
668
+ * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
669
+ * @param {Array} [args] Optional array of arguments to be passed to each listener.
670
+ * @return {Object} Current instance of EventEmitter for chaining.
671
+ */
672
+ proto.emitEvent = function emitEvent(evt, args) {
673
+ var listeners = this.getListenersAsObject(evt);
674
+ var listener;
675
+ var i;
676
+ var key;
677
+ var response;
678
+
679
+ for (key in listeners) {
680
+ if (listeners.hasOwnProperty(key)) {
681
+ i = listeners[key].length;
682
+
683
+ while (i--) {
684
+ // If the listener returns true then it shall be removed from the event
685
+ // The function is executed either with a basic call or an apply if there is an args array
686
+ listener = listeners[key][i];
687
+
688
+ if (listener.once === true) {
689
+ this.removeListener(evt, listener.listener);
690
+ }
691
+
692
+ response = listener.listener.apply(this, args || []);
693
+
694
+ if (response === this._getOnceReturnValue()) {
695
+ this.removeListener(evt, listener.listener);
696
+ }
697
+ }
698
+ }
699
+ }
700
+
701
+ return this;
702
+ };
703
+
704
+ /**
705
+ * Alias of emitEvent
706
+ */
707
+ proto.trigger = alias('emitEvent');
708
+
709
+ /**
710
+ * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.
711
+ * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.
712
+ *
713
+ * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
714
+ * @param {...*} Optional additional arguments to be passed to each listener.
715
+ * @return {Object} Current instance of EventEmitter for chaining.
716
+ */
717
+ proto.emit = function emit(evt) {
718
+ var args = Array.prototype.slice.call(arguments, 1);
719
+ return this.emitEvent(evt, args);
720
+ };
721
+
722
+ /**
723
+ * Sets the current value to check against when executing listeners. If a
724
+ * listeners return value matches the one set here then it will be removed
725
+ * after execution. This value defaults to true.
726
+ *
727
+ * @param {*} value The new value to check for when executing listeners.
728
+ * @return {Object} Current instance of EventEmitter for chaining.
729
+ */
730
+ proto.setOnceReturnValue = function setOnceReturnValue(value) {
731
+ this._onceReturnValue = value;
732
+ return this;
733
+ };
734
+
735
+ /**
736
+ * Fetches the current value to check against when executing listeners. If
737
+ * the listeners return value matches this one then it should be removed
738
+ * automatically. It will return true by default.
739
+ *
740
+ * @return {*|Boolean} The current value to check for or the default, true.
741
+ * @api private
742
+ */
743
+ proto._getOnceReturnValue = function _getOnceReturnValue() {
744
+ if (this.hasOwnProperty('_onceReturnValue')) {
745
+ return this._onceReturnValue;
746
+ }
747
+ else {
748
+ return true;
749
+ }
750
+ };
751
+
752
+ /**
753
+ * Fetches the events object and creates one if required.
754
+ *
755
+ * @return {Object} The events storage object.
756
+ * @api private
757
+ */
758
+ proto._getEvents = function _getEvents() {
759
+ return this._events || (this._events = {});
760
+ };
761
+
762
+ /**
763
+ * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.
764
+ *
765
+ * @return {Function} Non conflicting EventEmitter class.
766
+ */
767
+ EventEmitter.noConflict = function noConflict() {
768
+ exports.EventEmitter = originalGlobalValue;
769
+ return EventEmitter;
770
+ };
771
+
772
+ // Expose the class either via AMD, CommonJS or the global object
773
+ if (typeof define === 'function' && define.amd) {
774
+ define('eventEmitter/EventEmitter',[],function () {
775
+ return EventEmitter;
776
+ });
777
+ }
778
+ else if (typeof module === 'object' && module.exports){
779
+ module.exports = EventEmitter;
780
+ }
781
+ else {
782
+ exports.EventEmitter = EventEmitter;
783
+ }
784
+ }.call(this));
785
+
786
+ /*!
787
+ * getStyleProperty v1.0.4
788
+ * original by kangax
789
+ * http://perfectionkills.com/feature-testing-css-properties/
790
+ * MIT license
791
+ */
792
+
793
+ /*jshint browser: true, strict: true, undef: true */
794
+ /*global define: false, exports: false, module: false */
795
+
796
+ ( function( window ) {
797
+
798
+
799
+
800
+ var prefixes = 'Webkit Moz ms Ms O'.split(' ');
801
+ var docElemStyle = document.documentElement.style;
802
+
803
+ function getStyleProperty( propName ) {
804
+ if ( !propName ) {
805
+ return;
806
+ }
807
+
808
+ // test standard property first
809
+ if ( typeof docElemStyle[ propName ] === 'string' ) {
810
+ return propName;
811
+ }
812
+
813
+ // capitalize
814
+ propName = propName.charAt(0).toUpperCase() + propName.slice(1);
815
+
816
+ // test vendor specific properties
817
+ var prefixed;
818
+ for ( var i=0, len = prefixes.length; i < len; i++ ) {
819
+ prefixed = prefixes[i] + propName;
820
+ if ( typeof docElemStyle[ prefixed ] === 'string' ) {
821
+ return prefixed;
822
+ }
823
+ }
824
+ }
825
+
826
+ // transport
827
+ if ( typeof define === 'function' && define.amd ) {
828
+ // AMD
829
+ define( 'get-style-property/get-style-property',[],function() {
830
+ return getStyleProperty;
831
+ });
832
+ } else if ( typeof exports === 'object' ) {
833
+ // CommonJS for Component
834
+ module.exports = getStyleProperty;
835
+ } else {
836
+ // browser global
837
+ window.getStyleProperty = getStyleProperty;
838
+ }
839
+
840
+ })( window );
841
+
842
+ /*!
843
+ * getSize v1.2.2
844
+ * measure size of elements
845
+ * MIT license
846
+ */
847
+
848
+ /*jshint browser: true, strict: true, undef: true, unused: true */
849
+ /*global define: false, exports: false, require: false, module: false, console: false */
850
+
851
+ ( function( window, undefined ) {
852
+
853
+
854
+
855
+ // -------------------------- helpers -------------------------- //
856
+
857
+ // get a number from a string, not a percentage
858
+ function getStyleSize( value ) {
859
+ var num = parseFloat( value );
860
+ // not a percent like '100%', and a number
861
+ var isValid = value.indexOf('%') === -1 && !isNaN( num );
862
+ return isValid && num;
863
+ }
864
+
865
+ function noop() {}
866
+
867
+ var logError = typeof console === 'undefined' ? noop :
868
+ function( message ) {
869
+ console.error( message );
870
+ };
871
+
872
+ // -------------------------- measurements -------------------------- //
873
+
874
+ var measurements = [
875
+ 'paddingLeft',
876
+ 'paddingRight',
877
+ 'paddingTop',
878
+ 'paddingBottom',
879
+ 'marginLeft',
880
+ 'marginRight',
881
+ 'marginTop',
882
+ 'marginBottom',
883
+ 'borderLeftWidth',
884
+ 'borderRightWidth',
885
+ 'borderTopWidth',
886
+ 'borderBottomWidth'
887
+ ];
888
+
889
+ function getZeroSize() {
890
+ var size = {
891
+ width: 0,
892
+ height: 0,
893
+ innerWidth: 0,
894
+ innerHeight: 0,
895
+ outerWidth: 0,
896
+ outerHeight: 0
897
+ };
898
+ for ( var i=0, len = measurements.length; i < len; i++ ) {
899
+ var measurement = measurements[i];
900
+ size[ measurement ] = 0;
901
+ }
902
+ return size;
903
+ }
904
+
905
+
906
+
907
+ function defineGetSize( getStyleProperty ) {
908
+
909
+ // -------------------------- setup -------------------------- //
910
+
911
+ var isSetup = false;
912
+
913
+ var getStyle, boxSizingProp, isBoxSizeOuter;
914
+
915
+ /**
916
+ * setup vars and functions
917
+ * do it on initial getSize(), rather than on script load
918
+ * For Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=548397
919
+ */
920
+ function setup() {
921
+ // setup once
922
+ if ( isSetup ) {
923
+ return;
924
+ }
925
+ isSetup = true;
926
+
927
+ var getComputedStyle = window.getComputedStyle;
928
+ getStyle = ( function() {
929
+ var getStyleFn = getComputedStyle ?
930
+ function( elem ) {
931
+ return getComputedStyle( elem, null );
932
+ } :
933
+ function( elem ) {
934
+ return elem.currentStyle;
935
+ };
936
+
937
+ return function getStyle( elem ) {
938
+ var style = getStyleFn( elem );
939
+ if ( !style ) {
940
+ logError( 'Style returned ' + style +
941
+ '. Are you running this code in a hidden iframe on Firefox? ' +
942
+ 'See http://bit.ly/getsizebug1' );
943
+ }
944
+ return style;
945
+ };
946
+ })();
947
+
948
+ // -------------------------- box sizing -------------------------- //
949
+
950
+ boxSizingProp = getStyleProperty('boxSizing');
951
+
952
+ /**
953
+ * WebKit measures the outer-width on style.width on border-box elems
954
+ * IE & Firefox measures the inner-width
955
+ */
956
+ if ( boxSizingProp ) {
957
+ var div = document.createElement('div');
958
+ div.style.width = '200px';
959
+ div.style.padding = '1px 2px 3px 4px';
960
+ div.style.borderStyle = 'solid';
961
+ div.style.borderWidth = '1px 2px 3px 4px';
962
+ div.style[ boxSizingProp ] = 'border-box';
963
+
964
+ var body = document.body || document.documentElement;
965
+ body.appendChild( div );
966
+ var style = getStyle( div );
967
+
968
+ isBoxSizeOuter = getStyleSize( style.width ) === 200;
969
+ body.removeChild( div );
970
+ }
971
+
972
+ }
973
+
974
+ // -------------------------- getSize -------------------------- //
975
+
976
+ function getSize( elem ) {
977
+ setup();
978
+
979
+ // use querySeletor if elem is string
980
+ if ( typeof elem === 'string' ) {
981
+ elem = document.querySelector( elem );
982
+ }
983
+
984
+ // do not proceed on non-objects
985
+ if ( !elem || typeof elem !== 'object' || !elem.nodeType ) {
986
+ return;
987
+ }
988
+
989
+ var style = getStyle( elem );
990
+
991
+ // if hidden, everything is 0
992
+ if ( style.display === 'none' ) {
993
+ return getZeroSize();
994
+ }
995
+
996
+ var size = {};
997
+ size.width = elem.offsetWidth;
998
+ size.height = elem.offsetHeight;
999
+
1000
+ var isBorderBox = size.isBorderBox = !!( boxSizingProp &&
1001
+ style[ boxSizingProp ] && style[ boxSizingProp ] === 'border-box' );
1002
+
1003
+ // get all measurements
1004
+ for ( var i=0, len = measurements.length; i < len; i++ ) {
1005
+ var measurement = measurements[i];
1006
+ var value = style[ measurement ];
1007
+ value = mungeNonPixel( elem, value );
1008
+ var num = parseFloat( value );
1009
+ // any 'auto', 'medium' value will be 0
1010
+ size[ measurement ] = !isNaN( num ) ? num : 0;
1011
+ }
1012
+
1013
+ var paddingWidth = size.paddingLeft + size.paddingRight;
1014
+ var paddingHeight = size.paddingTop + size.paddingBottom;
1015
+ var marginWidth = size.marginLeft + size.marginRight;
1016
+ var marginHeight = size.marginTop + size.marginBottom;
1017
+ var borderWidth = size.borderLeftWidth + size.borderRightWidth;
1018
+ var borderHeight = size.borderTopWidth + size.borderBottomWidth;
1019
+
1020
+ var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;
1021
+
1022
+ // overwrite width and height if we can get it from style
1023
+ var styleWidth = getStyleSize( style.width );
1024
+ if ( styleWidth !== false ) {
1025
+ size.width = styleWidth +
1026
+ // add padding and border unless it's already including it
1027
+ ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth );
1028
+ }
1029
+
1030
+ var styleHeight = getStyleSize( style.height );
1031
+ if ( styleHeight !== false ) {
1032
+ size.height = styleHeight +
1033
+ // add padding and border unless it's already including it
1034
+ ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight );
1035
+ }
1036
+
1037
+ size.innerWidth = size.width - ( paddingWidth + borderWidth );
1038
+ size.innerHeight = size.height - ( paddingHeight + borderHeight );
1039
+
1040
+ size.outerWidth = size.width + marginWidth;
1041
+ size.outerHeight = size.height + marginHeight;
1042
+
1043
+ return size;
1044
+ }
1045
+
1046
+ // IE8 returns percent values, not pixels
1047
+ // taken from jQuery's curCSS
1048
+ function mungeNonPixel( elem, value ) {
1049
+ // IE8 and has percent value
1050
+ if ( window.getComputedStyle || value.indexOf('%') === -1 ) {
1051
+ return value;
1052
+ }
1053
+ var style = elem.style;
1054
+ // Remember the original values
1055
+ var left = style.left;
1056
+ var rs = elem.runtimeStyle;
1057
+ var rsLeft = rs && rs.left;
1058
+
1059
+ // Put in the new values to get a computed value out
1060
+ if ( rsLeft ) {
1061
+ rs.left = elem.currentStyle.left;
1062
+ }
1063
+ style.left = value;
1064
+ value = style.pixelLeft;
1065
+
1066
+ // Revert the changed values
1067
+ style.left = left;
1068
+ if ( rsLeft ) {
1069
+ rs.left = rsLeft;
1070
+ }
1071
+
1072
+ return value;
1073
+ }
1074
+
1075
+ return getSize;
1076
+
1077
+ }
1078
+
1079
+ // transport
1080
+ if ( typeof define === 'function' && define.amd ) {
1081
+ // AMD for RequireJS
1082
+ define( 'get-size/get-size',[ 'get-style-property/get-style-property' ], defineGetSize );
1083
+ } else if ( typeof exports === 'object' ) {
1084
+ // CommonJS for Component
1085
+ module.exports = defineGetSize( require('desandro-get-style-property') );
1086
+ } else {
1087
+ // browser global
1088
+ window.getSize = defineGetSize( window.getStyleProperty );
1089
+ }
1090
+
1091
+ })( window );
1092
+
1093
+ /**
1094
+ * matchesSelector v1.0.2
1095
+ * matchesSelector( element, '.selector' )
1096
+ * MIT license
1097
+ */
1098
+
1099
+ /*jshint browser: true, strict: true, undef: true, unused: true */
1100
+ /*global define: false, module: false */
1101
+
1102
+ ( function( ElemProto ) {
1103
+
1104
+
1105
+
1106
+ var matchesMethod = ( function() {
1107
+ // check un-prefixed
1108
+ if ( ElemProto.matchesSelector ) {
1109
+ return 'matchesSelector';
1110
+ }
1111
+ // check vendor prefixes
1112
+ var prefixes = [ 'webkit', 'moz', 'ms', 'o' ];
1113
+
1114
+ for ( var i=0, len = prefixes.length; i < len; i++ ) {
1115
+ var prefix = prefixes[i];
1116
+ var method = prefix + 'MatchesSelector';
1117
+ if ( ElemProto[ method ] ) {
1118
+ return method;
1119
+ }
1120
+ }
1121
+ })();
1122
+
1123
+ // ----- match ----- //
1124
+
1125
+ function match( elem, selector ) {
1126
+ return elem[ matchesMethod ]( selector );
1127
+ }
1128
+
1129
+ // ----- appendToFragment ----- //
1130
+
1131
+ function checkParent( elem ) {
1132
+ // not needed if already has parent
1133
+ if ( elem.parentNode ) {
1134
+ return;
1135
+ }
1136
+ var fragment = document.createDocumentFragment();
1137
+ fragment.appendChild( elem );
1138
+ }
1139
+
1140
+ // ----- query ----- //
1141
+
1142
+ // fall back to using QSA
1143
+ // thx @jonathantneal https://gist.github.com/3062955
1144
+ function query( elem, selector ) {
1145
+ // append to fragment if no parent
1146
+ checkParent( elem );
1147
+
1148
+ // match elem with all selected elems of parent
1149
+ var elems = elem.parentNode.querySelectorAll( selector );
1150
+ for ( var i=0, len = elems.length; i < len; i++ ) {
1151
+ // return true if match
1152
+ if ( elems[i] === elem ) {
1153
+ return true;
1154
+ }
1155
+ }
1156
+ // otherwise return false
1157
+ return false;
1158
+ }
1159
+
1160
+ // ----- matchChild ----- //
1161
+
1162
+ function matchChild( elem, selector ) {
1163
+ checkParent( elem );
1164
+ return match( elem, selector );
1165
+ }
1166
+
1167
+ // ----- matchesSelector ----- //
1168
+
1169
+ var matchesSelector;
1170
+
1171
+ if ( matchesMethod ) {
1172
+ // IE9 supports matchesSelector, but doesn't work on orphaned elems
1173
+ // check for that
1174
+ var div = document.createElement('div');
1175
+ var supportsOrphans = match( div, 'div' );
1176
+ matchesSelector = supportsOrphans ? match : matchChild;
1177
+ } else {
1178
+ matchesSelector = query;
1179
+ }
1180
+
1181
+ // transport
1182
+ if ( typeof define === 'function' && define.amd ) {
1183
+ // AMD
1184
+ define( 'matches-selector/matches-selector',[],function() {
1185
+ return matchesSelector;
1186
+ });
1187
+ } else if ( typeof exports === 'object' ) {
1188
+ module.exports = matchesSelector;
1189
+ }
1190
+ else {
1191
+ // browser global
1192
+ window.matchesSelector = matchesSelector;
1193
+ }
1194
+
1195
+ })( Element.prototype );
1196
+
1197
+ /**
1198
+ * Outlayer Item
1199
+ */
1200
+
1201
+ ( function( window ) {
1202
+
1203
+
1204
+
1205
+ // ----- get style ----- //
1206
+
1207
+ var getComputedStyle = window.getComputedStyle;
1208
+ var getStyle = getComputedStyle ?
1209
+ function( elem ) {
1210
+ return getComputedStyle( elem, null );
1211
+ } :
1212
+ function( elem ) {
1213
+ return elem.currentStyle;
1214
+ };
1215
+
1216
+
1217
+ // extend objects
1218
+ function extend( a, b ) {
1219
+ for ( var prop in b ) {
1220
+ a[ prop ] = b[ prop ];
1221
+ }
1222
+ return a;
1223
+ }
1224
+
1225
+ function isEmptyObj( obj ) {
1226
+ for ( var prop in obj ) {
1227
+ return false;
1228
+ }
1229
+ prop = null;
1230
+ return true;
1231
+ }
1232
+
1233
+ // http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/
1234
+ function toDash( str ) {
1235
+ return str.replace( /([A-Z])/g, function( $1 ){
1236
+ return '-' + $1.toLowerCase();
1237
+ });
1238
+ }
1239
+
1240
+ // -------------------------- Outlayer definition -------------------------- //
1241
+
1242
+ function outlayerItemDefinition( EventEmitter, getSize, getStyleProperty ) {
1243
+
1244
+ // -------------------------- CSS3 support -------------------------- //
1245
+
1246
+ var transitionProperty = getStyleProperty('transition');
1247
+ var transformProperty = getStyleProperty('transform');
1248
+ var supportsCSS3 = transitionProperty && transformProperty;
1249
+ var is3d = !!getStyleProperty('perspective');
1250
+
1251
+ var transitionEndEvent = {
1252
+ WebkitTransition: 'webkitTransitionEnd',
1253
+ MozTransition: 'transitionend',
1254
+ OTransition: 'otransitionend',
1255
+ transition: 'transitionend'
1256
+ }[ transitionProperty ];
1257
+
1258
+ // properties that could have vendor prefix
1259
+ var prefixableProperties = [
1260
+ 'transform',
1261
+ 'transition',
1262
+ 'transitionDuration',
1263
+ 'transitionProperty'
1264
+ ];
1265
+
1266
+ // cache all vendor properties
1267
+ var vendorProperties = ( function() {
1268
+ var cache = {};
1269
+ for ( var i=0, len = prefixableProperties.length; i < len; i++ ) {
1270
+ var prop = prefixableProperties[i];
1271
+ var supportedProp = getStyleProperty( prop );
1272
+ if ( supportedProp && supportedProp !== prop ) {
1273
+ cache[ prop ] = supportedProp;
1274
+ }
1275
+ }
1276
+ return cache;
1277
+ })();
1278
+
1279
+ // -------------------------- Item -------------------------- //
1280
+
1281
+ function Item( element, layout ) {
1282
+ if ( !element ) {
1283
+ return;
1284
+ }
1285
+
1286
+ this.element = element;
1287
+ // parent layout class, i.e. Masonry, Isotope, or Packery
1288
+ this.layout = layout;
1289
+ this.position = {
1290
+ x: 0,
1291
+ y: 0
1292
+ };
1293
+
1294
+ this._create();
1295
+ }
1296
+
1297
+ // inherit EventEmitter
1298
+ extend( Item.prototype, EventEmitter.prototype );
1299
+
1300
+ Item.prototype._create = function() {
1301
+ // transition objects
1302
+ this._transn = {
1303
+ ingProperties: {},
1304
+ clean: {},
1305
+ onEnd: {}
1306
+ };
1307
+
1308
+ this.css({
1309
+ position: 'absolute'
1310
+ });
1311
+ };
1312
+
1313
+ // trigger specified handler for event type
1314
+ Item.prototype.handleEvent = function( event ) {
1315
+ var method = 'on' + event.type;
1316
+ if ( this[ method ] ) {
1317
+ this[ method ]( event );
1318
+ }
1319
+ };
1320
+
1321
+ Item.prototype.getSize = function() {
1322
+ this.size = getSize( this.element );
1323
+ };
1324
+
1325
+ /**
1326
+ * apply CSS styles to element
1327
+ * @param {Object} style
1328
+ */
1329
+ Item.prototype.css = function( style ) {
1330
+ var elemStyle = this.element.style;
1331
+
1332
+ for ( var prop in style ) {
1333
+ // use vendor property if available
1334
+ var supportedProp = vendorProperties[ prop ] || prop;
1335
+ elemStyle[ supportedProp ] = style[ prop ];
1336
+ }
1337
+ };
1338
+
1339
+ // measure position, and sets it
1340
+ Item.prototype.getPosition = function() {
1341
+ var style = getStyle( this.element );
1342
+ var layoutOptions = this.layout.options;
1343
+ var isOriginLeft = layoutOptions.isOriginLeft;
1344
+ var isOriginTop = layoutOptions.isOriginTop;
1345
+ var x = parseInt( style[ isOriginLeft ? 'left' : 'right' ], 10 );
1346
+ var y = parseInt( style[ isOriginTop ? 'top' : 'bottom' ], 10 );
1347
+
1348
+ // clean up 'auto' or other non-integer values
1349
+ x = isNaN( x ) ? 0 : x;
1350
+ y = isNaN( y ) ? 0 : y;
1351
+ // remove padding from measurement
1352
+ var layoutSize = this.layout.size;
1353
+ x -= isOriginLeft ? layoutSize.paddingLeft : layoutSize.paddingRight;
1354
+ y -= isOriginTop ? layoutSize.paddingTop : layoutSize.paddingBottom;
1355
+
1356
+ this.position.x = x;
1357
+ this.position.y = y;
1358
+ };
1359
+
1360
+ // set settled position, apply padding
1361
+ Item.prototype.layoutPosition = function() {
1362
+ var layoutSize = this.layout.size;
1363
+ var layoutOptions = this.layout.options;
1364
+ var style = {};
1365
+
1366
+ if ( layoutOptions.isOriginLeft ) {
1367
+ style.left = ( this.position.x + layoutSize.paddingLeft ) + 'px';
1368
+ // reset other property
1369
+ style.right = '';
1370
+ } else {
1371
+ style.right = ( this.position.x + layoutSize.paddingRight ) + 'px';
1372
+ style.left = '';
1373
+ }
1374
+
1375
+ if ( layoutOptions.isOriginTop ) {
1376
+ style.top = ( this.position.y + layoutSize.paddingTop ) + 'px';
1377
+ style.bottom = '';
1378
+ } else {
1379
+ style.bottom = ( this.position.y + layoutSize.paddingBottom ) + 'px';
1380
+ style.top = '';
1381
+ }
1382
+
1383
+ this.css( style );
1384
+ this.emitEvent( 'layout', [ this ] );
1385
+ };
1386
+
1387
+
1388
+ // transform translate function
1389
+ var translate = is3d ?
1390
+ function( x, y ) {
1391
+ return 'translate3d(' + x + 'px, ' + y + 'px, 0)';
1392
+ } :
1393
+ function( x, y ) {
1394
+ return 'translate(' + x + 'px, ' + y + 'px)';
1395
+ };
1396
+
1397
+
1398
+ Item.prototype._transitionTo = function( x, y ) {
1399
+ this.getPosition();
1400
+ // get current x & y from top/left
1401
+ var curX = this.position.x;
1402
+ var curY = this.position.y;
1403
+
1404
+ var compareX = parseInt( x, 10 );
1405
+ var compareY = parseInt( y, 10 );
1406
+ var didNotMove = compareX === this.position.x && compareY === this.position.y;
1407
+
1408
+ // save end position
1409
+ this.setPosition( x, y );
1410
+
1411
+ // if did not move and not transitioning, just go to layout
1412
+ if ( didNotMove && !this.isTransitioning ) {
1413
+ this.layoutPosition();
1414
+ return;
1415
+ }
1416
+
1417
+ var transX = x - curX;
1418
+ var transY = y - curY;
1419
+ var transitionStyle = {};
1420
+ // flip cooridinates if origin on right or bottom
1421
+ var layoutOptions = this.layout.options;
1422
+ transX = layoutOptions.isOriginLeft ? transX : -transX;
1423
+ transY = layoutOptions.isOriginTop ? transY : -transY;
1424
+ transitionStyle.transform = translate( transX, transY );
1425
+
1426
+ this.transition({
1427
+ to: transitionStyle,
1428
+ onTransitionEnd: {
1429
+ transform: this.layoutPosition
1430
+ },
1431
+ isCleaning: true
1432
+ });
1433
+ };
1434
+
1435
+ // non transition + transform support
1436
+ Item.prototype.goTo = function( x, y ) {
1437
+ this.setPosition( x, y );
1438
+ this.layoutPosition();
1439
+ };
1440
+
1441
+ // use transition and transforms if supported
1442
+ Item.prototype.moveTo = supportsCSS3 ?
1443
+ Item.prototype._transitionTo : Item.prototype.goTo;
1444
+
1445
+ Item.prototype.setPosition = function( x, y ) {
1446
+ this.position.x = parseInt( x, 10 );
1447
+ this.position.y = parseInt( y, 10 );
1448
+ };
1449
+
1450
+ // ----- transition ----- //
1451
+
1452
+ /**
1453
+ * @param {Object} style - CSS
1454
+ * @param {Function} onTransitionEnd
1455
+ */
1456
+
1457
+ // non transition, just trigger callback
1458
+ Item.prototype._nonTransition = function( args ) {
1459
+ this.css( args.to );
1460
+ if ( args.isCleaning ) {
1461
+ this._removeStyles( args.to );
1462
+ }
1463
+ for ( var prop in args.onTransitionEnd ) {
1464
+ args.onTransitionEnd[ prop ].call( this );
1465
+ }
1466
+ };
1467
+
1468
+ /**
1469
+ * proper transition
1470
+ * @param {Object} args - arguments
1471
+ * @param {Object} to - style to transition to
1472
+ * @param {Object} from - style to start transition from
1473
+ * @param {Boolean} isCleaning - removes transition styles after transition
1474
+ * @param {Function} onTransitionEnd - callback
1475
+ */
1476
+ Item.prototype._transition = function( args ) {
1477
+ // redirect to nonTransition if no transition duration
1478
+ if ( !parseFloat( this.layout.options.transitionDuration ) ) {
1479
+ this._nonTransition( args );
1480
+ return;
1481
+ }
1482
+
1483
+ var _transition = this._transn;
1484
+ // keep track of onTransitionEnd callback by css property
1485
+ for ( var prop in args.onTransitionEnd ) {
1486
+ _transition.onEnd[ prop ] = args.onTransitionEnd[ prop ];
1487
+ }
1488
+ // keep track of properties that are transitioning
1489
+ for ( prop in args.to ) {
1490
+ _transition.ingProperties[ prop ] = true;
1491
+ // keep track of properties to clean up when transition is done
1492
+ if ( args.isCleaning ) {
1493
+ _transition.clean[ prop ] = true;
1494
+ }
1495
+ }
1496
+
1497
+ // set from styles
1498
+ if ( args.from ) {
1499
+ this.css( args.from );
1500
+ // force redraw. http://blog.alexmaccaw.com/css-transitions
1501
+ var h = this.element.offsetHeight;
1502
+ // hack for JSHint to hush about unused var
1503
+ h = null;
1504
+ }
1505
+ // enable transition
1506
+ this.enableTransition( args.to );
1507
+ // set styles that are transitioning
1508
+ this.css( args.to );
1509
+
1510
+ this.isTransitioning = true;
1511
+
1512
+ };
1513
+
1514
+ var itemTransitionProperties = transformProperty && ( toDash( transformProperty ) +
1515
+ ',opacity' );
1516
+
1517
+ Item.prototype.enableTransition = function(/* style */) {
1518
+ // only enable if not already transitioning
1519
+ // bug in IE10 were re-setting transition style will prevent
1520
+ // transitionend event from triggering
1521
+ if ( this.isTransitioning ) {
1522
+ return;
1523
+ }
1524
+
1525
+ // make transition: foo, bar, baz from style object
1526
+ // TODO uncomment this bit when IE10 bug is resolved
1527
+ // var transitionValue = [];
1528
+ // for ( var prop in style ) {
1529
+ // // dash-ify camelCased properties like WebkitTransition
1530
+ // transitionValue.push( toDash( prop ) );
1531
+ // }
1532
+ // enable transition styles
1533
+ // HACK always enable transform,opacity for IE10
1534
+ this.css({
1535
+ transitionProperty: itemTransitionProperties,
1536
+ transitionDuration: this.layout.options.transitionDuration
1537
+ });
1538
+ // listen for transition end event
1539
+ this.element.addEventListener( transitionEndEvent, this, false );
1540
+ };
1541
+
1542
+ Item.prototype.transition = Item.prototype[ transitionProperty ? '_transition' : '_nonTransition' ];
1543
+
1544
+ // ----- events ----- //
1545
+
1546
+ Item.prototype.onwebkitTransitionEnd = function( event ) {
1547
+ this.ontransitionend( event );
1548
+ };
1549
+
1550
+ Item.prototype.onotransitionend = function( event ) {
1551
+ this.ontransitionend( event );
1552
+ };
1553
+
1554
+ // properties that I munge to make my life easier
1555
+ var dashedVendorProperties = {
1556
+ '-webkit-transform': 'transform',
1557
+ '-moz-transform': 'transform',
1558
+ '-o-transform': 'transform'
1559
+ };
1560
+
1561
+ Item.prototype.ontransitionend = function( event ) {
1562
+ // disregard bubbled events from children
1563
+ if ( event.target !== this.element ) {
1564
+ return;
1565
+ }
1566
+ var _transition = this._transn;
1567
+ // get property name of transitioned property, convert to prefix-free
1568
+ var propertyName = dashedVendorProperties[ event.propertyName ] || event.propertyName;
1569
+
1570
+ // remove property that has completed transitioning
1571
+ delete _transition.ingProperties[ propertyName ];
1572
+ // check if any properties are still transitioning
1573
+ if ( isEmptyObj( _transition.ingProperties ) ) {
1574
+ // all properties have completed transitioning
1575
+ this.disableTransition();
1576
+ }
1577
+ // clean style
1578
+ if ( propertyName in _transition.clean ) {
1579
+ // clean up style
1580
+ this.element.style[ event.propertyName ] = '';
1581
+ delete _transition.clean[ propertyName ];
1582
+ }
1583
+ // trigger onTransitionEnd callback
1584
+ if ( propertyName in _transition.onEnd ) {
1585
+ var onTransitionEnd = _transition.onEnd[ propertyName ];
1586
+ onTransitionEnd.call( this );
1587
+ delete _transition.onEnd[ propertyName ];
1588
+ }
1589
+
1590
+ this.emitEvent( 'transitionEnd', [ this ] );
1591
+ };
1592
+
1593
+ Item.prototype.disableTransition = function() {
1594
+ this.removeTransitionStyles();
1595
+ this.element.removeEventListener( transitionEndEvent, this, false );
1596
+ this.isTransitioning = false;
1597
+ };
1598
+
1599
+ /**
1600
+ * removes style property from element
1601
+ * @param {Object} style
1602
+ **/
1603
+ Item.prototype._removeStyles = function( style ) {
1604
+ // clean up transition styles
1605
+ var cleanStyle = {};
1606
+ for ( var prop in style ) {
1607
+ cleanStyle[ prop ] = '';
1608
+ }
1609
+ this.css( cleanStyle );
1610
+ };
1611
+
1612
+ var cleanTransitionStyle = {
1613
+ transitionProperty: '',
1614
+ transitionDuration: ''
1615
+ };
1616
+
1617
+ Item.prototype.removeTransitionStyles = function() {
1618
+ // remove transition
1619
+ this.css( cleanTransitionStyle );
1620
+ };
1621
+
1622
+ // ----- show/hide/remove ----- //
1623
+
1624
+ // remove element from DOM
1625
+ Item.prototype.removeElem = function() {
1626
+ this.element.parentNode.removeChild( this.element );
1627
+ this.emitEvent( 'remove', [ this ] );
1628
+ };
1629
+
1630
+ Item.prototype.remove = function() {
1631
+ // just remove element if no transition support or no transition
1632
+ if ( !transitionProperty || !parseFloat( this.layout.options.transitionDuration ) ) {
1633
+ this.removeElem();
1634
+ return;
1635
+ }
1636
+
1637
+ // start transition
1638
+ var _this = this;
1639
+ this.on( 'transitionEnd', function() {
1640
+ _this.removeElem();
1641
+ return true; // bind once
1642
+ });
1643
+ this.hide();
1644
+ };
1645
+
1646
+ Item.prototype.reveal = function() {
1647
+ delete this.isHidden;
1648
+ // remove display: none
1649
+ this.css({ display: '' });
1650
+
1651
+ var options = this.layout.options;
1652
+ this.transition({
1653
+ from: options.hiddenStyle,
1654
+ to: options.visibleStyle,
1655
+ isCleaning: true
1656
+ });
1657
+ };
1658
+
1659
+ Item.prototype.hide = function() {
1660
+ // set flag
1661
+ this.isHidden = true;
1662
+ // remove display: none
1663
+ this.css({ display: '' });
1664
+
1665
+ var options = this.layout.options;
1666
+ this.transition({
1667
+ from: options.visibleStyle,
1668
+ to: options.hiddenStyle,
1669
+ // keep hidden stuff hidden
1670
+ isCleaning: true,
1671
+ onTransitionEnd: {
1672
+ opacity: function() {
1673
+ // check if still hidden
1674
+ // during transition, item may have been un-hidden
1675
+ if ( this.isHidden ) {
1676
+ this.css({ display: 'none' });
1677
+ }
1678
+ }
1679
+ }
1680
+ });
1681
+ };
1682
+
1683
+ Item.prototype.destroy = function() {
1684
+ this.css({
1685
+ position: '',
1686
+ left: '',
1687
+ right: '',
1688
+ top: '',
1689
+ bottom: '',
1690
+ transition: '',
1691
+ transform: ''
1692
+ });
1693
+ };
1694
+
1695
+ return Item;
1696
+
1697
+ }
1698
+
1699
+ // -------------------------- transport -------------------------- //
1700
+
1701
+ if ( typeof define === 'function' && define.amd ) {
1702
+ // AMD
1703
+ define( 'outlayer/item',[
1704
+ 'eventEmitter/EventEmitter',
1705
+ 'get-size/get-size',
1706
+ 'get-style-property/get-style-property'
1707
+ ],
1708
+ outlayerItemDefinition );
1709
+ } else if (typeof exports === 'object') {
1710
+ // CommonJS
1711
+ module.exports = outlayerItemDefinition(
1712
+ require('wolfy87-eventemitter'),
1713
+ require('get-size'),
1714
+ require('desandro-get-style-property')
1715
+ );
1716
+ } else {
1717
+ // browser global
1718
+ window.Outlayer = {};
1719
+ window.Outlayer.Item = outlayerItemDefinition(
1720
+ window.EventEmitter,
1721
+ window.getSize,
1722
+ window.getStyleProperty
1723
+ );
1724
+ }
1725
+
1726
+ })( window );
1727
+
1728
+ /*!
1729
+ * Outlayer v1.3.0
1730
+ * the brains and guts of a layout library
1731
+ * MIT license
1732
+ */
1733
+
1734
+ ( function( window ) {
1735
+
1736
+
1737
+
1738
+ // ----- vars ----- //
1739
+
1740
+ var document = window.document;
1741
+ var console = window.console;
1742
+ var jQuery = window.jQuery;
1743
+ var noop = function() {};
1744
+
1745
+ // -------------------------- helpers -------------------------- //
1746
+
1747
+ // extend objects
1748
+ function extend( a, b ) {
1749
+ for ( var prop in b ) {
1750
+ a[ prop ] = b[ prop ];
1751
+ }
1752
+ return a;
1753
+ }
1754
+
1755
+
1756
+ var objToString = Object.prototype.toString;
1757
+ function isArray( obj ) {
1758
+ return objToString.call( obj ) === '[object Array]';
1759
+ }
1760
+
1761
+ // turn element or nodeList into an array
1762
+ function makeArray( obj ) {
1763
+ var ary = [];
1764
+ if ( isArray( obj ) ) {
1765
+ // use object if already an array
1766
+ ary = obj;
1767
+ } else if ( obj && typeof obj.length === 'number' ) {
1768
+ // convert nodeList to array
1769
+ for ( var i=0, len = obj.length; i < len; i++ ) {
1770
+ ary.push( obj[i] );
1771
+ }
1772
+ } else {
1773
+ // array of single index
1774
+ ary.push( obj );
1775
+ }
1776
+ return ary;
1777
+ }
1778
+
1779
+ // http://stackoverflow.com/a/384380/182183
1780
+ var isElement = ( typeof HTMLElement === 'function' || typeof HTMLElement === 'object' ) ?
1781
+ function isElementDOM2( obj ) {
1782
+ return obj instanceof HTMLElement;
1783
+ } :
1784
+ function isElementQuirky( obj ) {
1785
+ return obj && typeof obj === 'object' &&
1786
+ obj.nodeType === 1 && typeof obj.nodeName === 'string';
1787
+ };
1788
+
1789
+ // index of helper cause IE8
1790
+ var indexOf = Array.prototype.indexOf ? function( ary, obj ) {
1791
+ return ary.indexOf( obj );
1792
+ } : function( ary, obj ) {
1793
+ for ( var i=0, len = ary.length; i < len; i++ ) {
1794
+ if ( ary[i] === obj ) {
1795
+ return i;
1796
+ }
1797
+ }
1798
+ return -1;
1799
+ };
1800
+
1801
+ function removeFrom( obj, ary ) {
1802
+ var index = indexOf( ary, obj );
1803
+ if ( index !== -1 ) {
1804
+ ary.splice( index, 1 );
1805
+ }
1806
+ }
1807
+
1808
+ // http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/
1809
+ function toDashed( str ) {
1810
+ return str.replace( /(.)([A-Z])/g, function( match, $1, $2 ) {
1811
+ return $1 + '-' + $2;
1812
+ }).toLowerCase();
1813
+ }
1814
+
1815
+
1816
+ function outlayerDefinition( eventie, docReady, EventEmitter, getSize, matchesSelector, Item ) {
1817
+
1818
+ // -------------------------- Outlayer -------------------------- //
1819
+
1820
+ // globally unique identifiers
1821
+ var GUID = 0;
1822
+ // internal store of all Outlayer intances
1823
+ var instances = {};
1824
+
1825
+
1826
+ /**
1827
+ * @param {Element, String} element
1828
+ * @param {Object} options
1829
+ * @constructor
1830
+ */
1831
+ function Outlayer( element, options ) {
1832
+ // use element as selector string
1833
+ if ( typeof element === 'string' ) {
1834
+ element = document.querySelector( element );
1835
+ }
1836
+
1837
+ // bail out if not proper element
1838
+ if ( !element || !isElement( element ) ) {
1839
+ if ( console ) {
1840
+ console.error( 'Bad ' + this.constructor.namespace + ' element: ' + element );
1841
+ }
1842
+ return;
1843
+ }
1844
+
1845
+ this.element = element;
1846
+
1847
+ // options
1848
+ this.options = extend( {}, this.constructor.defaults );
1849
+ this.option( options );
1850
+
1851
+ // add id for Outlayer.getFromElement
1852
+ var id = ++GUID;
1853
+ this.element.outlayerGUID = id; // expando
1854
+ instances[ id ] = this; // associate via id
1855
+
1856
+ // kick it off
1857
+ this._create();
1858
+
1859
+ if ( this.options.isInitLayout ) {
1860
+ this.layout();
1861
+ }
1862
+ }
1863
+
1864
+ // settings are for internal use only
1865
+ Outlayer.namespace = 'outlayer';
1866
+ Outlayer.Item = Item;
1867
+
1868
+ // default options
1869
+ Outlayer.defaults = {
1870
+ containerStyle: {
1871
+ position: 'relative'
1872
+ },
1873
+ isInitLayout: true,
1874
+ isOriginLeft: true,
1875
+ isOriginTop: true,
1876
+ isResizeBound: true,
1877
+ isResizingContainer: true,
1878
+ // item options
1879
+ transitionDuration: '0.4s',
1880
+ hiddenStyle: {
1881
+ opacity: 0,
1882
+ transform: 'scale(0.001)'
1883
+ },
1884
+ visibleStyle: {
1885
+ opacity: 1,
1886
+ transform: 'scale(1)'
1887
+ }
1888
+ };
1889
+
1890
+ // inherit EventEmitter
1891
+ extend( Outlayer.prototype, EventEmitter.prototype );
1892
+
1893
+ /**
1894
+ * set options
1895
+ * @param {Object} opts
1896
+ */
1897
+ Outlayer.prototype.option = function( opts ) {
1898
+ extend( this.options, opts );
1899
+ };
1900
+
1901
+ Outlayer.prototype._create = function() {
1902
+ // get items from children
1903
+ this.reloadItems();
1904
+ // elements that affect layout, but are not laid out
1905
+ this.stamps = [];
1906
+ this.stamp( this.options.stamp );
1907
+ // set container style
1908
+ extend( this.element.style, this.options.containerStyle );
1909
+
1910
+ // bind resize method
1911
+ if ( this.options.isResizeBound ) {
1912
+ this.bindResize();
1913
+ }
1914
+ };
1915
+
1916
+ // goes through all children again and gets bricks in proper order
1917
+ Outlayer.prototype.reloadItems = function() {
1918
+ // collection of item elements
1919
+ this.items = this._itemize( this.element.children );
1920
+ };
1921
+
1922
+
1923
+ /**
1924
+ * turn elements into Outlayer.Items to be used in layout
1925
+ * @param {Array or NodeList or HTMLElement} elems
1926
+ * @returns {Array} items - collection of new Outlayer Items
1927
+ */
1928
+ Outlayer.prototype._itemize = function( elems ) {
1929
+
1930
+ var itemElems = this._filterFindItemElements( elems );
1931
+ var Item = this.constructor.Item;
1932
+
1933
+ // create new Outlayer Items for collection
1934
+ var items = [];
1935
+ for ( var i=0, len = itemElems.length; i < len; i++ ) {
1936
+ var elem = itemElems[i];
1937
+ var item = new Item( elem, this );
1938
+ items.push( item );
1939
+ }
1940
+
1941
+ return items;
1942
+ };
1943
+
1944
+ /**
1945
+ * get item elements to be used in layout
1946
+ * @param {Array or NodeList or HTMLElement} elems
1947
+ * @returns {Array} items - item elements
1948
+ */
1949
+ Outlayer.prototype._filterFindItemElements = function( elems ) {
1950
+ // make array of elems
1951
+ elems = makeArray( elems );
1952
+ var itemSelector = this.options.itemSelector;
1953
+ var itemElems = [];
1954
+
1955
+ for ( var i=0, len = elems.length; i < len; i++ ) {
1956
+ var elem = elems[i];
1957
+ // check that elem is an actual element
1958
+ if ( !isElement( elem ) ) {
1959
+ continue;
1960
+ }
1961
+ // filter & find items if we have an item selector
1962
+ if ( itemSelector ) {
1963
+ // filter siblings
1964
+ if ( matchesSelector( elem, itemSelector ) ) {
1965
+ itemElems.push( elem );
1966
+ }
1967
+ // find children
1968
+ var childElems = elem.querySelectorAll( itemSelector );
1969
+ // concat childElems to filterFound array
1970
+ for ( var j=0, jLen = childElems.length; j < jLen; j++ ) {
1971
+ itemElems.push( childElems[j] );
1972
+ }
1973
+ } else {
1974
+ itemElems.push( elem );
1975
+ }
1976
+ }
1977
+
1978
+ return itemElems;
1979
+ };
1980
+
1981
+ /**
1982
+ * getter method for getting item elements
1983
+ * @returns {Array} elems - collection of item elements
1984
+ */
1985
+ Outlayer.prototype.getItemElements = function() {
1986
+ var elems = [];
1987
+ for ( var i=0, len = this.items.length; i < len; i++ ) {
1988
+ elems.push( this.items[i].element );
1989
+ }
1990
+ return elems;
1991
+ };
1992
+
1993
+ // ----- init & layout ----- //
1994
+
1995
+ /**
1996
+ * lays out all items
1997
+ */
1998
+ Outlayer.prototype.layout = function() {
1999
+ this._resetLayout();
2000
+ this._manageStamps();
2001
+
2002
+ // don't animate first layout
2003
+ var isInstant = this.options.isLayoutInstant !== undefined ?
2004
+ this.options.isLayoutInstant : !this._isLayoutInited;
2005
+ this.layoutItems( this.items, isInstant );
2006
+
2007
+ // flag for initalized
2008
+ this._isLayoutInited = true;
2009
+ };
2010
+
2011
+ // _init is alias for layout
2012
+ Outlayer.prototype._init = Outlayer.prototype.layout;
2013
+
2014
+ /**
2015
+ * logic before any new layout
2016
+ */
2017
+ Outlayer.prototype._resetLayout = function() {
2018
+ this.getSize();
2019
+ };
2020
+
2021
+
2022
+ Outlayer.prototype.getSize = function() {
2023
+ this.size = getSize( this.element );
2024
+ };
2025
+
2026
+ /**
2027
+ * get measurement from option, for columnWidth, rowHeight, gutter
2028
+ * if option is String -> get element from selector string, & get size of element
2029
+ * if option is Element -> get size of element
2030
+ * else use option as a number
2031
+ *
2032
+ * @param {String} measurement
2033
+ * @param {String} size - width or height
2034
+ * @private
2035
+ */
2036
+ Outlayer.prototype._getMeasurement = function( measurement, size ) {
2037
+ var option = this.options[ measurement ];
2038
+ var elem;
2039
+ if ( !option ) {
2040
+ // default to 0
2041
+ this[ measurement ] = 0;
2042
+ } else {
2043
+ // use option as an element
2044
+ if ( typeof option === 'string' ) {
2045
+ elem = this.element.querySelector( option );
2046
+ } else if ( isElement( option ) ) {
2047
+ elem = option;
2048
+ }
2049
+ // use size of element, if element
2050
+ this[ measurement ] = elem ? getSize( elem )[ size ] : option;
2051
+ }
2052
+ };
2053
+
2054
+ /**
2055
+ * layout a collection of item elements
2056
+ * @api public
2057
+ */
2058
+ Outlayer.prototype.layoutItems = function( items, isInstant ) {
2059
+ items = this._getItemsForLayout( items );
2060
+
2061
+ this._layoutItems( items, isInstant );
2062
+
2063
+ this._postLayout();
2064
+ };
2065
+
2066
+ /**
2067
+ * get the items to be laid out
2068
+ * you may want to skip over some items
2069
+ * @param {Array} items
2070
+ * @returns {Array} items
2071
+ */
2072
+ Outlayer.prototype._getItemsForLayout = function( items ) {
2073
+ var layoutItems = [];
2074
+ for ( var i=0, len = items.length; i < len; i++ ) {
2075
+ var item = items[i];
2076
+ if ( !item.isIgnored ) {
2077
+ layoutItems.push( item );
2078
+ }
2079
+ }
2080
+ return layoutItems;
2081
+ };
2082
+
2083
+ /**
2084
+ * layout items
2085
+ * @param {Array} items
2086
+ * @param {Boolean} isInstant
2087
+ */
2088
+ Outlayer.prototype._layoutItems = function( items, isInstant ) {
2089
+ var _this = this;
2090
+ function onItemsLayout() {
2091
+ _this.emitEvent( 'layoutComplete', [ _this, items ] );
2092
+ }
2093
+
2094
+ if ( !items || !items.length ) {
2095
+ // no items, emit event with empty array
2096
+ onItemsLayout();
2097
+ return;
2098
+ }
2099
+
2100
+ // emit layoutComplete when done
2101
+ this._itemsOn( items, 'layout', onItemsLayout );
2102
+
2103
+ var queue = [];
2104
+
2105
+ for ( var i=0, len = items.length; i < len; i++ ) {
2106
+ var item = items[i];
2107
+ // get x/y object from method
2108
+ var position = this._getItemLayoutPosition( item );
2109
+ // enqueue
2110
+ position.item = item;
2111
+ position.isInstant = isInstant || item.isLayoutInstant;
2112
+ queue.push( position );
2113
+ }
2114
+
2115
+ this._processLayoutQueue( queue );
2116
+ };
2117
+
2118
+ /**
2119
+ * get item layout position
2120
+ * @param {Outlayer.Item} item
2121
+ * @returns {Object} x and y position
2122
+ */
2123
+ Outlayer.prototype._getItemLayoutPosition = function( /* item */ ) {
2124
+ return {
2125
+ x: 0,
2126
+ y: 0
2127
+ };
2128
+ };
2129
+
2130
+ /**
2131
+ * iterate over array and position each item
2132
+ * Reason being - separating this logic prevents 'layout invalidation'
2133
+ * thx @paul_irish
2134
+ * @param {Array} queue
2135
+ */
2136
+ Outlayer.prototype._processLayoutQueue = function( queue ) {
2137
+ for ( var i=0, len = queue.length; i < len; i++ ) {
2138
+ var obj = queue[i];
2139
+ this._positionItem( obj.item, obj.x, obj.y, obj.isInstant );
2140
+ }
2141
+ };
2142
+
2143
+ /**
2144
+ * Sets position of item in DOM
2145
+ * @param {Outlayer.Item} item
2146
+ * @param {Number} x - horizontal position
2147
+ * @param {Number} y - vertical position
2148
+ * @param {Boolean} isInstant - disables transitions
2149
+ */
2150
+ Outlayer.prototype._positionItem = function( item, x, y, isInstant ) {
2151
+ if ( isInstant ) {
2152
+ // if not transition, just set CSS
2153
+ item.goTo( x, y );
2154
+ } else {
2155
+ item.moveTo( x, y );
2156
+ }
2157
+ };
2158
+
2159
+ /**
2160
+ * Any logic you want to do after each layout,
2161
+ * i.e. size the container
2162
+ */
2163
+ Outlayer.prototype._postLayout = function() {
2164
+ this.resizeContainer();
2165
+ };
2166
+
2167
+ Outlayer.prototype.resizeContainer = function() {
2168
+ if ( !this.options.isResizingContainer ) {
2169
+ return;
2170
+ }
2171
+ var size = this._getContainerSize();
2172
+ if ( size ) {
2173
+ this._setContainerMeasure( size.width, true );
2174
+ this._setContainerMeasure( size.height, false );
2175
+ }
2176
+ };
2177
+
2178
+ /**
2179
+ * Sets width or height of container if returned
2180
+ * @returns {Object} size
2181
+ * @param {Number} width
2182
+ * @param {Number} height
2183
+ */
2184
+ Outlayer.prototype._getContainerSize = noop;
2185
+
2186
+ /**
2187
+ * @param {Number} measure - size of width or height
2188
+ * @param {Boolean} isWidth
2189
+ */
2190
+ Outlayer.prototype._setContainerMeasure = function( measure, isWidth ) {
2191
+ if ( measure === undefined ) {
2192
+ return;
2193
+ }
2194
+
2195
+ var elemSize = this.size;
2196
+ // add padding and border width if border box
2197
+ if ( elemSize.isBorderBox ) {
2198
+ measure += isWidth ? elemSize.paddingLeft + elemSize.paddingRight +
2199
+ elemSize.borderLeftWidth + elemSize.borderRightWidth :
2200
+ elemSize.paddingBottom + elemSize.paddingTop +
2201
+ elemSize.borderTopWidth + elemSize.borderBottomWidth;
2202
+ }
2203
+
2204
+ measure = Math.max( measure, 0 );
2205
+ this.element.style[ isWidth ? 'width' : 'height' ] = measure + 'px';
2206
+ };
2207
+
2208
+ /**
2209
+ * trigger a callback for a collection of items events
2210
+ * @param {Array} items - Outlayer.Items
2211
+ * @param {String} eventName
2212
+ * @param {Function} callback
2213
+ */
2214
+ Outlayer.prototype._itemsOn = function( items, eventName, callback ) {
2215
+ var doneCount = 0;
2216
+ var count = items.length;
2217
+ // event callback
2218
+ var _this = this;
2219
+ function tick() {
2220
+ doneCount++;
2221
+ if ( doneCount === count ) {
2222
+ callback.call( _this );
2223
+ }
2224
+ return true; // bind once
2225
+ }
2226
+ // bind callback
2227
+ for ( var i=0, len = items.length; i < len; i++ ) {
2228
+ var item = items[i];
2229
+ item.on( eventName, tick );
2230
+ }
2231
+ };
2232
+
2233
+ // -------------------------- ignore & stamps -------------------------- //
2234
+
2235
+
2236
+ /**
2237
+ * keep item in collection, but do not lay it out
2238
+ * ignored items do not get skipped in layout
2239
+ * @param {Element} elem
2240
+ */
2241
+ Outlayer.prototype.ignore = function( elem ) {
2242
+ var item = this.getItem( elem );
2243
+ if ( item ) {
2244
+ item.isIgnored = true;
2245
+ }
2246
+ };
2247
+
2248
+ /**
2249
+ * return item to layout collection
2250
+ * @param {Element} elem
2251
+ */
2252
+ Outlayer.prototype.unignore = function( elem ) {
2253
+ var item = this.getItem( elem );
2254
+ if ( item ) {
2255
+ delete item.isIgnored;
2256
+ }
2257
+ };
2258
+
2259
+ /**
2260
+ * adds elements to stamps
2261
+ * @param {NodeList, Array, Element, or String} elems
2262
+ */
2263
+ Outlayer.prototype.stamp = function( elems ) {
2264
+ elems = this._find( elems );
2265
+ if ( !elems ) {
2266
+ return;
2267
+ }
2268
+
2269
+ this.stamps = this.stamps.concat( elems );
2270
+ // ignore
2271
+ for ( var i=0, len = elems.length; i < len; i++ ) {
2272
+ var elem = elems[i];
2273
+ this.ignore( elem );
2274
+ }
2275
+ };
2276
+
2277
+ /**
2278
+ * removes elements to stamps
2279
+ * @param {NodeList, Array, or Element} elems
2280
+ */
2281
+ Outlayer.prototype.unstamp = function( elems ) {
2282
+ elems = this._find( elems );
2283
+ if ( !elems ){
2284
+ return;
2285
+ }
2286
+
2287
+ for ( var i=0, len = elems.length; i < len; i++ ) {
2288
+ var elem = elems[i];
2289
+ // filter out removed stamp elements
2290
+ removeFrom( elem, this.stamps );
2291
+ this.unignore( elem );
2292
+ }
2293
+
2294
+ };
2295
+
2296
+ /**
2297
+ * finds child elements
2298
+ * @param {NodeList, Array, Element, or String} elems
2299
+ * @returns {Array} elems
2300
+ */
2301
+ Outlayer.prototype._find = function( elems ) {
2302
+ if ( !elems ) {
2303
+ return;
2304
+ }
2305
+ // if string, use argument as selector string
2306
+ if ( typeof elems === 'string' ) {
2307
+ elems = this.element.querySelectorAll( elems );
2308
+ }
2309
+ elems = makeArray( elems );
2310
+ return elems;
2311
+ };
2312
+
2313
+ Outlayer.prototype._manageStamps = function() {
2314
+ if ( !this.stamps || !this.stamps.length ) {
2315
+ return;
2316
+ }
2317
+
2318
+ this._getBoundingRect();
2319
+
2320
+ for ( var i=0, len = this.stamps.length; i < len; i++ ) {
2321
+ var stamp = this.stamps[i];
2322
+ this._manageStamp( stamp );
2323
+ }
2324
+ };
2325
+
2326
+ // update boundingLeft / Top
2327
+ Outlayer.prototype._getBoundingRect = function() {
2328
+ // get bounding rect for container element
2329
+ var boundingRect = this.element.getBoundingClientRect();
2330
+ var size = this.size;
2331
+ this._boundingRect = {
2332
+ left: boundingRect.left + size.paddingLeft + size.borderLeftWidth,
2333
+ top: boundingRect.top + size.paddingTop + size.borderTopWidth,
2334
+ right: boundingRect.right - ( size.paddingRight + size.borderRightWidth ),
2335
+ bottom: boundingRect.bottom - ( size.paddingBottom + size.borderBottomWidth )
2336
+ };
2337
+ };
2338
+
2339
+ /**
2340
+ * @param {Element} stamp
2341
+ **/
2342
+ Outlayer.prototype._manageStamp = noop;
2343
+
2344
+ /**
2345
+ * get x/y position of element relative to container element
2346
+ * @param {Element} elem
2347
+ * @returns {Object} offset - has left, top, right, bottom
2348
+ */
2349
+ Outlayer.prototype._getElementOffset = function( elem ) {
2350
+ var boundingRect = elem.getBoundingClientRect();
2351
+ var thisRect = this._boundingRect;
2352
+ var size = getSize( elem );
2353
+ var offset = {
2354
+ left: boundingRect.left - thisRect.left - size.marginLeft,
2355
+ top: boundingRect.top - thisRect.top - size.marginTop,
2356
+ right: thisRect.right - boundingRect.right - size.marginRight,
2357
+ bottom: thisRect.bottom - boundingRect.bottom - size.marginBottom
2358
+ };
2359
+ return offset;
2360
+ };
2361
+
2362
+ // -------------------------- resize -------------------------- //
2363
+
2364
+ // enable event handlers for listeners
2365
+ // i.e. resize -> onresize
2366
+ Outlayer.prototype.handleEvent = function( event ) {
2367
+ var method = 'on' + event.type;
2368
+ if ( this[ method ] ) {
2369
+ this[ method ]( event );
2370
+ }
2371
+ };
2372
+
2373
+ /**
2374
+ * Bind layout to window resizing
2375
+ */
2376
+ Outlayer.prototype.bindResize = function() {
2377
+ // bind just one listener
2378
+ if ( this.isResizeBound ) {
2379
+ return;
2380
+ }
2381
+ eventie.bind( window, 'resize', this );
2382
+ this.isResizeBound = true;
2383
+ };
2384
+
2385
+ /**
2386
+ * Unbind layout to window resizing
2387
+ */
2388
+ Outlayer.prototype.unbindResize = function() {
2389
+ if ( this.isResizeBound ) {
2390
+ eventie.unbind( window, 'resize', this );
2391
+ }
2392
+ this.isResizeBound = false;
2393
+ };
2394
+
2395
+ // original debounce by John Hann
2396
+ // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
2397
+
2398
+ // this fires every resize
2399
+ Outlayer.prototype.onresize = function() {
2400
+ if ( this.resizeTimeout ) {
2401
+ clearTimeout( this.resizeTimeout );
2402
+ }
2403
+
2404
+ var _this = this;
2405
+ function delayed() {
2406
+ _this.resize();
2407
+ delete _this.resizeTimeout;
2408
+ }
2409
+
2410
+ this.resizeTimeout = setTimeout( delayed, 100 );
2411
+ };
2412
+
2413
+ // debounced, layout on resize
2414
+ Outlayer.prototype.resize = function() {
2415
+ // don't trigger if size did not change
2416
+ // or if resize was unbound. See #9
2417
+ if ( !this.isResizeBound || !this.needsResizeLayout() ) {
2418
+ return;
2419
+ }
2420
+
2421
+ this.layout();
2422
+ };
2423
+
2424
+ /**
2425
+ * check if layout is needed post layout
2426
+ * @returns Boolean
2427
+ */
2428
+ Outlayer.prototype.needsResizeLayout = function() {
2429
+ var size = getSize( this.element );
2430
+ // check that this.size and size are there
2431
+ // IE8 triggers resize on body size change, so they might not be
2432
+ var hasSizes = this.size && size;
2433
+ return hasSizes && size.innerWidth !== this.size.innerWidth;
2434
+ };
2435
+
2436
+ // -------------------------- methods -------------------------- //
2437
+
2438
+ /**
2439
+ * add items to Outlayer instance
2440
+ * @param {Array or NodeList or Element} elems
2441
+ * @returns {Array} items - Outlayer.Items
2442
+ **/
2443
+ Outlayer.prototype.addItems = function( elems ) {
2444
+ var items = this._itemize( elems );
2445
+ // add items to collection
2446
+ if ( items.length ) {
2447
+ this.items = this.items.concat( items );
2448
+ }
2449
+ return items;
2450
+ };
2451
+
2452
+ /**
2453
+ * Layout newly-appended item elements
2454
+ * @param {Array or NodeList or Element} elems
2455
+ */
2456
+ Outlayer.prototype.appended = function( elems ) {
2457
+ var items = this.addItems( elems );
2458
+ if ( !items.length ) {
2459
+ return;
2460
+ }
2461
+ // layout and reveal just the new items
2462
+ this.layoutItems( items, true );
2463
+ this.reveal( items );
2464
+ };
2465
+
2466
+ /**
2467
+ * Layout prepended elements
2468
+ * @param {Array or NodeList or Element} elems
2469
+ */
2470
+ Outlayer.prototype.prepended = function( elems ) {
2471
+ var items = this._itemize( elems );
2472
+ if ( !items.length ) {
2473
+ return;
2474
+ }
2475
+ // add items to beginning of collection
2476
+ var previousItems = this.items.slice(0);
2477
+ this.items = items.concat( previousItems );
2478
+ // start new layout
2479
+ this._resetLayout();
2480
+ this._manageStamps();
2481
+ // layout new stuff without transition
2482
+ this.layoutItems( items, true );
2483
+ this.reveal( items );
2484
+ // layout previous items
2485
+ this.layoutItems( previousItems );
2486
+ };
2487
+
2488
+ /**
2489
+ * reveal a collection of items
2490
+ * @param {Array of Outlayer.Items} items
2491
+ */
2492
+ Outlayer.prototype.reveal = function( items ) {
2493
+ var len = items && items.length;
2494
+ if ( !len ) {
2495
+ return;
2496
+ }
2497
+ for ( var i=0; i < len; i++ ) {
2498
+ var item = items[i];
2499
+ item.reveal();
2500
+ }
2501
+ };
2502
+
2503
+ /**
2504
+ * hide a collection of items
2505
+ * @param {Array of Outlayer.Items} items
2506
+ */
2507
+ Outlayer.prototype.hide = function( items ) {
2508
+ var len = items && items.length;
2509
+ if ( !len ) {
2510
+ return;
2511
+ }
2512
+ for ( var i=0; i < len; i++ ) {
2513
+ var item = items[i];
2514
+ item.hide();
2515
+ }
2516
+ };
2517
+
2518
+ /**
2519
+ * get Outlayer.Item, given an Element
2520
+ * @param {Element} elem
2521
+ * @param {Function} callback
2522
+ * @returns {Outlayer.Item} item
2523
+ */
2524
+ Outlayer.prototype.getItem = function( elem ) {
2525
+ // loop through items to get the one that matches
2526
+ for ( var i=0, len = this.items.length; i < len; i++ ) {
2527
+ var item = this.items[i];
2528
+ if ( item.element === elem ) {
2529
+ // return item
2530
+ return item;
2531
+ }
2532
+ }
2533
+ };
2534
+
2535
+ /**
2536
+ * get collection of Outlayer.Items, given Elements
2537
+ * @param {Array} elems
2538
+ * @returns {Array} items - Outlayer.Items
2539
+ */
2540
+ Outlayer.prototype.getItems = function( elems ) {
2541
+ if ( !elems || !elems.length ) {
2542
+ return;
2543
+ }
2544
+ var items = [];
2545
+ for ( var i=0, len = elems.length; i < len; i++ ) {
2546
+ var elem = elems[i];
2547
+ var item = this.getItem( elem );
2548
+ if ( item ) {
2549
+ items.push( item );
2550
+ }
2551
+ }
2552
+
2553
+ return items;
2554
+ };
2555
+
2556
+ /**
2557
+ * remove element(s) from instance and DOM
2558
+ * @param {Array or NodeList or Element} elems
2559
+ */
2560
+ Outlayer.prototype.remove = function( elems ) {
2561
+ elems = makeArray( elems );
2562
+
2563
+ var removeItems = this.getItems( elems );
2564
+ // bail if no items to remove
2565
+ if ( !removeItems || !removeItems.length ) {
2566
+ return;
2567
+ }
2568
+
2569
+ this._itemsOn( removeItems, 'remove', function() {
2570
+ this.emitEvent( 'removeComplete', [ this, removeItems ] );
2571
+ });
2572
+
2573
+ for ( var i=0, len = removeItems.length; i < len; i++ ) {
2574
+ var item = removeItems[i];
2575
+ item.remove();
2576
+ // remove item from collection
2577
+ removeFrom( item, this.items );
2578
+ }
2579
+ };
2580
+
2581
+ // ----- destroy ----- //
2582
+
2583
+ // remove and disable Outlayer instance
2584
+ Outlayer.prototype.destroy = function() {
2585
+ // clean up dynamic styles
2586
+ var style = this.element.style;
2587
+ style.height = '';
2588
+ style.position = '';
2589
+ style.width = '';
2590
+ // destroy items
2591
+ for ( var i=0, len = this.items.length; i < len; i++ ) {
2592
+ var item = this.items[i];
2593
+ item.destroy();
2594
+ }
2595
+
2596
+ this.unbindResize();
2597
+
2598
+ var id = this.element.outlayerGUID;
2599
+ delete instances[ id ]; // remove reference to instance by id
2600
+ delete this.element.outlayerGUID;
2601
+ // remove data for jQuery
2602
+ if ( jQuery ) {
2603
+ jQuery.removeData( this.element, this.constructor.namespace );
2604
+ }
2605
+
2606
+ };
2607
+
2608
+ // -------------------------- data -------------------------- //
2609
+
2610
+ /**
2611
+ * get Outlayer instance from element
2612
+ * @param {Element} elem
2613
+ * @returns {Outlayer}
2614
+ */
2615
+ Outlayer.data = function( elem ) {
2616
+ var id = elem && elem.outlayerGUID;
2617
+ return id && instances[ id ];
2618
+ };
2619
+
2620
+
2621
+ // -------------------------- create Outlayer class -------------------------- //
2622
+
2623
+ /**
2624
+ * create a layout class
2625
+ * @param {String} namespace
2626
+ */
2627
+ Outlayer.create = function( namespace, options ) {
2628
+ // sub-class Outlayer
2629
+ function Layout() {
2630
+ Outlayer.apply( this, arguments );
2631
+ }
2632
+ // inherit Outlayer prototype, use Object.create if there
2633
+ if ( Object.create ) {
2634
+ Layout.prototype = Object.create( Outlayer.prototype );
2635
+ } else {
2636
+ extend( Layout.prototype, Outlayer.prototype );
2637
+ }
2638
+ // set contructor, used for namespace and Item
2639
+ Layout.prototype.constructor = Layout;
2640
+
2641
+ Layout.defaults = extend( {}, Outlayer.defaults );
2642
+ // apply new options
2643
+ extend( Layout.defaults, options );
2644
+ // keep prototype.settings for backwards compatibility (Packery v1.2.0)
2645
+ Layout.prototype.settings = {};
2646
+
2647
+ Layout.namespace = namespace;
2648
+
2649
+ Layout.data = Outlayer.data;
2650
+
2651
+ // sub-class Item
2652
+ Layout.Item = function LayoutItem() {
2653
+ Item.apply( this, arguments );
2654
+ };
2655
+
2656
+ Layout.Item.prototype = new Item();
2657
+
2658
+ // -------------------------- declarative -------------------------- //
2659
+
2660
+ /**
2661
+ * allow user to initialize Outlayer via .js-namespace class
2662
+ * options are parsed from data-namespace-option attribute
2663
+ */
2664
+ docReady( function() {
2665
+ var dashedNamespace = toDashed( namespace );
2666
+ var elems = document.querySelectorAll( '.js-' + dashedNamespace );
2667
+ var dataAttr = 'data-' + dashedNamespace + '-options';
2668
+
2669
+ for ( var i=0, len = elems.length; i < len; i++ ) {
2670
+ var elem = elems[i];
2671
+ var attr = elem.getAttribute( dataAttr );
2672
+ var options;
2673
+ try {
2674
+ options = attr && JSON.parse( attr );
2675
+ } catch ( error ) {
2676
+ // log error, do not initialize
2677
+ if ( console ) {
2678
+ console.error( 'Error parsing ' + dataAttr + ' on ' +
2679
+ elem.nodeName.toLowerCase() + ( elem.id ? '#' + elem.id : '' ) + ': ' +
2680
+ error );
2681
+ }
2682
+ continue;
2683
+ }
2684
+ // initialize
2685
+ var instance = new Layout( elem, options );
2686
+ // make available via $().data('layoutname')
2687
+ if ( jQuery ) {
2688
+ jQuery.data( elem, namespace, instance );
2689
+ }
2690
+ }
2691
+ });
2692
+
2693
+ // -------------------------- jQuery bridge -------------------------- //
2694
+
2695
+ // make into jQuery plugin
2696
+ if ( jQuery && jQuery.bridget ) {
2697
+ jQuery.bridget( namespace, Layout );
2698
+ }
2699
+
2700
+ return Layout;
2701
+ };
2702
+
2703
+ // ----- fin ----- //
2704
+
2705
+ // back in global
2706
+ Outlayer.Item = Item;
2707
+
2708
+ return Outlayer;
2709
+
2710
+ }
2711
+
2712
+ // -------------------------- transport -------------------------- //
2713
+
2714
+ if ( typeof define === 'function' && define.amd ) {
2715
+ // AMD
2716
+ define( 'outlayer/outlayer',[
2717
+ 'eventie/eventie',
2718
+ 'doc-ready/doc-ready',
2719
+ 'eventEmitter/EventEmitter',
2720
+ 'get-size/get-size',
2721
+ 'matches-selector/matches-selector',
2722
+ './item'
2723
+ ],
2724
+ outlayerDefinition );
2725
+ } else if ( typeof exports === 'object' ) {
2726
+ // CommonJS
2727
+ module.exports = outlayerDefinition(
2728
+ require('eventie'),
2729
+ require('doc-ready'),
2730
+ require('wolfy87-eventemitter'),
2731
+ require('get-size'),
2732
+ require('desandro-matches-selector'),
2733
+ require('./item')
2734
+ );
2735
+ } else {
2736
+ // browser global
2737
+ window.Outlayer = outlayerDefinition(
2738
+ window.eventie,
2739
+ window.docReady,
2740
+ window.EventEmitter,
2741
+ window.getSize,
2742
+ window.matchesSelector,
2743
+ window.Outlayer.Item
2744
+ );
2745
+ }
2746
+
2747
+ })( window );
2748
+
2749
+ /*!
2750
+ * Masonry v3.2.2
2751
+ * Cascading grid layout library
2752
+ * http://masonry.desandro.com
2753
+ * MIT License
2754
+ * by David DeSandro
2755
+ */
2756
+
2757
+ ( function( window ) {
2758
+
2759
+
2760
+
2761
+ // -------------------------- helpers -------------------------- //
2762
+
2763
+ var indexOf = Array.prototype.indexOf ?
2764
+ function( items, value ) {
2765
+ return items.indexOf( value );
2766
+ } :
2767
+ function ( items, value ) {
2768
+ for ( var i=0, len = items.length; i < len; i++ ) {
2769
+ var item = items[i];
2770
+ if ( item === value ) {
2771
+ return i;
2772
+ }
2773
+ }
2774
+ return -1;
2775
+ };
2776
+
2777
+ // -------------------------- masonryDefinition -------------------------- //
2778
+
2779
+ // used for AMD definition and requires
2780
+ function masonryDefinition( Outlayer, getSize ) {
2781
+ // create an Outlayer layout class
2782
+ var Masonry = Outlayer.create('masonry');
2783
+
2784
+ Masonry.prototype._resetLayout = function() {
2785
+ this.getSize();
2786
+ this._getMeasurement( 'columnWidth', 'outerWidth' );
2787
+ this._getMeasurement( 'gutter', 'outerWidth' );
2788
+ this.measureColumns();
2789
+
2790
+ // reset column Y
2791
+ var i = this.cols;
2792
+ this.colYs = [];
2793
+ while (i--) {
2794
+ this.colYs.push( 0 );
2795
+ }
2796
+
2797
+ this.maxY = 0;
2798
+ };
2799
+
2800
+ Masonry.prototype.measureColumns = function() {
2801
+ this.getContainerWidth();
2802
+ // if columnWidth is 0, default to outerWidth of first item
2803
+ if ( !this.columnWidth ) {
2804
+ var firstItem = this.items[0];
2805
+ var firstItemElem = firstItem && firstItem.element;
2806
+ // columnWidth fall back to item of first element
2807
+ this.columnWidth = firstItemElem && getSize( firstItemElem ).outerWidth ||
2808
+ // if first elem has no width, default to size of container
2809
+ this.containerWidth;
2810
+ }
2811
+
2812
+ this.columnWidth += this.gutter;
2813
+
2814
+ this.cols = Math.floor( ( this.containerWidth + this.gutter ) / this.columnWidth );
2815
+ this.cols = Math.max( this.cols, 1 );
2816
+ };
2817
+
2818
+ Masonry.prototype.getContainerWidth = function() {
2819
+ // container is parent if fit width
2820
+ var container = this.options.isFitWidth ? this.element.parentNode : this.element;
2821
+ // check that this.size and size are there
2822
+ // IE8 triggers resize on body size change, so they might not be
2823
+ var size = getSize( container );
2824
+ this.containerWidth = size && size.innerWidth;
2825
+ };
2826
+
2827
+ Masonry.prototype._getItemLayoutPosition = function( item ) {
2828
+ item.getSize();
2829
+ // how many columns does this brick span
2830
+ var remainder = item.size.outerWidth % this.columnWidth;
2831
+ var mathMethod = remainder && remainder < 1 ? 'round' : 'ceil';
2832
+ // round if off by 1 pixel, otherwise use ceil
2833
+ var colSpan = Math[ mathMethod ]( item.size.outerWidth / this.columnWidth );
2834
+ colSpan = Math.min( colSpan, this.cols );
2835
+
2836
+ var colGroup = this._getColGroup( colSpan );
2837
+ // get the minimum Y value from the columns
2838
+ var minimumY = Math.min.apply( Math, colGroup );
2839
+ var shortColIndex = indexOf( colGroup, minimumY );
2840
+
2841
+ // position the brick
2842
+ var position = {
2843
+ x: this.columnWidth * shortColIndex,
2844
+ y: minimumY
2845
+ };
2846
+
2847
+ // apply setHeight to necessary columns
2848
+ var setHeight = minimumY + item.size.outerHeight;
2849
+ var setSpan = this.cols + 1 - colGroup.length;
2850
+ for ( var i = 0; i < setSpan; i++ ) {
2851
+ this.colYs[ shortColIndex + i ] = setHeight;
2852
+ }
2853
+
2854
+ return position;
2855
+ };
2856
+
2857
+ /**
2858
+ * @param {Number} colSpan - number of columns the element spans
2859
+ * @returns {Array} colGroup
2860
+ */
2861
+ Masonry.prototype._getColGroup = function( colSpan ) {
2862
+ if ( colSpan < 2 ) {
2863
+ // if brick spans only one column, use all the column Ys
2864
+ return this.colYs;
2865
+ }
2866
+
2867
+ var colGroup = [];
2868
+ // how many different places could this brick fit horizontally
2869
+ var groupCount = this.cols + 1 - colSpan;
2870
+ // for each group potential horizontal position
2871
+ for ( var i = 0; i < groupCount; i++ ) {
2872
+ // make an array of colY values for that one group
2873
+ var groupColYs = this.colYs.slice( i, i + colSpan );
2874
+ // and get the max value of the array
2875
+ colGroup[i] = Math.max.apply( Math, groupColYs );
2876
+ }
2877
+ return colGroup;
2878
+ };
2879
+
2880
+ Masonry.prototype._manageStamp = function( stamp ) {
2881
+ var stampSize = getSize( stamp );
2882
+ var offset = this._getElementOffset( stamp );
2883
+ // get the columns that this stamp affects
2884
+ var firstX = this.options.isOriginLeft ? offset.left : offset.right;
2885
+ var lastX = firstX + stampSize.outerWidth;
2886
+ var firstCol = Math.floor( firstX / this.columnWidth );
2887
+ firstCol = Math.max( 0, firstCol );
2888
+ var lastCol = Math.floor( lastX / this.columnWidth );
2889
+ // lastCol should not go over if multiple of columnWidth #425
2890
+ lastCol -= lastX % this.columnWidth ? 0 : 1;
2891
+ lastCol = Math.min( this.cols - 1, lastCol );
2892
+ // set colYs to bottom of the stamp
2893
+ var stampMaxY = ( this.options.isOriginTop ? offset.top : offset.bottom ) +
2894
+ stampSize.outerHeight;
2895
+ for ( var i = firstCol; i <= lastCol; i++ ) {
2896
+ this.colYs[i] = Math.max( stampMaxY, this.colYs[i] );
2897
+ }
2898
+ };
2899
+
2900
+ Masonry.prototype._getContainerSize = function() {
2901
+ this.maxY = Math.max.apply( Math, this.colYs );
2902
+ var size = {
2903
+ height: this.maxY
2904
+ };
2905
+
2906
+ if ( this.options.isFitWidth ) {
2907
+ size.width = this._getContainerFitWidth();
2908
+ }
2909
+
2910
+ return size;
2911
+ };
2912
+
2913
+ Masonry.prototype._getContainerFitWidth = function() {
2914
+ var unusedCols = 0;
2915
+ // count unused columns
2916
+ var i = this.cols;
2917
+ while ( --i ) {
2918
+ if ( this.colYs[i] !== 0 ) {
2919
+ break;
2920
+ }
2921
+ unusedCols++;
2922
+ }
2923
+ // fit container to columns that have been used
2924
+ return ( this.cols - unusedCols ) * this.columnWidth - this.gutter;
2925
+ };
2926
+
2927
+ Masonry.prototype.needsResizeLayout = function() {
2928
+ var previousWidth = this.containerWidth;
2929
+ this.getContainerWidth();
2930
+ return previousWidth !== this.containerWidth;
2931
+ };
2932
+
2933
+ return Masonry;
2934
+ }
2935
+
2936
+ // -------------------------- transport -------------------------- //
2937
+
2938
+ if ( typeof define === 'function' && define.amd ) {
2939
+ // AMD
2940
+ define( [
2941
+ 'outlayer/outlayer',
2942
+ 'get-size/get-size'
2943
+ ],
2944
+ masonryDefinition );
2945
+ } else if ( typeof exports === 'object' ) {
2946
+ // CommonJS
2947
+ module.exports = masonryDefinition(
2948
+ require('outlayer'),
2949
+ require('get-size')
2950
+ );
2951
+ } else {
2952
+ // browser global
2953
+ window.Masonry = masonryDefinition(
2954
+ window.Outlayer,
2955
+ window.getSize
2956
+ );
2957
+ }
2958
+
2959
+ })( window );