j1-template 2023.9.2 → 2023.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (739) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_collection.html +1 -1
  3. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +1 -1
  4. data/_includes/themes/j1/layouts/content_generator_page.html +1 -1
  5. data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
  6. data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
  7. data/_includes/themes/j1/layouts/layout_metadata_generator.html +1 -1
  8. data/_includes/themes/j1/layouts/layout_module_generator.html +1 -1
  9. data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -1
  10. data/_includes/themes/j1/modules/attics/generator.html +1 -1
  11. data/_includes/themes/j1/modules/navigator/generator.html +1 -1
  12. data/_includes/themes/j1/modules/searcher/generator.html +1 -1
  13. data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +1 -1
  14. data/_includes/themes/j1/procedures/blocks/footer/boxes/about_box.proc +1 -1
  15. data/_includes/themes/j1/procedures/blocks/footer/boxes/contacts_box.proc +1 -1
  16. data/_includes/themes/j1/procedures/blocks/footer/boxes/issue.proc +1 -1
  17. data/_includes/themes/j1/procedures/blocks/footer/boxes/legal_statements.proc +1 -1
  18. data/_includes/themes/j1/procedures/blocks/footer/boxes/links_box.proc +1 -1
  19. data/_includes/themes/j1/procedures/blocks/footer/boxes/news_box.proc +1 -1
  20. data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +1 -1
  21. data/_includes/themes/j1/procedures/blocks/get_wave.proc +1 -1
  22. data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
  23. data/_includes/themes/j1/procedures/collections/pager.proc +1 -1
  24. data/_includes/themes/j1/procedures/global/attributes_loader.proc +1 -1
  25. data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +1 -1
  26. data/_includes/themes/j1/procedures/global/collect_page_options.proc +1 -1
  27. data/_includes/themes/j1/procedures/global/create_bs_button.proc +1 -1
  28. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -1
  29. data/_includes/themes/j1/procedures/global/date-german.proc +1 -1
  30. data/_includes/themes/j1/procedures/global/get_category.proc +1 -1
  31. data/_includes/themes/j1/procedures/global/get_category_item.proc +1 -1
  32. data/_includes/themes/j1/procedures/global/get_documents_dir.proc +1 -1
  33. data/_includes/themes/j1/procedures/global/get_page_path.proc +1 -1
  34. data/_includes/themes/j1/procedures/global/get_page_url.proc +1 -1
  35. data/_includes/themes/j1/procedures/global/select_color.proc +1 -1
  36. data/_includes/themes/j1/procedures/global/select_font_size.proc +1 -1
  37. data/_includes/themes/j1/procedures/global/select_icon_size.proc +1 -1
  38. data/_includes/themes/j1/procedures/global/select_location.proc +1 -1
  39. data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +1 -1
  40. data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +1 -1
  41. data/_includes/themes/j1/procedures/global/set_image_block.proc +1 -1
  42. data/_includes/themes/j1/procedures/global/setup.proc +1 -1
  43. data/_includes/themes/j1/procedures/layouts/content_writer.proc +1 -1
  44. data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
  45. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  46. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +1 -1
  47. data/_includes/themes/j1/procedures/posts/collate_calendar.proc +1 -1
  48. data/_includes/themes/j1/procedures/posts/collate_list.proc +1 -1
  49. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
  50. data/_includes/themes/j1/procedures/posts/create_ad_block.proc +1 -1
  51. data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
  52. data/_includes/themes/j1/procedures/posts/pager.proc +1 -1
  53. data/_layouts/_home.html +1 -1
  54. data/_layouts/autopage_category.html +1 -1
  55. data/_layouts/autopage_collection.html +1 -1
  56. data/_layouts/autopage_collections_tags.html +1 -1
  57. data/_layouts/autopage_tags.html +1 -1
  58. data/_layouts/collection.html +1 -1
  59. data/_layouts/compress.html +1 -1
  60. data/_layouts/default.html +1 -1
  61. data/_layouts/home.html +1 -1
  62. data/_layouts/news_panel_posts.html +1 -1
  63. data/_layouts/page.html +1 -1
  64. data/_layouts/post.html +1 -1
  65. data/_layouts/raw.html +1 -1
  66. data/apps/public/cc/cc.yml +1 -1
  67. data/assets/data/authclient.html +2 -2
  68. data/assets/data/banner.html +5 -5
  69. data/assets/data/carousel.json +1 -1
  70. data/assets/data/cookieconsent.html +2 -2
  71. data/assets/data/fab.html +2 -2
  72. data/assets/data/footer.html +2 -2
  73. data/assets/data/galeries.html +240 -0
  74. data/assets/data/gallery_customizer.html +2 -2
  75. data/assets/data/iso-639-language-codes-flags.json +1 -1
  76. data/assets/data/iso-639-language-codes.json +1 -1
  77. data/assets/data/j1_config.json +1 -1
  78. data/assets/data/masonry.html +99 -86
  79. data/assets/data/masterslider.html +2 -2
  80. data/assets/data/mdi_icons.json +1 -1
  81. data/assets/data/mdil_icons.json +1 -1
  82. data/assets/data/menu.html +2 -2
  83. data/assets/data/mmenu.html +2 -2
  84. data/assets/data/mmenu_sidebar.html +2 -2
  85. data/assets/data/mmenu_toc.html +2 -2
  86. data/assets/data/panel.html +2 -2
  87. data/assets/data/particles.yml +1 -1
  88. data/assets/data/private.json +1 -1
  89. data/assets/data/quicklinks.html +2 -2
  90. data/assets/data/rtext_resizer.html +2 -2
  91. data/assets/data/slick.html +2 -2
  92. data/assets/data/speak2me.html +2 -2
  93. data/assets/data/themes.bootswatch.json +1 -1
  94. data/assets/data/themes.json +1 -1
  95. data/assets/data/translator.html +2 -2
  96. data/assets/error_pages/HTTP204.html +1 -1
  97. data/assets/error_pages/HTTP400.html +1 -1
  98. data/assets/error_pages/HTTP401.html +1 -1
  99. data/assets/error_pages/HTTP403.html +1 -1
  100. data/assets/error_pages/HTTP404.html +1 -1
  101. data/assets/error_pages/HTTP444.html +1 -1
  102. data/assets/error_pages/HTTP445.html +1 -1
  103. data/assets/error_pages/HTTP446.html +1 -1
  104. data/assets/error_pages/HTTP447.html +1 -1
  105. data/assets/error_pages/HTTP448.html +1 -1
  106. data/assets/error_pages/HTTP500.html +1 -1
  107. data/assets/error_pages/HTTP501.html +1 -1
  108. data/assets/error_pages/HTTP502.html +1 -1
  109. data/assets/error_pages/HTTP503.html +1 -1
  110. data/assets/themes/j1/adapter/js/advertising.js +2 -2
  111. data/assets/themes/j1/adapter/js/algolia.js +2 -2
  112. data/assets/themes/j1/adapter/js/analytics.js +2 -2
  113. data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
  114. data/assets/themes/j1/adapter/js/attic.js +2 -2
  115. data/assets/themes/j1/adapter/js/bmd.js +2 -2
  116. data/assets/themes/j1/adapter/js/carousel.js +2 -2
  117. data/assets/themes/j1/adapter/js/clipboard.js +2 -2
  118. data/assets/themes/j1/adapter/js/comments.js +2 -2
  119. data/assets/themes/j1/adapter/js/cookieConsent.js +1 -1
  120. data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
  121. data/assets/themes/j1/adapter/js/customModule.js +2 -2
  122. data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
  123. data/assets/themes/j1/adapter/js/fab.js +2 -2
  124. data/assets/themes/j1/adapter/js/framer.js +2 -2
  125. data/assets/themes/j1/adapter/js/gallery.js +325 -0
  126. data/assets/themes/j1/adapter/js/iconPicker.js +2 -2
  127. data/assets/themes/j1/adapter/js/j1.js +2 -2
  128. data/assets/themes/j1/adapter/js/lazyLoader.js +2 -2
  129. data/assets/themes/j1/adapter/js/{justifiedGallery.js → lightGallery.js} +54 -48
  130. data/assets/themes/j1/adapter/js/lightbox.js +2 -2
  131. data/assets/themes/j1/adapter/js/logger.js +2 -2
  132. data/assets/themes/j1/adapter/js/lunr.js +2 -2
  133. data/assets/themes/j1/adapter/js/masonry.js +80 -13
  134. data/assets/themes/j1/adapter/js/masterslider.js +2 -2
  135. data/assets/themes/j1/adapter/js/mmenu.js +2 -2
  136. data/assets/themes/j1/adapter/js/navigator.js +2 -2
  137. data/assets/themes/j1/adapter/js/particles.js +2 -2
  138. data/assets/themes/j1/adapter/js/rangeSlider.js +2 -2
  139. data/assets/themes/j1/adapter/js/rouge.js +2 -2
  140. data/assets/themes/j1/adapter/js/rtable.js +2 -2
  141. data/assets/themes/j1/adapter/js/rtextResizer.js +2 -2
  142. data/assets/themes/j1/adapter/js/scroller.js +2 -2
  143. data/assets/themes/j1/adapter/js/slick.js +1 -1
  144. data/assets/themes/j1/adapter/js/speak2me.js +2 -2
  145. data/assets/themes/j1/adapter/js/themeToggler.js +2 -2
  146. data/assets/themes/j1/adapter/js/themer.js +2 -2
  147. data/assets/themes/j1/adapter/js/toccer.js +2 -2
  148. data/assets/themes/j1/adapter/js/translator.js +1 -1
  149. data/assets/themes/j1/adapter/js/waves.js +2 -2
  150. data/assets/themes/j1/core/country-flags/css/theme/uno.css +1 -1
  151. data/assets/themes/j1/core/country-flags/css/theme/uno.min.css +1 -1
  152. data/assets/themes/j1/core/css/animate.css +2 -2
  153. data/assets/themes/j1/core/css/icon-fonts/fontawesome.css +2 -2
  154. data/assets/themes/j1/core/css/icon-fonts/iconify.css +5 -5
  155. data/assets/themes/j1/core/css/icon-fonts/mdi.css +9 -9
  156. data/assets/themes/j1/core/css/icon-fonts/mdib.css +7 -7
  157. data/assets/themes/j1/core/css/icon-fonts/mdil.css +10 -10
  158. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1 -1
  159. data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +30 -30
  160. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +107 -100
  161. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  162. data/assets/themes/j1/core/css/vendor.css +10 -10
  163. data/assets/themes/j1/core/js/template.js +159 -19
  164. data/assets/themes/j1/core/js/template.min.js +6 -6
  165. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  166. data/assets/themes/j1/modules/backstretch/js/backstretch.js +1 -1
  167. data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
  168. data/assets/themes/j1/modules/bmd/js/bmd.js +1 -1
  169. data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
  170. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +2118 -2696
  171. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js.map +1 -0
  172. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +3 -3
  173. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -1
  174. data/assets/themes/j1/modules/carousel/css/carousel.css +1 -1
  175. data/assets/themes/j1/modules/carousel/css/carousel.min.css +1 -1
  176. data/assets/themes/j1/modules/carousel/css/carousel_transitions.css +1 -1
  177. data/assets/themes/j1/modules/carousel/css/carousel_transitions.min.css +1 -1
  178. data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
  179. data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
  180. data/assets/themes/j1/modules/clipboard/css/theme/uno.css +1 -1
  181. data/assets/themes/j1/modules/clipboard/css/theme/uno.min.css +1 -1
  182. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css +1 -1
  183. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css +1 -1
  184. data/assets/themes/j1/modules/dropdowns/js/cash.js +1 -1
  185. data/assets/themes/j1/modules/dropdowns/js/cash.min.js +1 -1
  186. data/assets/themes/j1/modules/dropdowns/js/dropdowns.js +1 -1
  187. data/assets/themes/j1/modules/dropdowns/js/dropdowns.min.js +1 -1
  188. data/assets/themes/j1/modules/fab/js/cash.js +1 -1
  189. data/assets/themes/j1/modules/fab/js/cash.min.js +1 -1
  190. data/assets/themes/j1/modules/fab/js/fab.js +1 -1
  191. data/assets/themes/j1/modules/fab/js/fab.min.js +1 -1
  192. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.css +1 -1
  193. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.min.css +1 -1
  194. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.js +1 -1
  195. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.min.js +1 -1
  196. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.min.js +0 -1
  197. data/assets/themes/j1/modules/iframeResizer/js/resizer.min.js +0 -1
  198. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.js +1 -1
  199. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.min.js +1 -1
  200. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.js +1 -1
  201. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.min.js +1 -1
  202. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
  203. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
  204. data/assets/themes/j1/modules/lightGallery/css/lg-transitions.css +984 -0
  205. data/assets/themes/j1/modules/lightGallery/css/lg-transitions.min.css +26 -0
  206. data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.css +1627 -0
  207. data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.min.css +25 -0
  208. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-autoplay.css +67 -0
  209. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-comments.css +157 -0
  210. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-fullscreen.css +32 -0
  211. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-medium-zoom.css +40 -0
  212. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-pager.css +115 -0
  213. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-rotate.css +74 -0
  214. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-share.css +168 -0
  215. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-thumbnail.css +133 -0
  216. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-video.css +169 -0
  217. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-zoom.css +141 -0
  218. data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.css +109 -0
  219. data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.min.css +19 -0
  220. data/assets/themes/j1/modules/lightGallery/{css/fonts → fonts}/lg.svg +35 -28
  221. data/assets/themes/j1/modules/lightGallery/fonts/lg.ttf +0 -0
  222. data/assets/themes/j1/modules/lightGallery/fonts/lg.woff +0 -0
  223. data/assets/themes/j1/modules/lightGallery/fonts/lg.woff2 +0 -0
  224. data/assets/themes/j1/modules/lightGallery/img/loading.gif +0 -0
  225. data/assets/themes/j1/modules/lightGallery/js/lightgallery.js +2759 -0
  226. data/assets/themes/j1/modules/lightGallery/js/lightgallery.min.js +25 -0
  227. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.js +275 -0
  228. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +26 -0
  229. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.js +230 -0
  230. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.min.js +26 -0
  231. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +160 -0
  232. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +26 -0
  233. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.js +223 -0
  234. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.min.js +27 -0
  235. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +157 -0
  236. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +26 -0
  237. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.js +164 -0
  238. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.min.js +26 -0
  239. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.js +299 -0
  240. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +26 -0
  241. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.js +244 -0
  242. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.min.js +27 -0
  243. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +509 -0
  244. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +26 -0
  245. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js +585 -0
  246. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js +27 -0
  247. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +207 -0
  248. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
  249. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.js +999 -0
  250. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +26 -0
  251. data/assets/themes/j1/modules/lightbox/css/lightbox.css +1 -1
  252. data/assets/themes/j1/modules/lightbox/css/lightbox.min.css +1 -1
  253. data/assets/themes/j1/modules/lightbox/css/theme/uno.css +1 -1
  254. data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -1
  255. data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
  256. data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
  257. data/assets/themes/j1/modules/lunr/js/j1.js +1 -1
  258. data/assets/themes/j1/modules/lunr/js/j1.min.js +1 -1
  259. data/assets/themes/j1/modules/masonry/js/utils/images_loaded.js +439 -0
  260. data/assets/themes/j1/modules/masonry/js/utils/images_loaded.min.js +12 -0
  261. data/assets/themes/j1/modules/masterslider/css/theme/uno.css +1 -1
  262. data/assets/themes/j1/modules/masterslider/css/theme/uno.min.css +1 -1
  263. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +1 -1
  264. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
  265. data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +1 -1
  266. data/assets/themes/j1/modules/mmenuLight/js/mmenu.min.js +1 -1
  267. data/assets/themes/j1/modules/mmenuLight/js/mmenu.polyfills.js +118 -0
  268. data/assets/themes/j1/modules/particles/skies/cavern1.png +0 -0
  269. data/assets/themes/j1/modules/particles/skies/cavern2.png +0 -0
  270. data/assets/themes/j1/modules/particles/skies/chrome.png +0 -0
  271. data/assets/themes/j1/modules/particles/skies/deep-space.jpg +0 -0
  272. data/assets/themes/j1/modules/particles/skies/deepblue.png +0 -0
  273. data/assets/themes/j1/modules/particles/skies/fire.png +0 -0
  274. data/assets/themes/j1/modules/particles/skies/fog.png +0 -0
  275. data/assets/themes/j1/modules/particles/skies/sky1.png +0 -0
  276. data/assets/themes/j1/modules/particles/skies/sky2.png +0 -0
  277. data/assets/themes/j1/modules/particles/skies/sky3.png +0 -0
  278. data/assets/themes/j1/modules/particles/skies/sky4.png +0 -0
  279. data/assets/themes/j1/modules/particles/skies/sky5.png +0 -0
  280. data/assets/themes/j1/modules/particles/skies/space1.png +0 -0
  281. data/assets/themes/j1/modules/particles/skies/space2.png +0 -0
  282. data/assets/themes/j1/modules/particles/skies/space3.png +0 -0
  283. data/assets/themes/j1/modules/particles/skies/starfield.png +0 -0
  284. data/assets/themes/j1/modules/particles/skies/sunorbit.png +0 -0
  285. data/assets/themes/j1/modules/particles/skies/sunset.png +0 -0
  286. data/assets/themes/j1/modules/particles/skies/toxic.png +0 -0
  287. data/assets/themes/j1/modules/particles/skies/underwater1.png +0 -0
  288. data/assets/themes/j1/modules/particles/skies/underwater2.png +0 -0
  289. data/assets/themes/j1/modules/particles/skies/underwater3.png +0 -0
  290. data/assets/themes/j1/modules/particles/skies/wtf.png +0 -0
  291. data/assets/themes/j1/modules/particles/sprites/slime.png +0 -0
  292. data/assets/themes/j1/modules/particles/sprites/slimeeyes.png +0 -0
  293. data/assets/themes/j1/modules/particles/sprites/snake.png +0 -0
  294. data/assets/themes/j1/modules/particles/sprites/snowflakes.png +0 -0
  295. data/assets/themes/j1/modules/particles/sprites/snowflakes_large.png +0 -0
  296. data/assets/themes/j1/modules/popper/js/popper.min.js +0 -1
  297. data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.css +1 -1
  298. data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.min.css +1 -1
  299. data/assets/themes/j1/modules/rouge/css/base16/theme.css +1 -1
  300. data/assets/themes/j1/modules/rouge/css/base16/theme.min.css +1 -1
  301. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.css +1 -1
  302. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.min.css +1 -1
  303. data/assets/themes/j1/modules/rouge/css/base16.light/theme.css +1 -1
  304. data/assets/themes/j1/modules/rouge/css/base16.light/theme.min.css +1 -1
  305. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.css +1 -1
  306. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.min.css +1 -1
  307. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.css +1 -1
  308. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.min.css +1 -1
  309. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.css +1 -1
  310. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.min.css +1 -1
  311. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.css +1 -1
  312. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.min.css +1 -1
  313. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.css +1 -1
  314. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.min.css +1 -1
  315. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.css +1 -1
  316. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.min.css +1 -1
  317. data/assets/themes/j1/modules/rouge/css/colorful/theme.css +1 -1
  318. data/assets/themes/j1/modules/rouge/css/colorful/theme.min.css +1 -1
  319. data/assets/themes/j1/modules/rouge/css/github/theme.css +1 -1
  320. data/assets/themes/j1/modules/rouge/css/github/theme.min.css +1 -1
  321. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.css +1 -1
  322. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.min.css +1 -1
  323. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.css +1 -1
  324. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.min.css +1 -1
  325. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.css +1 -1
  326. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.min.css +1 -1
  327. data/assets/themes/j1/modules/rouge/css/igorpro/theme.css +1 -1
  328. data/assets/themes/j1/modules/rouge/css/igorpro/theme.min.css +1 -1
  329. data/assets/themes/j1/modules/rouge/css/molokai/theme.css +1 -1
  330. data/assets/themes/j1/modules/rouge/css/molokai/theme.min.css +1 -1
  331. data/assets/themes/j1/modules/rouge/css/monokai/theme.css +1 -1
  332. data/assets/themes/j1/modules/rouge/css/monokai/theme.min.css +1 -1
  333. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.css +1 -1
  334. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.min.css +1 -1
  335. data/assets/themes/j1/modules/rouge/css/pastie/theme.css +1 -1
  336. data/assets/themes/j1/modules/rouge/css/pastie/theme.min.css +1 -1
  337. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.css +1 -1
  338. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.min.css +1 -1
  339. data/assets/themes/j1/modules/rouge/css/themes.txt +1 -1
  340. data/assets/themes/j1/modules/rouge/css/tulip/theme.css +1 -1
  341. data/assets/themes/j1/modules/rouge/css/tulip/theme.min.css +1 -1
  342. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.css +1 -1
  343. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.min.css +1 -1
  344. data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +1 -1
  345. data/assets/themes/j1/modules/rouge/css/uno.light/theme.min.css +1 -1
  346. data/assets/themes/j1/modules/rouge/js/select.js +1 -1
  347. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +1 -1
  348. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +1 -1
  349. data/assets/themes/j1/modules/rtable/js/rtable.js +1 -1
  350. data/assets/themes/j1/modules/rtable/js/rtable.min.js +1 -1
  351. data/assets/themes/j1/modules/scroller/css/theme/uno.css +1 -1
  352. data/assets/themes/j1/modules/scroller/css/theme/uno.min.css +1 -1
  353. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  354. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +1 -1
  355. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +1 -1
  356. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js +0 -1
  357. data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +1 -1
  358. data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
  359. data/assets/themes/j1/modules/spinner/css/spin.css +1 -1
  360. data/assets/themes/j1/modules/spinner/css/spin.min.css +1 -1
  361. data/assets/themes/j1/modules/spinner/js/spin.js +1 -1
  362. data/assets/themes/j1/modules/spinner/js/spin.min.js +1 -1
  363. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
  364. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
  365. data/assets/themes/j1/modules/translator/css/translator.css +1 -1
  366. data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
  367. data/assets/themes/j1/modules/videojs/css/themes/city.css +74 -74
  368. data/assets/themes/j1/modules/videojs/css/themes/city.min.css +3 -4
  369. data/assets/themes/j1/modules/videojs/css/themes/fantasy.css +3 -3
  370. data/assets/themes/j1/modules/videojs/css/themes/fantasy.min.css +3 -4
  371. data/assets/themes/j1/modules/videojs/css/themes/forest.css +4 -3
  372. data/assets/themes/j1/modules/videojs/css/themes/forest.min.css +3 -4
  373. data/assets/themes/j1/modules/videojs/css/themes/sea.css +2 -2
  374. data/assets/themes/j1/modules/videojs/css/themes/sea.min.css +3 -4
  375. data/assets/themes/j1/modules/videojs/css/themes/uno.css +151 -0
  376. data/assets/themes/j1/modules/videojs/css/themes/uno.min.css +17 -0
  377. data/assets/themes/j1/modules/videojs/css/video-js.css +12 -0
  378. data/assets/themes/j1/modules/videojs/css/video-js.min.css +12 -0
  379. data/assets/themes/j1/modules/videojs/js/plugins/dm/LICENSE +19 -0
  380. data/assets/themes/j1/modules/videojs/js/plugins/dm/README.md +94 -0
  381. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/README.md +7 -0
  382. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.min.js +29 -0
  383. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.player.min.js +80 -0
  384. data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.js +603 -0
  385. data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.min.js +16 -0
  386. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-controls.html +18 -0
  387. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-javascript.html +27 -0
  388. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-playlist.html +19 -0
  389. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/global-parameters.html +28 -0
  390. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/simple.html +20 -0
  391. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/switch.html +37 -0
  392. data/assets/themes/j1/modules/videojs/js/plugins/vm/LICENSE +21 -0
  393. data/assets/themes/j1/modules/videojs/js/plugins/vm/README.md +15 -0
  394. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/README.md +1818 -0
  395. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/player.min.js +23 -0
  396. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.js +3562 -0
  397. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.min.js +35 -0
  398. data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/index.html +33 -0
  399. data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/player/index.html +37 -0
  400. data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.js +521 -0
  401. data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.min.js +15 -0
  402. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/Readme.txt +20 -0
  403. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/WistiaPlayer.ts +1617 -0
  404. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/wistia.min.js +2 -0
  405. data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.js +383 -0
  406. data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.min.js +18 -0
  407. data/assets/themes/j1/modules/videojs/js/plugins/yt/README.md +115 -0
  408. data/assets/themes/j1/modules/videojs/js/plugins/yt/api/youtube.min.js +20 -0
  409. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/global-parameters.html +32 -0
  410. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/simple.html +20 -0
  411. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/switch.html +37 -0
  412. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-controls.html +18 -0
  413. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-javascript.html +27 -0
  414. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-list.html +19 -0
  415. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-playlist.html +19 -0
  416. data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.js +832 -0
  417. data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.min.js +16 -0
  418. data/assets/themes/j1/modules/videojs/js/video.js +40610 -32915
  419. data/assets/themes/j1/modules/videojs/js/video.min.js +33 -20
  420. data/lib/j1/version.rb +1 -1
  421. data/lib/j1_app/j1_auth_manager/auth_manager.rb +1 -1
  422. data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +1 -1
  423. data/lib/j1_app/omniauth/strategies/github.rb +1 -1
  424. data/lib/starter_web/Gemfile +3 -3
  425. data/lib/starter_web/README.md +5 -5
  426. data/lib/starter_web/_config.yml +2 -2
  427. data/lib/starter_web/_data/_defaults/categories.yml +1 -1
  428. data/lib/starter_web/_data/_defaults/colors.yml +1 -1
  429. data/lib/starter_web/_data/_defaults/font_sizes.yml +1 -1
  430. data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
  431. data/lib/starter_web/_data/_defaults/private.yml +1 -1
  432. data/lib/starter_web/_data/_defaults/resources.yml +1 -1
  433. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -1
  434. data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +1 -1
  435. data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +1 -1
  436. data/lib/starter_web/_data/blocks/banner.yml +1 -1
  437. data/lib/starter_web/_data/blocks/defaults/banner.yml +1 -1
  438. data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
  439. data/lib/starter_web/_data/blocks/defaults/panel.yml +1 -1
  440. data/lib/starter_web/_data/blocks/footer.yml +2 -2
  441. data/lib/starter_web/_data/blocks/panel.yml +1 -1
  442. data/lib/starter_web/_data/categories.yml +1 -1
  443. data/lib/starter_web/_data/colors.yml +1 -1
  444. data/lib/starter_web/_data/font_sizes.yml +1 -1
  445. data/lib/starter_web/_data/j1_config.yml +1 -1
  446. data/lib/starter_web/_data/layouts/collection.yml +1 -1
  447. data/lib/starter_web/_data/layouts/default.yml +1 -1
  448. data/lib/starter_web/_data/layouts/home.yml +1 -1
  449. data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -1
  450. data/lib/starter_web/_data/layouts/page.yml +1 -1
  451. data/lib/starter_web/_data/layouts/post.yml +1 -1
  452. data/lib/starter_web/_data/layouts/raw.yml +1 -1
  453. data/lib/starter_web/_data/modules/advertising.yml +2 -2
  454. data/lib/starter_web/_data/modules/analytics.yml +1 -1
  455. data/lib/starter_web/_data/modules/attics.yml +1 -1
  456. data/lib/starter_web/_data/modules/authentication.yml +1 -1
  457. data/lib/starter_web/_data/modules/blog_navigator.yml +1 -1
  458. data/lib/starter_web/_data/modules/carousel.yml +1 -1
  459. data/lib/starter_web/_data/modules/comments.yml +1 -1
  460. data/lib/starter_web/_data/modules/cookieconsent.yml +1 -1
  461. data/lib/starter_web/_data/modules/cookies.yml +1 -1
  462. data/lib/starter_web/_data/modules/defaults/advertising.yml +1 -1
  463. data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -1
  464. data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
  465. data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -1
  466. data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +1 -1
  467. data/lib/starter_web/_data/modules/defaults/carousel.yml +1 -1
  468. data/lib/starter_web/_data/modules/defaults/comments.yml +1 -1
  469. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +1 -1
  470. data/lib/starter_web/_data/modules/defaults/cookies.yml +1 -1
  471. data/lib/starter_web/_data/modules/defaults/dropdowns.yml +1 -1
  472. data/lib/starter_web/_data/modules/defaults/fab.yml +1 -1
  473. data/lib/starter_web/_data/modules/defaults/framer.yml +1 -1
  474. data/lib/starter_web/_data/modules/defaults/{justifiedGallery.yml → gallery.yml} +18 -28
  475. data/lib/starter_web/_data/modules/defaults/iconPicker.yml +1 -1
  476. data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +1 -1
  477. data/lib/starter_web/_data/modules/defaults/lightGallery.yml +8 -6
  478. data/lib/starter_web/_data/modules/defaults/lightbox.yml +1 -1
  479. data/lib/starter_web/_data/modules/defaults/log4javascript.yml +1 -1
  480. data/lib/starter_web/_data/modules/defaults/log4r.yml +1 -1
  481. data/lib/starter_web/_data/modules/defaults/lunr.yml +1 -1
  482. data/lib/starter_web/_data/modules/defaults/masonry.yml +53 -13
  483. data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
  484. data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
  485. data/lib/starter_web/_data/modules/defaults/particles.yml +1 -1
  486. data/lib/starter_web/_data/modules/defaults/rangeSlider.yml +1 -1
  487. data/lib/starter_web/_data/modules/defaults/rtable.yml +1 -1
  488. data/lib/starter_web/_data/modules/defaults/scroller.yml +1 -1
  489. data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
  490. data/lib/starter_web/_data/modules/defaults/speak2me.yml +1 -1
  491. data/lib/starter_web/_data/modules/defaults/theme_toggler.yml +1 -1
  492. data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
  493. data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
  494. data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
  495. data/lib/starter_web/_data/modules/defaults/waves.yml +1 -1
  496. data/lib/starter_web/_data/modules/dropdowns.yml +1 -1
  497. data/lib/starter_web/_data/modules/fab.yml +1 -1
  498. data/lib/starter_web/_data/modules/framer.yml +1 -1
  499. data/lib/starter_web/_data/modules/gallery.yml +874 -0
  500. data/lib/starter_web/_data/modules/iconPicker.yml +1 -1
  501. data/lib/starter_web/_data/modules/lazyLoader.yml +1 -1
  502. data/lib/starter_web/_data/modules/lightGallery.yml +8 -5
  503. data/lib/starter_web/_data/modules/lightbox.yml +1 -1
  504. data/lib/starter_web/_data/modules/log4javascript.yml +1 -1
  505. data/lib/starter_web/_data/modules/log4r.yml +1 -1
  506. data/lib/starter_web/_data/modules/lunr.yml +1 -1
  507. data/lib/starter_web/_data/modules/masonry.yml +401 -87
  508. data/lib/starter_web/_data/modules/masterslider.yml +1 -1
  509. data/lib/starter_web/_data/modules/navigator.yml +1 -1
  510. data/lib/starter_web/_data/modules/navigator_menu.yml +18 -4
  511. data/lib/starter_web/_data/modules/nbinteract.yml +1 -1
  512. data/lib/starter_web/_data/modules/particles.yml +1 -1
  513. data/lib/starter_web/_data/modules/rangeSlider.yml +1 -1
  514. data/lib/starter_web/_data/modules/rtable.yml +1 -1
  515. data/lib/starter_web/_data/modules/scroller.yml +1 -1
  516. data/lib/starter_web/_data/modules/slick.yml +1 -1
  517. data/lib/starter_web/_data/modules/speak2me.yml +1 -1
  518. data/lib/starter_web/_data/modules/theme_toggler.yml +1 -1
  519. data/lib/starter_web/_data/modules/themer.yml +1 -1
  520. data/lib/starter_web/_data/modules/toccer.yml +1 -1
  521. data/lib/starter_web/_data/modules/translator.yml +1 -1
  522. data/lib/starter_web/_data/modules/waves.yml +1 -1
  523. data/lib/starter_web/_data/plugins/defaults/feed.yml +1 -1
  524. data/lib/starter_web/_data/plugins/defaults/paginator.yml +1 -1
  525. data/lib/starter_web/_data/plugins/defaults/seo-tags.yml +1 -1
  526. data/lib/starter_web/_data/plugins/defaults/sitemap.yml +1 -1
  527. data/lib/starter_web/_data/plugins/feed.yml +1 -1
  528. data/lib/starter_web/_data/plugins/paginator.yml +1 -1
  529. data/lib/starter_web/_data/plugins/seo-tags.yml +1 -1
  530. data/lib/starter_web/_data/plugins/sitemap.yml +1 -1
  531. data/lib/starter_web/_data/private.yml +1 -1
  532. data/lib/starter_web/_data/resources.yml +190 -118
  533. data/lib/starter_web/_data/templates/feed.xml +2 -2
  534. data/lib/starter_web/_data/templates/robots.txt +1 -1
  535. data/lib/starter_web/_data/templates/seo-tags.html +1 -1
  536. data/lib/starter_web/_data/templates/sitemap.xml +1 -1
  537. data/lib/starter_web/_data/utilities/defaults/util_srv.yml +1 -1
  538. data/lib/starter_web/_data/utilities/util_srv.yml +1 -1
  539. data/lib/starter_web/_includes/custom/static/bs5_accordion.html +1 -1
  540. data/lib/starter_web/_includes/custom/templates/bs5_accordion.html +1 -1
  541. data/lib/starter_web/_includes/custom/templates/collection_panel.html +1 -1
  542. data/lib/starter_web/_includes/custom/templates/custom_header.html +1 -1
  543. data/lib/starter_web/_includes/custom/templates/people_panel.html +1 -1
  544. data/lib/starter_web/_includes/google/static/google_ad__your-slot-id.html +1 -1
  545. data/lib/starter_web/_includes/google/templates/google_ads.html +1 -1
  546. data/lib/starter_web/_plugins/asciidoctor/admonition-block-answer.rb +3 -2
  547. data/lib/starter_web/_plugins/asciidoctor/admonition-block-question.rb +7 -6
  548. data/lib/starter_web/_plugins/asciidoctor/banner.rb +8 -5
  549. data/lib/starter_web/_plugins/asciidoctor/callout.rb +10 -8
  550. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +14 -8
  551. data/lib/starter_web/_plugins/asciidoctor/conum.rb +3 -1
  552. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +83 -0
  553. data/lib/starter_web/_plugins/asciidoctor/fab-icon-inline.rb +8 -5
  554. data/lib/starter_web/_plugins/asciidoctor/fas-icon-inline.rb +8 -5
  555. data/lib/starter_web/_plugins/asciidoctor/flag-icon-inline.rb +8 -5
  556. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +50 -44
  557. data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +56 -52
  558. data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +52 -47
  559. data/lib/starter_web/_plugins/asciidoctor/iconify-icon-inline.rb +8 -5
  560. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +88 -82
  561. data/lib/starter_web/_plugins/asciidoctor/lorem_inline.rb +5 -4
  562. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +13 -7
  563. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +54 -48
  564. data/lib/starter_web/_plugins/asciidoctor/mdi-icon-inline.rb +2 -1
  565. data/lib/starter_web/_plugins/asciidoctor/mdib-icon-inline.rb +2 -1
  566. data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +2 -1
  567. data/lib/starter_web/_plugins/asciidoctor/panel.rb +9 -5
  568. data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +4 -3
  569. data/lib/starter_web/_plugins/asciidoctor/range-slider-block.rb +49 -44
  570. data/lib/starter_web/_plugins/asciidoctor/shout-block.rb +6 -7
  571. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +12 -6
  572. data/lib/starter_web/_plugins/asciidoctor/textbook-block.rb +9 -5
  573. data/lib/starter_web/_plugins/asciidoctor/twitter-emoji-inline.rb +4 -1
  574. data/lib/starter_web/_plugins/asciidoctor/video-block.rb +65 -0
  575. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +82 -0
  576. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +82 -0
  577. data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +87 -0
  578. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +95 -0
  579. data/lib/starter_web/_plugins/filter/debug.rb +1 -1
  580. data/lib/starter_web/_plugins/filter/encodeBase64.rb +1 -1
  581. data/lib/starter_web/_plugins/filter/encryptAES.rb +1 -1
  582. data/lib/starter_web/_plugins/filter/filters.rb +1 -1
  583. data/lib/starter_web/_plugins/filter/liquify.rb +1 -1
  584. data/lib/starter_web/_plugins/filter/minifyJS.rb +1 -1
  585. data/lib/starter_web/_plugins/filter/minifyJSON.rb +1 -1
  586. data/lib/starter_web/_plugins/filter/prettify.rb +1 -1
  587. data/lib/starter_web/_plugins/filter/xml_prettify.rb +1 -1
  588. data/lib/starter_web/_plugins/helper/symlink_watcher.rb +1 -1
  589. data/lib/starter_web/_plugins/i18n/date.rb +1 -1
  590. data/lib/starter_web/_plugins/index/lunr.rb +2 -2
  591. data/lib/starter_web/_plugins/seo/j1-feed.rb +1 -1
  592. data/lib/starter_web/_plugins/seo/j1-seo-tags.rb +1 -1
  593. data/lib/starter_web/_plugins/seo/j1-sitemap.rb +1 -1
  594. data/lib/starter_web/assets/images/icons/videojs/videojs-logo.png +0 -0
  595. data/lib/starter_web/assets/images/icons/videojs/videojs-poster.png +0 -0
  596. data/lib/starter_web/assets/videos/gallery/_video_james_carpool_caraoke_poster.jpg +0 -0
  597. data/lib/starter_web/assets/videos/gallery/html5/video1-poster.jpg +0 -0
  598. data/lib/starter_web/assets/videos/gallery/html5/video1.subtitles.vtt +39 -0
  599. data/lib/starter_web/assets/videos/gallery/html5/video2-poster.jpg +0 -0
  600. data/lib/starter_web/assets/videos/gallery/html5/303/237video2-poster.jpg +0 -0
  601. data/lib/starter_web/assets/videos/gallery/video1-poster.1920..jpg +0 -0
  602. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.1920.jpg +0 -0
  603. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.jpg +0 -0
  604. data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
  605. data/lib/starter_web/assets/videos/gallery/video_james_carpool_caraoke_poster.jpg +0 -0
  606. data/lib/starter_web/config.ru +1 -1
  607. data/lib/starter_web/dot.gitattributes +1 -1
  608. data/lib/starter_web/dot.nojekyll +1 -1
  609. data/lib/starter_web/package.json +1 -1
  610. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +5 -0
  611. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +3 -0
  612. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +1 -0
  613. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +11 -7
  614. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +27 -11
  615. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +3 -0
  616. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +12 -7
  617. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +14 -7
  618. data/lib/starter_web/pages/public/features/general.adoc +12 -1
  619. data/lib/starter_web/pages/public/features/template.adoc +37 -38
  620. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +4 -3
  621. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +2 -3
  622. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +2 -2
  623. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +2 -2
  624. data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +6 -5
  625. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -0
  626. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +4 -0
  627. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +6 -5
  628. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +2 -0
  629. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +7 -2
  630. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +7 -2
  631. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +12 -3
  632. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +4 -2
  633. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +49 -40
  634. data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +264 -64
  635. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +5 -2
  636. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +1 -0
  637. data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -1
  638. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
  639. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
  640. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -39
  641. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
  642. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +3 -2
  643. data/lib/starter_web/pages/public/plans/plans.adoc +14 -5
  644. data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +69 -0
  645. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/readme +0 -0
  646. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +1 -1
  647. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  648. data/lib/starter_web/utilsrv/package.json +1 -1
  649. data/lib/starter_web/utilsrv/server.js +1 -1
  650. metadata +170 -94
  651. data/assets/data/galleries.json +0 -156
  652. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +0 -360
  653. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.js +0 -1694
  654. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.min.js +0 -19
  655. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.map +0 -1
  656. data/assets/themes/j1/modules/iframeResizer/js/resizer.map +0 -1
  657. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.css +0 -110
  658. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -110
  659. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/theme/uno.css +0 -23
  660. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -1229
  661. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.js +0 -1229
  662. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -8
  663. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/.csslintrc +0 -20
  664. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/justifiedGallery.less +0 -113
  665. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.css +0 -110
  666. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.min.css +0 -110
  667. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.js +0 -1245
  668. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.min.js +0 -7
  669. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.css +0 -110
  670. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.min.css +0 -110
  671. data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.css +0 -58
  672. data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
  673. data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.css +0 -778
  674. data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.min.css +0 -5
  675. data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.css +0 -981
  676. data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.min.css +0 -5
  677. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.eot +0 -0
  678. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.ttf +0 -0
  679. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.woff +0 -0
  680. data/assets/themes/j1/modules/lightGallery/css/themes/uno.css +0 -262
  681. data/assets/themes/j1/modules/lightGallery/css/themes/uno.min.css +0 -15
  682. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.js +0 -1375
  683. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.min.js +0 -5
  684. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +0 -1362
  685. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.min.js +0 -4
  686. data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.js +0 -206
  687. data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.min.js +0 -5
  688. data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.js +0 -126
  689. data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js +0 -5
  690. data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.js +0 -101
  691. data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js +0 -5
  692. data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.js +0 -105
  693. data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js +0 -5
  694. data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.js +0 -107
  695. data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.min.js +0 -5
  696. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +0 -486
  697. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +0 -7
  698. data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.js +0 -527
  699. data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.min.js +0 -5
  700. data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js.map +0 -1
  701. data/assets/themes/j1/modules/popper/js/popper.min.js.map +0 -1
  702. data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.js +0 -2337
  703. data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.min.js +0 -1
  704. data/assets/themes/j1/modules/rangeSlider/js/9.1.0/nouislider.js +0 -2534
  705. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js.map +0 -1
  706. data/assets/themes/j1/modules/themeSwitcher/js/_unsued/switcher.1.js +0 -454
  707. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.js +0 -4
  708. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.min.js +0 -4
  709. data/assets/themes/j1/modules/vimeo/player/js/player.js +0 -2138
  710. data/assets/themes/j1/modules/vimeo/player/js/player.js.map +0 -1
  711. data/assets/themes/j1/modules/vimeo/player/js/player.min.js +0 -2
  712. data/assets/themes/j1/modules/vimeo/player/js/player.min.js.map +0 -1
  713. data/lib/starter_web/_data/modules/justifiedGallery.yml +0 -556
  714. data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
  715. data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
  716. /data/assets/themes/j1/modules/backstretch/{LICENSE-MIT → LICENSE} +0 -0
  717. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/animation-w.png +0 -0
  718. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/customize-w.png +0 -0
  719. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/dynamic-w.png +0 -0
  720. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/facebook-icon.svg +0 -0
  721. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/googleplus-icon.svg +0 -0
  722. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/html5-w.png +0 -0
  723. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/linked-in.png +0 -0
  724. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/module-w.png +0 -0
  725. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/play-button.png +0 -0
  726. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/responsive-w.png +0 -0
  727. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/thumb-w.png +0 -0
  728. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/touch-w.png +0 -0
  729. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter-icon.svg +0 -0
  730. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter.png +0 -0
  731. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/video1-w.png +0 -0
  732. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom-w.png +0 -0
  733. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom.png +0 -0
  734. /data/assets/themes/j1/modules/lightGallery/{css/img → images}/loading.gif +0 -0
  735. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/video-play.png +0 -0
  736. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/vimeo-play.png +0 -0
  737. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/youtube-play.png +0 -0
  738. /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.js +0 -0
  739. /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.min.js +0 -0
@@ -1,1375 +0,0 @@
1
- /*! lightgallery - v1.6.12 - 2019-02-19
2
- * J1 Extended version to support more providers
3
- * http://sachinchoolur.github.io/lightGallery/
4
- * Copyright (C) 2022 Sachin N; Licensed GPLv3 */
5
-
6
- !(function (root, factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- // AMD. Register as an anonymous module unless amdModuleId is set
9
- define(['jquery'], function (a0) {
10
- return (factory(a0));
11
- });
12
- } else if (typeof module === 'object' && module.exports) {
13
- // Node. Does not work with strict CommonJS, but
14
- // only CommonJS-like environments that support module.exports,
15
- // like Node.
16
- module.exports = factory(require('jquery'));
17
- } else {
18
- factory(root["jQuery"]);
19
- }
20
- }(this, function ($) {
21
-
22
- (function() {
23
- 'use strict';
24
-
25
- var defaults = {
26
-
27
- mode: 'lg-slide',
28
-
29
- // Ex : 'ease'
30
- cssEasing: 'ease',
31
-
32
- //'for jquery animation'
33
- easing: 'linear',
34
- speed: 600,
35
- height: '100%',
36
- width: '100%',
37
- addClass: '',
38
- startClass: 'lg-start-zoom',
39
- backdropDuration: 150,
40
- hideBarsDelay: 6000,
41
-
42
- useLeft: false,
43
-
44
- closable: true,
45
- loop: true,
46
- escKey: true,
47
- keyPress: true,
48
- controls: true,
49
- slideEndAnimatoin: true,
50
- hideControlOnEnd: false,
51
- mousewheel: true,
52
-
53
- getCaptionFromTitleOrAlt: true,
54
-
55
- // .lg-item || '.lg-sub-html'
56
- appendSubHtmlTo: '.lg-sub-html',
57
-
58
- subHtmlSelectorRelative: false,
59
-
60
- /**
61
- * @desc number of preload slides
62
- * will exicute only after the current slide is fully loaded.
63
- *
64
- * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th
65
- * slide will be loaded in the background after the 4th slide is fully loaded..
66
- * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ...
67
- *
68
- */
69
- preload: 1,
70
- showAfterLoad: true,
71
- selector: '',
72
- selectWithin: '',
73
- nextHtml: '',
74
- prevHtml: '',
75
-
76
- // 0, 1
77
- index: false,
78
-
79
- iframeMaxWidth: '100%',
80
-
81
- download: true,
82
- counter: true,
83
- appendCounterTo: '.lg-toolbar',
84
-
85
- swipeThreshold: 50,
86
- enableSwipe: true,
87
- enableDrag: true,
88
-
89
- dynamic: false,
90
- dynamicEl: [],
91
- galleryId: 1
92
- };
93
-
94
- function Plugin(element, options) {
95
-
96
- // Current lightGallery element
97
- this.el = element;
98
-
99
- // Current jquery element
100
- this.$el = $(element);
101
-
102
- // lightGallery settings
103
- this.s = $.extend({}, defaults, options);
104
-
105
- // When using dynamic mode, ensure dynamicEl is an array
106
- if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) {
107
- throw ('When using dynamic mode, you must also define dynamicEl as an Array.');
108
- }
109
-
110
- // lightGallery modules
111
- this.modules = {};
112
-
113
- // false when lightgallery complete first slide;
114
- this.lGalleryOn = false;
115
-
116
- this.lgBusy = false;
117
-
118
- // Timeout function for hiding controls;
119
- this.hideBartimeout = false;
120
-
121
- // To determine browser supports for touch events;
122
- this.isTouch = ('ontouchstart' in document.documentElement);
123
-
124
- // Disable hideControlOnEnd if sildeEndAnimation is true
125
- if (this.s.slideEndAnimatoin) {
126
- this.s.hideControlOnEnd = false;
127
- }
128
-
129
- // Gallery items
130
- if (this.s.dynamic) {
131
- this.$items = this.s.dynamicEl;
132
- } else {
133
- if (this.s.selector === 'this') {
134
- this.$items = this.$el;
135
- } else if (this.s.selector !== '') {
136
- if (this.s.selectWithin) {
137
- this.$items = $(this.s.selectWithin).find(this.s.selector);
138
- } else {
139
- this.$items = this.$el.find($(this.s.selector));
140
- }
141
- } else {
142
- this.$items = this.$el.children();
143
- }
144
- }
145
-
146
- // .lg-item
147
- this.$slide = '';
148
-
149
- // .lg-outer
150
- this.$outer = '';
151
-
152
- this.init();
153
-
154
- return this;
155
- }
156
-
157
- Plugin.prototype.init = function() {
158
-
159
- var _this = this;
160
-
161
- // s.preload should not be more than $item.length
162
- if (_this.s.preload > _this.$items.length) {
163
- _this.s.preload = _this.$items.length;
164
- }
165
-
166
- // if dynamic option is enabled execute immediately
167
- var _hash = window.location.hash;
168
- if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {
169
-
170
- _this.index = parseInt(_hash.split('&slide=')[1], 10);
171
-
172
- $('body').addClass('lg-from-hash');
173
- if (!$('body').hasClass('lg-on')) {
174
- setTimeout(function() {
175
- _this.build(_this.index);
176
- });
177
-
178
- $('body').addClass('lg-on');
179
- }
180
- }
181
-
182
- if (_this.s.dynamic) {
183
-
184
- _this.$el.trigger('onBeforeOpen.lg');
185
-
186
- _this.index = _this.s.index || 0;
187
-
188
- // prevent accidental double execution
189
- if (!$('body').hasClass('lg-on')) {
190
- setTimeout(function() {
191
- _this.build(_this.index);
192
- $('body').addClass('lg-on');
193
- });
194
- }
195
- } else {
196
-
197
- // Using different namespace for click because click event should not unbind if selector is same object('this')
198
- _this.$items.on('click.lgcustom', function(event) {
199
-
200
- // For IE8
201
- try {
202
- event.preventDefault();
203
- event.preventDefault();
204
- } catch (er) {
205
- event.returnValue = false;
206
- }
207
-
208
- _this.$el.trigger('onBeforeOpen.lg');
209
-
210
- _this.index = _this.s.index || _this.$items.index(this);
211
-
212
- // prevent accidental double execution
213
- if (!$('body').hasClass('lg-on')) {
214
- _this.build(_this.index);
215
- $('body').addClass('lg-on');
216
- }
217
- });
218
- }
219
-
220
- };
221
-
222
- Plugin.prototype.build = function(index) {
223
-
224
- var _this = this;
225
-
226
- _this.structure();
227
-
228
- // module constructor
229
- $.each($.fn.lightGallery.modules, function(key) {
230
- _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el);
231
- });
232
-
233
- // initiate slide function
234
- _this.slide(index, false, false, false);
235
-
236
- if (_this.s.keyPress) {
237
- _this.keyPress();
238
- }
239
-
240
- if (_this.$items.length > 1) {
241
-
242
- _this.arrow();
243
-
244
- setTimeout(function() {
245
- _this.enableDrag();
246
- _this.enableSwipe();
247
- }, 50);
248
-
249
- if (_this.s.mousewheel) {
250
- _this.mousewheel();
251
- }
252
- } else {
253
- _this.$slide.on('click.lg', function() {
254
- _this.$el.trigger('onSlideClick.lg');
255
- });
256
- }
257
-
258
- _this.counter();
259
-
260
- _this.closeGallery();
261
-
262
- _this.$el.trigger('onAfterOpen.lg');
263
-
264
- // Hide controllers if mouse doesn't move for some period
265
- _this.$outer.on('mousemove.lg click.lg touchstart.lg', function() {
266
-
267
- _this.$outer.removeClass('lg-hide-items');
268
-
269
- clearTimeout(_this.hideBartimeout);
270
-
271
- // Timeout will be cleared on each slide movement also
272
- _this.hideBartimeout = setTimeout(function() {
273
- _this.$outer.addClass('lg-hide-items');
274
- }, _this.s.hideBarsDelay);
275
-
276
- });
277
-
278
- _this.$outer.trigger('mousemove.lg');
279
-
280
- };
281
-
282
- Plugin.prototype.structure = function() {
283
- var list = '';
284
- var controls = '';
285
- var i = 0;
286
- var subHtmlCont = '';
287
- var template;
288
- var _this = this;
289
-
290
- $('body').append('<div class="lg-backdrop"></div>');
291
- $('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms');
292
-
293
- // Create gallery items
294
- for (i = 0; i < this.$items.length; i++) {
295
- list += '<div class="lg-item"></div>';
296
- }
297
-
298
- // Create controlls
299
- if (this.s.controls && this.$items.length > 1) {
300
- controls = '<div class="lg-actions">' +
301
- '<button class="lg-prev lg-icon">' + this.s.prevHtml + '</button>' +
302
- '<button class="lg-next lg-icon">' + this.s.nextHtml + '</button>' +
303
- '</div>';
304
- }
305
-
306
- if (this.s.appendSubHtmlTo === '.lg-sub-html') {
307
- subHtmlCont = '<div class="lg-sub-html"></div>';
308
- }
309
-
310
- template = '<div class="lg-outer ' + this.s.addClass + ' ' + this.s.startClass + '">' +
311
- '<div class="lg" style="width:' + this.s.width + '; height:' + this.s.height + '">' +
312
- '<div class="lg-inner">' + list + '</div>' +
313
- '<div class="lg-toolbar lg-group">' +
314
- '<span class="lg-close lg-icon"></span>' +
315
- '</div>' +
316
- controls +
317
- subHtmlCont +
318
- '</div>' +
319
- '</div>';
320
-
321
- $('body').append(template);
322
- this.$outer = $('.lg-outer');
323
- this.$slide = this.$outer.find('.lg-item');
324
-
325
- if (this.s.useLeft) {
326
- this.$outer.addClass('lg-use-left');
327
-
328
- // Set mode lg-slide if use left is true;
329
- this.s.mode = 'lg-slide';
330
- } else {
331
- this.$outer.addClass('lg-use-css3');
332
- }
333
-
334
- // For fixed height gallery
335
- _this.setTop();
336
- $(window).on('resize.lg orientationchange.lg', function() {
337
- setTimeout(function() {
338
- _this.setTop();
339
- }, 100);
340
- });
341
-
342
- // add class lg-current to remove initial transition
343
- this.$slide.eq(this.index).addClass('lg-current');
344
-
345
- // add Class for css support and transition mode
346
- if (this.doCss()) {
347
- this.$outer.addClass('lg-css3');
348
- } else {
349
- this.$outer.addClass('lg-css');
350
-
351
- // Set speed 0 because no animation will happen if browser doesn't support css3
352
- this.s.speed = 0;
353
- }
354
-
355
- this.$outer.addClass(this.s.mode);
356
-
357
- if (this.s.enableDrag && this.$items.length > 1) {
358
- this.$outer.addClass('lg-grab');
359
- }
360
-
361
- if (this.s.showAfterLoad) {
362
- this.$outer.addClass('lg-show-after-load');
363
- }
364
-
365
- if (this.doCss()) {
366
- var $inner = this.$outer.find('.lg-inner');
367
- $inner.css('transition-timing-function', this.s.cssEasing);
368
- $inner.css('transition-duration', this.s.speed + 'ms');
369
- }
370
-
371
- setTimeout(function() {
372
- $('.lg-backdrop').addClass('in');
373
- });
374
-
375
- setTimeout(function() {
376
- _this.$outer.addClass('lg-visible');
377
- }, this.s.backdropDuration);
378
-
379
- if (this.s.download) {
380
- this.$outer.find('.lg-toolbar').append('<a id="lg-download" target="_blank" download class="link-no-decoration lg-download lg-icon"></a>');
381
- }
382
-
383
- // Store the current scroll top value to scroll back after closing the gallery..
384
- this.prevScrollTop = $(window).scrollTop();
385
-
386
- };
387
-
388
- // For fixed height gallery
389
- Plugin.prototype.setTop = function() {
390
- if (this.s.height !== '100%') {
391
- var wH = $(window).height();
392
- var top = (wH - parseInt(this.s.height, 10)) / 2;
393
- var $lGallery = this.$outer.find('.lg');
394
- if (wH >= parseInt(this.s.height, 10)) {
395
- $lGallery.css('top', top + 'px');
396
- } else {
397
- $lGallery.css('top', '0px');
398
- }
399
- }
400
- };
401
-
402
- // Find css3 support
403
- Plugin.prototype.doCss = function() {
404
- // check for css animation support
405
- var support = function() {
406
- var transition = ['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition'];
407
- var root = document.documentElement;
408
- var i = 0;
409
- for (i = 0; i < transition.length; i++) {
410
- if (transition[i] in root.style) {
411
- return true;
412
- }
413
- }
414
- };
415
-
416
- if (support()) {
417
- return true;
418
- }
419
-
420
- return false;
421
- };
422
-
423
- /**
424
- * @desc Check the given src is video
425
- * @param {String} src
426
- * @return {Object} video type
427
- * Ex:{ youtube : ["//www.youtube.com/watch?v=c0asJgSyxcY", "c0asJgSyxcY"] }
428
- */
429
- Plugin.prototype.isVideo = function(src, index) {
430
-
431
- var html;
432
- if (this.s.dynamic) {
433
- html = this.s.dynamicEl[index].html;
434
- } else {
435
- html = this.$items.eq(index).attr('data-html');
436
- }
437
-
438
- if (!src) {
439
- if(html) {
440
- return {
441
- html5: true
442
- };
443
- } else {
444
- console.error('lightGallery :- data-src is not pvovided on slide item ' + (index + 1) + '. Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html');
445
- return false;
446
- }
447
- }
448
-
449
- var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i);
450
- var tiktok = src.match(/\/\/(?:www\.)?tiktok.com\/(@[0-9a-z\.\-_]+)\/video\/([0-9]+\/)/i);
451
- var youporn = src.match(/\/\/(?:www\.)?youporn.com\/embed\/([0-9]+\/[0-9a-z\-_]+\/)/i);
452
- var vimeo = src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
453
- var dailymotion = src.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i);
454
- var vk = src.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);
455
-
456
- if (youtube) {
457
- return {
458
- youtube: youtube
459
- };
460
- } else if (youporn) {
461
- return {
462
- youporn: youporn
463
- };
464
- } else if (tiktok) {
465
- return {
466
- tiktok: tiktok
467
- }
468
- } else if (vimeo) {
469
- return {
470
- vimeo: vimeo
471
- };
472
- } else if (dailymotion) {
473
- return {
474
- dailymotion: dailymotion
475
- };
476
- } else if (vk) {
477
- return {
478
- vk: vk
479
- };
480
- }
481
- };
482
-
483
- /**
484
- * @desc Create image counter
485
- * Ex: 1/10
486
- */
487
- Plugin.prototype.counter = function() {
488
- if (this.s.counter) {
489
- $(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">' + (parseInt(this.index, 10) + 1) + '</span> / <span id="lg-counter-all">' + this.$items.length + '</span></div>');
490
- }
491
- };
492
-
493
- /**
494
- * @desc add sub-html into the slide
495
- * @param {Number} index - index of the slide
496
- */
497
- Plugin.prototype.addHtml = function(index) {
498
- var subHtml = null;
499
- var subHtmlUrl;
500
- var $currentEle;
501
- if (this.s.dynamic) {
502
- if (this.s.dynamicEl[index].subHtmlUrl) {
503
- subHtmlUrl = this.s.dynamicEl[index].subHtmlUrl;
504
- } else {
505
- subHtml = this.s.dynamicEl[index].subHtml;
506
- }
507
- } else {
508
- $currentEle = this.$items.eq(index);
509
- if ($currentEle.attr('data-sub-html-url')) {
510
- subHtmlUrl = $currentEle.attr('data-sub-html-url');
511
- } else {
512
- subHtml = $currentEle.attr('data-sub-html');
513
- if (this.s.getCaptionFromTitleOrAlt && !subHtml) {
514
- subHtml = $currentEle.attr('title') || $currentEle.find('img').first().attr('alt');
515
- }
516
- }
517
- }
518
-
519
- if (!subHtmlUrl) {
520
- if (typeof subHtml !== 'undefined' && subHtml !== null) {
521
-
522
- // get first letter of subhtml
523
- // if first letter starts with . or # get the html form the jQuery object
524
- var fL = subHtml.substring(0, 1);
525
- if (fL === '.' || fL === '#') {
526
- if (this.s.subHtmlSelectorRelative && !this.s.dynamic) {
527
- subHtml = $currentEle.find(subHtml).html();
528
- } else {
529
- subHtml = $(subHtml).html();
530
- }
531
- }
532
- } else {
533
- subHtml = '';
534
- }
535
- }
536
-
537
- if (this.s.appendSubHtmlTo === '.lg-sub-html') {
538
-
539
- if (subHtmlUrl) {
540
- this.$outer.find(this.s.appendSubHtmlTo).load(subHtmlUrl);
541
- } else {
542
- this.$outer.find(this.s.appendSubHtmlTo).html(subHtml);
543
- }
544
-
545
- } else {
546
-
547
- if (subHtmlUrl) {
548
- this.$slide.eq(index).load(subHtmlUrl);
549
- } else {
550
- this.$slide.eq(index).append(subHtml);
551
- }
552
- }
553
-
554
- // Add lg-empty-html class if title doesn't exist
555
- if (typeof subHtml !== 'undefined' && subHtml !== null) {
556
- if (subHtml === '') {
557
- this.$outer.find(this.s.appendSubHtmlTo).addClass('lg-empty-html');
558
- } else {
559
- this.$outer.find(this.s.appendSubHtmlTo).removeClass('lg-empty-html');
560
- }
561
- }
562
-
563
- this.$el.trigger('onAfterAppendSubHtml.lg', [index]);
564
- };
565
-
566
- /**
567
- * @desc Preload slides
568
- * @param {Number} index - index of the slide
569
- */
570
- Plugin.prototype.preload = function(index) {
571
- var i = 1;
572
- var j = 1;
573
- for (i = 1; i <= this.s.preload; i++) {
574
- if (i >= this.$items.length - index) {
575
- break;
576
- }
577
-
578
- this.loadContent(index + i, false, 0);
579
- }
580
-
581
- for (j = 1; j <= this.s.preload; j++) {
582
- if (index - j < 0) {
583
- break;
584
- }
585
-
586
- this.loadContent(index - j, false, 0);
587
- }
588
- };
589
-
590
- /**
591
- * @desc Load slide content into slide.
592
- * @param {Number} index - index of the slide.
593
- * @param {Boolean} rec - if true call loadcontent() function again.
594
- * @param {Boolean} delay - delay for adding complete class. it is 0 except first time.
595
- */
596
- Plugin.prototype.loadContent = function(index, rec, delay) {
597
-
598
- var _this = this;
599
- var _hasPoster = false;
600
- var _$img;
601
- var _src;
602
- var _poster;
603
- var _srcset;
604
- var _sizes;
605
- var _html;
606
- var getResponsiveSrc = function(srcItms) {
607
- var rsWidth = [];
608
- var rsSrc = [];
609
- for (var i = 0; i < srcItms.length; i++) {
610
- var __src = srcItms[i].split(' ');
611
-
612
- // Manage empty space
613
- if (__src[0] === '') {
614
- __src.splice(0, 1);
615
- }
616
-
617
- rsSrc.push(__src[0]);
618
- rsWidth.push(__src[1]);
619
- }
620
-
621
- var wWidth = $(window).width();
622
- for (var j = 0; j < rsWidth.length; j++) {
623
- if (parseInt(rsWidth[j], 10) > wWidth) {
624
- _src = rsSrc[j];
625
- break;
626
- }
627
- }
628
- };
629
-
630
- if (_this.s.dynamic) {
631
-
632
- if (_this.s.dynamicEl[index].poster) {
633
- _hasPoster = true;
634
- _poster = _this.s.dynamicEl[index].poster;
635
- }
636
-
637
- _html = _this.s.dynamicEl[index].html;
638
- _src = _this.s.dynamicEl[index].src;
639
-
640
- if (_this.s.dynamicEl[index].responsive) {
641
- var srcDyItms = _this.s.dynamicEl[index].responsive.split(',');
642
- getResponsiveSrc(srcDyItms);
643
- }
644
-
645
- _srcset = _this.s.dynamicEl[index].srcset;
646
- _sizes = _this.s.dynamicEl[index].sizes;
647
-
648
- } else {
649
-
650
- if (_this.$items.eq(index).attr('data-poster')) {
651
- _hasPoster = true;
652
- _poster = _this.$items.eq(index).attr('data-poster');
653
- }
654
-
655
- _html = _this.$items.eq(index).attr('data-html');
656
- _src = _this.$items.eq(index).attr('href') || _this.$items.eq(index).attr('data-src');
657
-
658
- if (_this.$items.eq(index).attr('data-responsive')) {
659
- var srcItms = _this.$items.eq(index).attr('data-responsive').split(',');
660
- getResponsiveSrc(srcItms);
661
- }
662
-
663
- _srcset = _this.$items.eq(index).attr('data-srcset');
664
- _sizes = _this.$items.eq(index).attr('data-sizes');
665
-
666
- }
667
-
668
- //if (_src || _srcset || _sizes || _poster) {
669
-
670
- var iframe = false;
671
- if (_this.s.dynamic) {
672
- if (_this.s.dynamicEl[index].iframe) {
673
- iframe = true;
674
- }
675
- } else {
676
- if (_this.$items.eq(index).attr('data-iframe') === 'true') {
677
- iframe = true;
678
- }
679
- }
680
-
681
- var _isVideo = _this.isVideo(_src, index);
682
- if (!_this.$slide.eq(index).hasClass('lg-loaded')) {
683
- if (iframe) {
684
- _this.$slide.eq(index).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:' + _this.s.iframeMaxWidth + '"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="' + _src + '" allowfullscreen="true"></iframe></div></div>');
685
- } else if (_hasPoster) {
686
- var videoClass = '';
687
- if (_isVideo && _isVideo.youtube) {
688
- videoClass = 'lg-has-youtube';
689
- } else if (_isVideo && _isVideo.tiktok) {
690
- videoClass = 'lg-has-tiktok';
691
- } else if (_isVideo && _isVideo.vimeo) {
692
- videoClass = 'lg-has-vimeo';
693
- } else {
694
- videoClass = 'lg-has-html5';
695
- }
696
-
697
- _this.$slide.eq(index).prepend('<div class="lg-video-cont ' + videoClass + ' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="' + _poster + '"></div></div>');
698
-
699
- } else if (_isVideo) {
700
- _this.$slide.eq(index).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>');
701
- _this.$el.trigger('hasVideo.lg', [index, _src, _html]);
702
- } else {
703
- _this.$slide.eq(index).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="' + _src + '"></div>');
704
- }
705
-
706
- _this.$el.trigger('onAferAppendSlide.lg', [index]);
707
-
708
- _$img = _this.$slide.eq(index).find('.lg-object');
709
- if (_sizes) {
710
- _$img.attr('sizes', _sizes);
711
- }
712
-
713
- if (_srcset) {
714
- _$img.attr('srcset', _srcset);
715
- try {
716
- picturefill({
717
- elements: [_$img[0]]
718
- });
719
- } catch (e) {
720
- console.warn('lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.');
721
- }
722
- }
723
-
724
- if (this.s.appendSubHtmlTo !== '.lg-sub-html') {
725
- _this.addHtml(index);
726
- }
727
-
728
- _this.$slide.eq(index).addClass('lg-loaded');
729
- }
730
-
731
- _this.$slide.eq(index).find('.lg-object').on('load.lg error.lg', function() {
732
-
733
- // For first time add some delay for displaying the start animation.
734
- var _speed = 0;
735
-
736
- // Do not change the delay value because it is required for zoom plugin.
737
- // If gallery opened from direct url (hash) speed value should be 0
738
- if (delay && !$('body').hasClass('lg-from-hash')) {
739
- _speed = delay;
740
- }
741
-
742
- setTimeout(function() {
743
- _this.$slide.eq(index).addClass('lg-complete');
744
- _this.$el.trigger('onSlideItemLoad.lg', [index, delay || 0]);
745
- }, _speed);
746
-
747
- });
748
-
749
- // @todo check load state for html5 videos
750
- if (_isVideo && _isVideo.html5 && !_hasPoster) {
751
- _this.$slide.eq(index).addClass('lg-complete');
752
- }
753
-
754
- if (rec === true) {
755
- if (!_this.$slide.eq(index).hasClass('lg-complete')) {
756
- _this.$slide.eq(index).find('.lg-object').on('load.lg error.lg', function() {
757
- _this.preload(index);
758
- });
759
- } else {
760
- _this.preload(index);
761
- }
762
- }
763
-
764
- //}
765
- };
766
-
767
- /**
768
- * @desc slide function for lightgallery
769
- ** Slide() gets call on start
770
- ** ** Set lg.on true once slide() function gets called.
771
- ** Call loadContent() on slide() function inside setTimeout
772
- ** ** On first slide we do not want any animation like slide of fade
773
- ** ** So on first slide( if lg.on if false that is first slide) loadContent() should start loading immediately
774
- ** ** Else loadContent() should wait for the transition to complete.
775
- ** ** So set timeout s.speed + 50
776
- <=> ** loadContent() will load slide content in to the particular slide
777
- ** ** It has recursion (rec) parameter. if rec === true loadContent() will call preload() function.
778
- ** ** preload will execute only when the previous slide is fully loaded (images iframe)
779
- ** ** avoid simultaneous image load
780
- <=> ** Preload() will check for s.preload value and call loadContent() again accoring to preload value
781
- ** loadContent() <====> Preload();
782
-
783
- * @param {Number} index - index of the slide
784
- * @param {Boolean} fromTouch - true if slide function called via touch event or mouse drag
785
- * @param {Boolean} fromThumb - true if slide function called via thumbnail click
786
- * @param {String} direction - Direction of the slide(next/prev)
787
- */
788
- Plugin.prototype.slide = function(index, fromTouch, fromThumb, direction) {
789
-
790
- var _prevIndex = this.$outer.find('.lg-current').index();
791
- var _this = this;
792
-
793
- // Prevent if multiple call
794
- // Required for hsh plugin
795
- if (_this.lGalleryOn && (_prevIndex === index)) {
796
- return;
797
- }
798
-
799
- var _length = this.$slide.length;
800
- var _time = _this.lGalleryOn ? this.s.speed : 0;
801
-
802
- if (!_this.lgBusy) {
803
-
804
- if (this.s.download) {
805
- var _src;
806
- if (_this.s.dynamic) {
807
- _src = _this.s.dynamicEl[index].downloadUrl !== false && (_this.s.dynamicEl[index].downloadUrl || _this.s.dynamicEl[index].src);
808
- } else {
809
- _src = _this.$items.eq(index).attr('data-download-url') !== 'false' && (_this.$items.eq(index).attr('data-download-url') || _this.$items.eq(index).attr('href') || _this.$items.eq(index).attr('data-src'));
810
-
811
- }
812
-
813
- if (_src) {
814
- $('#lg-download').attr('href', _src);
815
- _this.$outer.removeClass('lg-hide-download');
816
- } else {
817
- _this.$outer.addClass('lg-hide-download');
818
- }
819
- }
820
-
821
- this.$el.trigger('onBeforeSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
822
-
823
- _this.lgBusy = true;
824
-
825
- clearTimeout(_this.hideBartimeout);
826
-
827
- // Add title if this.s.appendSubHtmlTo === lg-sub-html
828
- if (this.s.appendSubHtmlTo === '.lg-sub-html') {
829
-
830
- // wait for slide animation to complete
831
- setTimeout(function() {
832
- _this.addHtml(index);
833
- }, _time);
834
- }
835
-
836
- this.arrowDisable(index);
837
-
838
- if (!direction) {
839
- if (index < _prevIndex) {
840
- direction = 'prev';
841
- } else if (index > _prevIndex) {
842
- direction = 'next';
843
- }
844
- }
845
-
846
- if (!fromTouch) {
847
-
848
- // remove all transitions
849
- _this.$outer.addClass('lg-no-trans');
850
-
851
- this.$slide.removeClass('lg-prev-slide lg-next-slide');
852
-
853
- if (direction === 'prev') {
854
-
855
- //prevslide
856
- this.$slide.eq(index).addClass('lg-prev-slide');
857
- this.$slide.eq(_prevIndex).addClass('lg-next-slide');
858
- } else {
859
-
860
- // next slide
861
- this.$slide.eq(index).addClass('lg-next-slide');
862
- this.$slide.eq(_prevIndex).addClass('lg-prev-slide');
863
- }
864
-
865
- // give 50 ms for browser to add/remove class
866
- setTimeout(function() {
867
- _this.$slide.removeClass('lg-current');
868
-
869
- //_this.$slide.eq(_prevIndex).removeClass('lg-current');
870
- _this.$slide.eq(index).addClass('lg-current');
871
-
872
- // reset all transitions
873
- _this.$outer.removeClass('lg-no-trans');
874
- }, 50);
875
- } else {
876
-
877
- this.$slide.removeClass('lg-prev-slide lg-current lg-next-slide');
878
- var touchPrev;
879
- var touchNext;
880
- if (_length > 2) {
881
- touchPrev = index - 1;
882
- touchNext = index + 1;
883
-
884
- if ((index === 0) && (_prevIndex === _length - 1)) {
885
-
886
- // next slide
887
- touchNext = 0;
888
- touchPrev = _length - 1;
889
- } else if ((index === _length - 1) && (_prevIndex === 0)) {
890
-
891
- // prev slide
892
- touchNext = 0;
893
- touchPrev = _length - 1;
894
- }
895
-
896
- } else {
897
- touchPrev = 0;
898
- touchNext = 1;
899
- }
900
-
901
- if (direction === 'prev') {
902
- _this.$slide.eq(touchNext).addClass('lg-next-slide');
903
- } else {
904
- _this.$slide.eq(touchPrev).addClass('lg-prev-slide');
905
- }
906
-
907
- _this.$slide.eq(index).addClass('lg-current');
908
- }
909
-
910
- if (_this.lGalleryOn) {
911
- setTimeout(function() {
912
- _this.loadContent(index, true, 0);
913
- }, this.s.speed + 50);
914
-
915
- setTimeout(function() {
916
- _this.lgBusy = false;
917
- _this.$el.trigger('onAfterSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
918
- }, this.s.speed);
919
-
920
- } else {
921
- _this.loadContent(index, true, _this.s.backdropDuration);
922
-
923
- _this.lgBusy = false;
924
- _this.$el.trigger('onAfterSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
925
- }
926
-
927
- _this.lGalleryOn = true;
928
-
929
- if (this.s.counter) {
930
- $('#lg-counter-current').text(index + 1);
931
- }
932
-
933
- }
934
- _this.index = index;
935
-
936
- };
937
-
938
- /**
939
- * @desc Go to next slide
940
- * @param {Boolean} fromTouch - true if slide function called via touch event
941
- */
942
- Plugin.prototype.goToNextSlide = function(fromTouch) {
943
- var _this = this;
944
- var _loop = _this.s.loop;
945
- if (fromTouch && _this.$slide.length < 3) {
946
- _loop = false;
947
- }
948
-
949
- if (!_this.lgBusy) {
950
- if ((_this.index + 1) < _this.$slide.length) {
951
- _this.index++;
952
- _this.$el.trigger('onBeforeNextSlide.lg', [_this.index]);
953
- _this.slide(_this.index, fromTouch, false, 'next');
954
- } else {
955
- if (_loop) {
956
- _this.index = 0;
957
- _this.$el.trigger('onBeforeNextSlide.lg', [_this.index]);
958
- _this.slide(_this.index, fromTouch, false, 'next');
959
- } else if (_this.s.slideEndAnimatoin && !fromTouch) {
960
- _this.$outer.addClass('lg-right-end');
961
- setTimeout(function() {
962
- _this.$outer.removeClass('lg-right-end');
963
- }, 400);
964
- }
965
- }
966
- }
967
- };
968
-
969
- /**
970
- * @desc Go to previous slide
971
- * @param {Boolean} fromTouch - true if slide function called via touch event
972
- */
973
- Plugin.prototype.goToPrevSlide = function(fromTouch) {
974
- var _this = this;
975
- var _loop = _this.s.loop;
976
- if (fromTouch && _this.$slide.length < 3) {
977
- _loop = false;
978
- }
979
-
980
- if (!_this.lgBusy) {
981
- if (_this.index > 0) {
982
- _this.index--;
983
- _this.$el.trigger('onBeforePrevSlide.lg', [_this.index, fromTouch]);
984
- _this.slide(_this.index, fromTouch, false, 'prev');
985
- } else {
986
- if (_loop) {
987
- _this.index = _this.$items.length - 1;
988
- _this.$el.trigger('onBeforePrevSlide.lg', [_this.index, fromTouch]);
989
- _this.slide(_this.index, fromTouch, false, 'prev');
990
- } else if (_this.s.slideEndAnimatoin && !fromTouch) {
991
- _this.$outer.addClass('lg-left-end');
992
- setTimeout(function() {
993
- _this.$outer.removeClass('lg-left-end');
994
- }, 400);
995
- }
996
- }
997
- }
998
- };
999
-
1000
- Plugin.prototype.keyPress = function() {
1001
- var _this = this;
1002
- if (this.$items.length > 1) {
1003
- $(window).on('keyup.lg', function(e) {
1004
- if (_this.$items.length > 1) {
1005
- if (e.keyCode === 37) {
1006
- e.preventDefault();
1007
- _this.goToPrevSlide();
1008
- }
1009
-
1010
- if (e.keyCode === 39) {
1011
- e.preventDefault();
1012
- _this.goToNextSlide();
1013
- }
1014
- }
1015
- });
1016
- }
1017
-
1018
- $(window).on('keydown.lg', function(e) {
1019
- if (_this.s.escKey === true && e.keyCode === 27) {
1020
- e.preventDefault();
1021
- if (!_this.$outer.hasClass('lg-thumb-open')) {
1022
- _this.destroy();
1023
- } else {
1024
- _this.$outer.removeClass('lg-thumb-open');
1025
- }
1026
- }
1027
- });
1028
- };
1029
-
1030
- Plugin.prototype.arrow = function() {
1031
- var _this = this;
1032
- this.$outer.find('.lg-prev').on('click.lg', function() {
1033
- _this.goToPrevSlide();
1034
- });
1035
-
1036
- this.$outer.find('.lg-next').on('click.lg', function() {
1037
- _this.goToNextSlide();
1038
- });
1039
- };
1040
-
1041
- Plugin.prototype.arrowDisable = function(index) {
1042
-
1043
- // Disable arrows if s.hideControlOnEnd is true
1044
- if (!this.s.loop && this.s.hideControlOnEnd) {
1045
- if ((index + 1) < this.$slide.length) {
1046
- this.$outer.find('.lg-next').removeAttr('disabled').removeClass('disabled');
1047
- } else {
1048
- this.$outer.find('.lg-next').attr('disabled', 'disabled').addClass('disabled');
1049
- }
1050
-
1051
- if (index > 0) {
1052
- this.$outer.find('.lg-prev').removeAttr('disabled').removeClass('disabled');
1053
- } else {
1054
- this.$outer.find('.lg-prev').attr('disabled', 'disabled').addClass('disabled');
1055
- }
1056
- }
1057
- };
1058
-
1059
- Plugin.prototype.setTranslate = function($el, xValue, yValue) {
1060
- // jQuery supports Automatic CSS prefixing since jQuery 1.8.0
1061
- if (this.s.useLeft) {
1062
- $el.css('left', xValue);
1063
- } else {
1064
- $el.css({
1065
- transform: 'translate3d(' + (xValue) + 'px, ' + yValue + 'px, 0px)'
1066
- });
1067
- }
1068
- };
1069
-
1070
- Plugin.prototype.touchMove = function(startCoords, endCoords) {
1071
-
1072
- var distance = endCoords - startCoords;
1073
-
1074
- if (Math.abs(distance) > 15) {
1075
- // reset opacity and transition duration
1076
- this.$outer.addClass('lg-dragging');
1077
-
1078
- // move current slide
1079
- this.setTranslate(this.$slide.eq(this.index), distance, 0);
1080
-
1081
- // move next and prev slide with current slide
1082
- this.setTranslate($('.lg-prev-slide'), -this.$slide.eq(this.index).width() + distance, 0);
1083
- this.setTranslate($('.lg-next-slide'), this.$slide.eq(this.index).width() + distance, 0);
1084
- }
1085
- };
1086
-
1087
- Plugin.prototype.touchEnd = function(distance) {
1088
- var _this = this;
1089
-
1090
- // keep slide animation for any mode while dragg/swipe
1091
- if (_this.s.mode !== 'lg-slide') {
1092
- _this.$outer.addClass('lg-slide');
1093
- }
1094
-
1095
- this.$slide.not('.lg-current, .lg-prev-slide, .lg-next-slide').css('opacity', '0');
1096
-
1097
- // set transition duration
1098
- setTimeout(function() {
1099
- _this.$outer.removeClass('lg-dragging');
1100
- if ((distance < 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
1101
- _this.goToNextSlide(true);
1102
- } else if ((distance > 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
1103
- _this.goToPrevSlide(true);
1104
- } else if (Math.abs(distance) < 5) {
1105
-
1106
- // Trigger click if distance is less than 5 pix
1107
- _this.$el.trigger('onSlideClick.lg');
1108
- }
1109
-
1110
- _this.$slide.removeAttr('style');
1111
- });
1112
-
1113
- // remove slide class once drag/swipe is completed if mode is not slide
1114
- setTimeout(function() {
1115
- if (!_this.$outer.hasClass('lg-dragging') && _this.s.mode !== 'lg-slide') {
1116
- _this.$outer.removeClass('lg-slide');
1117
- }
1118
- }, _this.s.speed + 100);
1119
-
1120
- };
1121
-
1122
- Plugin.prototype.enableSwipe = function() {
1123
- var _this = this;
1124
- var startCoords = 0;
1125
- var endCoords = 0;
1126
- var isMoved = false;
1127
-
1128
- if (_this.s.enableSwipe && _this.doCss()) {
1129
-
1130
- _this.$slide.on('touchstart.lg', function(e) {
1131
- if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy) {
1132
- e.preventDefault();
1133
- _this.manageSwipeClass();
1134
- startCoords = e.originalEvent.targetTouches[0].pageX;
1135
- }
1136
- });
1137
-
1138
- _this.$slide.on('touchmove.lg', function(e) {
1139
- if (!_this.$outer.hasClass('lg-zoomed')) {
1140
- e.preventDefault();
1141
- endCoords = e.originalEvent.targetTouches[0].pageX;
1142
- _this.touchMove(startCoords, endCoords);
1143
- isMoved = true;
1144
- }
1145
- });
1146
-
1147
- _this.$slide.on('touchend.lg', function() {
1148
- if (!_this.$outer.hasClass('lg-zoomed')) {
1149
- if (isMoved) {
1150
- isMoved = false;
1151
- _this.touchEnd(endCoords - startCoords);
1152
- } else {
1153
- _this.$el.trigger('onSlideClick.lg');
1154
- }
1155
- }
1156
- });
1157
- }
1158
-
1159
- };
1160
-
1161
- Plugin.prototype.enableDrag = function() {
1162
- var _this = this;
1163
- var startCoords = 0;
1164
- var endCoords = 0;
1165
- var isDraging = false;
1166
- var isMoved = false;
1167
- if (_this.s.enableDrag && _this.doCss()) {
1168
- _this.$slide.on('mousedown.lg', function(e) {
1169
- if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy && !$(e.target).text().trim()) {
1170
- e.preventDefault();
1171
- _this.manageSwipeClass();
1172
- startCoords = e.pageX;
1173
- isDraging = true;
1174
-
1175
- // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
1176
- _this.$outer.scrollLeft += 1;
1177
- _this.$outer.scrollLeft -= 1;
1178
-
1179
- // *
1180
-
1181
- _this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
1182
-
1183
- _this.$el.trigger('onDragstart.lg');
1184
- }
1185
- });
1186
-
1187
- $(window).on('mousemove.lg', function(e) {
1188
- if (isDraging) {
1189
- isMoved = true;
1190
- endCoords = e.pageX;
1191
- _this.touchMove(startCoords, endCoords);
1192
- _this.$el.trigger('onDragmove.lg');
1193
- }
1194
- });
1195
-
1196
- $(window).on('mouseup.lg', function(e) {
1197
- if (isMoved) {
1198
- isMoved = false;
1199
- _this.touchEnd(endCoords - startCoords);
1200
- _this.$el.trigger('onDragend.lg');
1201
- } else if ($(e.target).hasClass('lg-object') || $(e.target).hasClass('lg-video-play')) {
1202
- _this.$el.trigger('onSlideClick.lg');
1203
- }
1204
-
1205
- // Prevent execution on click
1206
- if (isDraging) {
1207
- isDraging = false;
1208
- _this.$outer.removeClass('lg-grabbing').addClass('lg-grab');
1209
- }
1210
- });
1211
-
1212
- }
1213
- };
1214
-
1215
- Plugin.prototype.manageSwipeClass = function() {
1216
- var _touchNext = this.index + 1;
1217
- var _touchPrev = this.index - 1;
1218
- if (this.s.loop && this.$slide.length > 2) {
1219
- if (this.index === 0) {
1220
- _touchPrev = this.$slide.length - 1;
1221
- } else if (this.index === this.$slide.length - 1) {
1222
- _touchNext = 0;
1223
- }
1224
- }
1225
-
1226
- this.$slide.removeClass('lg-next-slide lg-prev-slide');
1227
- if (_touchPrev > -1) {
1228
- this.$slide.eq(_touchPrev).addClass('lg-prev-slide');
1229
- }
1230
-
1231
- this.$slide.eq(_touchNext).addClass('lg-next-slide');
1232
- };
1233
-
1234
- Plugin.prototype.mousewheel = function() {
1235
- var _this = this;
1236
- _this.$outer.on('mousewheel.lg', function(e) {
1237
-
1238
- if (!e.deltaY) {
1239
- return;
1240
- }
1241
-
1242
- if (e.deltaY > 0) {
1243
- _this.goToPrevSlide();
1244
- } else {
1245
- _this.goToNextSlide();
1246
- }
1247
-
1248
- e.preventDefault();
1249
- });
1250
-
1251
- };
1252
-
1253
- Plugin.prototype.closeGallery = function() {
1254
-
1255
- var _this = this;
1256
- var mousedown = false;
1257
- this.$outer.find('.lg-close').on('click.lg', function() {
1258
- _this.destroy();
1259
- });
1260
-
1261
- if (_this.s.closable) {
1262
-
1263
- // If you drag the slide and release outside gallery gets close on chrome
1264
- // for preventing this check mousedown and mouseup happened on .lg-item or lg-outer
1265
- _this.$outer.on('mousedown.lg', function(e) {
1266
-
1267
- if ($(e.target).is('.lg-outer') || $(e.target).is('.lg-item ') || $(e.target).is('.lg-img-wrap')) {
1268
- mousedown = true;
1269
- } else {
1270
- mousedown = false;
1271
- }
1272
-
1273
- });
1274
-
1275
- _this.$outer.on('mousemove.lg', function() {
1276
- mousedown = false;
1277
- });
1278
-
1279
- _this.$outer.on('mouseup.lg', function(e) {
1280
-
1281
- if ($(e.target).is('.lg-outer') || $(e.target).is('.lg-item ') || $(e.target).is('.lg-img-wrap') && mousedown) {
1282
- if (!_this.$outer.hasClass('lg-dragging')) {
1283
- _this.destroy();
1284
- }
1285
- }
1286
-
1287
- });
1288
-
1289
- }
1290
-
1291
- };
1292
-
1293
- Plugin.prototype.destroy = function(d) {
1294
-
1295
- var _this = this;
1296
-
1297
- if (!d) {
1298
- _this.$el.trigger('onBeforeClose.lg');
1299
- $(window).scrollTop(_this.prevScrollTop);
1300
- }
1301
-
1302
-
1303
- /**
1304
- * if d is false or undefined destroy will only close the gallery
1305
- * plugins instance remains with the element
1306
- *
1307
- * if d is true destroy will completely remove the plugin
1308
- */
1309
-
1310
- if (d) {
1311
- if (!_this.s.dynamic) {
1312
- // only when not using dynamic mode is $items a jquery collection
1313
- this.$items.off('click.lg click.lgcustom');
1314
- }
1315
-
1316
- $.removeData(_this.el, 'lightGallery');
1317
- }
1318
-
1319
- // Unbind all events added by lightGallery
1320
- this.$el.off('.lg.tm');
1321
-
1322
- // Distroy all lightGallery modules
1323
- $.each($.fn.lightGallery.modules, function(key) {
1324
- if (_this.modules[key]) {
1325
- _this.modules[key].destroy();
1326
- }
1327
- });
1328
-
1329
- this.lGalleryOn = false;
1330
-
1331
- clearTimeout(_this.hideBartimeout);
1332
- this.hideBartimeout = false;
1333
- $(window).off('.lg');
1334
- $('body').removeClass('lg-on lg-from-hash');
1335
-
1336
- if (_this.$outer) {
1337
- _this.$outer.removeClass('lg-visible');
1338
- }
1339
-
1340
- $('.lg-backdrop').removeClass('in');
1341
-
1342
- setTimeout(function() {
1343
- if (_this.$outer) {
1344
- _this.$outer.remove();
1345
- }
1346
-
1347
- $('.lg-backdrop').remove();
1348
-
1349
- if (!d) {
1350
- _this.$el.trigger('onCloseAfter.lg');
1351
- }
1352
-
1353
- }, _this.s.backdropDuration + 50);
1354
- };
1355
-
1356
- $.fn.lightGallery = function(options) {
1357
- return this.each(function() {
1358
- if (!$.data(this, 'lightGallery')) {
1359
- $.data(this, 'lightGallery', new Plugin(this, options));
1360
- } else {
1361
- try {
1362
- $(this).data('lightGallery').init();
1363
- } catch (err) {
1364
- console.error('lightGallery has not been initiated properly');
1365
- }
1366
- }
1367
- });
1368
- };
1369
-
1370
- $.fn.lightGallery.modules = {};
1371
-
1372
- })();
1373
-
1374
-
1375
- }));