j1-template 2020.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (921) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +79 -0
  4. data/_includes/themes/j1/blocks/footer/boxes/about_box.proc +46 -0
  5. data/_includes/themes/j1/blocks/footer/boxes/about_box.proc.org +40 -0
  6. data/_includes/themes/j1/blocks/footer/boxes/contacts_box.proc +55 -0
  7. data/_includes/themes/j1/blocks/footer/boxes/issue.proc +38 -0
  8. data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +63 -0
  9. data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +50 -0
  10. data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +61 -0
  11. data/_includes/themes/j1/blocks/footer/boxes/social_media_icons.proc +37 -0
  12. data/_includes/themes/j1/blocks/footer/generator.html +145 -0
  13. data/_includes/themes/j1/layouts/content_generator_app.html +32 -0
  14. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +242 -0
  15. data/_includes/themes/j1/layouts/content_generator_collection.html +131 -0
  16. data/_includes/themes/j1/layouts/content_generator_page.html +138 -0
  17. data/_includes/themes/j1/layouts/content_generator_post.html +228 -0
  18. data/_includes/themes/j1/layouts/content_generator_raw.html +33 -0
  19. data/_includes/themes/j1/layouts/layout_metadata_generator.html +118 -0
  20. data/_includes/themes/j1/layouts/layout_module_generator.html +46 -0
  21. data/_includes/themes/j1/layouts/layout_resource_generator.html +49 -0
  22. data/_includes/themes/j1/modules/attics/generator.html +153 -0
  23. data/_includes/themes/j1/modules/boards/news_pin_board.html +183 -0
  24. data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +33 -0
  25. data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +38 -0
  26. data/_includes/themes/j1/modules/connectors/ads +50 -0
  27. data/_includes/themes/j1/modules/connectors/analytic/custom-provider.html +32 -0
  28. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +38 -0
  29. data/_includes/themes/j1/modules/connectors/analytics +45 -0
  30. data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +31 -0
  31. data/_includes/themes/j1/modules/connectors/comment/disqus.html +61 -0
  32. data/_includes/themes/j1/modules/connectors/comment/facebook.html +31 -0
  33. data/_includes/themes/j1/modules/connectors/comments +46 -0
  34. data/_includes/themes/j1/modules/connectors/sharing +29 -0
  35. data/_includes/themes/j1/modules/connectors/translator +45 -0
  36. data/_includes/themes/j1/modules/connectors/translators/custom-translator.html +32 -0
  37. data/_includes/themes/j1/modules/connectors/translators/google-translator.html +49 -0
  38. data/_includes/themes/j1/modules/navigator/generator.html +202 -0
  39. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +114 -0
  40. data/_includes/themes/j1/modules/search/algolia.html +181 -0
  41. data/_includes/themes/j1/modules/search/docsearch.html +42 -0
  42. data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +69 -0
  43. data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +60 -0
  44. data/_includes/themes/j1/procedures/global/collect_page_options.proc +66 -0
  45. data/_includes/themes/j1/procedures/global/create_bs_button.proc +129 -0
  46. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +95 -0
  47. data/_includes/themes/j1/procedures/global/get_category.proc +60 -0
  48. data/_includes/themes/j1/procedures/global/get_category_item.proc +80 -0
  49. data/_includes/themes/j1/procedures/global/get_documents_dir.proc +67 -0
  50. data/_includes/themes/j1/procedures/global/get_page_path.proc +69 -0
  51. data/_includes/themes/j1/procedures/global/get_page_url.proc +55 -0
  52. data/_includes/themes/j1/procedures/global/pager.proc +79 -0
  53. data/_includes/themes/j1/procedures/global/select_color.proc +69 -0
  54. data/_includes/themes/j1/procedures/global/select_font_size.proc +86 -0
  55. data/_includes/themes/j1/procedures/global/select_icon_size.proc +82 -0
  56. data/_includes/themes/j1/procedures/global/select_location.proc +119 -0
  57. data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +37 -0
  58. data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +94 -0
  59. data/_includes/themes/j1/procedures/global/set_image_block.proc +50 -0
  60. data/_includes/themes/j1/procedures/global/setup.proc +53 -0
  61. data/_includes/themes/j1/procedures/layouts/content_writer.proc +112 -0
  62. data/_includes/themes/j1/procedures/layouts/default_writer.proc +162 -0
  63. data/_includes/themes/j1/procedures/layouts/module_writer.proc +270 -0
  64. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +194 -0
  65. data/_includes/themes/j1/procedures/posts/collate_calendar.proc +221 -0
  66. data/_includes/themes/j1/procedures/posts/collate_list.proc +96 -0
  67. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +226 -0
  68. data/_includes/themes/j1/procedures/posts/create_ad_block.proc +56 -0
  69. data/_includes/themes/j1/procedures/posts/create_series_header.proc +96 -0
  70. data/_layouts/app.html +68 -0
  71. data/_layouts/blog_archive.html +60 -0
  72. data/_layouts/collection.html +68 -0
  73. data/_layouts/compress.html +52 -0
  74. data/_layouts/default.html +348 -0
  75. data/_layouts/home.html +90 -0
  76. data/_layouts/page.html +68 -0
  77. data/_layouts/paginator/autopage_category.html +79 -0
  78. data/_layouts/paginator/autopage_collection.html +159 -0
  79. data/_layouts/paginator/autopage_collections_tags.html +87 -0
  80. data/_layouts/paginator/autopage_tags.html +79 -0
  81. data/_layouts/post.html +68 -0
  82. data/_layouts/raw.html +71 -0
  83. data/assets/README.md +0 -0
  84. data/assets/data/authclient.html +373 -0
  85. data/assets/data/banner.html +432 -0
  86. data/assets/data/carousel.json +109 -0
  87. data/assets/data/colors.json +42 -0
  88. data/assets/data/cookie_consent.html +223 -0
  89. data/assets/data/font_sizes.json +42 -0
  90. data/assets/data/footer.html +238 -0
  91. data/assets/data/galleries.json +127 -0
  92. data/assets/data/gallery_customizer.html +150 -0
  93. data/assets/data/jupyter/notebooks/_html/template.full.head.html +75 -0
  94. data/assets/data/jupyter/notebooks/_html/visualisation.html +968 -0
  95. data/assets/data/jupyter/notebooks/html/template.html +50 -0
  96. data/assets/data/jupyter/notebooks/html/visualisation.ok.html +949 -0
  97. data/assets/data/jupyter/notebooks/tutorial.ipynb +169 -0
  98. data/assets/data/jupyter/notebooks/visualisation.ipynb +9413 -0
  99. data/assets/data/mdi_icons.json +14641 -0
  100. data/assets/data/menu.html +469 -0
  101. data/assets/data/messages.yml +131 -0
  102. data/assets/data/panel.html +518 -0
  103. data/assets/data/quicklinks.html +225 -0
  104. data/assets/data/search.yml +131 -0
  105. data/assets/data/sidebar.html +261 -0
  106. data/assets/data/themes.json +59 -0
  107. data/assets/data/twa_v1.json +6978 -0
  108. data/assets/error_pages/HTTP204.html +70 -0
  109. data/assets/error_pages/HTTP400.html +66 -0
  110. data/assets/error_pages/HTTP401.html +67 -0
  111. data/assets/error_pages/HTTP403.html +66 -0
  112. data/assets/error_pages/HTTP404.html +66 -0
  113. data/assets/error_pages/HTTP500.html +66 -0
  114. data/assets/error_pages/HTTP501.html +66 -0
  115. data/assets/error_pages/HTTP502.html +66 -0
  116. data/assets/error_pages/HTTP503.html +67 -0
  117. data/assets/error_pages/HTTP520.html +66 -0
  118. data/assets/error_pages/HTTP521.html +66 -0
  119. data/assets/error_pages/HTTP533.html +66 -0
  120. data/assets/themes/j1/core/css/bootstrap.css +7139 -0
  121. data/assets/themes/j1/core/css/bootstrap.min.css +6 -0
  122. data/assets/themes/j1/core/css/custom.scss +28 -0
  123. data/assets/themes/j1/core/css/globals.css +14523 -0
  124. data/assets/themes/j1/core/css/globals.min.css +1 -0
  125. data/assets/themes/j1/core/css/globals.scss +28 -0
  126. data/assets/themes/j1/core/css/theme_extensions.css +11565 -0
  127. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -0
  128. data/assets/themes/j1/core/css/uno.css +11830 -0
  129. data/assets/themes/j1/core/css/uno.min.css +1 -0
  130. data/assets/themes/j1/core/css/uno.scss +28 -0
  131. data/assets/themes/j1/core/css/vendor.css +46751 -0
  132. data/assets/themes/j1/core/css/vendor.min.css +14 -0
  133. data/assets/themes/j1/core/css/vendor.scss +28 -0
  134. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.eot +0 -0
  135. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.svg +3459 -0
  136. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.ttf +0 -0
  137. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.woff +0 -0
  138. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.woff2 +0 -0
  139. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.eot +0 -0
  140. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.svg +803 -0
  141. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.ttf +0 -0
  142. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.woff +0 -0
  143. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.woff2 +0 -0
  144. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.eot +0 -0
  145. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.svg +4527 -0
  146. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.ttf +0 -0
  147. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.woff +0 -0
  148. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.woff2 +0 -0
  149. data/assets/themes/j1/core/fonts/fontawesome_5/metadata/icons.json +26790 -0
  150. data/assets/themes/j1/core/fonts/fontawesome_5/metadata/icons.yml +9088 -0
  151. data/assets/themes/j1/core/fonts/fontawesome_5/metadata/shims.json +2302 -0
  152. data/assets/themes/j1/core/fonts/fontawesome_5/metadata/shims.yml +292 -0
  153. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.eot +0 -0
  154. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.svg +10188 -0
  155. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.ttf +0 -0
  156. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.woff +0 -0
  157. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.woff2 +0 -0
  158. data/assets/themes/j1/core/fonts/materialdesign_icons/license.md +97 -0
  159. data/assets/themes/j1/core/fonts/materialdesign_icons/metadata/icons.json +8186 -0
  160. data/assets/themes/j1/core/fonts/materialdesign_icons/metadata/icons.yml +5857 -0
  161. data/assets/themes/j1/core/fonts/roboto/fonts/OpenSansEmoji.ttf +0 -0
  162. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Black.ttf +0 -0
  163. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-BlackItalic.ttf +0 -0
  164. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.eot +0 -0
  165. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.ttf +0 -0
  166. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.woff +0 -0
  167. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.woff2 +0 -0
  168. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-BoldItalic.ttf +0 -0
  169. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Italic.ttf +0 -0
  170. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.eot +0 -0
  171. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.ttf +0 -0
  172. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.woff +0 -0
  173. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.woff2 +0 -0
  174. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-LightItalic.ttf +0 -0
  175. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.eot +0 -0
  176. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.ttf +0 -0
  177. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.woff +0 -0
  178. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.woff2 +0 -0
  179. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-MediumItalic.ttf +0 -0
  180. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.eot +0 -0
  181. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.ttf +0 -0
  182. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.woff +0 -0
  183. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.woff2 +0 -0
  184. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.eot +0 -0
  185. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.ttf +0 -0
  186. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.woff +0 -0
  187. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.woff2 +0 -0
  188. data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-ThinItalic.ttf +0 -0
  189. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold-ascii.ttf +0 -0
  190. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold_italic-ascii.ttf +0 -0
  191. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-italic-ascii.ttf +0 -0
  192. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-regular-ascii-conums.ttf +0 -0
  193. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1p-regular-fallback.ttf +0 -0
  194. data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-bold-subset.ttf +0 -0
  195. data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-bold_italic-subset.ttf +0 -0
  196. data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-italic-subset.ttf +0 -0
  197. data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-regular-subset.ttf +0 -0
  198. data/assets/themes/j1/core/js/template.js +143 -0
  199. data/assets/themes/j1/core/js/template.js.map +1 -0
  200. data/assets/themes/j1/core/js/template.min.js +1 -0
  201. data/exe/j1 +26 -0
  202. data/lib/j1.rb +130 -0
  203. data/lib/j1/command.rb +23 -0
  204. data/lib/j1/commands/generate.rb +154 -0
  205. data/lib/j1/commands/help.rb +32 -0
  206. data/lib/j1/commands/module.rb +69 -0
  207. data/lib/j1/external.rb +59 -0
  208. data/lib/j1/log_adapter.rb +115 -0
  209. data/lib/j1/log_helper.rb +61 -0
  210. data/lib/j1/templates/posts/0000-00-00-welcome-to-j1-template.adoc.erb +72 -0
  211. data/lib/j1/utils.rb +330 -0
  212. data/lib/j1/utils/ansi.rb +59 -0
  213. data/lib/j1/utils/exec.rb +25 -0
  214. data/lib/j1/utils/platforms.rb +80 -0
  215. data/lib/j1/utils/win_tz.rb +73 -0
  216. data/lib/j1/version.rb +3 -0
  217. data/lib/j1_app.rb +105 -0
  218. data/lib/j1_app/j1_auth_manager/auth_manager.rb +1367 -0
  219. data/lib/j1_app/j1_auth_manager/commands.rb +18 -0
  220. data/lib/j1_app/j1_auth_manager/config.rb +238 -0
  221. data/lib/j1_app/j1_auth_manager/error_pages.rb +44 -0
  222. data/lib/j1_app/j1_auth_manager/helpers.rb +166 -0
  223. data/lib/j1_app/j1_auth_manager/helpers_disqus.rb +29 -0
  224. data/lib/j1_app/j1_auth_manager/helpers_facebook.rb +29 -0
  225. data/lib/j1_app/j1_auth_manager/helpers_github.rb +112 -0
  226. data/lib/j1_app/j1_auth_manager/helpers_patreon.rb +29 -0
  227. data/lib/j1_app/j1_auth_manager/helpers_twitter.rb +30 -0
  228. data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb +389 -0
  229. data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb.kapott +234 -0
  230. data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.new.erb +297 -0
  231. data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +153 -0
  232. data/lib/j1_app/j1_site_manager/static_site.rb +94 -0
  233. data/lib/j1_app/log4r/yamlconfigurator.rb +195 -0
  234. data/lib/j1_app/omniauth/facebook/signed_request.rb +52 -0
  235. data/lib/j1_app/omniauth/strategies/disqus.rb +113 -0
  236. data/lib/j1_app/omniauth/strategies/facebook.rb +212 -0
  237. data/lib/j1_app/omniauth/strategies/github.rb +141 -0
  238. data/lib/j1_app/omniauth/strategies/patreon.rb +129 -0
  239. data/lib/j1_app/omniauth/strategies/twitter.rb +156 -0
  240. data/lib/j1_app/sinatra/extras/cookies.rb +282 -0
  241. data/lib/j1_app/sinatra/extras/index.rb +33 -0
  242. data/lib/starter_web/Gemfile +213 -0
  243. data/lib/starter_web/_config.yml +978 -0
  244. data/lib/starter_web/_data/_defaults/categories.yml +36 -0
  245. data/lib/starter_web/_data/_defaults/colors.yml +612 -0
  246. data/lib/starter_web/_data/_defaults/font_sizes.yml +29 -0
  247. data/lib/starter_web/_data/_defaults/j1_light_gallery.yml +110 -0
  248. data/lib/starter_web/_data/_defaults/resources.yml +942 -0
  249. data/lib/starter_web/_data/_defaults/template_settings.yml +258 -0
  250. data/lib/starter_web/_data/apps/carousel.yml +515 -0
  251. data/lib/starter_web/_data/apps/defaults/carousel.yml +223 -0
  252. data/lib/starter_web/_data/apps/defaults/gallery_customizer.yml +50 -0
  253. data/lib/starter_web/_data/apps/defaults/justified_gallery.yml +72 -0
  254. data/lib/starter_web/_data/apps/defaults/light_gallery.yml +115 -0
  255. data/lib/starter_web/_data/apps/defaults/lightbox.yml +181 -0
  256. data/lib/starter_web/_data/apps/gallery_customizer.yml +47 -0
  257. data/lib/starter_web/_data/apps/justified_gallery.yml +317 -0
  258. data/lib/starter_web/_data/apps/light_gallery.yml +114 -0
  259. data/lib/starter_web/_data/apps/lightbox.yml +181 -0
  260. data/lib/starter_web/_data/blocks/banner.yml +366 -0
  261. data/lib/starter_web/_data/blocks/defaults/banner.yml +253 -0
  262. data/lib/starter_web/_data/blocks/defaults/footer.yml +180 -0
  263. data/lib/starter_web/_data/blocks/defaults/panel.yml +256 -0
  264. data/lib/starter_web/_data/blocks/footer.yml +189 -0
  265. data/lib/starter_web/_data/blocks/panel.yml +348 -0
  266. data/lib/starter_web/_data/builder/blog_navigator.yml +211 -0
  267. data/lib/starter_web/_data/categories.yml +36 -0
  268. data/lib/starter_web/_data/colors.yml +612 -0
  269. data/lib/starter_web/_data/font_sizes.yml +30 -0
  270. data/lib/starter_web/_data/layouts/app.yml +160 -0
  271. data/lib/starter_web/_data/layouts/blog_archive.yml +160 -0
  272. data/lib/starter_web/_data/layouts/collection.yml +187 -0
  273. data/lib/starter_web/_data/layouts/default.yml +232 -0
  274. data/lib/starter_web/_data/layouts/home.yml +270 -0
  275. data/lib/starter_web/_data/layouts/page.yml +186 -0
  276. data/lib/starter_web/_data/layouts/post.yml +187 -0
  277. data/lib/starter_web/_data/layouts/raw.yml +160 -0
  278. data/lib/starter_web/_data/modules/attics.yml +220 -0
  279. data/lib/starter_web/_data/modules/authentication.yml +254 -0
  280. data/lib/starter_web/_data/modules/back2top.yml +40 -0
  281. data/lib/starter_web/_data/modules/cookie_consent.yml +128 -0
  282. data/lib/starter_web/_data/modules/cookiebar.yml +32 -0
  283. data/lib/starter_web/_data/modules/defaults/attics.yml +220 -0
  284. data/lib/starter_web/_data/modules/defaults/authentication.yml +263 -0
  285. data/lib/starter_web/_data/modules/defaults/back2top.yml +147 -0
  286. data/lib/starter_web/_data/modules/defaults/cookie_consent.yml +69 -0
  287. data/lib/starter_web/_data/modules/defaults/cookiebar.yml +79 -0
  288. data/lib/starter_web/_data/modules/defaults/framer.yml +274 -0
  289. data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +149 -0
  290. data/lib/starter_web/_data/modules/defaults/log4javascript.yml +131 -0
  291. data/lib/starter_web/_data/modules/defaults/log4r.yml +171 -0
  292. data/lib/starter_web/_data/modules/defaults/navigator.yml +174 -0
  293. data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +169 -0
  294. data/lib/starter_web/_data/modules/defaults/stickybits.yml +37 -0
  295. data/lib/starter_web/_data/modules/defaults/themer.yml +168 -0
  296. data/lib/starter_web/_data/modules/defaults/toccer.yml +172 -0
  297. data/lib/starter_web/_data/modules/framer.yml +52 -0
  298. data/lib/starter_web/_data/modules/jekyll_search.yml +51 -0
  299. data/lib/starter_web/_data/modules/log4javascript.yml +131 -0
  300. data/lib/starter_web/_data/modules/log4r.yml +171 -0
  301. data/lib/starter_web/_data/modules/navigator.yml +162 -0
  302. data/lib/starter_web/_data/modules/navigator_menu.yml +276 -0
  303. data/lib/starter_web/_data/modules/smooth_scroll.yml +169 -0
  304. data/lib/starter_web/_data/modules/themer.yml +147 -0
  305. data/lib/starter_web/_data/modules/toccer.yml +172 -0
  306. data/lib/starter_web/_data/pages/builder.yml +87 -0
  307. data/lib/starter_web/_data/plugins/defaults/notebooks.yml +61 -0
  308. data/lib/starter_web/_data/plugins/defaults/paginator.yml +92 -0
  309. data/lib/starter_web/_data/plugins/notebooks.yml +70 -0
  310. data/lib/starter_web/_data/plugins/paginator.yml +52 -0
  311. data/lib/starter_web/_data/private.yml +231 -0
  312. data/lib/starter_web/_data/resources.yml +861 -0
  313. data/lib/starter_web/_data/template_settings.yml +294 -0
  314. data/lib/starter_web/_data/utilities/defaults/util_srv.yml +41 -0
  315. data/lib/starter_web/_data/utilities/util_srv.yml +97 -0
  316. data/lib/starter_web/_plugins/asciidoctor-extensions/admonition-block-answer.rb +48 -0
  317. data/lib/starter_web/_plugins/asciidoctor-extensions/admonition-block-question.rb +48 -0
  318. data/lib/starter_web/_plugins/asciidoctor-extensions/callout.rb +9 -0
  319. data/lib/starter_web/_plugins/asciidoctor-extensions/carousel-block.rb +46 -0
  320. data/lib/starter_web/_plugins/asciidoctor-extensions/conum.rb +9 -0
  321. data/lib/starter_web/_plugins/asciidoctor-extensions/fab-icon-inline.rb +33 -0
  322. data/lib/starter_web/_plugins/asciidoctor-extensions/fas-icon-inline.rb +33 -0
  323. data/lib/starter_web/_plugins/asciidoctor-extensions/gallery-block.rb +44 -0
  324. data/lib/starter_web/_plugins/asciidoctor-extensions/gist-block.rb +52 -0
  325. data/lib/starter_web/_plugins/asciidoctor-extensions/iconify-icon-inline.rb +33 -0
  326. data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +85 -0
  327. data/lib/starter_web/_plugins/asciidoctor-extensions/lorem-inline.rb +65 -0
  328. data/lib/starter_web/_plugins/asciidoctor-extensions/mdi-icon-inline.rb +33 -0
  329. data/lib/starter_web/_plugins/asciidoctor-extensions/shout-block.rb +47 -0
  330. data/lib/starter_web/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb +37 -0
  331. data/lib/starter_web/_plugins/debug.rb +63 -0
  332. data/lib/starter_web/_plugins/filters.rb +320 -0
  333. data/lib/starter_web/_plugins/prettify.rb +45 -0
  334. data/lib/starter_web/_plugins/simple_search_filter.rb +33 -0
  335. data/lib/starter_web/_plugins/symlink_watcher.rb +52 -0
  336. data/lib/starter_web/apps/public/cc +1650 -0
  337. data/lib/starter_web/assets/images/collections/blog/featured/jekyll.1200x400.png +0 -0
  338. data/lib/starter_web/assets/images/collections/blog/featured/jekyll.png +0 -0
  339. data/lib/starter_web/assets/images/collections/blog/featured/staticgen.jpg +0 -0
  340. data/lib/starter_web/assets/images/collections/blog/featured/welcome-to-j1-template.jpg +0 -0
  341. data/lib/starter_web/assets/images/collections/blog/featured/what-is-a-baseurl.jpg +0 -0
  342. data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/j1_docker_banner.1280x500.png +0 -0
  343. data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/kinematic_alpha.1280x600.png +0 -0
  344. data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/kinematic_j1.1280x300.png +0 -0
  345. data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/windows_docker_banner.1280x500.png +0 -0
  346. data/lib/starter_web/assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg +0 -0
  347. data/lib/starter_web/assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg +0 -0
  348. data/lib/starter_web/assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg +0 -0
  349. data/lib/starter_web/assets/images/modules/attics/aditya-joshi-1920x1280.jpg +0 -0
  350. data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.png +0 -0
  351. data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
  352. data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
  353. data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
  354. data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
  355. data/lib/starter_web/assets/images/modules/attics/banner/admin-dashboard-bootstrap-1280x800-bw.jpg +0 -0
  356. data/lib/starter_web/assets/images/modules/attics/banner/docker-1280x600-bw.jpg +0 -0
  357. data/lib/starter_web/assets/images/modules/attics/banner/jekyll.1200x600-bw.jpg +0 -0
  358. data/lib/starter_web/assets/images/modules/attics/banner/library-1920x800-bw.jpg +0 -0
  359. data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
  360. data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
  361. data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
  362. data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
  363. data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.jpg +0 -0
  364. data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200-bw.jpg +0 -0
  365. data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
  366. data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
  367. data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
  368. data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
  369. data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg +0 -0
  370. data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
  371. data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg +0 -0
  372. data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
  373. data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
  374. data/lib/starter_web/assets/images/modules/attics/mae-mu-Vf9gbsLZyf0-unsplash.jpg +0 -0
  375. data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
  376. data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
  377. data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg +0 -0
  378. data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
  379. data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
  380. data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
  381. data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
  382. data/lib/starter_web/assets/images/modules/attics/runner-1920x1200-bw.jpg +0 -0
  383. data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
  384. data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280-bw.jpg +0 -0
  385. data/lib/starter_web/assets/images/modules/attics/welcome-1920x1280-bw.jpg +0 -0
  386. data/lib/starter_web/assets/images/modules/carousel/cats/cat-1.jpg +0 -0
  387. data/lib/starter_web/assets/images/modules/carousel/cats/cat-2.jpg +0 -0
  388. data/lib/starter_web/assets/images/modules/carousel/cats/cat-3.jpg +0 -0
  389. data/lib/starter_web/assets/images/modules/carousel/cats/cat-4.jpg +0 -0
  390. data/lib/starter_web/assets/images/modules/carousel/cats/cat-5.jpg +0 -0
  391. data/lib/starter_web/assets/images/modules/carousel/cats/cat-6.jpg +0 -0
  392. data/lib/starter_web/assets/images/modules/carousel/cats/cat-7.jpg +0 -0
  393. data/lib/starter_web/assets/images/modules/carousel/cats/cat-8.jpg +0 -0
  394. data/lib/starter_web/assets/images/modules/carousel/mega_cities/andreas-brucker_b.jpg +0 -0
  395. data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-1_b.jpg +0 -0
  396. data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-2_b.jpg +0 -0
  397. data/lib/starter_web/assets/images/modules/carousel/mega_cities/luca-bravo_b.jpg +0 -0
  398. data/lib/starter_web/assets/images/modules/carousel/mega_cities/thomas-tucker_b.jpg +0 -0
  399. data/lib/starter_web/assets/images/modules/gallery/mega_cities/andreas-brucker_b.jpg +0 -0
  400. data/lib/starter_web/assets/images/modules/gallery/mega_cities/banter-snaps_b.jpg +0 -0
  401. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-1_b.jpg +0 -0
  402. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2-bw.jpg +0 -0
  403. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2_b.jpg +0 -0
  404. data/lib/starter_web/assets/images/modules/gallery/mega_cities/emmad-mazhari_b.jpg +0 -0
  405. data/lib/starter_web/assets/images/modules/gallery/mega_cities/ethan-brooke_b.jpg +0 -0
  406. data/lib/starter_web/assets/images/modules/gallery/mega_cities/federico-rizzarelli_b.jpg +0 -0
  407. data/lib/starter_web/assets/images/modules/gallery/mega_cities/gints-gailis_b.jpg +0 -0
  408. data/lib/starter_web/assets/images/modules/gallery/mega_cities/johan-mouchet_b.jpg +0 -0
  409. data/lib/starter_web/assets/images/modules/gallery/mega_cities/luca-bravo_b.jpg +0 -0
  410. data/lib/starter_web/assets/images/modules/gallery/mega_cities/oskars-sylwan_b.jpg +0 -0
  411. data/lib/starter_web/assets/images/modules/gallery/mega_cities/steven-diaz_b.jpg +0 -0
  412. data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker-bw.jpg +0 -0
  413. data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker_b.jpg +0 -0
  414. data/lib/starter_web/assets/images/modules/icons/algolia/search-by-algolia.png +0 -0
  415. data/lib/starter_web/assets/images/modules/icons/asciidoc/logo-512x512.png +0 -0
  416. data/lib/starter_web/assets/images/modules/icons/bootstrap/bootstrap-solid-32x32.png +0 -0
  417. data/lib/starter_web/assets/images/modules/icons/bootstrap/bs-docs-masthead-pattern.png +0 -0
  418. data/lib/starter_web/assets/images/modules/icons/bootstrap/scalable/bootstrap-outline.svg +20 -0
  419. data/lib/starter_web/assets/images/modules/icons/bootstrap/scalable/bootstrap-punchout.svg +18 -0
  420. data/lib/starter_web/assets/images/modules/icons/bootstrap/scalable/bootstrap-solid.svg +17 -0
  421. data/lib/starter_web/assets/images/modules/icons/components/angular.ui.png +0 -0
  422. data/lib/starter_web/assets/images/modules/icons/components/angularjs.png +0 -0
  423. data/lib/starter_web/assets/images/modules/icons/components/aws.png +0 -0
  424. data/lib/starter_web/assets/images/modules/icons/components/bootstrap.png +0 -0
  425. data/lib/starter_web/assets/images/modules/icons/components/c9.png +0 -0
  426. data/lib/starter_web/assets/images/modules/icons/components/chai.png +0 -0
  427. data/lib/starter_web/assets/images/modules/icons/components/emmet.png +0 -0
  428. data/lib/starter_web/assets/images/modules/icons/components/express.png +0 -0
  429. data/lib/starter_web/assets/images/modules/icons/components/git.png +0 -0
  430. data/lib/starter_web/assets/images/modules/icons/components/github.png +0 -0
  431. data/lib/starter_web/assets/images/modules/icons/components/gulp.png +0 -0
  432. data/lib/starter_web/assets/images/modules/icons/components/heroku.png +0 -0
  433. data/lib/starter_web/assets/images/modules/icons/components/htmlcss-1.png +0 -0
  434. data/lib/starter_web/assets/images/modules/icons/components/htmlcss-2.png +0 -0
  435. data/lib/starter_web/assets/images/modules/icons/components/jasmine.png +0 -0
  436. data/lib/starter_web/assets/images/modules/icons/components/javascript.png +0 -0
  437. data/lib/starter_web/assets/images/modules/icons/components/jquery.png +0 -0
  438. data/lib/starter_web/assets/images/modules/icons/components/kanban.png +0 -0
  439. data/lib/starter_web/assets/images/modules/icons/components/leanux.png +0 -0
  440. data/lib/starter_web/assets/images/modules/icons/components/linkedin.png +0 -0
  441. data/lib/starter_web/assets/images/modules/icons/components/mean.png +0 -0
  442. data/lib/starter_web/assets/images/modules/icons/components/mongodb.png +0 -0
  443. data/lib/starter_web/assets/images/modules/icons/components/node.png +0 -0
  444. data/lib/starter_web/assets/images/modules/icons/components/postgresql.png +0 -0
  445. data/lib/starter_web/assets/images/modules/icons/components/protractor.png +0 -0
  446. data/lib/starter_web/assets/images/modules/icons/components/rails.png +0 -0
  447. data/lib/starter_web/assets/images/modules/icons/components/ruby.png +0 -0
  448. data/lib/starter_web/assets/images/modules/icons/components/sass.png +0 -0
  449. data/lib/starter_web/assets/images/modules/icons/components/scrum.png +0 -0
  450. data/lib/starter_web/assets/images/modules/icons/components/twitter.png +0 -0
  451. data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
  452. data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
  453. data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
  454. data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
  455. data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
  456. data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
  457. data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +2020 -0
  458. data/lib/starter_web/assets/images/modules/icons/j1/favicon.ico +0 -0
  459. data/lib/starter_web/assets/images/modules/icons/j1/j1-256x256.png +0 -0
  460. data/lib/starter_web/assets/images/modules/icons/j1/j1-32x32.ico +0 -0
  461. data/lib/starter_web/assets/images/modules/icons/j1/j1-512x512.png +0 -0
  462. data/lib/starter_web/assets/images/modules/icons/j1/j1-64x64.png +0 -0
  463. data/lib/starter_web/assets/images/modules/icons/j1/j1..ico +0 -0
  464. data/lib/starter_web/assets/images/modules/icons/j1/scalable/j1.svg +2027 -0
  465. data/lib/starter_web/assets/images/modules/icons/netlify/nf-logo.png +0 -0
  466. data/lib/starter_web/assets/images/modules/icons/p1/favicon.ico +0 -0
  467. data/lib/starter_web/assets/images/modules/icons/p1/p1-256x256.png +0 -0
  468. data/lib/starter_web/assets/images/modules/icons/p1/p1-32x32.ico +0 -0
  469. data/lib/starter_web/assets/images/modules/icons/p1/p1-512x512.png +0 -0
  470. data/lib/starter_web/assets/images/modules/icons/p1/p1-64x64.png +0 -0
  471. data/lib/starter_web/assets/images/modules/icons/p1/p1.ico +0 -0
  472. data/lib/starter_web/assets/images/modules/icons/p1/scalable/p1.svg +2020 -0
  473. data/lib/starter_web/assets/images/modules/icons/patreon/favicon-16x16.png +0 -0
  474. data/lib/starter_web/assets/images/modules/icons/patreon/favicon-32x32.png +0 -0
  475. data/lib/starter_web/assets/images/modules/icons/social/amazon.png +0 -0
  476. data/lib/starter_web/assets/images/modules/icons/social/behance.png +0 -0
  477. data/lib/starter_web/assets/images/modules/icons/social/blogger.png +0 -0
  478. data/lib/starter_web/assets/images/modules/icons/social/deviantart.png +0 -0
  479. data/lib/starter_web/assets/images/modules/icons/social/dribbble.png +0 -0
  480. data/lib/starter_web/assets/images/modules/icons/social/dropbox.png +0 -0
  481. data/lib/starter_web/assets/images/modules/icons/social/evernote.png +0 -0
  482. data/lib/starter_web/assets/images/modules/icons/social/facebook.png +0 -0
  483. data/lib/starter_web/assets/images/modules/icons/social/forrst.png +0 -0
  484. data/lib/starter_web/assets/images/modules/icons/social/github.png +0 -0
  485. data/lib/starter_web/assets/images/modules/icons/social/googleplus.png +0 -0
  486. data/lib/starter_web/assets/images/modules/icons/social/instagram.png +0 -0
  487. data/lib/starter_web/assets/images/modules/icons/social/jolicloud.png +0 -0
  488. data/lib/starter_web/assets/images/modules/icons/social/last-fm.png +0 -0
  489. data/lib/starter_web/assets/images/modules/icons/social/linkedin.png +0 -0
  490. data/lib/starter_web/assets/images/modules/icons/social/picasa.png +0 -0
  491. data/lib/starter_web/assets/images/modules/icons/social/pintrest.png +0 -0
  492. data/lib/starter_web/assets/images/modules/icons/social/rss.png +0 -0
  493. data/lib/starter_web/assets/images/modules/icons/social/skype.png +0 -0
  494. data/lib/starter_web/assets/images/modules/icons/social/spotify.png +0 -0
  495. data/lib/starter_web/assets/images/modules/icons/social/stumbleupon.png +0 -0
  496. data/lib/starter_web/assets/images/modules/icons/social/tumblr.png +0 -0
  497. data/lib/starter_web/assets/images/modules/icons/social/twitter.png +0 -0
  498. data/lib/starter_web/assets/images/modules/icons/social/vimeo.png +0 -0
  499. data/lib/starter_web/assets/images/modules/icons/social/vk.png +0 -0
  500. data/lib/starter_web/assets/images/modules/icons/social/wordpress.png +0 -0
  501. data/lib/starter_web/assets/images/modules/icons/social/xing.png +0 -0
  502. data/lib/starter_web/assets/images/modules/icons/social/yahoo.png +0 -0
  503. data/lib/starter_web/assets/images/modules/icons/social/youtube.png +0 -0
  504. data/lib/starter_web/assets/images/modules/lightbox/close.png +0 -0
  505. data/lib/starter_web/assets/images/modules/lightbox/loading.gif +0 -0
  506. data/lib/starter_web/assets/images/modules/lightbox/next.png +0 -0
  507. data/lib/starter_web/assets/images/modules/lightbox/prev.png +0 -0
  508. data/lib/starter_web/assets/images/modules/patterns/1x1.png +0 -0
  509. data/lib/starter_web/assets/images/modules/patterns/gridtile.png +0 -0
  510. data/lib/starter_web/assets/images/pages/j1_webhooks/000_browser_console-1280x600.jpg +0 -0
  511. data/lib/starter_web/assets/images/pages/j1_webhooks/001_smee_channel-1280x400.jpg +0 -0
  512. data/lib/starter_web/assets/images/pages/j1_webhooks/002_gh_repo_settings-1280x800.jpg +0 -0
  513. data/lib/starter_web/assets/images/pages/j1_webhooks/003_gh_webhook_settings-1280x1000.jpg +0 -0
  514. data/lib/starter_web/assets/images/pages/j1_webhooks/004_gh_webhook_settings-post-1280x600.jpg +0 -0
  515. data/lib/starter_web/assets/images/pages/j1_webhooks/005_smee_channel_ping_receive-1280x800.jpg +0 -0
  516. data/lib/starter_web/assets/images/pages/j1_webhooks/006_gh_redeliver_payload-1280x900.jpg +0 -0
  517. data/lib/starter_web/assets/images/pages/j1_webhooks/007_receive_redelivered_payload-1280x800.jpg +0 -0
  518. data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_browser_console.jpg +0 -0
  519. data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_smee_channel.jpg +0 -0
  520. data/lib/starter_web/assets/images/pages/j1_webhooks/base/002_gh_repo-settings.jpg +0 -0
  521. data/lib/starter_web/assets/images/pages/j1_webhooks/base/003_gh_webhook_settings.jpg +0 -0
  522. data/lib/starter_web/assets/images/pages/j1_webhooks/base/004_gh_webhook_settings-post.jpg +0 -0
  523. data/lib/starter_web/assets/images/pages/j1_webhooks/base/005_smee_channel_ping_received.jpg +0 -0
  524. data/lib/starter_web/assets/images/pages/j1_webhooks/base/006_gh_redeliver_payload.jpg +0 -0
  525. data/lib/starter_web/assets/images/pages/j1_webhooks/base/007_receive_redelivered_payload.jpg +0 -0
  526. data/lib/starter_web/assets/images/pages/j1_webhooks/base/webhook_flow.jpg +0 -0
  527. data/lib/starter_web/assets/images/pages/j1_webhooks/flows/webhook_flow-1920x1280.jpg +0 -0
  528. data/lib/starter_web/assets/images/pages/j1_webhooks/scaleable/webhook_flow.svg +432 -0
  529. data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +632 -0
  530. data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +648 -0
  531. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/get-started-1920x1280-bw.jpg +0 -0
  532. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/130_layout_inheritance.png +0 -0
  533. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance.png +0 -0
  534. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance_thumb.png +0 -0
  535. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/html_layout.png +0 -0
  536. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-quickstart-windows.png +0 -0
  537. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-template-theme.jpg +0 -0
  538. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1_layout.png +0 -0
  539. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/jekyll-minima-theme.png +0 -0
  540. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/lane_inheritance.png +0 -0
  541. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/layout_inheritance.png +0 -0
  542. data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/preparations/msys_installation.jpg +0 -0
  543. data/lib/starter_web/assets/images/pages/log4j/apache-log4j-logo.png +0 -0
  544. data/lib/starter_web/assets/images/pages/log4r/code-1920x600.jpg +0 -0
  545. data/lib/starter_web/assets/images/pages/log4r/log4r-logo.png +0 -0
  546. data/lib/starter_web/assets/images/pages/log_expert/image_000.png +0 -0
  547. data/lib/starter_web/assets/images/pages/log_expert/image_001.png +0 -0
  548. data/lib/starter_web/assets/images/pages/log_expert/image_002.png +0 -0
  549. data/lib/starter_web/assets/images/pages/log_expert/image_003.png +0 -0
  550. data/lib/starter_web/assets/images/pages/log_expert/image_004.png +0 -0
  551. data/lib/starter_web/assets/images/pages/log_expert/image_005.png +0 -0
  552. data/lib/starter_web/assets/images/pages/log_expert/image_006.png +0 -0
  553. data/lib/starter_web/assets/images/pages/log_expert/image_007.png +0 -0
  554. data/lib/starter_web/assets/images/pages/log_expert/image_008.png +0 -0
  555. data/lib/starter_web/assets/images/pages/log_expert/image_009.png +0 -0
  556. data/lib/starter_web/assets/images/pages/log_expert/image_010.png +0 -0
  557. data/lib/starter_web/assets/images/pages/log_expert/image_011.png +0 -0
  558. data/lib/starter_web/assets/images/pages/log_expert/image_012.png +0 -0
  559. data/lib/starter_web/assets/images/pages/log_expert/image_013.png +0 -0
  560. data/lib/starter_web/assets/images/pages/log_expert/image_014.png +0 -0
  561. data/lib/starter_web/assets/images/pages/log_expert/image_015.png +0 -0
  562. data/lib/starter_web/assets/images/pages/log_expert/image_016.png +0 -0
  563. data/lib/starter_web/assets/images/pages/log_expert/image_017.png +0 -0
  564. data/lib/starter_web/assets/images/pages/log_expert/image_018.png +0 -0
  565. data/lib/starter_web/assets/images/pages/log_expert/image_019.png +0 -0
  566. data/lib/starter_web/assets/images/pages/log_expert/image_020.png +0 -0
  567. data/lib/starter_web/assets/images/pages/log_expert/image_021.png +0 -0
  568. data/lib/starter_web/assets/images/pages/log_expert/image_022.png +0 -0
  569. data/lib/starter_web/assets/images/pages/log_expert/image_023.png +0 -0
  570. data/lib/starter_web/assets/images/pages/log_expert/image_024.png +0 -0
  571. data/lib/starter_web/assets/images/pages/log_expert/image_025.png +0 -0
  572. data/lib/starter_web/assets/images/pages/log_expert/image_026.png +0 -0
  573. data/lib/starter_web/assets/images/pages/log_expert/image_027.png +0 -0
  574. data/lib/starter_web/assets/images/pages/log_expert/image_028.png +0 -0
  575. data/lib/starter_web/assets/images/pages/log_expert/image_029.png +0 -0
  576. data/lib/starter_web/assets/images/pages/log_expert/image_030.png +0 -0
  577. data/lib/starter_web/assets/images/pages/log_expert/image_031.png +0 -0
  578. data/lib/starter_web/assets/images/pages/log_expert/image_032.png +0 -0
  579. data/lib/starter_web/assets/images/pages/log_expert/image_033.png +0 -0
  580. data/lib/starter_web/assets/images/pages/log_expert/image_034.png +0 -0
  581. data/lib/starter_web/assets/images/pages/log_expert/image_035.png +0 -0
  582. data/lib/starter_web/assets/images/pages/log_expert/image_036.png +0 -0
  583. data/lib/starter_web/assets/images/pages/log_expert/image_037.png +0 -0
  584. data/lib/starter_web/assets/images/pages/log_expert/image_038.png +0 -0
  585. data/lib/starter_web/assets/images/pages/log_expert/image_039.png +0 -0
  586. data/lib/starter_web/assets/images/pages/log_expert/image_040.png +0 -0
  587. data/lib/starter_web/assets/images/pages/log_expert/image_041.png +0 -0
  588. data/lib/starter_web/assets/images/pages/log_expert/image_042.png +0 -0
  589. data/lib/starter_web/assets/images/pages/log_expert/image_043.png +0 -0
  590. data/lib/starter_web/assets/images/pages/log_expert/image_044.png +0 -0
  591. data/lib/starter_web/assets/images/pages/log_expert/image_045.png +0 -0
  592. data/lib/starter_web/assets/images/pages/log_expert/image_046.png +0 -0
  593. data/lib/starter_web/assets/images/pages/log_expert/image_047.png +0 -0
  594. data/lib/starter_web/assets/images/pages/log_expert/image_048.png +0 -0
  595. data/lib/starter_web/assets/images/pages/log_expert/image_049.png +0 -0
  596. data/lib/starter_web/assets/images/pages/log_expert/image_050.png +0 -0
  597. data/lib/starter_web/assets/images/pages/log_expert/image_051.png +0 -0
  598. data/lib/starter_web/assets/images/pages/log_expert/image_052.png +0 -0
  599. data/lib/starter_web/assets/images/pages/log_expert/image_053.png +0 -0
  600. data/lib/starter_web/assets/images/pages/log_expert/image_054.png +0 -0
  601. data/lib/starter_web/assets/images/pages/log_expert/image_055.png +0 -0
  602. data/lib/starter_web/assets/images/pages/log_expert/image_056.png +0 -0
  603. data/lib/starter_web/assets/images/pages/log_expert/image_057.png +0 -0
  604. data/lib/starter_web/assets/images/pages/modals/01_frame_modal.jpg +0 -0
  605. data/lib/starter_web/assets/images/pages/modals/02_site_modal.jpg +0 -0
  606. data/lib/starter_web/assets/images/pages/modals/03_central_modal.jpg +0 -0
  607. data/lib/starter_web/assets/images/pages/modals/04_fluid_modal.jpg +0 -0
  608. data/lib/starter_web/assets/images/pages/pen/jquery/jQuery-logo.png +0 -0
  609. data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1280x600.jpg +0 -0
  610. data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1920x800.jpg +0 -0
  611. data/lib/starter_web/assets/images/pages/pen/jquery/src/JQuery-Logo.svg +122 -0
  612. data/lib/starter_web/assets/images/pages/pen/jquery/src/banner.psd +0 -0
  613. data/lib/starter_web/assets/images/pages/previewer/bs-color-palette.png +0 -0
  614. data/lib/starter_web/assets/images/pages/previewer/material-design-color-palette.jpg +0 -0
  615. data/lib/starter_web/assets/images/pages/previewer/material-design-color-palette.png +0 -0
  616. data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-1.jpg +0 -0
  617. data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-2.jpg +0 -0
  618. data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-3.jpg +0 -0
  619. data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-1.jpg +0 -0
  620. data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-2.jpg +0 -0
  621. data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-3.jpg +0 -0
  622. data/lib/starter_web/assets/images/pages/roundtrip/410_bs_modals_extentions/avatar.jpg +0 -0
  623. data/lib/starter_web/assets/images/pages/roundtrip/410_bs_modals_extentions/marc.jpg +0 -0
  624. data/lib/starter_web/assets/images/pages/roundtrip/bootstrap-1920x1000-bw.jpg +0 -0
  625. data/lib/starter_web/assets/images/pages/roundtrip/cards-1920x1280-bw.jpg +0 -0
  626. data/lib/starter_web/assets/images/pages/roundtrip/emojies-1920x1280-bw.jpg +0 -0
  627. data/lib/starter_web/assets/images/pages/roundtrip/icon-fonts-1920x1280-bw.jpg +0 -0
  628. data/lib/starter_web/assets/images/pages/roundtrip/images-1920x1280-bw.jpg +0 -0
  629. data/lib/starter_web/assets/images/pages/roundtrip/puzzle-1920x1280-bw.jpg +0 -0
  630. data/lib/starter_web/assets/images/pages/roundtrip/tables-1920x1280-bw.jpg +0 -0
  631. data/lib/starter_web/assets/images/pages/roundtrip/themes-1920x1280-bw.jpg +0 -0
  632. data/lib/starter_web/assets/images/pages/roundtrip/typography-1920x1280-bw.jpg +0 -0
  633. data/lib/starter_web/assets/images/quotes/default.png +0 -0
  634. data/lib/starter_web/assets/images/quotes/people.png +0 -0
  635. data/lib/starter_web/assets/themes/j1/adapter/js/attic.js +563 -0
  636. data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +227 -0
  637. data/lib/starter_web/assets/themes/j1/adapter/js/carousel.js +313 -0
  638. data/lib/starter_web/assets/themes/j1/adapter/js/cookie_consent.js +259 -0
  639. data/lib/starter_web/assets/themes/j1/adapter/js/framer.js +208 -0
  640. data/lib/starter_web/assets/themes/j1/adapter/js/gallery_customizer.js +427 -0
  641. data/lib/starter_web/assets/themes/j1/adapter/js/j1.js +2034 -0
  642. data/lib/starter_web/assets/themes/j1/adapter/js/justified_gallery.js +403 -0
  643. data/lib/starter_web/assets/themes/j1/adapter/js/lightbox.js +181 -0
  644. data/lib/starter_web/assets/themes/j1/adapter/js/logger.js +316 -0
  645. data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +782 -0
  646. data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +177 -0
  647. data/lib/starter_web/assets/themes/j1/adapter/js/searcher.js +193 -0
  648. data/lib/starter_web/assets/themes/j1/adapter/js/themer.js +357 -0
  649. data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +353 -0
  650. data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel.css +81 -0
  651. data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel.min.css +17 -0
  652. data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel_transitions.css +184 -0
  653. data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel_transitions.min.css +17 -0
  654. data/lib/starter_web/assets/themes/j1/extensions/carousel/css/theme/uno.css +191 -0
  655. data/lib/starter_web/assets/themes/j1/extensions/carousel/css/theme/uno.min.css +16 -0
  656. data/lib/starter_web/assets/themes/j1/extensions/carousel/images/ajax-loader.gif +0 -0
  657. data/lib/starter_web/assets/themes/j1/extensions/carousel/images/grabbing.png +0 -0
  658. data/lib/starter_web/assets/themes/j1/extensions/carousel/images/owl-logo.png +0 -0
  659. data/lib/starter_web/assets/themes/j1/extensions/carousel/images/owl.video.play.png +0 -0
  660. data/lib/starter_web/assets/themes/j1/extensions/carousel/js/carousel.js +1517 -0
  661. data/lib/starter_web/assets/themes/j1/extensions/carousel/js/carousel.min.js +57 -0
  662. data/lib/starter_web/assets/themes/j1/extensions/iconify/js/iconify.min.js +13 -0
  663. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +86 -0
  664. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.content.html +58 -0
  665. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +51 -0
  666. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +68 -0
  667. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +46 -0
  668. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +79 -0
  669. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/index.html +70 -0
  670. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/two.html +71 -0
  671. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +1104 -0
  672. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +1 -0
  673. data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +10 -0
  674. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/LICENSE +22 -0
  675. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/README.md +273 -0
  676. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.css +110 -0
  677. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.min.css +110 -0
  678. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/theme/uno.css +23 -0
  679. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +1229 -0
  680. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.js +1229 -0
  681. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.min.js +8 -0
  682. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/.csslintrc +20 -0
  683. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/justifiedGallery.less +113 -0
  684. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.css +110 -0
  685. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.min.css +110 -0
  686. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/theme/uno.css +23 -0
  687. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +1229 -0
  688. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +8 -0
  689. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/justifiedGallery.css +110 -0
  690. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/justifiedGallery.min.css +110 -0
  691. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/theme/uno.css +38 -0
  692. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/theme/uno.min.css +38 -0
  693. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/js/justifiedGallery.js +1229 -0
  694. data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/js/justifiedGallery.min.js +8 -0
  695. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.css +58 -0
  696. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.min.css +5 -0
  697. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-transitions.css +778 -0
  698. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-transitions.min.css +5 -0
  699. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lightgallery.css +981 -0
  700. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lightgallery.min.css +5 -0
  701. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.eot +0 -0
  702. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.svg +47 -0
  703. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.ttf +0 -0
  704. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.woff +0 -0
  705. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/loading.gif +0 -0
  706. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/video-play.png +0 -0
  707. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/vimeo-play.png +0 -0
  708. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/youtube-play.png +0 -0
  709. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/animation-w.png +0 -0
  710. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/customize-w.png +0 -0
  711. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/dynamic-w.png +0 -0
  712. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/facebook-icon.svg +10 -0
  713. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/googleplus-icon.svg +30 -0
  714. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/html5-w.png +0 -0
  715. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/linked-in.png +0 -0
  716. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/module-w.png +0 -0
  717. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png +0 -0
  718. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/responsive-w.png +0 -0
  719. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/thumb-w.png +0 -0
  720. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/touch-w.png +0 -0
  721. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/twitter-icon.svg +15 -0
  722. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/twitter.png +0 -0
  723. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/video1-w.png +0 -0
  724. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/zoom-w.png +0 -0
  725. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/zoom.png +0 -0
  726. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/uno.css +263 -0
  727. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/uno.min.css +17 -0
  728. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/core/lightgallery.js +1362 -0
  729. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/core/lightgallery.min.js +5 -0
  730. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.js +402 -0
  731. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.min.js +8 -0
  732. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.js +206 -0
  733. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.min.js +5 -0
  734. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.js +126 -0
  735. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.min.js +5 -0
  736. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-hash.js +101 -0
  737. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-hash.min.js +5 -0
  738. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-pager.js +105 -0
  739. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-pager.min.js +5 -0
  740. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-share.js +107 -0
  741. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-share.min.js +5 -0
  742. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.js +478 -0
  743. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.min.js +5 -0
  744. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-video.js +342 -0
  745. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-video.min.js +5 -0
  746. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-zoom.js +527 -0
  747. data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-zoom.min.js +5 -0
  748. data/lib/starter_web/assets/themes/j1/extensions/log4javascript/log4javascript.js +5826 -0
  749. data/lib/starter_web/assets/themes/j1/extensions/log4javascript/log4javascript.min.js +266 -0
  750. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.dark/theme.css +78 -0
  751. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.light/theme.css +77 -0
  752. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css +78 -0
  753. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai.light/theme.css +77 -0
  754. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai/theme.css +78 -0
  755. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.solarized.dark/theme.css +78 -0
  756. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.solarized.light/theme.css +77 -0
  757. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.solarized/theme.css +77 -0
  758. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16/theme.css +77 -0
  759. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/colorful/theme.css +170 -0
  760. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/github/theme.css +209 -0
  761. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/gruvbox.dark/theme.css +84 -0
  762. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/gruvbox.light/theme.css +84 -0
  763. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/gruvbox/theme.css +84 -0
  764. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/igorpro/theme.css +32 -0
  765. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/molokai/theme.css +208 -0
  766. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/monokai.sublime/theme.css +187 -0
  767. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/monokai/theme.css +210 -0
  768. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/pastie/theme.css +146 -0
  769. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/thankful_eyes/theme.css +173 -0
  770. data/lib/starter_web/assets/themes/j1/extensions/rouge/css/tulip/theme.css +164 -0
  771. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/city.css +147 -0
  772. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/city.min.css +6 -0
  773. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/fantasy.css +113 -0
  774. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/fantasy.min.css +6 -0
  775. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/forest.css +165 -0
  776. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/forest.min.css +6 -0
  777. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/sea.css +72 -0
  778. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/sea.min.css +6 -0
  779. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/video-js.css +1663 -0
  780. data/lib/starter_web/assets/themes/j1/extensions/videojs/css/video-js.min.css +1 -0
  781. data/lib/starter_web/assets/themes/j1/extensions/videojs/js/video.js +55690 -0
  782. data/lib/starter_web/assets/themes/j1/extensions/videojs/js/video.min.js +28 -0
  783. data/lib/starter_web/assets/themes/j1/extensions/vimeo/froogaloop/js/froogaloop2.min.js +4 -0
  784. data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.js +2138 -0
  785. data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.js.map +1 -0
  786. data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.min.js +2 -0
  787. data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.min.js.map +1 -0
  788. data/lib/starter_web/assets/videos/gallery/adriana-lima-poster.jpg +0 -0
  789. data/lib/starter_web/assets/videos/gallery/kick-it-old-school-poster.jpg +0 -0
  790. data/lib/starter_web/assets/videos/gallery/video1-poster.jpg +0 -0
  791. data/lib/starter_web/assets/videos/gallery/video1-thumb.jpg +0 -0
  792. data/lib/starter_web/assets/videos/gallery/video2-poster.jpg +0 -0
  793. data/lib/starter_web/assets/videos/gallery/video2-thumb.jpg +0 -0
  794. data/lib/starter_web/assets/videos/gallery/video_adele-poster.jpg +0 -0
  795. data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
  796. data/lib/starter_web/assets/videos/gallery/video_gwen-poster.jpg +0 -0
  797. data/lib/starter_web/assets/videos/gallery/video_michelle-poster.jpg +0 -0
  798. data/lib/starter_web/assets/videos/headers/still/underground-broadway.png +0 -0
  799. data/lib/starter_web/assets/videos/headers/still/victoria-oskolovich-on-vimeo.png +0 -0
  800. data/lib/starter_web/collections/posts/private/readme +0 -0
  801. data/lib/starter_web/collections/posts/protected/readme +0 -0
  802. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb +160 -0
  803. data/lib/starter_web/collections/posts/public/featured/_posts/000_includes/attributes.asciidoc +47 -0
  804. data/lib/starter_web/collections/posts/public/featured/_posts/000_includes/unsplash-badge.asciidoc +31 -0
  805. data/lib/starter_web/collections/posts/public/featured/_posts/2019-05-01-top-open-source-static-site-generators.adoc +97 -0
  806. data/lib/starter_web/collections/posts/public/featured/_posts/2019-06-01-about-cookies.adoc +197 -0
  807. data/lib/starter_web/collections/posts/public/jekyll/_posts/2018-05-01-confusion-about-base-url.adoc +105 -0
  808. data/lib/starter_web/collections/posts/public/series/_posts/000_includes/attributes.asciidoc +66 -0
  809. data/lib/starter_web/collections/posts/public/series/_posts/000_includes/documents/100-docker-using-shared-folders.asciidoc +430 -0
  810. data/lib/starter_web/collections/posts/public/series/_posts/000_includes/documents/loop.sh +28 -0
  811. data/lib/starter_web/collections/posts/public/series/_posts/000_includes/tables/debug_variables.asciidoc +48 -0
  812. data/lib/starter_web/collections/posts/public/series/_posts/2018-11-01-docker-using-shared-folders.adoc +504 -0
  813. data/lib/starter_web/collections/posts/public/wikipedia/_posts/000_includes/attributes.asciidoc +46 -0
  814. data/lib/starter_web/collections/posts/public/wikipedia/_posts/000_includes/tables/debug_variables.asciidoc +48 -0
  815. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +126 -0
  816. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +88 -0
  817. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +86 -0
  818. data/lib/starter_web/config.ru +24 -0
  819. data/lib/starter_web/dot.gitattributes +31 -0
  820. data/lib/starter_web/dot.gitignore +55 -0
  821. data/lib/starter_web/dot.nojekyll +19 -0
  822. data/lib/starter_web/favicon.ico +0 -0
  823. data/lib/starter_web/index.html +68 -0
  824. data/lib/starter_web/package.json +136 -0
  825. data/lib/starter_web/pages/private/readme +0 -0
  826. data/lib/starter_web/pages/protected/readme +0 -0
  827. data/lib/starter_web/pages/public/about/about_site.adoc +40 -0
  828. data/lib/starter_web/pages/public/about/become_a_patron.adoc +50 -0
  829. data/lib/starter_web/pages/public/blog/navigator/archive.html +111 -0
  830. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +153 -0
  831. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +133 -0
  832. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +187 -0
  833. data/lib/starter_web/pages/public/blog/navigator/index.html +47 -0
  834. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/attributes.asciidoc +174 -0
  835. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/documents/100_meet_and_greet_jekyll.asciidoc +31 -0
  836. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/documents/200_preparations.asciidoc +14 -0
  837. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/documents/300_first_awesome_web.asciidoc +12 -0
  838. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/parts.asciidoc +193 -0
  839. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +79 -0
  840. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/200_preparations.adoc +72 -0
  841. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/300_first_awesome_web.adoc +70 -0
  842. data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour.1.asciidoc +121 -0
  843. data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour.adoc +145 -0
  844. data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour_api.adoc +644 -0
  845. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/attributes.asciidoc +117 -0
  846. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc +27 -0
  847. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_bottom_info.asciidoc +11 -0
  848. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_bottom_left_warning.asciidoc +11 -0
  849. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_bottom_right_danger.asciidoc +11 -0
  850. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_central_success.asciidoc +11 -0
  851. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_full_height_left_info.asciidoc +11 -0
  852. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_full_height_right_success.asciidoc +11 -0
  853. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_table_3_column.asciidoc +47 -0
  854. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_top_info.asciidoc +11 -0
  855. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_top_left_info.asciidoc +11 -0
  856. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_top_right_success.asciidoc +11 -0
  857. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/419_advanced_modals_html.asciidoc +928 -0
  858. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +304 -0
  859. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +152 -0
  860. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +524 -0
  861. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +435 -0
  862. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +536 -0
  863. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +128 -0
  864. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +281 -0
  865. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +138 -0
  866. data/lib/starter_web/pages/public/learn/roundtrip/bs_tour.js +98 -0
  867. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/attributes.asciidoc +117 -0
  868. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc +27 -0
  869. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_bottom_info.asciidoc +11 -0
  870. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_bottom_left_warning.asciidoc +11 -0
  871. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_bottom_right_danger.asciidoc +11 -0
  872. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_central_success.asciidoc +11 -0
  873. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_full_height_left_info.asciidoc +11 -0
  874. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_full_height_right_success.asciidoc +11 -0
  875. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_table_3_column.asciidoc +47 -0
  876. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_top_info.asciidoc +11 -0
  877. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_top_left_info.asciidoc +11 -0
  878. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_top_right_success.asciidoc +11 -0
  879. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/419_advanced_modals_html.asciidoc +928 -0
  880. data/lib/starter_web/pages/public/learn/vtutorials/000_test_youtube_video.adoc +141 -0
  881. data/lib/starter_web/pages/public/learn/vtutorials/100_basic_video.adoc +109 -0
  882. data/lib/starter_web/pages/public/learn/whats_up.adoc +117 -0
  883. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +97 -0
  884. data/lib/starter_web/pages/public/legal/de/200_terms_of_use.adoc +54 -0
  885. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +300 -0
  886. data/lib/starter_web/pages/public/legal/de/400_license_agreement.adoc +394 -0
  887. data/lib/starter_web/pages/public/legal/de/500_support.adoc +19 -0
  888. data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +89 -0
  889. data/lib/starter_web/pages/public/legal/en/100_impress.adoc +51 -0
  890. data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +48 -0
  891. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +394 -0
  892. data/lib/starter_web/pages/public/legal/en/400_license_agreement.adoc +432 -0
  893. data/lib/starter_web/pages/public/legal/en/500_support.adoc +19 -0
  894. data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +55 -0
  895. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +158 -0
  896. data/lib/starter_web/pages/public/previewer/000_includes/attributes.asciidoc +116 -0
  897. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +39 -0
  898. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +47 -0
  899. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/120_relative_sizes.asciidoc +87 -0
  900. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +71 -0
  901. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/300_flip.asciidoc +31 -0
  902. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +39 -0
  903. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +61 -0
  904. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +55 -0
  905. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/600_md_color_palette.asciidoc +95 -0
  906. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +95 -0
  907. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +95 -0
  908. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +47 -0
  909. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +47 -0
  910. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/200_rotate.asciidoc +71 -0
  911. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/300_flip.asciidoc +30 -0
  912. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +31 -0
  913. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1858 -0
  914. data/lib/starter_web/pages/public/previewer/iframer.adoc +83 -0
  915. data/lib/starter_web/pages/public/previewer/justified_gallery.html +33 -0
  916. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +295 -0
  917. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +195 -0
  918. data/lib/starter_web/utilsrv/_defaults/package.json +52 -0
  919. data/lib/starter_web/utilsrv/package.json +52 -0
  920. data/lib/starter_web/utilsrv/server.js +601 -0
  921. metadata +1213 -0
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * justifiedGallery - v4.0.0-alpha
3
+ * http://miromannino.github.io/Justified-Gallery/
4
+ * Copyright (c) 2019 Miro Mannino
5
+ * Licensed under the MIT license.
6
+ */
7
+
8
+ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){var r=function(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t};r.prototype.getSuffix=function(t,i){var e,s;for(e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n;if(this.settings.thumbnailPath)n=this.settings.thumbnailPath(t,i,e,s);else{var r=t.match(this.settings.extension),o=null!==r?r[0]:"";n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+o}return n},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="date-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o=this.imgFromEntry(t);if(null!==o){o.css("width",s),o.css("height",n),o.css("margin-left",-s/2),o.css("margin-top",-n/2);var a=o.data("jg.src");if(a){a=this.newSrc(a,s,n,o[0]),o.one("error",function(){this.resetImgSrc(o)});var h=function(){o.attr("src",a)};"skipped"===t.data("jg.loaded")?this.onImageEvent(a,function(){this.showImg(t,h),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,h)}}else this.showImg(t);this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i=this.imgFromEntry(t);if(null!==i&&this.settings.captions){var e=this.captionFromEntry(t);if(null===e){var s=i.attr("alt");this.isValidCaption(s)||(s=t.attr("title")),this.isValidCaption(s)&&(e=l('<div class="caption">'+s+"</div>"),t.append(e),t.data("jg.createdCaption",!0))}null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))}else this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,d=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!d){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("jg-entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!d&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,r=g):(n=l*s,r=l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e,s,n=this.settings,r=this.border;if(e=this.prepareBuildingRow(t),t&&"hide"===n.lastRow&&-1===e)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===n.lastRow||"right"===n.lastRow)){var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*n.margins;for(s=0;s<this.buildingRow.entriesBuff.length;s++)o-=(i=this.buildingRow.entriesBuff[s]).data("jg.jwidth");"center"===n.lastRow?r+=o/2:"right"===n.lastRow&&(r+=o)}var a=this.buildingRow.entriesBuff.length-1;for(s=0;s<=a;s++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-s:s],this.displayEntry(i,r,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),r+=i.data("jg.jwidth")+n.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=n.rowHeight&&e)&&(this.offY+=this.buildingRow.height+n.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){if(this.$gallery.is(":visible")){var t=parseFloat(this.$gallery.width());Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0))}},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.getAllEntries=function(){return this.$gallery.children(this.settings.selector).toArray()},r.prototype.updateEntries=function(t){var i;return t&&null!=this.lastFetchedEntry?i=l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],i=this.getAllEntries()),0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){var i,e,s;for(i=t.length-1;0<i;i--)e=Math.floor(Math.random()*(i+1)),s=t[i],t[i]=t[e],t[e]=s;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.resetImgSrc=function(t){"src"==t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),l.each(this.getAllEntries(),l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");var s=this.imgFromEntry(e);s&&(s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),this.resetImgSrc(s),s.data("jg.originalSrc",void 0),s.data("jg.originalSrcLoc",void 0),s.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){if(i||e){var s=new Image,n=l(s);i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t}},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(!1===g.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),o=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),o=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"===n);else{if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
@@ -0,0 +1,20 @@
1
+ {
2
+ "adjoining-classes": false,
3
+ "box-sizing": false,
4
+ "box-model": false,
5
+ "compatible-vendor-prefixes": false,
6
+ "floats": false,
7
+ "font-sizes": false,
8
+ "gradients": false,
9
+ "important": false,
10
+ "known-properties": false,
11
+ "outline-none": false,
12
+ "qualified-headings": false,
13
+ "regex-selectors": false,
14
+ "shorthand": false,
15
+ "text-indent": false,
16
+ "unique-headings": false,
17
+ "universal-selector": false,
18
+ "unqualified-attributes": false,
19
+ "order-alphabetical": false
20
+ }
@@ -0,0 +1,113 @@
1
+ /*
2
+ * Justified Gallery - v4.0.0-alpha
3
+ * http://miromannino.com/projects/justified-gallery/
4
+ * Copyright (c) 2019 Miro Mannino
5
+ * Licensed under the MIT license.
6
+ */
7
+
8
+ @caption-initial-opacity: 0.0;
9
+ @caption-visible-opacity: 0.7;
10
+
11
+ .transition(@property:all, @duration: 500ms, @ease: ease-in) {
12
+ -webkit-transition: opacity 500ms ease-in;
13
+ -moz-transition: opacity 500ms ease-in;
14
+ -o-transition: opacity 500ms ease-in;
15
+ transition: opacity 500ms ease-in;
16
+ }
17
+
18
+ .opacity(@opacity: 1) {
19
+ filter: %("alpha(opacity=%d)", @opacity * 100);
20
+ opacity: @opacity;
21
+ }
22
+
23
+ .justified-gallery {
24
+ width: 100%;
25
+ position: relative;
26
+ overflow: hidden;
27
+
28
+ > a, > div, > figure {
29
+ position: absolute;
30
+ display: inline-block;
31
+ overflow: hidden;
32
+ /* background: #888888; To have gray placeholders while the gallery is loading with waitThumbnailsLoad = false */
33
+ .opacity(0.1);
34
+ margin: 0;
35
+ padding: 0;
36
+
37
+ > img, > a > img, > svg, > a > svg {
38
+ position: absolute;
39
+ top: 50%;
40
+ left: 50%;
41
+ margin: 0;
42
+ padding: 0;
43
+ border: none;
44
+ .opacity(0);
45
+ }
46
+
47
+ > .jg-caption {
48
+ & when (@caption-initial-opacity = 0) {
49
+ display: none;
50
+ }
51
+ & when (@caption-initial-opacity > 0) {
52
+ display: initial;
53
+ .opacity(@caption-initial-opacity);
54
+ }
55
+ position: absolute;
56
+ bottom: 0;
57
+ padding: 5px;
58
+ background-color: #000000;
59
+ left: 0;
60
+ right: 0;
61
+ margin: 0;
62
+ color: white;
63
+ font-size: 12px;
64
+ font-weight: 300;
65
+ font-family: sans-serif;
66
+ }
67
+
68
+ > .jg-caption.jg-caption-visible {
69
+ display: initial;
70
+ .opacity(@caption-visible-opacity);
71
+ .transition(opacity);
72
+ }
73
+
74
+ }
75
+
76
+ > .jg-entry-visible {
77
+ .opacity(1);
78
+ background: none;
79
+
80
+ > img, > a > img, > svg, > a > svg {
81
+ .opacity(1);
82
+ .transition(opacity);
83
+ }
84
+ }
85
+
86
+ > .jg-filtered {
87
+ display: none;
88
+ }
89
+
90
+ > .jg-spinner {
91
+ @spinnerDotWeight: 8px;
92
+ @spinnerDotNum: 3;
93
+
94
+ position: absolute;
95
+ bottom: 0;
96
+ margin-left: -(@spinnerDotWeight * 2) * @spinnerDotNum / 2;
97
+ padding: 10px 0 10px 0;
98
+ left: 50%;
99
+ .opacity(1);
100
+ overflow: initial;
101
+
102
+ > span {
103
+ display: inline-block;
104
+ .opacity(0);
105
+ width: @spinnerDotWeight;
106
+ height: @spinnerDotWeight;
107
+ margin: 0 (@spinnerDotWeight / 2) 0 (@spinnerDotWeight / 2);
108
+ background-color: #000;
109
+ border-radius: @spinnerDotWeight - 2px;
110
+ }
111
+ }
112
+
113
+ }
@@ -0,0 +1,110 @@
1
+ /*!
2
+ * justifiedGallery - v4.0.0-alpha
3
+ * http://miromannino.github.io/Justified-Gallery/
4
+ * Copyright (c) 2019 Miro Mannino
5
+ * Licensed under the MIT license.
6
+ */
7
+ .justified-gallery {
8
+ width: 100%;
9
+ position: relative;
10
+ overflow: hidden;
11
+ }
12
+ .justified-gallery > a,
13
+ .justified-gallery > div,
14
+ .justified-gallery > figure {
15
+ position: absolute;
16
+ display: inline-block;
17
+ overflow: hidden;
18
+ /* background: #888888; To have gray placeholders while the gallery is loading with waitThumbnailsLoad = false */
19
+ filter: "alpha(opacity=10)";
20
+ opacity: 0.1;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+ .justified-gallery > a > img,
25
+ .justified-gallery > div > img,
26
+ .justified-gallery > figure > img,
27
+ .justified-gallery > a > a > img,
28
+ .justified-gallery > div > a > img,
29
+ .justified-gallery > figure > a > img,
30
+ .justified-gallery > a > svg,
31
+ .justified-gallery > div > svg,
32
+ .justified-gallery > figure > svg,
33
+ .justified-gallery > a > a > svg,
34
+ .justified-gallery > div > a > svg,
35
+ .justified-gallery > figure > a > svg {
36
+ position: absolute;
37
+ top: 50%;
38
+ left: 50%;
39
+ margin: 0;
40
+ padding: 0;
41
+ border: none;
42
+ filter: "alpha(opacity=0)";
43
+ opacity: 0;
44
+ }
45
+ .justified-gallery > a > .caption,
46
+ .justified-gallery > div > .caption,
47
+ .justified-gallery > figure > .caption {
48
+ display: none;
49
+ position: absolute;
50
+ bottom: 0;
51
+ padding: 5px;
52
+ background-color: #000000;
53
+ left: 0;
54
+ right: 0;
55
+ margin: 0;
56
+ color: white;
57
+ font-size: 12px;
58
+ font-weight: 300;
59
+ font-family: sans-serif;
60
+ }
61
+ .justified-gallery > a > .caption.caption-visible,
62
+ .justified-gallery > div > .caption.caption-visible,
63
+ .justified-gallery > figure > .caption.caption-visible {
64
+ display: initial;
65
+ filter: "alpha(opacity=70)";
66
+ opacity: 0.7;
67
+ -webkit-transition: opacity 500ms ease-in;
68
+ -moz-transition: opacity 500ms ease-in;
69
+ -o-transition: opacity 500ms ease-in;
70
+ transition: opacity 500ms ease-in;
71
+ }
72
+ .justified-gallery > .jg-entry-visible {
73
+ filter: "alpha(opacity=100)";
74
+ opacity: 1;
75
+ background: none;
76
+ }
77
+ .justified-gallery > .jg-entry-visible > img,
78
+ .justified-gallery > .jg-entry-visible > a > img,
79
+ .justified-gallery > .jg-entry-visible > svg,
80
+ .justified-gallery > .jg-entry-visible > a > svg {
81
+ filter: "alpha(opacity=100)";
82
+ opacity: 1;
83
+ -webkit-transition: opacity 500ms ease-in;
84
+ -moz-transition: opacity 500ms ease-in;
85
+ -o-transition: opacity 500ms ease-in;
86
+ transition: opacity 500ms ease-in;
87
+ }
88
+ .justified-gallery > .jg-filtered {
89
+ display: none;
90
+ }
91
+ .justified-gallery > .spinner {
92
+ position: absolute;
93
+ bottom: 0;
94
+ margin-left: -24px;
95
+ padding: 10px 0 10px 0;
96
+ left: 50%;
97
+ filter: "alpha(opacity=100)";
98
+ opacity: 1;
99
+ overflow: initial;
100
+ }
101
+ .justified-gallery > .spinner > span {
102
+ display: inline-block;
103
+ filter: "alpha(opacity=0)";
104
+ opacity: 0;
105
+ width: 8px;
106
+ height: 8px;
107
+ margin: 0 4px 0 4px;
108
+ background-color: #000;
109
+ border-radius: 6px;
110
+ }
@@ -0,0 +1,110 @@
1
+ /*!
2
+ * justifiedGallery - v4.0.0-alpha
3
+ * http://miromannino.github.io/Justified-Gallery/
4
+ * Copyright (c) 2019 Miro Mannino
5
+ * Licensed under the MIT license.
6
+ */
7
+ .justified-gallery {
8
+ width: 100%;
9
+ position: relative;
10
+ overflow: hidden;
11
+ }
12
+ .justified-gallery > a,
13
+ .justified-gallery > div,
14
+ .justified-gallery > figure {
15
+ position: absolute;
16
+ display: inline-block;
17
+ overflow: hidden;
18
+ /* background: #888888; To have gray placeholders while the gallery is loading with waitThumbnailsLoad = false */
19
+ filter: "alpha(opacity=10)";
20
+ opacity: 0.1;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+ .justified-gallery > a > img,
25
+ .justified-gallery > div > img,
26
+ .justified-gallery > figure > img,
27
+ .justified-gallery > a > a > img,
28
+ .justified-gallery > div > a > img,
29
+ .justified-gallery > figure > a > img,
30
+ .justified-gallery > a > svg,
31
+ .justified-gallery > div > svg,
32
+ .justified-gallery > figure > svg,
33
+ .justified-gallery > a > a > svg,
34
+ .justified-gallery > div > a > svg,
35
+ .justified-gallery > figure > a > svg {
36
+ position: absolute;
37
+ top: 50%;
38
+ left: 50%;
39
+ margin: 0;
40
+ padding: 0;
41
+ border: none;
42
+ filter: "alpha(opacity=0)";
43
+ opacity: 0;
44
+ }
45
+ .justified-gallery > a > .caption,
46
+ .justified-gallery > div > .caption,
47
+ .justified-gallery > figure > .caption {
48
+ display: none;
49
+ position: absolute;
50
+ bottom: 0;
51
+ padding: 5px;
52
+ background-color: #000000;
53
+ left: 0;
54
+ right: 0;
55
+ margin: 0;
56
+ color: white;
57
+ font-size: 12px;
58
+ font-weight: 300;
59
+ font-family: sans-serif;
60
+ }
61
+ .justified-gallery > a > .caption.caption-visible,
62
+ .justified-gallery > div > .caption.caption-visible,
63
+ .justified-gallery > figure > .caption.caption-visible {
64
+ display: initial;
65
+ filter: "alpha(opacity=70)";
66
+ opacity: 0.7;
67
+ -webkit-transition: opacity 500ms ease-in;
68
+ -moz-transition: opacity 500ms ease-in;
69
+ -o-transition: opacity 500ms ease-in;
70
+ transition: opacity 500ms ease-in;
71
+ }
72
+ .justified-gallery > .jg-entry-visible {
73
+ filter: "alpha(opacity=100)";
74
+ opacity: 1;
75
+ background: none;
76
+ }
77
+ .justified-gallery > .jg-entry-visible > img,
78
+ .justified-gallery > .jg-entry-visible > a > img,
79
+ .justified-gallery > .jg-entry-visible > svg,
80
+ .justified-gallery > .jg-entry-visible > a > svg {
81
+ filter: "alpha(opacity=100)";
82
+ opacity: 1;
83
+ -webkit-transition: opacity 500ms ease-in;
84
+ -moz-transition: opacity 500ms ease-in;
85
+ -o-transition: opacity 500ms ease-in;
86
+ transition: opacity 500ms ease-in;
87
+ }
88
+ .justified-gallery > .jg-filtered {
89
+ display: none;
90
+ }
91
+ .justified-gallery > .spinner {
92
+ position: absolute;
93
+ bottom: 0;
94
+ margin-left: -24px;
95
+ padding: 10px 0 10px 0;
96
+ left: 50%;
97
+ filter: "alpha(opacity=100)";
98
+ opacity: 1;
99
+ overflow: initial;
100
+ }
101
+ .justified-gallery > .spinner > span {
102
+ display: inline-block;
103
+ filter: "alpha(opacity=0)";
104
+ opacity: 0;
105
+ width: 8px;
106
+ height: 8px;
107
+ margin: 0 4px 0 4px;
108
+ background-color: #000;
109
+ border-radius: 6px;
110
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/extensions/justified_gallery/css/theme/uno.css
4
+ # Provides J1 JustifiedGallery styles for J1 Theme Uno
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2020 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
+ #
14
+ # -----------------------------------------------------------------------------
15
+ */
16
+
17
+ /* Gallery title */
18
+ .jg-gallery-title {
19
+ font-style: italic;
20
+ font-weight: 400;
21
+ color: rgba(0, 0, 0, 0.5);
22
+ overflow: hidden;
23
+ }
@@ -0,0 +1,1229 @@
1
+ /*!
2
+ * justifiedGallery - v4.0.0-alpha
3
+ * http://miromannino.github.io/Justified-Gallery/
4
+ * Copyright (c) 2019 Miro Mannino
5
+ * Licensed under the MIT license.
6
+ */
7
+ (function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ // AMD. Register as an anonymous module.
10
+ define(['jquery'], factory);
11
+ } else if (typeof module === 'object' && module.exports) {
12
+ // Node/CommonJS
13
+ module.exports = function( root, jQuery ) {
14
+ if ( jQuery === undefined ) {
15
+ // require('jQuery') returns a factory that requires window to
16
+ // build a jQuery instance, we normalize how we use modules
17
+ // that require this pattern but the window provided is a noop
18
+ // if it's defined (how jquery works)
19
+ if ( typeof window !== 'undefined' ) {
20
+ jQuery = require('jquery');
21
+ }
22
+ else {
23
+ jQuery = require('jquery')(root);
24
+ }
25
+ }
26
+ factory(jQuery);
27
+ return jQuery;
28
+ };
29
+ } else {
30
+ // Browser globals
31
+ factory(jQuery);
32
+ }
33
+ }(function ($) {
34
+
35
+ /**
36
+ * Justified Gallery controller constructor
37
+ *
38
+ * @param $gallery the gallery to build
39
+ * @param settings the settings (the defaults are in JustifiedGallery.defaults)
40
+ * @constructor
41
+ */
42
+ var JustifiedGallery = function ($gallery, settings) {
43
+
44
+ this.settings = settings;
45
+ this.checkSettings();
46
+
47
+ this.imgAnalyzerTimeout = null;
48
+ this.entries = null;
49
+ this.buildingRow = {
50
+ entriesBuff : [],
51
+ width : 0,
52
+ height : 0,
53
+ aspectRatio : 0
54
+ };
55
+ this.lastFetchedEntry = null;
56
+ this.lastAnalyzedIndex = -1;
57
+ this.yield = {
58
+ every : 2, // do a flush every n flushes (must be greater than 1)
59
+ flushed : 0 // flushed rows without a yield
60
+ };
61
+ this.border = settings.border >= 0 ? settings.border : settings.margins;
62
+ this.maxRowHeight = this.retrieveMaxRowHeight();
63
+ this.suffixRanges = this.retrieveSuffixRanges();
64
+ this.offY = this.border;
65
+ this.rows = 0;
66
+ this.spinner = {
67
+ phase : 0,
68
+ timeSlot : 150,
69
+ $el : $('<div class="spinner"><span></span><span></span><span></span></div>'),
70
+ intervalId : null
71
+ };
72
+ this.scrollBarOn = false;
73
+ this.checkWidthIntervalId = null;
74
+ this.galleryWidth = $gallery.width();
75
+ this.$gallery = $gallery;
76
+
77
+ };
78
+
79
+ /** @returns {String} the best suffix given the width and the height */
80
+ JustifiedGallery.prototype.getSuffix = function (width, height) {
81
+ var longestSide, i;
82
+ longestSide = (width > height) ? width : height;
83
+ for (i = 0; i < this.suffixRanges.length; i++) {
84
+ if (longestSide <= this.suffixRanges[i]) {
85
+ return this.settings.sizeRangeSuffixes[this.suffixRanges[i]];
86
+ }
87
+ }
88
+ return this.settings.sizeRangeSuffixes[this.suffixRanges[i - 1]];
89
+ };
90
+
91
+ /**
92
+ * Remove the suffix from the string
93
+ *
94
+ * @returns {string} a new string without the suffix
95
+ */
96
+ JustifiedGallery.prototype.removeSuffix = function (str, suffix) {
97
+ return str.substring(0, str.length - suffix.length);
98
+ };
99
+
100
+ /**
101
+ * @returns {boolean} a boolean to say if the suffix is contained in the str or not
102
+ */
103
+ JustifiedGallery.prototype.endsWith = function (str, suffix) {
104
+ return str.indexOf(suffix, str.length - suffix.length) !== -1;
105
+ };
106
+
107
+ /**
108
+ * Get the used suffix of a particular url
109
+ *
110
+ * @param str
111
+ * @returns {String} return the used suffix
112
+ */
113
+ JustifiedGallery.prototype.getUsedSuffix = function (str) {
114
+ for (var si in this.settings.sizeRangeSuffixes) {
115
+ if (this.settings.sizeRangeSuffixes.hasOwnProperty(si)) {
116
+ if (this.settings.sizeRangeSuffixes[si].length === 0) continue;
117
+ if (this.endsWith(str, this.settings.sizeRangeSuffixes[si])) return this.settings.sizeRangeSuffixes[si];
118
+ }
119
+ }
120
+ return '';
121
+ };
122
+
123
+ /**
124
+ * Given an image src, with the width and the height, returns the new image src with the
125
+ * best suffix to show the best quality thumbnail.
126
+ *
127
+ * @returns {String} the suffix to use
128
+ */
129
+ JustifiedGallery.prototype.newSrc = function (imageSrc, imgWidth, imgHeight, image) {
130
+ var newImageSrc;
131
+
132
+ if (this.settings.thumbnailPath) {
133
+ newImageSrc = this.settings.thumbnailPath(imageSrc, imgWidth, imgHeight, image);
134
+ } else {
135
+ var matchRes = imageSrc.match(this.settings.extension);
136
+ var ext = (matchRes !== null) ? matchRes[0] : '';
137
+ newImageSrc = imageSrc.replace(this.settings.extension, '');
138
+ newImageSrc = this.removeSuffix(newImageSrc, this.getUsedSuffix(newImageSrc));
139
+ newImageSrc += this.getSuffix(imgWidth, imgHeight) + ext;
140
+ }
141
+
142
+ return newImageSrc;
143
+ };
144
+
145
+ /**
146
+ * Shows the images that is in the given entry
147
+ *
148
+ * @param $entry the entry
149
+ * @param callback the callback that is called when the show animation is finished
150
+ */
151
+ JustifiedGallery.prototype.showImg = function ($entry, callback) {
152
+ if (this.settings.cssAnimation) {
153
+ $entry.addClass('jg-entry-visible');
154
+ if (callback) callback();
155
+ } else {
156
+ $entry.stop().fadeTo(this.settings.imagesAnimationDuration, 1.0, callback);
157
+ $entry.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration, 1.0, callback);
158
+ }
159
+ };
160
+
161
+ /**
162
+ * Extract the image src form the image, looking from the 'safe-src', and if it can't be found, from the
163
+ * 'src' attribute. It saves in the image data the 'jg.originalSrc' field, with the extracted src.
164
+ *
165
+ * @param $image the image to analyze
166
+ * @returns {String} the extracted src
167
+ */
168
+ JustifiedGallery.prototype.extractImgSrcFromImage = function ($image) {
169
+ var imageSrc = $image.data('safe-src');
170
+ var imageSrcLoc = 'date-safe-src';
171
+ if (typeof imageSrc === 'undefined') {
172
+ imageSrc = $image.attr('src');
173
+ imageSrcLoc = 'src';
174
+ }
175
+ $image.data('jg.originalSrc', imageSrc); // this is saved for the destroy method
176
+ $image.data('jg.src', imageSrc); // this will change overtime
177
+ $image.data('jg.originalSrcLoc', imageSrcLoc); // this is saved for the destroy method
178
+ return imageSrc;
179
+ };
180
+
181
+ /** @returns {jQuery} the image in the given entry */
182
+ JustifiedGallery.prototype.imgFromEntry = function ($entry) {
183
+ var $img = $entry.find(this.settings.imgSelector);
184
+ return $img.length === 0 ? null : $img;
185
+ };
186
+
187
+ /** @returns {jQuery} the caption in the given entry */
188
+ JustifiedGallery.prototype.captionFromEntry = function ($entry) {
189
+ var $caption = $entry.find('> .caption');
190
+ return $caption.length === 0 ? null : $caption;
191
+ };
192
+
193
+ /**
194
+ * Display the entry
195
+ *
196
+ * @param {jQuery} $entry the entry to display
197
+ * @param {int} x the x position where the entry must be positioned
198
+ * @param y the y position where the entry must be positioned
199
+ * @param imgWidth the image width
200
+ * @param imgHeight the image height
201
+ * @param rowHeight the row height of the row that owns the entry
202
+ */
203
+ JustifiedGallery.prototype.displayEntry = function ($entry, x, y, imgWidth, imgHeight, rowHeight) {
204
+ $entry.width(imgWidth);
205
+ $entry.height(rowHeight);
206
+ $entry.css('top', y);
207
+ $entry.css('left', x);
208
+
209
+ var $image = this.imgFromEntry($entry);
210
+ if ($image !== null) {
211
+ $image.css('width', imgWidth);
212
+ $image.css('height', imgHeight);
213
+ $image.css('margin-left', - imgWidth / 2);
214
+ $image.css('margin-top', - imgHeight / 2);
215
+
216
+ // Image reloading for an high quality of thumbnails
217
+ var imageSrc = $image.data('jg.src');
218
+ if (imageSrc) {
219
+ imageSrc = this.newSrc(imageSrc, imgWidth, imgHeight, $image[0]);
220
+
221
+ $image.one('error', function () {
222
+ this.resetImgSrc($image); //revert to the original thumbnail
223
+ });
224
+
225
+ var loadNewImage = function () {
226
+ // if (imageSrc !== newImageSrc) {
227
+ $image.attr('src', imageSrc);
228
+ // }
229
+ };
230
+
231
+ if ($entry.data('jg.loaded') === 'skipped') {
232
+ this.onImageEvent(imageSrc, (function() {
233
+ this.showImg($entry, loadNewImage); //load the new image after the fadeIn
234
+ $entry.data('jg.loaded', true);
235
+ }).bind(this));
236
+ } else {
237
+ this.showImg($entry, loadNewImage); //load the new image after the fadeIn
238
+ }
239
+
240
+ }
241
+
242
+ } else {
243
+ this.showImg($entry);
244
+ }
245
+
246
+ this.displayEntryCaption($entry);
247
+ };
248
+
249
+ /**
250
+ * Display the entry caption. If the caption element doesn't exists, it creates the caption using the 'alt'
251
+ * or the 'title' attributes.
252
+ *
253
+ * @param {jQuery} $entry the entry to process
254
+ */
255
+ JustifiedGallery.prototype.displayEntryCaption = function ($entry) {
256
+ var $image = this.imgFromEntry($entry);
257
+ if ($image !== null && this.settings.captions) {
258
+ var $imgCaption = this.captionFromEntry($entry);
259
+
260
+ // Create it if it doesn't exists
261
+ if ($imgCaption === null) {
262
+ var caption = $image.attr('alt');
263
+ if (!this.isValidCaption(caption)) caption = $entry.attr('title');
264
+ if (this.isValidCaption(caption)) { // Create only we found something
265
+ $imgCaption = $('<div class="caption">' + caption + '</div>');
266
+ $entry.append($imgCaption);
267
+ $entry.data('jg.createdCaption', true);
268
+ }
269
+ }
270
+
271
+ // Create events (we check again the $imgCaption because it can be still inexistent)
272
+ if ($imgCaption !== null) {
273
+ if (!this.settings.cssAnimation) $imgCaption.stop().fadeTo(0, this.settings.captionSettings.nonVisibleOpacity);
274
+ this.addCaptionEventsHandlers($entry);
275
+ }
276
+ } else {
277
+ this.removeCaptionEventsHandlers($entry);
278
+ }
279
+ };
280
+
281
+ /**
282
+ * Validates the caption
283
+ *
284
+ * @param caption The caption that should be validated
285
+ * @return {boolean} Validation result
286
+ */
287
+ JustifiedGallery.prototype.isValidCaption = function (caption) {
288
+ return (typeof caption !== 'undefined' && caption.length > 0);
289
+ };
290
+
291
+ /**
292
+ * The callback for the event 'mouseenter'. It assumes that the event currentTarget is an entry.
293
+ * It shows the caption using jQuery (or using CSS if it is configured so)
294
+ *
295
+ * @param {Event} eventObject the event object
296
+ */
297
+ JustifiedGallery.prototype.onEntryMouseEnterForCaption = function (eventObject) {
298
+ var $caption = this.captionFromEntry($(eventObject.currentTarget));
299
+ if (this.settings.cssAnimation) {
300
+ $caption.addClass('caption-visible').removeClass('caption-hidden');
301
+ } else {
302
+ $caption.stop().fadeTo(this.settings.captionSettings.animationDuration,
303
+ this.settings.captionSettings.visibleOpacity);
304
+ }
305
+ };
306
+
307
+ /**
308
+ * The callback for the event 'mouseleave'. It assumes that the event currentTarget is an entry.
309
+ * It hides the caption using jQuery (or using CSS if it is configured so)
310
+ *
311
+ * @param {Event} eventObject the event object
312
+ */
313
+ JustifiedGallery.prototype.onEntryMouseLeaveForCaption = function (eventObject) {
314
+ var $caption = this.captionFromEntry($(eventObject.currentTarget));
315
+ if (this.settings.cssAnimation) {
316
+ $caption.removeClass('caption-visible').removeClass('caption-hidden');
317
+ } else {
318
+ $caption.stop().fadeTo(this.settings.captionSettings.animationDuration,
319
+ this.settings.captionSettings.nonVisibleOpacity);
320
+ }
321
+ };
322
+
323
+ /**
324
+ * Add the handlers of the entry for the caption
325
+ *
326
+ * @param $entry the entry to modify
327
+ */
328
+ JustifiedGallery.prototype.addCaptionEventsHandlers = function ($entry) {
329
+ var captionMouseEvents = $entry.data('jg.captionMouseEvents');
330
+ if (typeof captionMouseEvents === 'undefined') {
331
+ captionMouseEvents = {
332
+ mouseenter: $.proxy(this.onEntryMouseEnterForCaption, this),
333
+ mouseleave: $.proxy(this.onEntryMouseLeaveForCaption, this)
334
+ };
335
+ $entry.on('mouseenter', undefined, undefined, captionMouseEvents.mouseenter);
336
+ $entry.on('mouseleave', undefined, undefined, captionMouseEvents.mouseleave);
337
+ $entry.data('jg.captionMouseEvents', captionMouseEvents);
338
+ }
339
+ };
340
+
341
+ /**
342
+ * Remove the handlers of the entry for the caption
343
+ *
344
+ * @param $entry the entry to modify
345
+ */
346
+ JustifiedGallery.prototype.removeCaptionEventsHandlers = function ($entry) {
347
+ var captionMouseEvents = $entry.data('jg.captionMouseEvents');
348
+ if (typeof captionMouseEvents !== 'undefined') {
349
+ $entry.off('mouseenter', undefined, captionMouseEvents.mouseenter);
350
+ $entry.off('mouseleave', undefined, captionMouseEvents.mouseleave);
351
+ $entry.removeData('jg.captionMouseEvents');
352
+ }
353
+ };
354
+
355
+ /**
356
+ * Clear the building row data to be used for a new row
357
+ */
358
+ JustifiedGallery.prototype.clearBuildingRow = function () {
359
+ this.buildingRow.entriesBuff = [];
360
+ this.buildingRow.aspectRatio = 0;
361
+ this.buildingRow.width = 0;
362
+ };
363
+
364
+ /**
365
+ * Justify the building row, preparing it to
366
+ *
367
+ * @param isLastRow
368
+ * @returns a boolean to know if the row has been justified or not
369
+ */
370
+ JustifiedGallery.prototype.prepareBuildingRow = function (isLastRow) {
371
+ var i, $entry, imgAspectRatio, newImgW, newImgH, justify = true;
372
+ var minHeight = 0;
373
+ var availableWidth = this.galleryWidth - 2 * this.border - (
374
+ (this.buildingRow.entriesBuff.length - 1) * this.settings.margins);
375
+ var rowHeight = availableWidth / this.buildingRow.aspectRatio;
376
+ var defaultRowHeight = this.settings.rowHeight;
377
+ var justifiable = this.buildingRow.width / availableWidth > this.settings.justifyThreshold;
378
+
379
+ //Skip the last row if we can't justify it and the lastRow == 'hide'
380
+ if (isLastRow && this.settings.lastRow === 'hide' && !justifiable) {
381
+ for (i = 0; i < this.buildingRow.entriesBuff.length; i++) {
382
+ $entry = this.buildingRow.entriesBuff[i];
383
+ if (this.settings.cssAnimation)
384
+ $entry.removeClass('jg-entry-visible');
385
+ else {
386
+ $entry.stop().fadeTo(0, 0.1);
387
+ $entry.find('> img, > a > img').fadeTo(0, 0);
388
+ }
389
+ }
390
+ return -1;
391
+ }
392
+
393
+ // With lastRow = nojustify, justify if is justificable (the images will not become too big)
394
+ if (isLastRow && !justifiable && this.settings.lastRow !== 'justify' && this.settings.lastRow !== 'hide') {
395
+ justify = false;
396
+
397
+ if (this.rows > 0) {
398
+ defaultRowHeight = (this.offY - this.border - this.settings.margins * this.rows) / this.rows;
399
+ justify = defaultRowHeight * this.buildingRow.aspectRatio / availableWidth > this.settings.justifyThreshold;
400
+ }
401
+ }
402
+
403
+ for (i = 0; i < this.buildingRow.entriesBuff.length; i++) {
404
+ $entry = this.buildingRow.entriesBuff[i];
405
+ imgAspectRatio = $entry.data('jg.width') / $entry.data('jg.height');
406
+
407
+ if (justify) {
408
+ newImgW = (i === this.buildingRow.entriesBuff.length - 1) ? availableWidth : rowHeight * imgAspectRatio;
409
+ newImgH = rowHeight;
410
+ } else {
411
+ newImgW = defaultRowHeight * imgAspectRatio;
412
+ newImgH = defaultRowHeight;
413
+ }
414
+
415
+ availableWidth -= Math.round(newImgW);
416
+ $entry.data('jg.jwidth', Math.round(newImgW));
417
+ $entry.data('jg.jheight', Math.ceil(newImgH));
418
+ if (i === 0 || minHeight > newImgH) minHeight = newImgH;
419
+ }
420
+
421
+ this.buildingRow.height = minHeight;
422
+ return justify;
423
+ };
424
+
425
+ /**
426
+ * Flush a row: justify it, modify the gallery height accordingly to the row height
427
+ *
428
+ * @param isLastRow
429
+ */
430
+ JustifiedGallery.prototype.flushRow = function (isLastRow) {
431
+ var settings = this.settings;
432
+ var $entry, buildingRowRes, offX = this.border, i;
433
+
434
+ buildingRowRes = this.prepareBuildingRow(isLastRow);
435
+ if (isLastRow && settings.lastRow === 'hide' && buildingRowRes === -1) {
436
+ this.clearBuildingRow();
437
+ return;
438
+ }
439
+
440
+ if(this.maxRowHeight) {
441
+ if(this.maxRowHeight < this.buildingRow.height) this.buildingRow.height = this.maxRowHeight;
442
+ }
443
+
444
+ //Align last (unjustified) row
445
+ if (isLastRow && (settings.lastRow === 'center' || settings.lastRow === 'right')) {
446
+ var availableWidth = this.galleryWidth - 2 * this.border - (this.buildingRow.entriesBuff.length - 1) * settings.margins;
447
+
448
+ for (i = 0; i < this.buildingRow.entriesBuff.length; i++) {
449
+ $entry = this.buildingRow.entriesBuff[i];
450
+ availableWidth -= $entry.data('jg.jwidth');
451
+ }
452
+
453
+ if (settings.lastRow === 'center')
454
+ offX += availableWidth / 2;
455
+ else if (settings.lastRow === 'right')
456
+ offX += availableWidth;
457
+ }
458
+
459
+ var lastEntryIdx = this.buildingRow.entriesBuff.length - 1;
460
+ for (i = 0; i <= lastEntryIdx; i++) {
461
+ $entry = this.buildingRow.entriesBuff[ this.settings.rtl ? lastEntryIdx - i : i ];
462
+ this.displayEntry($entry, offX, this.offY, $entry.data('jg.jwidth'), $entry.data('jg.jheight'), this.buildingRow.height);
463
+ offX += $entry.data('jg.jwidth') + settings.margins;
464
+ }
465
+
466
+ //Gallery Height
467
+ this.galleryHeightToSet = this.offY + this.buildingRow.height + this.border;
468
+ this.setGalleryTempHeight(this.galleryHeightToSet + this.getSpinnerHeight());
469
+
470
+ if (!isLastRow || (this.buildingRow.height <= settings.rowHeight && buildingRowRes)) {
471
+ //Ready for a new row
472
+ this.offY += this.buildingRow.height + settings.margins;
473
+ this.rows += 1;
474
+ this.clearBuildingRow();
475
+ this.settings.triggerEvent.call(this, 'jg.rowflush');
476
+ }
477
+ };
478
+
479
+
480
+ // Scroll position not restoring: https://github.com/miromannino/Justified-Gallery/issues/221
481
+ var galleryPrevStaticHeight = 0;
482
+
483
+ JustifiedGallery.prototype.rememberGalleryHeight = function () {
484
+ galleryPrevStaticHeight = this.$gallery.height();
485
+ this.$gallery.height(galleryPrevStaticHeight);
486
+ };
487
+
488
+ // grow only
489
+ JustifiedGallery.prototype.setGalleryTempHeight = function (height) {
490
+ galleryPrevStaticHeight = Math.max(height, galleryPrevStaticHeight);
491
+ this.$gallery.height(galleryPrevStaticHeight);
492
+ };
493
+
494
+ JustifiedGallery.prototype.setGalleryFinalHeight = function (height) {
495
+ galleryPrevStaticHeight = height;
496
+ this.$gallery.height(height);
497
+ };
498
+
499
+ /**
500
+ * Checks the width of the gallery container, to know if a new justification is needed
501
+ */
502
+ JustifiedGallery.prototype.checkWidth = function () {
503
+ this.checkWidthIntervalId = setInterval($.proxy(function () {
504
+
505
+ // if the gallery is not currently visible, abort.
506
+ if (!this.$gallery.is(":visible")) return;
507
+
508
+ var galleryWidth = parseFloat(this.$gallery.width());
509
+ if (Math.abs(galleryWidth - this.galleryWidth) > this.settings.refreshSensitivity) {
510
+ this.galleryWidth = galleryWidth;
511
+ this.rewind();
512
+
513
+ this.rememberGalleryHeight();
514
+
515
+ // Restart to analyze
516
+ this.startImgAnalyzer(true);
517
+ }
518
+ }, this), this.settings.refreshTime);
519
+ };
520
+
521
+ /**
522
+ * @returns {boolean} a boolean saying if the spinner is active or not
523
+ */
524
+ JustifiedGallery.prototype.isSpinnerActive = function () {
525
+ return this.spinner.intervalId !== null;
526
+ };
527
+
528
+ /**
529
+ * @returns {int} the spinner height
530
+ */
531
+ JustifiedGallery.prototype.getSpinnerHeight = function () {
532
+ return this.spinner.$el.innerHeight();
533
+ };
534
+
535
+ /**
536
+ * Stops the spinner animation and modify the gallery height to exclude the spinner
537
+ */
538
+ JustifiedGallery.prototype.stopLoadingSpinnerAnimation = function () {
539
+ clearInterval(this.spinner.intervalId);
540
+ this.spinner.intervalId = null;
541
+ this.setGalleryTempHeight(this.$gallery.height() - this.getSpinnerHeight());
542
+ this.spinner.$el.detach();
543
+ };
544
+
545
+ /**
546
+ * Starts the spinner animation
547
+ */
548
+ JustifiedGallery.prototype.startLoadingSpinnerAnimation = function () {
549
+ var spinnerContext = this.spinner;
550
+ var $spinnerPoints = spinnerContext.$el.find('span');
551
+ clearInterval(spinnerContext.intervalId);
552
+ this.$gallery.append(spinnerContext.$el);
553
+ this.setGalleryTempHeight(this.offY + this.buildingRow.height + this.getSpinnerHeight());
554
+ spinnerContext.intervalId = setInterval(function () {
555
+ if (spinnerContext.phase < $spinnerPoints.length) {
556
+ $spinnerPoints.eq(spinnerContext.phase).fadeTo(spinnerContext.timeSlot, 1);
557
+ } else {
558
+ $spinnerPoints.eq(spinnerContext.phase - $spinnerPoints.length).fadeTo(spinnerContext.timeSlot, 0);
559
+ }
560
+ spinnerContext.phase = (spinnerContext.phase + 1) % ($spinnerPoints.length * 2);
561
+ }, spinnerContext.timeSlot);
562
+ };
563
+
564
+ /**
565
+ * Rewind the image analysis to start from the first entry.
566
+ */
567
+ JustifiedGallery.prototype.rewind = function () {
568
+ this.lastFetchedEntry = null;
569
+ this.lastAnalyzedIndex = -1;
570
+ this.offY = this.border;
571
+ this.rows = 0;
572
+ this.clearBuildingRow();
573
+ };
574
+
575
+ /**
576
+ * @returns {Array} all entries matched by `settings.selector`
577
+ */
578
+ JustifiedGallery.prototype.getAllEntries = function () {
579
+ return this.$gallery.children(this.settings.selector).toArray();
580
+ };
581
+
582
+ /**
583
+ * Update the entries searching it from the justified gallery HTML element
584
+ *
585
+ * @param norewind if norewind only the new entries will be changed (i.e. randomized, sorted or filtered)
586
+ * @returns {boolean} true if some entries has been founded
587
+ */
588
+ JustifiedGallery.prototype.updateEntries = function (norewind) {
589
+ var newEntries;
590
+
591
+ if (norewind && this.lastFetchedEntry != null) {
592
+ newEntries = $(this.lastFetchedEntry).nextAll(this.settings.selector).toArray();
593
+ } else {
594
+ this.entries = [];
595
+ newEntries = this.getAllEntries();
596
+ }
597
+
598
+ if (newEntries.length > 0) {
599
+
600
+ // Sort or randomize
601
+ if ($.isFunction(this.settings.sort)) {
602
+ newEntries = this.sortArray(newEntries);
603
+ } else if (this.settings.randomize) {
604
+ newEntries = this.shuffleArray(newEntries);
605
+ }
606
+ this.lastFetchedEntry = newEntries[newEntries.length - 1];
607
+
608
+ // Filter
609
+ if (this.settings.filter) {
610
+ newEntries = this.filterArray(newEntries);
611
+ } else {
612
+ this.resetFilters(newEntries);
613
+ }
614
+
615
+ }
616
+
617
+ this.entries = this.entries.concat(newEntries);
618
+ return true;
619
+ };
620
+
621
+ /**
622
+ * Apply the entries order to the DOM, iterating the entries and appending the images
623
+ *
624
+ * @param entries the entries that has been modified and that must be re-ordered in the DOM
625
+ */
626
+ JustifiedGallery.prototype.insertToGallery = function (entries) {
627
+ var that = this;
628
+ $.each(entries, function () {
629
+ $(this).appendTo(that.$gallery);
630
+ });
631
+ };
632
+
633
+ /**
634
+ * Shuffle the array using the Fisher-Yates shuffle algorithm
635
+ *
636
+ * @param a the array to shuffle
637
+ * @return the shuffled array
638
+ */
639
+ JustifiedGallery.prototype.shuffleArray = function (a) {
640
+ var i, j, temp;
641
+ for (i = a.length - 1; i > 0; i--) {
642
+ j = Math.floor(Math.random() * (i + 1));
643
+ temp = a[i];
644
+ a[i] = a[j];
645
+ a[j] = temp;
646
+ }
647
+ this.insertToGallery(a);
648
+ return a;
649
+ };
650
+
651
+ /**
652
+ * Sort the array using settings.comparator as comparator
653
+ *
654
+ * @param a the array to sort (it is sorted)
655
+ * @return the sorted array
656
+ */
657
+ JustifiedGallery.prototype.sortArray = function (a) {
658
+ a.sort(this.settings.sort);
659
+ this.insertToGallery(a);
660
+ return a;
661
+ };
662
+
663
+ /**
664
+ * Reset the filters removing the 'jg-filtered' class from all the entries
665
+ *
666
+ * @param a the array to reset
667
+ */
668
+ JustifiedGallery.prototype.resetFilters = function (a) {
669
+ for (var i = 0; i < a.length; i++) $(a[i]).removeClass('jg-filtered');
670
+ };
671
+
672
+ /**
673
+ * Filter the entries considering theirs classes (if a string has been passed) or using a function for filtering.
674
+ *
675
+ * @param a the array to filter
676
+ * @return the filtered array
677
+ */
678
+ JustifiedGallery.prototype.filterArray = function (a) {
679
+ var settings = this.settings;
680
+ if ($.type(settings.filter) === 'string') {
681
+ // Filter only keeping the entries passed in the string
682
+ return a.filter(function (el) {
683
+ var $el = $(el);
684
+ if ($el.is(settings.filter)) {
685
+ $el.removeClass('jg-filtered');
686
+ return true;
687
+ } else {
688
+ $el.addClass('jg-filtered').removeClass('jg-visible');
689
+ return false;
690
+ }
691
+ });
692
+ } else if ($.isFunction(settings.filter)) {
693
+ // Filter using the passed function
694
+ var filteredArr = a.filter(settings.filter);
695
+ for (var i = 0; i < a.length; i++) {
696
+ if (filteredArr.indexOf(a[i]) === -1) {
697
+ $(a[i]).addClass('jg-filtered').removeClass('jg-visible');
698
+ } else {
699
+ $(a[i]).removeClass('jg-filtered');
700
+ }
701
+ }
702
+ return filteredArr;
703
+ }
704
+ };
705
+
706
+ /**
707
+ * Revert the image src to the default value.
708
+ */
709
+ JustifiedGallery.prototype.resetImgSrc = function ($img) {
710
+ if ($img.data('jg.originalSrcLoc') == 'src') {
711
+ $img.attr('src', $img.data('jg.originalSrc'));
712
+ } else {
713
+ $img.attr('src', '');
714
+ }
715
+ }
716
+
717
+ /**
718
+ * Destroy the Justified Gallery instance.
719
+ *
720
+ * It clears all the css properties added in the style attributes. We doesn't backup the original
721
+ * values for those css attributes, because it costs (performance) and because in general one
722
+ * shouldn't use the style attribute for an uniform set of images (where we suppose the use of
723
+ * classes). Creating a backup is also difficult because JG could be called multiple times and
724
+ * with different style attributes.
725
+ */
726
+ JustifiedGallery.prototype.destroy = function () {
727
+ clearInterval(this.checkWidthIntervalId);
728
+ this.stopImgAnalyzerStarter();
729
+
730
+ // Get fresh entries list since filtered entries are absent in `this.entries`
731
+ $.each(this.getAllEntries(), $.proxy(function(_, entry) {
732
+ var $entry = $(entry);
733
+
734
+ // Reset entry style
735
+ $entry.css('width', '');
736
+ $entry.css('height', '');
737
+ $entry.css('top', '');
738
+ $entry.css('left', '');
739
+ $entry.data('jg.loaded', undefined);
740
+ $entry.removeClass('jg-entry jg-filtered jg-entry-visible');
741
+
742
+ // Reset image style
743
+ var $img = this.imgFromEntry($entry);
744
+ if ($img) {
745
+ $img.css('width', '');
746
+ $img.css('height', '');
747
+ $img.css('margin-left', '');
748
+ $img.css('margin-top', '');
749
+ this.resetImgSrc($img);
750
+ $img.data('jg.originalSrc', undefined);
751
+ $img.data('jg.originalSrcLoc', undefined);
752
+ $img.data('jg.src', undefined);
753
+ }
754
+
755
+ // Remove caption
756
+ this.removeCaptionEventsHandlers($entry);
757
+ var $caption = this.captionFromEntry($entry);
758
+ if ($entry.data('jg.createdCaption')) {
759
+ // remove also the caption element (if created by jg)
760
+ $entry.data('jg.createdCaption', undefined);
761
+ if ($caption !== null) $caption.remove();
762
+ } else {
763
+ if ($caption !== null) $caption.fadeTo(0, 1);
764
+ }
765
+
766
+ }, this));
767
+
768
+ this.$gallery.css('height', '');
769
+ this.$gallery.removeClass('justified-gallery');
770
+ this.$gallery.data('jg.controller', undefined);
771
+ this.settings.triggerEvent.call(this, 'jg.destroy');
772
+ };
773
+
774
+ /**
775
+ * Analyze the images and builds the rows. It returns if it found an image that is not loaded.
776
+ *
777
+ * @param isForResize if the image analyzer is called for resizing or not, to call a different callback at the end
778
+ */
779
+ JustifiedGallery.prototype.analyzeImages = function (isForResize) {
780
+ for (var i = this.lastAnalyzedIndex + 1; i < this.entries.length; i++) {
781
+ var $entry = $(this.entries[i]);
782
+ if ($entry.data('jg.loaded') === true || $entry.data('jg.loaded') === 'skipped') {
783
+ var availableWidth = this.galleryWidth - 2 * this.border - (
784
+ (this.buildingRow.entriesBuff.length - 1) * this.settings.margins);
785
+ var imgAspectRatio = $entry.data('jg.width') / $entry.data('jg.height');
786
+
787
+ this.buildingRow.entriesBuff.push($entry);
788
+ this.buildingRow.aspectRatio += imgAspectRatio;
789
+ this.buildingRow.width += imgAspectRatio * this.settings.rowHeight;
790
+ this.lastAnalyzedIndex = i;
791
+
792
+ if (availableWidth / (this.buildingRow.aspectRatio + imgAspectRatio) < this.settings.rowHeight) {
793
+ this.flushRow(false);
794
+
795
+ if(++this.yield.flushed >= this.yield.every) {
796
+ this.startImgAnalyzer(isForResize);
797
+ return;
798
+ }
799
+ }
800
+ } else if ($entry.data('jg.loaded') !== 'error') {
801
+ return;
802
+ }
803
+ }
804
+
805
+ // Last row flush (the row is not full)
806
+ if (this.buildingRow.entriesBuff.length > 0) this.flushRow(true);
807
+
808
+ if (this.isSpinnerActive()) {
809
+ this.stopLoadingSpinnerAnimation();
810
+ }
811
+
812
+ /* Stop, if there is, the timeout to start the analyzeImages.
813
+ This is because an image can be set loaded, and the timeout can be set,
814
+ but this image can be analyzed yet.
815
+ */
816
+ this.stopImgAnalyzerStarter();
817
+
818
+ //On complete callback
819
+ this.settings.triggerEvent.call(this, isForResize ? 'jg.resize' : 'jg.complete');
820
+ this.setGalleryFinalHeight(this.galleryHeightToSet);
821
+ };
822
+
823
+ /**
824
+ * Stops any ImgAnalyzer starter (that has an assigned timeout)
825
+ */
826
+ JustifiedGallery.prototype.stopImgAnalyzerStarter = function () {
827
+ this.yield.flushed = 0;
828
+ if (this.imgAnalyzerTimeout !== null) {
829
+ clearTimeout(this.imgAnalyzerTimeout);
830
+ this.imgAnalyzerTimeout = null;
831
+ }
832
+ };
833
+
834
+ /**
835
+ * Starts the image analyzer. It is not immediately called to let the browser to update the view
836
+ *
837
+ * @param isForResize specifies if the image analyzer must be called for resizing or not
838
+ */
839
+ JustifiedGallery.prototype.startImgAnalyzer = function (isForResize) {
840
+ var that = this;
841
+ this.stopImgAnalyzerStarter();
842
+ this.imgAnalyzerTimeout = setTimeout(function () {
843
+ that.analyzeImages(isForResize);
844
+ }, 0.001); // we can't start it immediately due to a IE different behaviour
845
+ };
846
+
847
+ /**
848
+ * Checks if the image is loaded or not using another image object. We cannot use the 'complete' image property,
849
+ * because some browsers, with a 404 set complete = true.
850
+ *
851
+ * @param imageSrc the image src to load
852
+ * @param onLoad callback that is called when the image has been loaded
853
+ * @param onError callback that is called in case of an error
854
+ */
855
+ JustifiedGallery.prototype.onImageEvent = function (imageSrc, onLoad, onError) {
856
+ if (!onLoad && !onError) return;
857
+
858
+ var memImage = new Image();
859
+ var $memImage = $(memImage);
860
+ if (onLoad) {
861
+ $memImage.one('load', function () {
862
+ $memImage.off('load error');
863
+ onLoad(memImage);
864
+ });
865
+ }
866
+ if (onError) {
867
+ $memImage.one('error', function() {
868
+ $memImage.off('load error');
869
+ onError(memImage);
870
+ });
871
+ }
872
+ memImage.src = imageSrc;
873
+ };
874
+
875
+ /**
876
+ * Init of Justified Gallery controlled
877
+ * It analyzes all the entries starting theirs loading and calling the image analyzer (that works with loaded images)
878
+ */
879
+ JustifiedGallery.prototype.init = function () {
880
+ var imagesToLoad = false, skippedImages = false, that = this;
881
+ $.each(this.entries, function (index, entry) {
882
+ var $entry = $(entry);
883
+ var $image = that.imgFromEntry($entry);
884
+
885
+ $entry.addClass('jg-entry');
886
+
887
+ if ($entry.data('jg.loaded') !== true && $entry.data('jg.loaded') !== 'skipped') {
888
+
889
+ // Link Rel global overwrite
890
+ if (that.settings.rel !== null) $entry.attr('rel', that.settings.rel);
891
+
892
+ // Link Target global overwrite
893
+ if (that.settings.target !== null) $entry.attr('target', that.settings.target);
894
+
895
+ if ($image !== null) {
896
+
897
+ // Image src
898
+ var imageSrc = that.extractImgSrcFromImage($image);
899
+
900
+ /* If we have the height and the width, we don't wait that the image is loaded,
901
+ but we start directly with the justification */
902
+ if (that.settings.waitThumbnailsLoad === false || !imageSrc) {
903
+ var width = parseFloat($image.attr('width'));
904
+ var height = parseFloat($image.attr('height'));
905
+ if ($image.prop('tagName') === 'svg') {
906
+ width = parseFloat($image[0].getBBox().width);
907
+ height = parseFloat($image[0].getBBox().height);
908
+ }
909
+ if (!isNaN(width) && !isNaN(height)) {
910
+ $entry.data('jg.width', width);
911
+ $entry.data('jg.height', height);
912
+ $entry.data('jg.loaded', 'skipped');
913
+ skippedImages = true;
914
+ that.startImgAnalyzer(false);
915
+ return true; // continue
916
+ }
917
+ }
918
+
919
+ $entry.data('jg.loaded', false);
920
+ imagesToLoad = true;
921
+
922
+ // Spinner start
923
+ if (!that.isSpinnerActive()) that.startLoadingSpinnerAnimation();
924
+
925
+ that.onImageEvent(imageSrc, function (loadImg) { // image loaded
926
+ $entry.data('jg.width', loadImg.width);
927
+ $entry.data('jg.height', loadImg.height);
928
+ $entry.data('jg.loaded', true);
929
+ that.startImgAnalyzer(false);
930
+ }, function () { // image load error
931
+ $entry.data('jg.loaded', 'error');
932
+ that.startImgAnalyzer(false);
933
+ });
934
+
935
+ } else {
936
+ $entry.data('jg.loaded', true);
937
+ $entry.data('jg.width', $entry.width() | parseFloat($entry.css('width')) | 1);
938
+ $entry.data('jg.height', $entry.height() | parseFloat($entry.css('height')) | 1);
939
+ }
940
+
941
+ }
942
+
943
+ });
944
+
945
+ if (!imagesToLoad && !skippedImages) this.startImgAnalyzer(false);
946
+ this.checkWidth();
947
+ };
948
+
949
+ /**
950
+ * Checks that it is a valid number. If a string is passed it is converted to a number
951
+ *
952
+ * @param settingContainer the object that contains the setting (to allow the conversion)
953
+ * @param settingName the setting name
954
+ */
955
+ JustifiedGallery.prototype.checkOrConvertNumber = function (settingContainer, settingName) {
956
+ if ($.type(settingContainer[settingName]) === 'string') {
957
+ settingContainer[settingName] = parseFloat(settingContainer[settingName]);
958
+ }
959
+
960
+ if ($.type(settingContainer[settingName]) === 'number') {
961
+ if (isNaN(settingContainer[settingName])) throw 'invalid number for ' + settingName;
962
+ } else {
963
+ throw settingName + ' must be a number';
964
+ }
965
+ };
966
+
967
+ /**
968
+ * Checks the sizeRangeSuffixes and, if necessary, converts
969
+ * its keys from string (e.g. old settings with 'lt100') to int.
970
+ */
971
+ JustifiedGallery.prototype.checkSizeRangesSuffixes = function () {
972
+ if ($.type(this.settings.sizeRangeSuffixes) !== 'object') {
973
+ throw 'sizeRangeSuffixes must be defined and must be an object';
974
+ }
975
+
976
+ var suffixRanges = [];
977
+ for (var rangeIdx in this.settings.sizeRangeSuffixes) {
978
+ if (this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)) suffixRanges.push(rangeIdx);
979
+ }
980
+
981
+ var newSizeRngSuffixes = {0: ''};
982
+ for (var i = 0; i < suffixRanges.length; i++) {
983
+ if ($.type(suffixRanges[i]) === 'string') {
984
+ try {
985
+ var numIdx = parseInt(suffixRanges[i].replace(/^[a-z]+/, ''), 10);
986
+ newSizeRngSuffixes[numIdx] = this.settings.sizeRangeSuffixes[suffixRanges[i]];
987
+ } catch (e) {
988
+ throw 'sizeRangeSuffixes keys must contains correct numbers (' + e + ')';
989
+ }
990
+ } else {
991
+ newSizeRngSuffixes[suffixRanges[i]] = this.settings.sizeRangeSuffixes[suffixRanges[i]];
992
+ }
993
+ }
994
+
995
+ this.settings.sizeRangeSuffixes = newSizeRngSuffixes;
996
+ };
997
+
998
+ /**
999
+ * check and convert the maxRowHeight setting
1000
+ * requires rowHeight to be already set
1001
+ * TODO: should be always called when only rowHeight is changed
1002
+ * @return number or null
1003
+ */
1004
+ JustifiedGallery.prototype.retrieveMaxRowHeight = function () {
1005
+ var newMaxRowHeight = null;
1006
+ var rowHeight = this.settings.rowHeight;
1007
+
1008
+ if ($.type(this.settings.maxRowHeight) === 'string') {
1009
+ if (this.settings.maxRowHeight.match(/^[0-9]+%$/)) {
1010
+ newMaxRowHeight = rowHeight * parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1]) / 100;
1011
+ } else {
1012
+ newMaxRowHeight = parseFloat(this.settings.maxRowHeight);
1013
+ }
1014
+ } else if ($.type(this.settings.maxRowHeight) === 'number') {
1015
+ newMaxRowHeight = this.settings.maxRowHeight;
1016
+ } else if (this.settings.maxRowHeight === false || this.settings.maxRowHeight == null) {
1017
+ return null;
1018
+ } else {
1019
+ throw 'maxRowHeight must be a number or a percentage';
1020
+ }
1021
+
1022
+ // check if the converted value is not a number
1023
+ if (isNaN(newMaxRowHeight)) throw 'invalid number for maxRowHeight';
1024
+
1025
+ // check values, maxRowHeight must be >= rowHeight
1026
+ if (newMaxRowHeight < rowHeight) newMaxRowHeight = rowHeight;
1027
+
1028
+ return newMaxRowHeight;
1029
+ };
1030
+
1031
+ /**
1032
+ * Checks the settings
1033
+ */
1034
+ JustifiedGallery.prototype.checkSettings = function () {
1035
+ this.checkSizeRangesSuffixes();
1036
+
1037
+ this.checkOrConvertNumber(this.settings, 'rowHeight');
1038
+ this.checkOrConvertNumber(this.settings, 'margins');
1039
+ this.checkOrConvertNumber(this.settings, 'border');
1040
+
1041
+ var lastRowModes = [
1042
+ 'justify',
1043
+ 'nojustify',
1044
+ 'left',
1045
+ 'center',
1046
+ 'right',
1047
+ 'hide'
1048
+ ];
1049
+ if (lastRowModes.indexOf(this.settings.lastRow) === -1) {
1050
+ throw 'lastRow must be one of: ' + lastRowModes.join(', ');
1051
+ }
1052
+
1053
+ this.checkOrConvertNumber(this.settings, 'justifyThreshold');
1054
+ if (this.settings.justifyThreshold < 0 || this.settings.justifyThreshold > 1) {
1055
+ throw 'justifyThreshold must be in the interval [0,1]';
1056
+ }
1057
+ if ($.type(this.settings.cssAnimation) !== 'boolean') {
1058
+ throw 'cssAnimation must be a boolean';
1059
+ }
1060
+
1061
+ if ($.type(this.settings.captions) !== 'boolean') throw 'captions must be a boolean';
1062
+ this.checkOrConvertNumber(this.settings.captionSettings, 'animationDuration');
1063
+
1064
+ this.checkOrConvertNumber(this.settings.captionSettings, 'visibleOpacity');
1065
+ if (this.settings.captionSettings.visibleOpacity < 0 ||
1066
+ this.settings.captionSettings.visibleOpacity > 1) {
1067
+ throw 'captionSettings.visibleOpacity must be in the interval [0, 1]';
1068
+ }
1069
+
1070
+ this.checkOrConvertNumber(this.settings.captionSettings, 'nonVisibleOpacity');
1071
+ if (this.settings.captionSettings.nonVisibleOpacity < 0 ||
1072
+ this.settings.captionSettings.nonVisibleOpacity > 1) {
1073
+ throw 'captionSettings.nonVisibleOpacity must be in the interval [0, 1]';
1074
+ }
1075
+
1076
+ this.checkOrConvertNumber(this.settings, 'imagesAnimationDuration');
1077
+ this.checkOrConvertNumber(this.settings, 'refreshTime');
1078
+ this.checkOrConvertNumber(this.settings, 'refreshSensitivity');
1079
+ if ($.type(this.settings.randomize) !== 'boolean') throw 'randomize must be a boolean';
1080
+ if ($.type(this.settings.selector) !== 'string') throw 'selector must be a string';
1081
+
1082
+ if (this.settings.sort !== false && !$.isFunction(this.settings.sort)) {
1083
+ throw 'sort must be false or a comparison function';
1084
+ }
1085
+
1086
+ if (this.settings.filter !== false && !$.isFunction(this.settings.filter) &&
1087
+ $.type(this.settings.filter) !== 'string') {
1088
+ throw 'filter must be false, a string or a filter function';
1089
+ }
1090
+ };
1091
+
1092
+ /**
1093
+ * It brings all the indexes from the sizeRangeSuffixes and it orders them. They are then sorted and returned.
1094
+ * @returns {Array} sorted suffix ranges
1095
+ */
1096
+ JustifiedGallery.prototype.retrieveSuffixRanges = function () {
1097
+ var suffixRanges = [];
1098
+ for (var rangeIdx in this.settings.sizeRangeSuffixes) {
1099
+ if (this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)) suffixRanges.push(parseInt(rangeIdx, 10));
1100
+ }
1101
+ suffixRanges.sort(function (a, b) { return a > b ? 1 : a < b ? -1 : 0; });
1102
+ return suffixRanges;
1103
+ };
1104
+
1105
+ /**
1106
+ * Update the existing settings only changing some of them
1107
+ *
1108
+ * @param newSettings the new settings (or a subgroup of them)
1109
+ */
1110
+ JustifiedGallery.prototype.updateSettings = function (newSettings) {
1111
+ // In this case Justified Gallery has been called again changing only some options
1112
+ this.settings = $.extend({}, this.settings, newSettings);
1113
+ this.checkSettings();
1114
+
1115
+ // As reported in the settings: negative value = same as margins, 0 = disabled
1116
+ this.border = this.settings.border >= 0 ? this.settings.border : this.settings.margins;
1117
+
1118
+ this.maxRowHeight = this.retrieveMaxRowHeight();
1119
+ this.suffixRanges = this.retrieveSuffixRanges();
1120
+ };
1121
+
1122
+ JustifiedGallery.prototype.defaults = {
1123
+ sizeRangeSuffixes: { }, /* e.g. Flickr configuration
1124
+ {
1125
+ 100: '_t', // used when longest is less than 100px
1126
+ 240: '_m', // used when longest is between 101px and 240px
1127
+ 320: '_n', // ...
1128
+ 500: '',
1129
+ 640: '_z',
1130
+ 1024: '_b' // used as else case because it is the last
1131
+ }
1132
+ */
1133
+ thumbnailPath: undefined, /* If defined, sizeRangeSuffixes is not used, and this function is used to determine the
1134
+ path relative to a specific thumbnail size. The function should accept respectively three arguments:
1135
+ current path, width and height */
1136
+ rowHeight: 120, // required? required to be > 0?
1137
+ maxRowHeight: false, // false or negative value to deactivate. Positive number to express the value in pixels,
1138
+ // A string '[0-9]+%' to express in percentage (e.g. 300% means that the row height
1139
+ // can't exceed 3 * rowHeight)
1140
+ margins: 1,
1141
+ border: -1, // negative value = same as margins, 0 = disabled, any other value to set the border
1142
+
1143
+ lastRow: 'nojustify', // … which is the same as 'left', or can be 'justify', 'center', 'right' or 'hide'
1144
+
1145
+ justifyThreshold: 0.90, /* if row width / available space > 0.90 it will be always justified
1146
+ * (i.e. lastRow setting is not considered) */
1147
+ waitThumbnailsLoad: true,
1148
+ captions: true,
1149
+ cssAnimation: true,
1150
+ imagesAnimationDuration: 500, // ignored with css animations
1151
+ captionSettings: { // ignored with css animations
1152
+ animationDuration: 500,
1153
+ visibleOpacity: 0.7,
1154
+ nonVisibleOpacity: 0.0
1155
+ },
1156
+ rel: null, // rewrite the rel of each analyzed links
1157
+ target: null, // rewrite the target of all links
1158
+ extension: /\.[^.\\/]+$/, // regexp to capture the extension of an image
1159
+ refreshTime: 200, // time interval (in ms) to check if the page changes its width
1160
+ refreshSensitivity: 0, // change in width allowed (in px) without re-building the gallery
1161
+ randomize: false,
1162
+ rtl: false, // right-to-left mode
1163
+ sort: false, /*
1164
+ - false: to do not sort
1165
+ - function: to sort them using the function as comparator (see Array.prototype.sort())
1166
+ */
1167
+ filter: false, /*
1168
+ - false, null or undefined: for a disabled filter
1169
+ - a string: an entry is kept if entry.is(filter string) returns true
1170
+ see jQuery's .is() function for further information
1171
+ - a function: invoked with arguments (entry, index, array). Return true to keep the entry, false otherwise.
1172
+ It follows the specifications of the Array.prototype.filter() function of JavaScript.
1173
+ */
1174
+ selector: 'a, div:not(.spinner)', // The selector that is used to know what are the entries of the gallery
1175
+ imgSelector: '> img, > a > img, > svg, > a > svg', // The selector that is used to know what are the images of each entry
1176
+ triggerEvent: function (event) { // This is called to trigger events, the default behavior is to call $.trigger
1177
+ this.$gallery.trigger(event); // Consider that 'this' is this set to the JustifiedGallery object, so it can
1178
+ } // access to fields such as $gallery, useful to trigger events with jQuery.
1179
+ };
1180
+
1181
+
1182
+ /**
1183
+ * Justified Gallery plugin for jQuery
1184
+ *
1185
+ * Events
1186
+ * - jg.complete : called when all the gallery has been created
1187
+ * - jg.resize : called when the gallery has been resized
1188
+ * - jg.rowflush : when a new row appears
1189
+ *
1190
+ * @param arg the action (or the settings) passed when the plugin is called
1191
+ * @returns {*} the object itself
1192
+ */
1193
+ $.fn.justifiedGallery = function (arg) {
1194
+ return this.each(function (index, gallery) {
1195
+
1196
+ var $gallery = $(gallery);
1197
+ $gallery.addClass('justified-gallery');
1198
+
1199
+ var controller = $gallery.data('jg.controller');
1200
+ if (typeof controller === 'undefined') {
1201
+ // Create controller and assign it to the object data
1202
+ if (typeof arg !== 'undefined' && arg !== null && $.type(arg) !== 'object') {
1203
+ if (arg === 'destroy') return; // Just a call to an unexisting object
1204
+ throw 'The argument must be an object';
1205
+ }
1206
+ controller = new JustifiedGallery($gallery, $.extend({}, JustifiedGallery.prototype.defaults, arg));
1207
+ $gallery.data('jg.controller', controller);
1208
+ } else if (arg === 'norewind') {
1209
+ // In this case we don't rewind: we analyze only the latest images (e.g. to complete the last unfinished row
1210
+ // ... left to be more readable
1211
+ } else if (arg === 'destroy') {
1212
+ controller.destroy();
1213
+ return;
1214
+ } else {
1215
+ // In this case Justified Gallery has been called again changing only some options
1216
+ controller.updateSettings(arg);
1217
+ controller.rewind();
1218
+ }
1219
+
1220
+ // Update the entries list
1221
+ if (!controller.updateEntries(arg === 'norewind')) return;
1222
+
1223
+ // Init justified gallery
1224
+ controller.init();
1225
+
1226
+ });
1227
+ };
1228
+
1229
+ }));