groundworkcss-rails 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. data/README.md +38 -0
  2. data/Rakefile +38 -0
  3. data/app/helpers/breadcrumbs_helper.rb~ +5 -0
  4. data/app/helpers/flash_block_helper.rb +17 -0
  5. data/app/helpers/flash_block_helper.rb~ +18 -0
  6. data/app/helpers/flash_helper.rb +21 -0
  7. data/app/helpers/flash_helper.rb~ +21 -0
  8. data/app/helpers/glyph_helper.rb +12 -0
  9. data/app/helpers/groundwork_flash_helper.rb~ +21 -0
  10. data/app/helpers/modal_helper.rb~ +42 -0
  11. data/app/helpers/social_glyph_helper.rb +13 -0
  12. data/app/helpers/social_glyph_helper.rb~ +12 -0
  13. data/lib/generators/groundworkcss/install/install_generator.rb +50 -0
  14. data/lib/generators/groundworkcss/install/install_generator.rb~ +44 -0
  15. data/lib/generators/groundworkcss/install/templates/application.css.scss +9 -0
  16. data/lib/generators/groundworkcss/install/templates/application.css.scss~ +8 -0
  17. data/lib/generators/groundworkcss/install/templates/application.css~ +7 -0
  18. data/lib/generators/groundworkcss/install/templates/application.js +10 -0
  19. data/lib/generators/groundworkcss/install/templates/application.js~ +10 -0
  20. data/lib/generators/groundworkcss/install/templates/groundwork-and-overrides.scss +12 -0
  21. data/lib/generators/groundworkcss/install/templates/groundwork-and-overrides.scss~ +10 -0
  22. data/lib/generators/groundworkcss/install/templates/groundwork-overrides.scss~ +7 -0
  23. data/lib/generators/groundworkcss/install/templates/groundwork.coffee +1 -0
  24. data/lib/generators/groundworkcss/install/templates/groundwork.coffee~ +0 -0
  25. data/lib/generators/groundworkcss/install/templates/groundwork.js +1 -0
  26. data/lib/generators/groundworkcss/install/templates/groundwork.js~ +1 -0
  27. data/lib/generators/groundworkcss/layout/layout_generator.rb +21 -0
  28. data/lib/generators/groundworkcss/layout/layout_generator.rb~ +21 -0
  29. data/lib/generators/groundworkcss/layout/templates/_header.html.erb +24 -0
  30. data/lib/generators/groundworkcss/layout/templates/_header.html.erb~ +24 -0
  31. data/lib/generators/groundworkcss/layout/templates/_sidebar.html.erb +21 -0
  32. data/lib/generators/groundworkcss/layout/templates/_sidebar.html.erb~ +18 -0
  33. data/lib/generators/groundworkcss/layout/templates/layout.html.erb +44 -0
  34. data/lib/generators/groundworkcss/layout/templates/layout.html.erb~ +44 -0
  35. data/lib/groundworkcss-rails.rb +8 -0
  36. data/lib/groundworkcss/rails/bootstrap.rb~ +2 -0
  37. data/lib/groundworkcss/rails/engine.rb +27 -0
  38. data/lib/groundworkcss/rails/engine.rb~ +30 -0
  39. data/lib/groundworkcss/rails/groundworkcss.rb +2 -0
  40. data/lib/groundworkcss/rails/version.rb +5 -0
  41. data/lib/groundworkcss/rails/version.rb~ +7 -0
  42. data/lib/twitter-bootstrap-rails.rb~ +10 -0
  43. data/vendor/assets/fonts/groundworkcss/FontAwesome.otf +0 -0
  44. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.eot +0 -0
  45. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.svg +284 -0
  46. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.ttf +0 -0
  47. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.woff +0 -0
  48. data/vendor/assets/fonts/groundworkcss/fontawesome.otf +0 -0
  49. data/vendor/assets/images/groundworkcss/black_linen_v2.png +0 -0
  50. data/vendor/assets/images/groundworkcss/orbit/bullets.jpg +0 -0
  51. data/vendor/assets/images/groundworkcss/orbit/left-arrow.png +0 -0
  52. data/vendor/assets/images/groundworkcss/orbit/loading.gif +0 -0
  53. data/vendor/assets/images/groundworkcss/orbit/mask-black.png +0 -0
  54. data/vendor/assets/images/groundworkcss/orbit/pause-black.png +0 -0
  55. data/vendor/assets/images/groundworkcss/orbit/right-arrow.png +0 -0
  56. data/vendor/assets/images/groundworkcss/orbit/rotator-black.png +0 -0
  57. data/vendor/assets/images/groundworkcss/orbit/timer-black.png +0 -0
  58. data/vendor/assets/images/groundworkcss/pw_maze_white.png +0 -0
  59. data/vendor/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
  60. data/vendor/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
  61. data/vendor/assets/images/groundworkcss/social-icons/500px.png +0 -0
  62. data/vendor/assets/images/groundworkcss/social-icons/500px.svg +62 -0
  63. data/vendor/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
  64. data/vendor/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
  65. data/vendor/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
  66. data/vendor/assets/images/groundworkcss/social-icons/aboutme.svg +42 -0
  67. data/vendor/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
  68. data/vendor/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
  69. data/vendor/assets/images/groundworkcss/social-icons/adn.png +0 -0
  70. data/vendor/assets/images/groundworkcss/social-icons/adn.svg +14 -0
  71. data/vendor/assets/images/groundworkcss/social-icons/android-m.png +0 -0
  72. data/vendor/assets/images/groundworkcss/social-icons/android-s.png +0 -0
  73. data/vendor/assets/images/groundworkcss/social-icons/android.png +0 -0
  74. data/vendor/assets/images/groundworkcss/social-icons/android.svg +30 -0
  75. data/vendor/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
  76. data/vendor/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
  77. data/vendor/assets/images/groundworkcss/social-icons/apple.png +0 -0
  78. data/vendor/assets/images/groundworkcss/social-icons/apple.svg +19 -0
  79. data/vendor/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
  80. data/vendor/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
  81. data/vendor/assets/images/groundworkcss/social-icons/behance.png +0 -0
  82. data/vendor/assets/images/groundworkcss/social-icons/behance.svg +48 -0
  83. data/vendor/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
  84. data/vendor/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
  85. data/vendor/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
  86. data/vendor/assets/images/groundworkcss/social-icons/bitbucket.svg +36 -0
  87. data/vendor/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
  88. data/vendor/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
  89. data/vendor/assets/images/groundworkcss/social-icons/blogger.png +0 -0
  90. data/vendor/assets/images/groundworkcss/social-icons/blogger.svg +22 -0
  91. data/vendor/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
  92. data/vendor/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
  93. data/vendor/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
  94. data/vendor/assets/images/groundworkcss/social-icons/coderwall.svg +21 -0
  95. data/vendor/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
  96. data/vendor/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
  97. data/vendor/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
  98. data/vendor/assets/images/groundworkcss/social-icons/creativecloud.svg +48 -0
  99. data/vendor/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
  100. data/vendor/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
  101. data/vendor/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
  102. data/vendor/assets/images/groundworkcss/social-icons/dribbble.svg +28 -0
  103. data/vendor/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
  104. data/vendor/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
  105. data/vendor/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
  106. data/vendor/assets/images/groundworkcss/social-icons/dropbox.svg +73 -0
  107. data/vendor/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
  108. data/vendor/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
  109. data/vendor/assets/images/groundworkcss/social-icons/evernote.png +0 -0
  110. data/vendor/assets/images/groundworkcss/social-icons/evernote.svg +62 -0
  111. data/vendor/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
  112. data/vendor/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
  113. data/vendor/assets/images/groundworkcss/social-icons/facebook.png +0 -0
  114. data/vendor/assets/images/groundworkcss/social-icons/facebook.svg +15 -0
  115. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
  116. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
  117. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
  118. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.svg +24 -0
  119. data/vendor/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
  120. data/vendor/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
  121. data/vendor/assets/images/groundworkcss/social-icons/flickr.png +0 -0
  122. data/vendor/assets/images/groundworkcss/social-icons/flickr.svg +14 -0
  123. data/vendor/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
  124. data/vendor/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
  125. data/vendor/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
  126. data/vendor/assets/images/groundworkcss/social-icons/foursquare.svg +43 -0
  127. data/vendor/assets/images/groundworkcss/social-icons/git-m.png +0 -0
  128. data/vendor/assets/images/groundworkcss/social-icons/git-s.png +0 -0
  129. data/vendor/assets/images/groundworkcss/social-icons/git.png +0 -0
  130. data/vendor/assets/images/groundworkcss/social-icons/git.svg +22 -0
  131. data/vendor/assets/images/groundworkcss/social-icons/github-m.png +0 -0
  132. data/vendor/assets/images/groundworkcss/social-icons/github-s.png +0 -0
  133. data/vendor/assets/images/groundworkcss/social-icons/github.png +0 -0
  134. data/vendor/assets/images/groundworkcss/social-icons/github.svg +38 -0
  135. data/vendor/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
  136. data/vendor/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
  137. data/vendor/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
  138. data/vendor/assets/images/groundworkcss/social-icons/goodreads.svg +38 -0
  139. data/vendor/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
  140. data/vendor/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
  141. data/vendor/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
  142. data/vendor/assets/images/groundworkcss/social-icons/googleplay.svg +24 -0
  143. data/vendor/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
  144. data/vendor/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
  145. data/vendor/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
  146. data/vendor/assets/images/groundworkcss/social-icons/googleplus.svg +52 -0
  147. data/vendor/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
  148. data/vendor/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
  149. data/vendor/assets/images/groundworkcss/social-icons/html5.png +0 -0
  150. data/vendor/assets/images/groundworkcss/social-icons/html5.svg +29 -0
  151. data/vendor/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
  152. data/vendor/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
  153. data/vendor/assets/images/groundworkcss/social-icons/icloud.png +0 -0
  154. data/vendor/assets/images/groundworkcss/social-icons/icloud.svg +26 -0
  155. data/vendor/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
  156. data/vendor/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
  157. data/vendor/assets/images/groundworkcss/social-icons/instagram.png +0 -0
  158. data/vendor/assets/images/groundworkcss/social-icons/instagram.svg +166 -0
  159. data/vendor/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
  160. data/vendor/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
  161. data/vendor/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
  162. data/vendor/assets/images/groundworkcss/social-icons/lastfm.svg +44 -0
  163. data/vendor/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
  164. data/vendor/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
  165. data/vendor/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
  166. data/vendor/assets/images/groundworkcss/social-icons/linkedin.svg +28 -0
  167. data/vendor/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
  168. data/vendor/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
  169. data/vendor/assets/images/groundworkcss/social-icons/mail.png +0 -0
  170. data/vendor/assets/images/groundworkcss/social-icons/mail.svg +27 -0
  171. data/vendor/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
  172. data/vendor/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
  173. data/vendor/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
  174. data/vendor/assets/images/groundworkcss/social-icons/mercurial.svg +22 -0
  175. data/vendor/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
  176. data/vendor/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
  177. data/vendor/assets/images/groundworkcss/social-icons/mixi.png +0 -0
  178. data/vendor/assets/images/groundworkcss/social-icons/mixi.svg +32 -0
  179. data/vendor/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
  180. data/vendor/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
  181. data/vendor/assets/images/groundworkcss/social-icons/msn.png +0 -0
  182. data/vendor/assets/images/groundworkcss/social-icons/msn.svg +44 -0
  183. data/vendor/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
  184. data/vendor/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
  185. data/vendor/assets/images/groundworkcss/social-icons/orkut.png +0 -0
  186. data/vendor/assets/images/groundworkcss/social-icons/orkut.svg +23 -0
  187. data/vendor/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
  188. data/vendor/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
  189. data/vendor/assets/images/groundworkcss/social-icons/picasa.png +0 -0
  190. data/vendor/assets/images/groundworkcss/social-icons/picasa.svg +48 -0
  191. data/vendor/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
  192. data/vendor/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
  193. data/vendor/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
  194. data/vendor/assets/images/groundworkcss/social-icons/pinterest.svg +42 -0
  195. data/vendor/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
  196. data/vendor/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
  197. data/vendor/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
  198. data/vendor/assets/images/groundworkcss/social-icons/pocketapp.svg +38 -0
  199. data/vendor/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
  200. data/vendor/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
  201. data/vendor/assets/images/groundworkcss/social-icons/quora.png +0 -0
  202. data/vendor/assets/images/groundworkcss/social-icons/quora.svg +20 -0
  203. data/vendor/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
  204. data/vendor/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
  205. data/vendor/assets/images/groundworkcss/social-icons/rdio.png +0 -0
  206. data/vendor/assets/images/groundworkcss/social-icons/rdio.svg +18 -0
  207. data/vendor/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
  208. data/vendor/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
  209. data/vendor/assets/images/groundworkcss/social-icons/renren.png +0 -0
  210. data/vendor/assets/images/groundworkcss/social-icons/renren.svg +79 -0
  211. data/vendor/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
  212. data/vendor/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
  213. data/vendor/assets/images/groundworkcss/social-icons/rss.png +0 -0
  214. data/vendor/assets/images/groundworkcss/social-icons/rss.svg +18 -0
  215. data/vendor/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
  216. data/vendor/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
  217. data/vendor/assets/images/groundworkcss/social-icons/skitch.png +0 -0
  218. data/vendor/assets/images/groundworkcss/social-icons/skitch.svg +24 -0
  219. data/vendor/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
  220. data/vendor/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
  221. data/vendor/assets/images/groundworkcss/social-icons/skype.png +0 -0
  222. data/vendor/assets/images/groundworkcss/social-icons/skype.svg +25 -0
  223. data/vendor/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
  224. data/vendor/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
  225. data/vendor/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
  226. data/vendor/assets/images/groundworkcss/social-icons/soundcloud.svg +60 -0
  227. data/vendor/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
  228. data/vendor/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
  229. data/vendor/assets/images/groundworkcss/social-icons/spotify.png +0 -0
  230. data/vendor/assets/images/groundworkcss/social-icons/spotify.svg +38 -0
  231. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
  232. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
  233. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
  234. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.svg +32 -0
  235. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
  236. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
  237. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
  238. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.svg +22 -0
  239. data/vendor/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
  240. data/vendor/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
  241. data/vendor/assets/images/groundworkcss/social-icons/svn.png +0 -0
  242. data/vendor/assets/images/groundworkcss/social-icons/svn.svg +25 -0
  243. data/vendor/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
  244. data/vendor/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
  245. data/vendor/assets/images/groundworkcss/social-icons/tent.png +0 -0
  246. data/vendor/assets/images/groundworkcss/social-icons/tent.svg +16 -0
  247. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
  248. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
  249. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
  250. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.svg +30 -0
  251. data/vendor/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
  252. data/vendor/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
  253. data/vendor/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
  254. data/vendor/assets/images/groundworkcss/social-icons/tumblr.svg +16 -0
  255. data/vendor/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
  256. data/vendor/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
  257. data/vendor/assets/images/groundworkcss/social-icons/twitter.png +0 -0
  258. data/vendor/assets/images/groundworkcss/social-icons/twitter.svg +24 -0
  259. data/vendor/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
  260. data/vendor/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
  261. data/vendor/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
  262. data/vendor/assets/images/groundworkcss/social-icons/vimeo.svg +20 -0
  263. data/vendor/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
  264. data/vendor/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
  265. data/vendor/assets/images/groundworkcss/social-icons/weibo.png +0 -0
  266. data/vendor/assets/images/groundworkcss/social-icons/weibo.svg +54 -0
  267. data/vendor/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
  268. data/vendor/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
  269. data/vendor/assets/images/groundworkcss/social-icons/windows.png +0 -0
  270. data/vendor/assets/images/groundworkcss/social-icons/windows.svg +26 -0
  271. data/vendor/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
  272. data/vendor/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
  273. data/vendor/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
  274. data/vendor/assets/images/groundworkcss/social-icons/wordpress.svg +50 -0
  275. data/vendor/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
  276. data/vendor/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
  277. data/vendor/assets/images/groundworkcss/social-icons/xing.png +0 -0
  278. data/vendor/assets/images/groundworkcss/social-icons/xing.svg +16 -0
  279. data/vendor/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
  280. data/vendor/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
  281. data/vendor/assets/images/groundworkcss/social-icons/yelp.png +0 -0
  282. data/vendor/assets/images/groundworkcss/social-icons/yelp.svg +54 -0
  283. data/vendor/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
  284. data/vendor/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
  285. data/vendor/assets/images/groundworkcss/social-icons/youtube.png +0 -0
  286. data/vendor/assets/images/groundworkcss/social-icons/youtube.svg +106 -0
  287. data/vendor/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
  288. data/vendor/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
  289. data/vendor/assets/images/groundworkcss/social-icons/youversion.png +0 -0
  290. data/vendor/assets/images/groundworkcss/social-icons/youversion.svg +54 -0
  291. data/vendor/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
  292. data/vendor/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
  293. data/vendor/assets/images/groundworkcss/social-icons/zerply.png +0 -0
  294. data/vendor/assets/images/groundworkcss/social-icons/zerply.svg +20 -0
  295. data/vendor/assets/javascripts/groundwork.js +3 -0
  296. data/vendor/assets/javascripts/groundwork.js~ +8 -0
  297. data/vendor/assets/javascripts/groundworkcss/coffee/groundwork.coffee +207 -0
  298. data/vendor/assets/javascripts/groundworkcss/groundwork.js +845 -0
  299. data/vendor/assets/javascripts/groundworkcss/groundwork.js~ +7 -0
  300. data/vendor/assets/javascripts/groundworkcss/libs/boxsizing.htc +501 -0
  301. data/vendor/assets/javascripts/groundworkcss/libs/html5shiv.js +299 -0
  302. data/vendor/assets/javascripts/groundworkcss/libs/html5shiv.min.js +8 -0
  303. data/vendor/assets/javascripts/groundworkcss/libs/jquery-1.8.2.min.js +2 -0
  304. data/vendor/assets/javascripts/groundworkcss/libs/modernizr-2.6.2.min.js +4 -0
  305. data/vendor/assets/javascripts/groundworkcss/libs/placeholder_polyfill.jquery.js +212 -0
  306. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.modals.coffee +161 -0
  307. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.popover.coffee +198 -0
  308. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.popover.js +10 -0
  309. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveTables.coffee +56 -0
  310. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveTables.js +10 -0
  311. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveText.coffee +32 -0
  312. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveText.js +10 -0
  313. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.tooltip.coffee +121 -0
  314. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.tooltip.js +10 -0
  315. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.modals.js +183 -0
  316. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.orbit-1.4.0.js +919 -0
  317. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.popover.js +206 -0
  318. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.responsiveTables.js +63 -0
  319. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.responsiveText.js +45 -0
  320. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.tooltip.js +118 -0
  321. data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +178 -0
  322. data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +51 -0
  323. data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss +534 -0
  324. data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss~ +534 -0
  325. data/vendor/assets/stylesheets/groundworkcss-scss/_forms.scss +161 -0
  326. data/vendor/assets/stylesheets/groundworkcss-scss/_global.scss +31 -0
  327. data/vendor/assets/stylesheets/groundworkcss-scss/_grid.scss +384 -0
  328. data/vendor/assets/stylesheets/groundworkcss-scss/_layout.scss +78 -0
  329. data/vendor/assets/stylesheets/groundworkcss-scss/_messages.scss +59 -0
  330. data/vendor/assets/stylesheets/groundworkcss-scss/_mixins.scss +197 -0
  331. data/vendor/assets/stylesheets/groundworkcss-scss/_mobile-reset.scss +11 -0
  332. data/vendor/assets/stylesheets/groundworkcss-scss/_modals.scss +101 -0
  333. data/vendor/assets/stylesheets/groundworkcss-scss/_navigation.scss +284 -0
  334. data/vendor/assets/stylesheets/groundworkcss-scss/_orbit.scss +239 -0
  335. data/vendor/assets/stylesheets/groundworkcss-scss/_popovers.scss +10 -0
  336. data/vendor/assets/stylesheets/groundworkcss-scss/_reset.scss +77 -0
  337. data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +293 -0
  338. data/vendor/assets/stylesheets/groundworkcss-scss/_social-icons.scss +92 -0
  339. data/vendor/assets/stylesheets/groundworkcss-scss/_social-icons.scss~ +92 -0
  340. data/vendor/assets/stylesheets/groundworkcss-scss/_tables.scss +80 -0
  341. data/vendor/assets/stylesheets/groundworkcss-scss/_tabs.scss +137 -0
  342. data/vendor/assets/stylesheets/groundworkcss-scss/_tooltips.scss +161 -0
  343. data/vendor/assets/stylesheets/groundworkcss-scss/_typography.scss +255 -0
  344. data/vendor/assets/stylesheets/groundworkcss-scss/_ui-elements.scss +10 -0
  345. data/vendor/assets/stylesheets/groundworkcss-scss/_variables.scss +134 -0
  346. data/vendor/assets/stylesheets/groundworkcss-scss/_webfonts.scss +19 -0
  347. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork-ie.scss +64 -0
  348. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +37 -0
  349. data/vendor/assets/stylesheets/groundworkcss-scss/no-svg.scss +69 -0
  350. metadata +460 -0
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" id="Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve">
4
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="23.9995" y1="0" x2="23.9995" y2="48.0005">
5
+ <stop offset="0" style="stop-color:#AECD46"/>
6
+ <stop offset="1" style="stop-color:#6AA326"/>
7
+ </linearGradient>
8
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="url(#SVGID_1_)" d="M48,42c0,3.313-2.687,6-6,6H6c-3.313,0-6-2.687-6-6V6
9
+ c0-3.313,2.687-6,6-6h36c3.313,0,6,2.687,6,6V42z"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#C1D667" d="M19.992,12.085c0,0,0.254,1.605,2.419,1.605
11
+ c2.165,0,11.077,0,11.077,0s1.019,0.371-0.128,1.359c-1.146,0.988-14.259,15.562-14.259,15.562s-0.255,0.988,1.273,0.617
12
+ c1.527-0.37,4.584,1.111,6.11,2.717c1.529,1.606,6.24,2.225,8.022,1.111c0,0,0.763,2.595-1.782,4.2
13
+ c-2.547,1.606-4.456,1.236-7.131-0.864c-2.673-2.101-4.965-3.952-8.021-3.952s-5.73-0.865-3.947-2.965
14
+ c1.782-2.1,11.841-13.709,11.841-13.709L19.61,17.89c0,0-2.928-0.493-2.419-3.087C17.7,12.208,19.992,12.085,19.992,12.085z"/>
15
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#262626" d="M19.992,10.178c0,0,0.254,1.605,2.419,1.605
16
+ c2.165,0,11.077,0,11.077,0s1.019,0.371-0.128,1.359c-1.146,0.988-14.259,15.563-14.259,15.563s-0.255,0.988,1.273,0.617
17
+ c1.527-0.371,4.584,1.11,6.11,2.717c1.529,1.605,6.24,2.224,8.022,1.11c0,0,0.763,2.595-1.782,4.201
18
+ c-2.547,1.605-4.456,1.235-7.131-0.865c-2.673-2.1-4.965-3.952-8.021-3.952s-5.73-0.864-3.947-2.965
19
+ c1.782-2.1,11.841-13.709,11.841-13.709l-5.857,0.124c0,0-2.928-0.494-2.419-3.087C17.7,10.301,19.992,10.178,19.992,10.178z"/>
20
+ </svg>
@@ -0,0 +1,3 @@
1
+ //= require_tree ./groundworkcss/libs
2
+ //= require_tree ./groundworkcss/plugins
3
+ //= require ./groundworkcss/groundwork.js
@@ -0,0 +1,8 @@
1
+ //= require_tree ./libs
2
+ //= require ./plugins/jquery.modals.js
3
+ //= require ./plugins/jquery.orbit-1.4.0.js
4
+ //= require ./plugins/jquery.popover.js
5
+ //= require ./plugins/jquery.responsiveTables.js
6
+ //= require ./plugins/jquery.responsiveText.js
7
+ //= require ./plugins/jquery.tooltip.js
8
+ //= require ./groundwork_ujs.js
@@ -0,0 +1,207 @@
1
+ ###
2
+ *
3
+ * Groundwork JS by Gary Hepting - https://github.com/groundworkcss/groundwork
4
+ *
5
+ * Open source under the BSD License.
6
+ *
7
+ * Copyright © 2013 Gary Hepting. All rights reserved.
8
+ *
9
+ ###
10
+
11
+ $(document).ready ->
12
+
13
+ # navigation menus
14
+ delay = ''
15
+ $('nav > ul > li.menu').on
16
+ mouseenter: (e) ->
17
+ if $(window).width() > 768
18
+ clearTimeout(delay)
19
+ $('nav > ul > li').removeClass('on')
20
+ $('nav > ul > li > ul').hide()
21
+ $(this).addClass('on')
22
+ mouseleave: (e) ->
23
+ if $(window).width() > 768
24
+ delay = setTimeout (->
25
+ $('nav > ul > li').removeClass('on')
26
+ $('nav > ul > li > ul').hide()
27
+ ), 350
28
+ click: (e) ->
29
+ if $(window).width() < 768
30
+ if $(e.target).parent('li.menu').size() > 0
31
+ $this = $(this)
32
+ $(this).children('ul').slideToggle 300, ->
33
+ $this.toggleClass('on')
34
+ e.preventDefault()
35
+ return false
36
+ tap: (e) ->
37
+ if $(e.target).parent('li.menu').size() > 0
38
+ $this = $(this)
39
+ $(this).children('ul').slideToggle 300, ->
40
+ $this.toggleClass('on')
41
+ e.preventDefault()
42
+ return false
43
+
44
+ # dynamically adjust pagination items
45
+ limitPaginationItems()
46
+ # change active page
47
+ $('.pagination ul > li:not(.next, .prev) a').on 'click', ( (e) ->
48
+ $('.pagination ul > li:not(.next, .prev)').removeClass('active')
49
+ $(this).parent('li').addClass('active')
50
+ # toggle previous button state
51
+ if $(this).parent('li').hasClass('first')
52
+ $('.pagination ul > li.prev').addClass('disabled')
53
+ else
54
+ $('.pagination ul > li.prev').removeClass('disabled')
55
+ # toggle next button state
56
+ if $(this).parent('li').hasClass('last')
57
+ $('.pagination ul > li.next').addClass('disabled')
58
+ else
59
+ $('.pagination ul > li.next').removeClass('disabled')
60
+ # adjust pagination
61
+ limitPaginationItems()
62
+ e.preventDefault()
63
+ false
64
+ )
65
+ # handle previous pagination button
66
+ $('.pagination ul > li.prev:not(.disabled)').on 'click', ( (e) ->
67
+ # enable next button
68
+ $('.pagination ul > li.next').removeClass('disabled')
69
+ el = $('.pagination ul > li.active')
70
+ if !el.hasClass('first')
71
+ # set previous page active
72
+ el.removeClass('active')
73
+ el.prev().addClass('active')
74
+ # adjust pagination
75
+ limitPaginationItems()
76
+ # disable previous button if at first page
77
+ if $('.pagination ul > li.active').hasClass('first')
78
+ $(this).addClass('disabled')
79
+ e.preventDefault()
80
+ false
81
+ )
82
+ # handle next pagination button
83
+ $('.pagination ul > li.next:not(.disabled)').on 'click', ( (e) ->
84
+ # enable previous button
85
+ $('.pagination ul > li.prev').removeClass('disabled')
86
+ el = $('.pagination ul > li.active')
87
+ if !el.hasClass('last')
88
+ # set next page active
89
+ el.removeClass('active')
90
+ el.next().addClass('active')
91
+ # adjust pagination
92
+ limitPaginationItems()
93
+ # disable next button if at last page
94
+ if $('.pagination ul > li.active').hasClass('last')
95
+ $(this).addClass('disabled')
96
+ e.preventDefault()
97
+ false
98
+ )
99
+ # disable page jump for disabled pagination links
100
+ $('.pagination ul > li.disabled a').on 'click', ( (e) ->
101
+ e.preventDefault()
102
+ false
103
+ )
104
+
105
+ # select all text on invalid input field entries
106
+ $('.error input, .error textarea,
107
+ .invalid input, .invalid textarea,
108
+ input.error, textarea.error,
109
+ input.invalid, textarea.invalid').on
110
+ click: ->
111
+ $(this).focus()
112
+ $(this).select()
113
+
114
+ # polyfill select box placeholders
115
+ $('span.select select').each ->
116
+ if $(this).children('option').first().val() == '' and $(this).children('option').first().attr('selected')
117
+ $(this).addClass('unselected')
118
+ else
119
+ $(this).removeClass('unselected')
120
+ $('span.select select').on
121
+ change: ->
122
+ if $(this).children('option').first().val() == '' and $(this).children('option').first().attr('selected')
123
+ $(this).addClass('unselected')
124
+ else
125
+ $(this).removeClass('unselected')
126
+
127
+ # tabs
128
+ $('.tabs > ul > li > a').not('.disabled').click (e) ->
129
+ tabs = $(this).parents('.tabs')
130
+ tabs.find('> ul li a').removeClass('active')
131
+ $(this).addClass('active')
132
+ tabs.children('div').removeClass('active')
133
+ tabs.children($(this).attr('href')).addClass('active')
134
+ e.preventDefault()
135
+ return false
136
+
137
+ # responsive headings
138
+ $('.responsive').not('table').each (index, object) ->
139
+ compression = 10
140
+ min = 10
141
+ max = 200
142
+ compression = parseFloat $(this).attr('data-compression') || compression
143
+ min = parseFloat $(this).attr('data-min') || min
144
+ max = parseFloat $(this).attr('data-max') || max
145
+ $(object).responsiveText
146
+ compressor: compression,
147
+ minSize: min,
148
+ maxSize: max
149
+
150
+ # responsive tables
151
+ $('table.responsive').each (index, object) ->
152
+ compression = 30
153
+ min = 8
154
+ max = 13
155
+ padding = 0
156
+ compression = parseFloat $(this).attr('data-compression') || compression
157
+ min = parseFloat $(this).attr('data-min') || min
158
+ max = parseFloat $(this).attr('data-max') || max
159
+ padding = parseFloat $(this).attr('data-padding') || padding
160
+ $(object).responsiveTable
161
+ compressor: compression,
162
+ minSize: min,
163
+ maxSize: max,
164
+ padding: padding
165
+
166
+ # tooltips
167
+ $('.tooltip[title]').tooltip()
168
+
169
+ # modals
170
+ $('div.modal').modal()
171
+
172
+
173
+ $(window).load ->
174
+ $('.slider').orbit()
175
+
176
+ $(window).resize ->
177
+ limitPaginationItems()
178
+
179
+ # responsive pagination
180
+ limitPaginationItems = ->
181
+ #process pagination lists
182
+ $('.pagination ul').each ->
183
+ pagination = $(this)
184
+ # pagination dimensions
185
+ visibleSpace = pagination.outerWidth() - pagination.children('li.prev').outerWidth() - pagination.children('li.next').outerWidth()
186
+ # hide pages that don't fit
187
+ pagination.children('li').not('.prev, .next, .active').hide()
188
+ visibleItemsWidth = 0
189
+ pagination.children('li:visible').each ->
190
+ visibleItemsWidth += $(this).outerWidth()
191
+ # loop
192
+ while (visibleItemsWidth + 29) < visibleSpace
193
+ # show the next page number
194
+ pagination.children('li:visible').not('.next').last().next().show()
195
+ visibleItemsWidth = 0
196
+ pagination.children('li:visible').each ->
197
+ visibleItemsWidth += $(this).outerWidth()
198
+ if (visibleItemsWidth + 29) <= visibleSpace
199
+ # show the previous page number
200
+ pagination.children('li:visible').not('.prev').first().prev().show()
201
+ visibleItemsWidth = 0
202
+ pagination.children('li:visible').each ->
203
+ visibleItemsWidth += $(this).outerWidth()
204
+ # recalculate visibleItemsWidth
205
+ visibleItemsWidth = 0
206
+ pagination.children('li:visible').each ->
207
+ visibleItemsWidth += $(this).outerWidth()
@@ -0,0 +1,845 @@
1
+ // Generated by CoffeeScript 1.4.0
2
+
3
+ /*
4
+ *
5
+ * Groundwork JS by Gary Hepting - https://github.com/groundworkcss/groundwork
6
+ *
7
+ * Open source under the BSD License.
8
+ *
9
+ * Copyright © 2013 Gary Hepting. All rights reserved.
10
+ *
11
+ */
12
+
13
+
14
+ (function() {
15
+ var limitPaginationItems;
16
+
17
+ $(document).ready(function() {
18
+ var delay;
19
+ delay = '';
20
+ $('nav > ul > li.menu').on({
21
+ mouseenter: function(e) {
22
+ if ($(window).width() > 768) {
23
+ clearTimeout(delay);
24
+ $('nav > ul > li').removeClass('on');
25
+ $('nav > ul > li > ul').hide();
26
+ return $(this).addClass('on');
27
+ }
28
+ },
29
+ mouseleave: function(e) {
30
+ if ($(window).width() > 768) {
31
+ return delay = setTimeout((function() {
32
+ $('nav > ul > li').removeClass('on');
33
+ return $('nav > ul > li > ul').hide();
34
+ }), 350);
35
+ }
36
+ },
37
+ click: function(e) {
38
+ var $this;
39
+ if ($(window).width() < 768) {
40
+ if ($(e.target).parent('li.menu').size() > 0) {
41
+ $this = $(this);
42
+ $(this).children('ul').slideToggle(300, function() {
43
+ return $this.toggleClass('on');
44
+ });
45
+ e.preventDefault();
46
+ return false;
47
+ }
48
+ }
49
+ },
50
+ tap: function(e) {
51
+ var $this;
52
+ if ($(e.target).parent('li.menu').size() > 0) {
53
+ $this = $(this);
54
+ $(this).children('ul').slideToggle(300, function() {
55
+ return $this.toggleClass('on');
56
+ });
57
+ e.preventDefault();
58
+ return false;
59
+ }
60
+ }
61
+ });
62
+ limitPaginationItems();
63
+ $('.pagination ul > li:not(.next, .prev) a').on('click', (function(e) {
64
+ $('.pagination ul > li:not(.next, .prev)').removeClass('active');
65
+ $(this).parent('li').addClass('active');
66
+ if ($(this).parent('li').hasClass('first')) {
67
+ $('.pagination ul > li.prev').addClass('disabled');
68
+ } else {
69
+ $('.pagination ul > li.prev').removeClass('disabled');
70
+ }
71
+ if ($(this).parent('li').hasClass('last')) {
72
+ $('.pagination ul > li.next').addClass('disabled');
73
+ } else {
74
+ $('.pagination ul > li.next').removeClass('disabled');
75
+ }
76
+ limitPaginationItems();
77
+ e.preventDefault();
78
+ return false;
79
+ }));
80
+ $('.pagination ul > li.prev:not(.disabled)').on('click', (function(e) {
81
+ var el;
82
+ $('.pagination ul > li.next').removeClass('disabled');
83
+ el = $('.pagination ul > li.active');
84
+ if (!el.hasClass('first')) {
85
+ el.removeClass('active');
86
+ el.prev().addClass('active');
87
+ limitPaginationItems();
88
+ }
89
+ if ($('.pagination ul > li.active').hasClass('first')) {
90
+ $(this).addClass('disabled');
91
+ }
92
+ e.preventDefault();
93
+ return false;
94
+ }));
95
+ $('.pagination ul > li.next:not(.disabled)').on('click', (function(e) {
96
+ var el;
97
+ $('.pagination ul > li.prev').removeClass('disabled');
98
+ el = $('.pagination ul > li.active');
99
+ if (!el.hasClass('last')) {
100
+ el.removeClass('active');
101
+ el.next().addClass('active');
102
+ limitPaginationItems();
103
+ }
104
+ if ($('.pagination ul > li.active').hasClass('last')) {
105
+ $(this).addClass('disabled');
106
+ }
107
+ e.preventDefault();
108
+ return false;
109
+ }));
110
+ $('.pagination ul > li.disabled a').on('click', (function(e) {
111
+ e.preventDefault();
112
+ return false;
113
+ }));
114
+ $('.error input, .error textarea, \
115
+ .invalid input, .invalid textarea, \
116
+ input.error, textarea.error, \
117
+ input.invalid, textarea.invalid').on({
118
+ click: function() {
119
+ $(this).focus();
120
+ return $(this).select();
121
+ }
122
+ });
123
+ $('span.select select').each(function() {
124
+ if ($(this).children('option').first().val() === '' && $(this).children('option').first().attr('selected')) {
125
+ return $(this).addClass('unselected');
126
+ } else {
127
+ return $(this).removeClass('unselected');
128
+ }
129
+ });
130
+ $('span.select select').on({
131
+ change: function() {
132
+ if ($(this).children('option').first().val() === '' && $(this).children('option').first().attr('selected')) {
133
+ return $(this).addClass('unselected');
134
+ } else {
135
+ return $(this).removeClass('unselected');
136
+ }
137
+ }
138
+ });
139
+ $('.tabs > ul > li > a').not('.disabled').click(function(e) {
140
+ var tabs;
141
+ tabs = $(this).parents('.tabs');
142
+ tabs.find('> ul li a').removeClass('active');
143
+ $(this).addClass('active');
144
+ tabs.children('div').removeClass('active');
145
+ tabs.children($(this).attr('href')).addClass('active');
146
+ e.preventDefault();
147
+ return false;
148
+ });
149
+ $('.responsive').not('table').each(function(index, object) {
150
+ var compression, max, min;
151
+ compression = 10;
152
+ min = 10;
153
+ max = 200;
154
+ compression = parseFloat($(this).attr('data-compression') || compression);
155
+ min = parseFloat($(this).attr('data-min') || min);
156
+ max = parseFloat($(this).attr('data-max') || max);
157
+ return $(object).responsiveText({
158
+ compressor: compression,
159
+ minSize: min,
160
+ maxSize: max
161
+ });
162
+ });
163
+ $('table.responsive').each(function(index, object) {
164
+ var compression, max, min, padding;
165
+ compression = 30;
166
+ min = 8;
167
+ max = 13;
168
+ padding = 0;
169
+ compression = parseFloat($(this).attr('data-compression') || compression);
170
+ min = parseFloat($(this).attr('data-min') || min);
171
+ max = parseFloat($(this).attr('data-max') || max);
172
+ padding = parseFloat($(this).attr('data-padding') || padding);
173
+ return $(object).responsiveTable({
174
+ compressor: compression,
175
+ minSize: min,
176
+ maxSize: max,
177
+ padding: padding
178
+ });
179
+ });
180
+ $('.tooltip[title]').tooltip();
181
+ return $('div.modal').modal();
182
+ });
183
+
184
+ $(window).load(function() {
185
+ return $('.slider').orbit();
186
+ });
187
+
188
+ $(window).resize(function() {
189
+ return limitPaginationItems();
190
+ });
191
+
192
+ limitPaginationItems = function() {
193
+ return $('.pagination ul').each(function() {
194
+ var pagination, visibleItemsWidth, visibleSpace, _results;
195
+ pagination = $(this);
196
+ visibleSpace = pagination.outerWidth() - pagination.children('li.prev').outerWidth() - pagination.children('li.next').outerWidth();
197
+ pagination.children('li').not('.prev, .next, .active').hide();
198
+ visibleItemsWidth = 0;
199
+ pagination.children('li:visible').each(function() {
200
+ return visibleItemsWidth += $(this).outerWidth();
201
+ });
202
+ _results = [];
203
+ while ((visibleItemsWidth + 29) < visibleSpace) {
204
+ pagination.children('li:visible').not('.next').last().next().show();
205
+ visibleItemsWidth = 0;
206
+ pagination.children('li:visible').each(function() {
207
+ return visibleItemsWidth += $(this).outerWidth();
208
+ });
209
+ if ((visibleItemsWidth + 29) <= visibleSpace) {
210
+ pagination.children('li:visible').not('.prev').first().prev().show();
211
+ visibleItemsWidth = 0;
212
+ pagination.children('li:visible').each(function() {
213
+ return visibleItemsWidth += $(this).outerWidth();
214
+ });
215
+ }
216
+ visibleItemsWidth = 0;
217
+ _results.push(pagination.children('li:visible').each(function() {
218
+ return visibleItemsWidth += $(this).outerWidth();
219
+ }));
220
+ }
221
+ return _results;
222
+ });
223
+ };
224
+
225
+ /* --------------------------------------------
226
+ Begin jquery.tooltip.coffee
227
+ --------------------------------------------
228
+ */
229
+
230
+
231
+ /*
232
+ *
233
+ * jQuery Tooltips by Gary Hepting - https://github.com/ghepting/jquery-tooltips
234
+ *
235
+ * Open source under the BSD License.
236
+ *
237
+ * Copyright © 2013 Gary Hepting. All rights reserved.
238
+ *
239
+ */
240
+
241
+
242
+ (function($) {
243
+ return $.fn.tooltip = function(options) {
244
+ var closetooltip, defaults, delayShow, getElementPosition, setPosition, showtooltip, tooltip, trigger;
245
+ defaults = {
246
+ topOffset: 0,
247
+ delay: 100,
248
+ speed: 100
249
+ };
250
+ options = $.extend(defaults, options);
251
+ tooltip = $('#tooltip');
252
+ delayShow = '';
253
+ trigger = '';
254
+ getElementPosition = function(el) {
255
+ var bottom, left, offset, right, top, win;
256
+ offset = el.offset();
257
+ win = $(window);
258
+ return {
259
+ top: top = offset.top - win.scrollTop(),
260
+ left: left = offset.left - win.scrollLeft(),
261
+ bottom: bottom = win.height() - top - el.outerHeight(),
262
+ right: right = win.width() - left - el.outerWidth()
263
+ };
264
+ };
265
+ setPosition = function(trigger) {
266
+ var attrs, coords, height, width;
267
+ coords = getElementPosition(trigger);
268
+ if (tooltip.outerWidth() > ($(window).width() - 20)) {
269
+ tooltip.css('width', $(window).width() - 20);
270
+ }
271
+ attrs = {};
272
+ tooltip.css('max-width', Math.min($(window).width() - parseInt($('body').css('padding-left')) - parseInt($('body').css('padding-right')), parseInt(tooltip.css('max-width'))));
273
+ width = tooltip.outerWidth();
274
+ height = tooltip.outerHeight();
275
+ if (coords.left <= coords.right) {
276
+ tooltip.addClass('left');
277
+ attrs.left = coords.left;
278
+ } else {
279
+ tooltip.addClass('right');
280
+ attrs.right = coords.right;
281
+ }
282
+ if ((coords.top - options.topOffset) > (height + 20)) {
283
+ tooltip.addClass('top');
284
+ attrs.top = (trigger.offset().top - height) - 20;
285
+ } else {
286
+ tooltip.addClass('bottom');
287
+ attrs.top = trigger.offset().top + trigger.outerHeight() - 4;
288
+ }
289
+ return tooltip.css(attrs);
290
+ };
291
+ closetooltip = function() {
292
+ tooltip.stop().remove();
293
+ return $('[role=tooltip]').removeClass('on');
294
+ };
295
+ showtooltip = function(trigger) {
296
+ closetooltip();
297
+ clearTimeout(delayShow);
298
+ return delayShow = setTimeout(function() {
299
+ if ($('#tooltip').length !== 1) {
300
+ $('#tooltip').remove();
301
+ tooltip = $("<div id=\"tooltip\"></div>");
302
+ tooltip.appendTo("body");
303
+ }
304
+ tooltip.css("opacity", 0).text(trigger.attr('data-title'));
305
+ setPosition(trigger);
306
+ trigger.addClass('on');
307
+ return tooltip.animate({
308
+ top: "+=10",
309
+ opacity: 1
310
+ }, options.speed);
311
+ }, options.delay);
312
+ };
313
+ this.each(function() {
314
+ var $this;
315
+ $this = $(this);
316
+ $this.attr('role', 'tooltip').attr('data-title', $this.attr('title'));
317
+ return $this.removeAttr("title");
318
+ });
319
+ $('body').on('focus', '[role=tooltip]', function() {
320
+ return showtooltip($(this));
321
+ }).on('blur', '[role=tooltip]', function() {
322
+ clearTimeout(delayShow);
323
+ return closetooltip();
324
+ }).on('mouseenter', '[role=tooltip]:not(input,select,textarea)', function() {
325
+ return showtooltip($(this));
326
+ }).on('mouseleave', '[role=tooltip]:not(input,select,textarea)', function() {
327
+ clearTimeout(delayShow);
328
+ return closetooltip();
329
+ });
330
+ return $(window).on({
331
+ scroll: function() {
332
+ trigger = $('[role=tooltip].on');
333
+ if (trigger.length) {
334
+ setPosition(trigger);
335
+ return $('#tooltip').css({
336
+ top: "+=10"
337
+ });
338
+ }
339
+ }
340
+ });
341
+ };
342
+ })(jQuery);
343
+
344
+ /* --------------------------------------------
345
+ Begin jquery.popover.coffee
346
+ --------------------------------------------
347
+ */
348
+
349
+
350
+ /*
351
+ *
352
+ * jQuery Popovers by Gary Hepting - https://github.com/ghepting/jquery-popovers
353
+ *
354
+ * Open source under the BSD License.
355
+ *
356
+ * Copyright © 2013 Gary Hepting. All rights reserved.
357
+ *
358
+ */
359
+
360
+
361
+ (function($) {
362
+ return $.fn.popover = function(options) {
363
+ var closePopover, defaults, delayAdjust, delayHide, getElementPosition, popover, resetPopover, setPosition, showPopover, trigger;
364
+ defaults = {
365
+ hover: false,
366
+ click: true,
367
+ resize: true,
368
+ scroll: true,
369
+ topOffset: 0,
370
+ delay: 500,
371
+ speed: 100
372
+ };
373
+ options = $.extend(defaults, options);
374
+ popover = $('#popover');
375
+ delayHide = '';
376
+ delayAdjust = '';
377
+ trigger = '';
378
+ getElementPosition = function(el) {
379
+ var bottom, left, offset, right, top, win;
380
+ offset = el.offset();
381
+ win = $(window);
382
+ return {
383
+ top: top = offset.top - win.scrollTop(),
384
+ left: left = offset.left - win.scrollLeft(),
385
+ bottom: bottom = win.height() - top - el.outerHeight(),
386
+ right: right = win.width() - left - el.outerWidth()
387
+ };
388
+ };
389
+ resetPopover = function(resize) {
390
+ popover.css({
391
+ top: 'auto',
392
+ right: 'auto',
393
+ bottom: 'auto',
394
+ left: 'auto'
395
+ });
396
+ if (resize) {
397
+ popover.css({
398
+ width: 'auto'
399
+ });
400
+ }
401
+ popover.removeClass('top');
402
+ popover.removeClass('right');
403
+ popover.removeClass('bottom');
404
+ return popover.removeClass('left');
405
+ };
406
+ setPosition = function(trigger, skipAnimation, resize) {
407
+ var attrs, coords, height, width;
408
+ if (trigger) {
409
+ if (resize) {
410
+ resetPopover(true);
411
+ } else {
412
+ resetPopover();
413
+ }
414
+ coords = getElementPosition(trigger);
415
+ if (popover.outerWidth() > ($(window).width() - 20)) {
416
+ popover.css('width', $(window).width() - 20);
417
+ }
418
+ popover.css('max-width', Math.min($(window).width() - parseInt($('body').css('padding-left')) - parseInt($('body').css('padding-right')), parseInt(popover.css('max-width'))));
419
+ width = popover.outerWidth();
420
+ height = popover.outerHeight();
421
+ attrs = {};
422
+ if (coords.left <= coords.right) {
423
+ popover.addClass('left');
424
+ attrs.left = coords.left;
425
+ } else {
426
+ popover.addClass('right');
427
+ attrs.right = coords.right;
428
+ }
429
+ if ((coords.top - options.topOffset) > (height + 20)) {
430
+ popover.addClass('top');
431
+ attrs.top = trigger.offset().top - height - 20;
432
+ } else {
433
+ popover.addClass('bottom');
434
+ attrs.top = trigger.offset().top + 15;
435
+ }
436
+ popover.css(attrs);
437
+ if (skipAnimation) {
438
+ return popover.css({
439
+ top: '+=10'
440
+ });
441
+ }
442
+ }
443
+ };
444
+ closePopover = function() {
445
+ $('.popover-trigger').removeClass('popover-trigger');
446
+ return popover.removeClass('sticky').remove();
447
+ };
448
+ showPopover = function(e) {
449
+ var tip;
450
+ trigger = $(e.target);
451
+ if (!trigger.hasClass('popover-trigger')) {
452
+ closePopover();
453
+ trigger.addClass('popover-trigger');
454
+ }
455
+ tip = $('#' + trigger.attr('data-content')).html();
456
+ popover = $("<div id=\"popover\"></div>");
457
+ if (!tip || tip === "") {
458
+ return false;
459
+ }
460
+ trigger.removeAttr("title");
461
+ popover.css("opacity", 0).html(tip).appendTo("body");
462
+ setPosition(trigger);
463
+ popover.animate({
464
+ top: "+=10",
465
+ opacity: 1
466
+ }, options.speed);
467
+ popover.bind("click", function(e) {
468
+ if (e.target.tagName !== 'a') {
469
+ popover.addClass('sticky');
470
+ e.stopPropagation();
471
+ e.preventDefault();
472
+ return false;
473
+ }
474
+ });
475
+ popover.find('.close').bind("click", function(e) {
476
+ $('.popover-trigger').removeClass('popover-trigger');
477
+ popover.removeClass('sticky').remove();
478
+ e.stopPropagation();
479
+ e.preventDefault();
480
+ return false;
481
+ });
482
+ return popover.bind({
483
+ mouseenter: function() {
484
+ return clearTimeout(delayHide);
485
+ },
486
+ mouseleave: function() {
487
+ if (!popover.hasClass('sticky')) {
488
+ return delayHide = setTimeout((function() {
489
+ $('.popover-trigger').removeClass('popover-trigger');
490
+ return popover.removeClass('sticky').remove();
491
+ }), 500);
492
+ }
493
+ }
494
+ });
495
+ };
496
+ return this.each(function() {
497
+ var $this;
498
+ $this = $(this);
499
+ if (options.hover) {
500
+ $this.bind({
501
+ mouseenter: function(e) {
502
+ trigger = $(e.target);
503
+ clearTimeout(delayHide);
504
+ if (!$this.hasClass('popover-trigger') && !popover.hasClass('sticky')) {
505
+ return showPopover(e);
506
+ }
507
+ },
508
+ mouseleave: function() {
509
+ if (!popover.hasClass('sticky')) {
510
+ return delayHide = setTimeout(function() {
511
+ return closePopover();
512
+ }, options.delay);
513
+ }
514
+ }
515
+ });
516
+ }
517
+ if (options.click) {
518
+ $this.bind("click", function(e) {
519
+ trigger = $(e.target);
520
+ if (!trigger.hasClass('popover-trigger')) {
521
+ closePopover();
522
+ showPopover(e);
523
+ }
524
+ popover.addClass('sticky');
525
+ e.preventDefault();
526
+ e.stopPropagation();
527
+ return false;
528
+ });
529
+ }
530
+ if (options.resize) {
531
+ $(window).resize(function() {
532
+ clearTimeout(delayAdjust);
533
+ return delayAdjust = setTimeout(function() {
534
+ return setPosition(trigger, true, true);
535
+ }, 100);
536
+ });
537
+ }
538
+ if (options.scroll) {
539
+ $(window).scroll(function() {
540
+ return setPosition(trigger, true);
541
+ });
542
+ }
543
+ return $('html, body').bind("click", function(e) {
544
+ $('.popover-trigger').removeClass('popover-trigger');
545
+ return popover.removeClass('sticky').remove();
546
+ });
547
+ });
548
+ };
549
+ })(jQuery);
550
+
551
+ /* --------------------------------------------
552
+ Begin jquery.responsiveText.coffee
553
+ --------------------------------------------
554
+ */
555
+
556
+
557
+ /*
558
+ *
559
+ * jQuery ResponsiveText by Gary Hepting - https://github.com/ghepting/responsiveText
560
+ *
561
+ * Open source under the BSD License.
562
+ *
563
+ * Copyright © 2013 Gary Hepting. All rights reserved.
564
+ *
565
+ */
566
+
567
+
568
+ (function($) {
569
+ var elems;
570
+ elems = [];
571
+ $.fn.responsiveText = function(options) {
572
+ var settings;
573
+ settings = {
574
+ compressor: options.compressor || 10,
575
+ minSize: options.minSize || Number.NEGATIVE_INFINITY,
576
+ maxSize: options.maxSize || Number.POSITIVE_INFINITY
577
+ };
578
+ return this.each(function() {
579
+ var elem;
580
+ elem = $(this);
581
+ elem.attr('data-compression', settings.compressor);
582
+ elem.attr('data-min', settings.minSize);
583
+ elem.attr('data-max', settings.maxSize);
584
+ elem.css("font-size", Math.floor(Math.max(Math.min(elem.width() / settings.compressor, parseFloat(settings.maxSize)), parseFloat(settings.minSize))));
585
+ return elems.push(elem);
586
+ });
587
+ };
588
+ return $(window).on("resize", function() {
589
+ return $(elems).each(function() {
590
+ var elem;
591
+ elem = $(this);
592
+ return elem.css("font-size", Math.floor(Math.max(Math.min(elem.width() / (elem.attr('data-compression')), parseFloat(elem.attr('data-max'))), parseFloat(elem.attr('data-min')))));
593
+ });
594
+ });
595
+ })(jQuery);
596
+
597
+ /* --------------------------------------------
598
+ Begin jquery.responsiveTables.coffee
599
+ --------------------------------------------
600
+ */
601
+
602
+
603
+ /*
604
+ *
605
+ * jQuery ResponsiveTables by Gary Hepting - https://github.com/ghepting/responsiveTables
606
+ *
607
+ * Open source under the BSD License.
608
+ *
609
+ * Copyright © 2013 Gary Hepting. All rights reserved.
610
+ *
611
+ */
612
+
613
+
614
+ (function($) {
615
+ var elems;
616
+ elems = [];
617
+ $.fn.responsiveTable = function(options) {
618
+ var settings;
619
+ settings = {
620
+ compressor: options.compressor || 10,
621
+ minSize: options.minSize || Number.NEGATIVE_INFINITY,
622
+ maxSize: options.maxSize || Number.POSITIVE_INFINITY,
623
+ padding: 2,
624
+ height: "auto",
625
+ adjust_parents: true
626
+ };
627
+ return this.each(function() {
628
+ var columns, elem, fontSize, rows;
629
+ elem = $(this);
630
+ elem.attr('data-compression', settings.compressor);
631
+ elem.attr('data-min', settings.minSize);
632
+ elem.attr('data-max', settings.maxSize);
633
+ elem.attr('data-padding', settings.padding);
634
+ columns = $("tr", elem).first().children("th, td").length;
635
+ rows = $("tr", elem).length;
636
+ if (settings.height !== "auto") {
637
+ $this.css("height", settings.height);
638
+ if (settings.adjust_parents) {
639
+ $this.parents().each(function() {
640
+ return $(this).css("height", "100%");
641
+ });
642
+ }
643
+ }
644
+ $("tr th, tr td", elem).css("width", Math.floor(100 / columns) + "%");
645
+ $("tr th, tr td", elem).css("height", Math.floor(100 / rows) + "%");
646
+ fontSize = Math.floor(Math.max(Math.min(elem.width() / settings.compressor, parseFloat(settings.maxSize)), parseFloat(settings.minSize)));
647
+ $("tr th, tr td", elem).css("font-size", fontSize + "px");
648
+ return elems.push(elem);
649
+ });
650
+ };
651
+ return $(window).on("resize", function() {
652
+ return $(elems).each(function() {
653
+ var elem, fontSize;
654
+ elem = $(this);
655
+ fontSize = Math.floor(Math.max(Math.min(elem.width() / (elem.attr('data-compression')), parseFloat(elem.attr('data-max'))), parseFloat(elem.attr('data-min'))));
656
+ return $("tr th, tr td", elem).css("font-size", fontSize + "px");
657
+ });
658
+ });
659
+ })(jQuery);
660
+
661
+ /* --------------------------------------------
662
+ Begin jquery.modals.coffee
663
+ --------------------------------------------
664
+ */
665
+
666
+
667
+ /*
668
+ *
669
+ * jQuery Modals by Gary Hepting
670
+ * https://github.com/ghepting/modal
671
+ *
672
+ * Based on Avgrund by Hakim El Hattab <3
673
+ *
674
+ */
675
+
676
+
677
+ (function($) {
678
+ var elems, modals;
679
+ if ($('div#iframeModal').length < 1) {
680
+ $('body').append('<div class="iframe modal" id="iframeModal"><iframe marginheight="0" marginwidth="0" frameborder="0"></iframe></div>');
681
+ $('div#iframeModal').prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>');
682
+ }
683
+ $('a.modal').each(function() {
684
+ $(this).attr('data-url', $(this).attr('href'));
685
+ return $(this).attr('href', '#iframeModal');
686
+ });
687
+ $('a.modal').on("click", function(e) {
688
+ $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0" width="100%" height="100%" src="' + $(this).attr('data-url') + '"></iframe>');
689
+ e.preventDefault();
690
+ return false;
691
+ });
692
+ elems = [];
693
+ $.fn.modal = function() {
694
+ this.each(function() {
695
+ $(this).not('#iframeModal').wrapInner('<div class="modal-content"></div>');
696
+ $(this).prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>').appendTo('body');
697
+ return $('[href=#' + $(this).attr('id') + ']').on("click", function(e) {
698
+ modals.open($(this).attr('href'));
699
+ e.preventDefault();
700
+ return false;
701
+ });
702
+ });
703
+ $('div.modal .close').on("click", function() {
704
+ return modals.close();
705
+ });
706
+ return $('div.modal .fullscreen').on("click", function() {
707
+ return modals.fullscreen($(this).parent('div.modal'));
708
+ });
709
+ };
710
+ modals = (function() {
711
+ var close, fullscreen, open;
712
+ $('html').addClass('modal-ready');
713
+ if ($("#overlay").length < 1) {
714
+ $('body').append('<div id="overlay"></div>');
715
+ }
716
+ $('#overlay, div.modal .close').bind("click", function(e) {
717
+ return close();
718
+ });
719
+ open = function(elem) {
720
+ $(window).bind("keydown", function(e) {
721
+ var keyCode;
722
+ keyCode = (e.which ? e.which : e.keyCode);
723
+ if (keyCode === 27) {
724
+ return close();
725
+ }
726
+ });
727
+ $(elem).addClass("active");
728
+ if (!$(elem).hasClass('iframe')) {
729
+ $(elem).css({
730
+ width: 'auto',
731
+ height: 'auto'
732
+ });
733
+ $(elem).css({
734
+ height: $(elem).outerHeight()
735
+ });
736
+ }
737
+ $(elem).css({
738
+ top: '50%',
739
+ left: '50%',
740
+ 'margin-top': ($(elem).outerHeight() / -2) + 'px',
741
+ 'margin-left': ($(elem).outerWidth() / -2) + 'px'
742
+ });
743
+ setTimeout(function() {
744
+ return $('html').addClass("modal-active");
745
+ }, 0);
746
+ setTimeout(function() {
747
+ return $('html').removeClass('modal-ready');
748
+ }, 400);
749
+ };
750
+ close = function() {
751
+ var modal;
752
+ modal = $('div.modal.active');
753
+ $(window).unbind("keydown");
754
+ $('html').removeClass("modal-active").addClass('modal-ready');
755
+ if (modal.hasClass('iframe')) {
756
+ $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0"></iframe>');
757
+ modal.css({
758
+ width: '80%',
759
+ height: '80%'
760
+ });
761
+ } else {
762
+ modal.css({
763
+ width: 'auto',
764
+ height: 'auto'
765
+ });
766
+ }
767
+ modal.css({
768
+ top: '10%',
769
+ left: '10%',
770
+ 'max-width': '80%',
771
+ 'max-height': '80%',
772
+ 'margin-top': 0,
773
+ 'margin-left': 0
774
+ });
775
+ modal.removeClass("active").removeClass("fullscreen");
776
+ $('i.fullscreen', modal).removeClass('icon-resize-small').addClass('icon-resize-full');
777
+ };
778
+ fullscreen = function(elem) {
779
+ if ($('div.modal.active').hasClass('fullscreen')) {
780
+ $('div.modal i.fullscreen').removeClass('icon-resize-small').addClass('icon-resize-full');
781
+ if ($('div.modal.active').hasClass('iframe')) {
782
+ $('div.modal.active').css({
783
+ width: '80%',
784
+ height: '80%'
785
+ });
786
+ } else {
787
+ $('div.modal.active').css({
788
+ width: 'auto',
789
+ height: 'auto'
790
+ });
791
+ $('div.modal.active').css({
792
+ height: $('div.modal.active').outerHeight()
793
+ });
794
+ }
795
+ $('div.modal.active').removeClass('fullscreen').css({
796
+ 'max-width': '80%',
797
+ 'max-height': '80%'
798
+ });
799
+ $('div.modal.active').delay(100).css({
800
+ top: '50%',
801
+ left: '50%',
802
+ 'margin-top': ($('div.modal.active').outerHeight() / -2) + 'px',
803
+ 'margin-left': ($('div.modal.active').outerWidth() / -2) + 'px'
804
+ });
805
+ } else {
806
+ $('div.modal i.fullscreen').addClass('icon-resize-small').removeClass('icon-resize-full');
807
+ $('div.modal.active').addClass('fullscreen').css({
808
+ top: 0,
809
+ left: 0,
810
+ 'margin-top': 0,
811
+ 'margin-left': 0,
812
+ width: '100%',
813
+ height: '100%',
814
+ 'max-width': '100%',
815
+ 'max-height': '100%'
816
+ });
817
+ }
818
+ };
819
+ return {
820
+ open: open,
821
+ close: close,
822
+ fullscreen: fullscreen
823
+ };
824
+ })();
825
+ return $(window).resize(function() {
826
+ return $('div.modal.active').each(function() {
827
+ $(this).removeClass('active').css({
828
+ top: '50%',
829
+ left: '50%',
830
+ 'margin-top': ($(this).outerHeight() / -2) + 'px',
831
+ 'margin-left': ($(this).outerWidth() / -2) + 'px'
832
+ }).addClass('active');
833
+ if (!$(this).hasClass('iframe')) {
834
+ $(this).css({
835
+ height: 'auto'
836
+ });
837
+ return $(this).css({
838
+ height: $(this).outerHeight()
839
+ });
840
+ }
841
+ });
842
+ });
843
+ })(jQuery);
844
+
845
+ }).call(this);