j1-template 2024.3.22 → 2024.3.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/{galeries.html → gallery_app.html} +106 -18
  3. data/assets/theme/bla +0 -0
  4. data/assets/theme/j1/adapter/js/amplitude.js +144 -52
  5. data/assets/theme/j1/adapter/js/gallery.js +14 -3
  6. data/assets/theme/j1/adapter/js/themes.js +41 -69
  7. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +48 -52
  8. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  9. data/assets/theme/j1/core/css/vendor.css +1 -1
  10. data/assets/theme/j1/core/css/vendor.min.css +1 -1
  11. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +466 -396
  12. data/assets/theme/j1/modules/lightGallery/css/lg-transitions.css +3 -126
  13. data/assets/theme/j1/modules/lightGallery/css/lg-transitions.min.css +3 -10
  14. data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.css +70 -237
  15. data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.min.css +4 -10
  16. data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.css +276 -0
  17. data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +17 -0
  18. data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +196 -134
  19. data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +3 -10
  20. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +4 -4
  21. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +5 -5
  22. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +5 -5
  23. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.min.js +6 -6
  24. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +4 -4
  25. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +5 -5
  26. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +4 -4
  27. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.min.js +5 -6
  28. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +5 -5
  29. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +6 -6
  30. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +4 -4
  31. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.min.js +5 -5
  32. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +179 -0
  33. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.min.js +32 -0
  34. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +4 -4
  35. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +6 -6
  36. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +4 -4
  37. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.min.js +6 -7
  38. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +27 -20
  39. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +5 -5
  40. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +489 -411
  41. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +3 -10
  42. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +4 -4
  43. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +5 -5
  44. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +11 -5
  45. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +5 -5
  46. data/assets/theme/j1/modules/rtable/css/theme/uno/rtable.css +11 -1
  47. data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +13 -12
  48. data/assets/theme/j1/modules/videoPlayer/tiktoc/README.md +1 -0
  49. data/assets/theme/j1/modules/videojs/assets/README.md +1 -0
  50. data/assets/theme/j1/modules/videojs/assets/icons/speedometer-medium.svg +35 -0
  51. data/assets/theme/j1/modules/videojs/css/font/VideoJS.ttf +0 -0
  52. data/assets/theme/j1/modules/videojs/css/font/VideoJS.woff +0 -0
  53. data/assets/theme/j1/modules/videojs/css/themes/uno.css +189 -42
  54. data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
  55. data/assets/theme/j1/modules/videojs/css/videojs.css +674 -316
  56. data/assets/theme/j1/modules/videojs/css/videojs.min.css +4 -3
  57. data/assets/theme/j1/modules/videojs/js/video.js +15893 -12288
  58. data/assets/theme/j1/modules/videojs/js/video.min.js +22 -23
  59. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +26 -0
  60. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/LICENSE +19 -0
  61. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/README.md +69 -0
  62. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.css +2 -0
  63. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.min.css +2 -0
  64. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.js +339 -0
  65. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.min.js +2 -0
  66. data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.js +0 -5
  67. data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys/examples → plugins/controls/hotkeys/!examples}/example.html +1 -1
  68. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +25 -0
  69. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/LICENSE +19 -0
  70. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/README.md +90 -0
  71. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.js +120 -0
  72. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js +2 -0
  73. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +32 -0
  74. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/LICENSE +19 -0
  75. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/README.md +61 -0
  76. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.js +94 -0
  77. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.min.js +20 -0
  78. data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/skipbuttons/README.md +25 -11
  79. data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css +7 -6
  80. data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +22 -0
  81. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-controls.html +4 -4
  82. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-javascript.html +3 -3
  83. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-playlist.html +3 -3
  84. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/global-parameters.html +3 -3
  85. data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/simple.html +31 -0
  86. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/switch.html +3 -3
  87. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js +1 -1
  88. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/index.html +3 -3
  89. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/player/index.html +3 -3
  90. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.0.js +521 -0
  91. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.1.js +605 -0
  92. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.3.js +643 -0
  93. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.4.js +583 -0
  94. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.5.js +665 -0
  95. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.6.js +642 -0
  96. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.7.js +673 -0
  97. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.js +1 -1
  98. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.min.js +1 -1
  99. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm → plugins/players/vm/js}/vimeo.js +4 -5
  100. data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +28 -0
  101. data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.0.js +395 -0
  102. data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.1.js +401 -0
  103. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/global-parameters.html +5 -5
  104. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/simple.html +5 -5
  105. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/switch.html +5 -5
  106. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-controls.html +5 -5
  107. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-javascript.html +5 -5
  108. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-list.html +5 -5
  109. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-playlist.html +5 -5
  110. data/lib/j1/version.rb +1 -1
  111. data/lib/starter_web/README.md +5 -5
  112. data/lib/starter_web/_config.yml +1 -1
  113. data/lib/starter_web/_data/blocks/banner.yml +2 -2
  114. data/lib/starter_web/_data/modules/amplitude_playlists.yml +16 -1
  115. data/lib/starter_web/_data/modules/attics.yml +11 -0
  116. data/lib/starter_web/_data/modules/carousel.yml +1 -1
  117. data/lib/starter_web/_data/modules/defaults/gallery.yml +3 -3
  118. data/lib/starter_web/_data/modules/defaults/masonry.yml +115 -22
  119. data/lib/starter_web/_data/modules/gallery.yml +225 -281
  120. data/lib/starter_web/_data/modules/masonry.yml +6 -0
  121. data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
  122. data/lib/starter_web/_data/resources.yml +16 -12
  123. data/lib/starter_web/_data/templates/feed.xml +1 -1
  124. data/lib/starter_web/_includes/attributes.asciidoc +7 -0
  125. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +50 -30
  126. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +37 -23
  127. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  128. data/lib/starter_web/assets/image/module/attic/1920x1280/alexander-redl.jpg +0 -0
  129. data/lib/starter_web/assets/image/module/attic/1920x1280/alexander-shatov.jpg +0 -0
  130. data/lib/starter_web/assets/image/module/attic/1920x1280/alexey-ruban.jpg +0 -0
  131. data/lib/starter_web/assets/image/module/attic/1920x1280/andrea-badino.jpg +0 -0
  132. data/lib/starter_web/assets/image/module/attic/1920x1280/bootstrap-modal.jpg +0 -0
  133. data/lib/starter_web/assets/image/module/attic/1920x1280/bp-miller.jpg +0 -0
  134. data/lib/starter_web/assets/image/module/attic/1920x1280/brad-neathery.jpg +0 -0
  135. data/lib/starter_web/assets/image/module/attic/1920x1280/brigitta-schneiter.jpg +0 -0
  136. data/lib/starter_web/assets/image/module/attic/1920x1280/build-with-gemini.jpg +0 -0
  137. data/lib/starter_web/assets/image/module/attic/1920x1280/clem-onojeghuo.jpg +0 -0
  138. data/lib/starter_web/assets/image/module/attic/1920x1280/crawford-jolly.jpg +0 -0
  139. data/lib/starter_web/assets/image/module/attic/1920x1280/eleni-afiontzi.jpg +0 -0
  140. data/lib/starter_web/assets/image/module/attic/1920x1280/fly-d.jpg +0 -0
  141. data/lib/starter_web/assets/image/module/attic/1920x1280/guillaume-bolduc.jpg +0 -0
  142. data/lib/starter_web/assets/image/module/attic/1920x1280/ideas-start-here-1920x1280.jpg +0 -0
  143. data/lib/starter_web/assets/image/module/attic/1920x1280/isaac-davis.jpg +0 -0
  144. data/lib/starter_web/assets/image/module/attic/1920x1280/j1-content-mockup-2.jpg +0 -0
  145. data/lib/starter_web/assets/image/module/attic/1920x1280/j1-content-mockup-3.jpg +0 -0
  146. data/lib/starter_web/assets/image/module/attic/1920x1280/j1-starter-mockup-1.jpg +0 -0
  147. data/lib/starter_web/assets/image/module/attic/1920x1280/john-schnobrich-2.jpg +0 -0
  148. data/lib/starter_web/assets/image/module/attic/1920x1280/josep-martins.jpg +0 -0
  149. data/lib/starter_web/assets/image/module/attic/1920x1280/josh-liu.jpg +0 -0
  150. data/lib/starter_web/assets/image/module/attic/1920x1280/kelly-sikkemal.jpg +0 -0
  151. data/lib/starter_web/assets/image/module/attic/1920x1280/kira-auf-der-heide.jpg +0 -0
  152. data/lib/starter_web/assets/image/module/attic/1920x1280/kristopher-roller.jpg +0 -0
  153. data/lib/starter_web/assets/image/module/attic/1920x1280/markus-spiske.jpg +0 -0
  154. data/lib/starter_web/assets/image/module/attic/1920x1280/martin-sanchez.jpg +0 -0
  155. data/lib/starter_web/assets/image/module/attic/1920x1280/material_symbols.jpg +0 -0
  156. data/lib/starter_web/assets/image/module/attic/1920x1280/matthaeus.jpg +0 -0
  157. data/lib/starter_web/assets/image/module/attic/1920x1280/melanie-deziel.jpg +0 -0
  158. data/lib/starter_web/assets/image/module/attic/1920x1280/milad-fakurian.jpg +0 -0
  159. data/lib/starter_web/assets/image/module/attic/1920x1280/mohammad-rahmani.jpg +0 -0
  160. data/lib/starter_web/assets/image/module/attic/1920x1280/nasa.jpg +0 -0
  161. data/lib/starter_web/assets/image/module/attic/1920x1280/quino-al-2.jpg +0 -0
  162. data/lib/starter_web/assets/image/module/attic/1920x1280/stories-ink-tattoo-care.jpg +0 -0
  163. data/lib/starter_web/assets/image/module/attic/1920x1280/towfiqu-barbhuiya.jpg +0 -0
  164. data/lib/starter_web/assets/image/page/tour/bootswatch-themes.jpg +0 -0
  165. data/lib/starter_web/assets/video/poster/vimeo/fall_2011.jpg +0 -0
  166. data/lib/starter_web/index.html +3 -2
  167. data/lib/starter_web/package.json +1 -1
  168. data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +1 -1
  169. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -5
  170. data/lib/starter_web/pages/public/tools/tester/app_tester_amplitudejs_yt.adoc +7 -3
  171. data/lib/starter_web/pages/public/tools/tester/app_tester_swiperjs.adoc +7 -3
  172. data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +297 -0
  173. data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +1 -2
  174. data/lib/starter_web/pages/public/tour/_includes/documents/themes_bootstrap.asciidoc +1 -1
  175. data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +7 -3
  176. data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +62 -7
  177. data/lib/starter_web/pages/public/tour/icon_fonts.adoc +4 -8
  178. data/lib/starter_web/pages/public/tour/modal_extentions.adoc +2 -2
  179. data/lib/starter_web/pages/public/tour/responsive_tables.adoc +21 -15
  180. data/lib/starter_web/pages/public/tour/typography.adoc +5 -5
  181. data/lib/starter_web/pages/public/tour/video_data.adoc +25 -5
  182. metadata +142 -118
  183. data/assets/data/swiper_app.2.html +0 -757
  184. data/assets/data/swiper_app.4.html +0 -769
  185. data/assets/theme/j1/modules/lightGallery/css/themes/uno/uno.css +0 -140
  186. data/assets/theme/j1/modules/lightGallery/css/themes/uno/uno.min.css +0 -19
  187. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/j1-video.js +0 -402
  188. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/j1-video.min.js +0 -7
  189. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +0 -585
  190. data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +0 -2012
  191. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +0 -32
  192. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +0 -31
  193. data/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.min.css +0 -21
  194. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/examples/simple.html +0 -20
  195. data/assets/theme/j1/modules/videojs/js/plugins/players/vm/vimeo.min.js +0 -16
  196. data/assets/theme/j1/modules/videojs/js/plugins/players/wt/api/src/WistiaPlayer.ts +0 -1617
  197. data/lib/starter_web/_data/modules/gallery_app.yml +0 -1002
  198. data/lib/starter_web/_data/modules/gallery_playlists.yml +0 -534
  199. data/lib/starter_web/assets/image/module/attic/1920x1280/alina-grubnyak.jpg +0 -0
  200. data/lib/starter_web/assets/image/module/attic/1920x1280/bruno-figueiredo.jpg +0 -0
  201. data/lib/starter_web/assets/image/module/attic/1920x1280/harpal-singh.jpg +0 -0
  202. data/lib/starter_web/assets/image/module/attic/1920x1280/hayden-mills-2.jpg +0 -0
  203. data/lib/starter_web/assets/image/module/attic/1920x1280/j1-content-mockup-1.jpg +0 -0
  204. data/lib/starter_web/assets/image/module/attic/1920x1280/recha-oktaviani.jpg +0 -0
  205. data/lib/starter_web/assets/image/module/attic/1920x1280/tiny_desk.jpg +0 -0
  206. data/lib/starter_web/assets/image/module/attic/ideas-start-here-1920x1280-bw.jpg +0 -0
  207. data/lib/starter_web/assets/image/module/attic/ideas-start-here-1920x1280.jpg +0 -0
  208. data/lib/starter_web/assets/video/poster/vimeo/stay_colorful.jpg +0 -0
  209. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/animation-w.png +0 -0
  210. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/customize-w.png +0 -0
  211. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/dynamic-w.png +0 -0
  212. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/facebook-icon.svg +0 -0
  213. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/googleplus-icon.svg +0 -0
  214. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/html5-w.png +0 -0
  215. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/linked-in.png +0 -0
  216. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/module-w.png +0 -0
  217. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/play-button-hover.svg +0 -0
  218. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/play-button.png +0 -0
  219. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/play-button.svg +0 -0
  220. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/responsive-w.png +0 -0
  221. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/thumb-w.png +0 -0
  222. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/touch-w.png +0 -0
  223. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/twitter-icon.svg +0 -0
  224. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/twitter.png +0 -0
  225. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/video1-w.png +0 -0
  226. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/zoom-w.png +0 -0
  227. /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/zoom.png +0 -0
  228. /data/assets/theme/j1/modules/videoPlayer/dailymotion/js/{!readme → README.md} +0 -0
  229. /data/assets/theme/j1/modules/videoPlayer/tiktoc/{js/player.min.js → player.min.js} +0 -0
  230. /data/assets/theme/j1/modules/videoPlayer/vimeo/js/{!readme → README.md} +0 -0
  231. /data/assets/theme/j1/modules/videoPlayer/wistia/js/{!readme → README.md} +0 -0
  232. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/LICENSE +0 -0
  233. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/README.md +0 -0
  234. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.min.js +0 -0
  235. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/LICENSE.md +0 -0
  236. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/README.md +0 -0
  237. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.js +0 -0
  238. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.min.js +0 -0
  239. /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.css +0 -0
  240. /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.min.css +0 -0
  241. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.js +0 -0
  242. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.min.js +0 -0
  243. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.html +0 -0
  244. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.js +0 -0
  245. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/styles.css +0 -0
  246. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/LICENSE.md +0 -0
  247. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/README.md +0 -0
  248. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.js +0 -0
  249. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.min.js +0 -0
  250. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/LICENSE +0 -0
  251. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/doc → plugins/players/dm}/README.md +0 -0
  252. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/api/LICENSE +0 -0
  253. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api/doc → plugins/players/dm/api}/README.md +0 -0
  254. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.js +0 -0
  255. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.min.js +0 -0
  256. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/icon/scalable/dailymotion.svg +0 -0
  257. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.min.js +0 -0
  258. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/LICENSE +0 -0
  259. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/doc → plugins/players/vm}/README.md +0 -0
  260. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api/doc → plugins/players/vm/api}/README.md +0 -0
  261. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.css +0 -0
  262. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.uno.css +0 -0
  263. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/player.css +0 -0
  264. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/doc → plugins/players/wt}/README.md +0 -0
  265. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api/doc/Readme.txt → plugins/players/wt/api/README.md} +0 -0
  266. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api → plugins/players/wt/api/js}/wistia.min.js +0 -0
  267. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.js +0 -0
  268. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.min.js +0 -0
  269. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.js +0 -0
  270. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.min.js +0 -0
  271. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/yt/LICENSE +0 -0
  272. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/doc → plugins/players/yt}/README.md +0 -0
  273. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/api → plugins/players/yt/api/js}/youtube.min.js +0 -0
  274. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.js +0 -0
  275. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.min.js +0 -0
@@ -1,140 +0,0 @@
1
- /*
2
- # -----------------------------------------------------------------------------
3
- # ~/assets/theme/j1/modules/lightGallery/themes/uno.css
4
- # Provides LightGallery styles for Theme Uno
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2023 Sachin Neravath
10
- # Copyright (C) 2023-2025 Juergen Adams
11
- #
12
- # J1 Template is licensed under the MIT License.
13
- # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
14
- # lightGallery is licensed under the GPLv3 license
15
- # See: https://github.com/sachinchoolur/lightGallery/blob/master/LICENSE
16
- # -----------------------------------------------------------------------------
17
- */
18
-
19
- /* global styles
20
- ----------------------------------------------------------------------------- */
21
- .img-responsive {
22
- width: 100%;
23
- height: auto;
24
- overflow: hidden;
25
- }
26
-
27
- .img-fluid {
28
- max-width: 100%;
29
- height: auto;
30
- overflow: hidden;
31
- }
32
-
33
- .gallery-container a {
34
- width: 240px;
35
- margin: 5px;
36
- }
37
-
38
- .gallery-container a img {
39
- max-width: 100%;
40
- height: auto;
41
- }
42
-
43
-
44
- /* custom chapter markers (timeline)
45
- ----------------------------------------------------------------------------- */
46
-
47
- /* marker bullet */
48
- .vjs-chapter-marker {
49
- position: absolute;
50
- background: #0D47A1;
51
- width: 7px;
52
- height: 7px;
53
- margin-left: -3px;
54
- }
55
-
56
- /* marker text */
57
- .vjs-chapter-marker span {
58
- position: absolute;
59
- bottom: 50px;
60
- opacity: 0;
61
- margin-left: -20px;
62
- background: rgba(0,0,0,.8);
63
- padding: 8px;
64
- font-size: 10px;
65
- z-index: 90;
66
- }
67
-
68
- .vjs-chapter-marker:hover span {
69
- opacity: 1;
70
- }
71
-
72
- /* custom anchor
73
- ----------------------------------------------------------------------------- */
74
-
75
- /* jadams, 2024-08-01: try tp remove pointer cursor */
76
- div.card.bottom > a.lg-item {
77
- cursor: default;
78
- }
79
-
80
- /* custom icons
81
- ----------------------------------------------------------------------------- */
82
-
83
- /* vjs big-play-button */
84
- span.big-play-button {
85
- position: absolute;
86
- cursor: pointer;
87
- top: 0;
88
- left: 0;
89
- bottom: 0;
90
- right: 0;
91
- z-index: 1;
92
- background: url(icons/play-button.svg) no-repeat center center;
93
- }
94
-
95
- span.big-play-button:hover {
96
- background: url(icons/play-button-hover.svg) no-repeat center center;
97
- }
98
-
99
- /* custom thumbnails
100
- ----------------------------------------------------------------------------- */
101
- .lg-uno-thumbnails .lg-outer {
102
- width: auto;
103
- right: 230px;
104
- left: 10px;
105
- }
106
-
107
- .lg-uno-thumbnails .lg-outer .lg-thumb-outer {
108
- left: auto;
109
- top: 0;
110
- width: 230px;
111
- max-height: none;
112
- bottom: 0;
113
- background-color: #999;
114
- padding-left: 5px;
115
- padding-right: 5px;
116
- margin: 0 -10px;
117
- overflow-y: auto;
118
- position: fixed;
119
- right: 0;
120
- transform: translate3d(30%, 0, 0);
121
- opacity: 0;
122
- will-change: transform opacity;
123
- transition: transform 0.15s cubic-bezier(0, 0, 0.25, 1) 0s, cubic-bezier(0, 0, 0.25, 1) 0.15s;
124
- }
125
-
126
- .lg-uno-thumbnails .lg-outer.lg-components-open .lg-thumb-outer {
127
- transform: translate3d(0, 0, 0);
128
- opacity: 1;
129
- }
130
-
131
- .lg-uno-thumbnails .lg-outer .lg-thumb-item {
132
- float: left;
133
- will-change: filter;
134
- transition: filter 0.12s ease-in, border-color 0.12s ease;
135
- }
136
-
137
- .lg-uno-thumbnails .lg-outer .lg-thumb {
138
- padding: 5px;
139
- background-color: #1c1c1d;
140
- }
@@ -1,19 +0,0 @@
1
- /*
2
- # -----------------------------------------------------------------------------
3
- # ~/assets/theme/j1/modules/lightGallery/themes/uno.css
4
- # Provides LightGallery styles for Theme Uno
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2023 Sachin Neravath
10
- # Copyright (C) 2023-2025 Juergen Adams
11
- #
12
- # J1 Template is licensed under the MIT License.
13
- # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
14
- # lightGallery is licensed under the GPLv3 license
15
- # See: https://github.com/sachinchoolur/lightGallery/blob/master/LICENSE
16
- # -----------------------------------------------------------------------------
17
- */
18
-
19
- .img-responsive{width:100%;height:auto;overflow:hidden}.img-fluid{max-width:100%;height:auto;overflow:hidden}.gallery-container a{width:240px;margin:5px}.gallery-container a img{max-width:100%;height:auto}.vjs-chapter-marker{position:absolute;background:#0d47a1;width:7px;height:7px;margin-left:-3px}.vjs-chapter-marker span{position:absolute;bottom:50px;opacity:0;margin-left:-20px;background:rgba(0,0,0,.8);padding:8px;font-size:10px;z-index:90}.vjs-chapter-marker:hover span{opacity:1}div.card.bottom>a.lg-item{cursor:default}span.big-play-button{position:absolute;cursor:pointer;top:0;left:0;bottom:0;right:0;z-index:1;background:url(icons/play-button.svg) no-repeat center center}span.big-play-button:hover{background:url(icons/play-button-hover.svg) no-repeat center center}.lg-uno-thumbnails .lg-outer{width:auto;right:230px;left:10px}.lg-uno-thumbnails .lg-outer .lg-thumb-outer{left:auto;top:0;width:230px;max-height:none;bottom:0;background-color:#999;padding-left:5px;padding-right:5px;margin:0 -10px;overflow-y:auto;position:fixed;right:0;transform:translate3d(30%,0,0);opacity:0;will-change:transform opacity;transition:transform .15s cubic-bezier(0,0,0.25,1) 0,cubic-bezier(0,0,0.25,1) .15s}.lg-uno-thumbnails .lg-outer.lg-components-open .lg-thumb-outer{transform:translate3d(0,0,0);opacity:1}.lg-uno-thumbnails .lg-outer .lg-thumb-item{float:left;will-change:filter;transition:filter .12s ease-in,border-color .12s ease}.lg-uno-thumbnails .lg-outer .lg-thumb{padding:5px;background-color:#1c1c1d}
@@ -1,402 +0,0 @@
1
- /*! jg-video - v1 - 2020-04-10
2
- * based on lg-video - v1.2.2 - 2018-05-01
3
- * http://sachinchoolur.github.io/lightGallery
4
- * Copyright (C) 2023-2025 Juergen Adams
5
- * Copyright (C) 2018 Sachin N; Licensed GPLv3
6
- */
7
-
8
- (function (root, factory) {
9
- if (typeof define === 'function' && define.amd) {
10
- // AMD. Register as an anonymous module unless amdModuleId is set
11
- define(['jquery'], function (a0) {
12
- return (factory(a0));
13
- });
14
- } else if (typeof module === 'object' && module.exports) {
15
- // Node. Does not work with strict CommonJS, but
16
- // only CommonJS-like environments that support module.exports,
17
- // like Node.
18
- module.exports = factory(require('jquery'));
19
- } else {
20
- factory(root["jQuery"]);
21
- }
22
- }(this, function ($) {
23
-
24
- (function() {
25
-
26
- 'use strict';
27
-
28
- var defaults = {
29
- videoMaxWidth: '855px',
30
-
31
- autoplayFirstVideo: true,
32
-
33
- youtubePlayerParams: false,
34
- vimeoPlayerParams: false,
35
- dailymotionPlayerParams: false,
36
- vkPlayerParams: false,
37
-
38
- videojs: false,
39
- videojsOptions: {}
40
- };
41
-
42
- var Video = function(element) {
43
-
44
- this.core = $(element).data('lightGallery');
45
-
46
- this.$el = $(element);
47
- this.core.s = $.extend({}, defaults, this.core.s);
48
- this.videoLoaded = false;
49
-
50
- this.init();
51
-
52
- return this;
53
- };
54
-
55
- Video.prototype.init = function() {
56
- var _this = this;
57
-
58
- // Event triggered when video url found without poster
59
- _this.core.$el.on('hasVideo.lg.tm', onHasVideo.bind(this));
60
-
61
- // Set max width for video
62
- _this.core.$el.on('onAferAppendSlide.lg.tm', onAferAppendSlide.bind(this));
63
-
64
- if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {
65
- _this.core.$el.on('onSlideClick.lg.tm', function() {
66
- var $el = _this.core.$slide.eq(_this.core.index);
67
- _this.loadVideoOnclick($el);
68
- });
69
- } else {
70
-
71
- // For IE 9 and bellow
72
- _this.core.$slide.on('click.lg', function() {
73
- _this.loadVideoOnclick($(this));
74
- });
75
- }
76
-
77
- _this.core.$el.on('onBeforeSlide.lg.tm', onBeforeSlide.bind(this));
78
-
79
- _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
80
- _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
81
- });
82
-
83
- if (_this.core.s.autoplayFirstVideo) {
84
- _this.core.$el.on('onAferAppendSlide.lg.tm', function (e, index) {
85
- if (!_this.core.lGalleryOn) {
86
- var $el = _this.core.$slide.eq(index);
87
- setTimeout(function () {
88
- _this.loadVideoOnclick($el);
89
- }, 100);
90
- }
91
- });
92
- }
93
- };
94
-
95
- Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {
96
- var video = '';
97
- var autoplay = 1;
98
- var a = '';
99
- var isVideo = this.core.isVideo(src, index) || {};
100
-
101
- // Enable autoplay based on setting for first video if poster doesn't exist
102
- if (noPoster) {
103
- if (this.videoLoaded) {
104
- autoplay = 0;
105
- } else {
106
- autoplay = this.core.s.autoplayFirstVideo ? 1 : 0;
107
- }
108
- }
109
-
110
- if (isVideo.youtube) {
111
-
112
- /* jadams, 2020-04-10:
113
- This code loads the YouTube IFrame Player API code
114
- asynchronously (before the first JS script tag in the head)
115
- */
116
- var tag = document.createElement('script');
117
- tag.src = "https://www.youtube.com/iframe_api";
118
- var firstScriptTag = document.getElementsByTagName('script')[0];
119
- firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
120
-
121
- a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';
122
- if (this.core.s.youtubePlayerParams) {
123
- a = a + '&' + $.param(this.core.s.youtubePlayerParams);
124
- }
125
-
126
- video = '<iframe class="lg-video-object lg-youtube ' + addClass + '" width="560" height="315" src="//www.youtube.com/embed/' + isVideo.youtube[1] + a + '" frameborder="0" allowfullscreen></iframe>';
127
-
128
- } else if (isVideo.vimeo) {
129
-
130
- a = '?autoplay=' + autoplay + '&api=1';
131
- if (this.core.s.vimeoPlayerParams) {
132
- a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
133
- }
134
-
135
- video = '<iframe class="lg-video-object lg-vimeo ' + addClass + '" width="560" height="315" src="//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
136
-
137
- } else if (isVideo.dailymotion) {
138
-
139
- a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';
140
- if (this.core.s.dailymotionPlayerParams) {
141
- a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
142
- }
143
-
144
- video = '<iframe class="lg-video-object lg-dailymotion ' + addClass + '" width="560" height="315" src="//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '" frameborder="0" allowfullscreen></iframe>';
145
-
146
- } else if (isVideo.html5) {
147
- var fL = html.substring(0, 1);
148
- if (fL === '.' || fL === '#') {
149
- html = $(html).html();
150
- }
151
- video = html;
152
-
153
- } else if (isVideo.vk) {
154
-
155
- a = '&autoplay=' + autoplay;
156
- if (this.core.s.vkPlayerParams) {
157
- a = a + '&' + $.param(this.core.s.vkPlayerParams);
158
- }
159
-
160
- video = '<iframe class="lg-video-object lg-vk ' + addClass + '" width="560" height="315" src="//vk.com/video_ext.php?' + isVideo.vk[1] + a + '" frameborder="0" allowfullscreen></iframe>';
161
- }
162
- return video;
163
- };
164
-
165
- Video.prototype.loadVideoOnclick = function($el){
166
-
167
- var _this = this;
168
- // check slide has poster
169
- if ($el.find('.lg-object').hasClass('lg-has-poster') && $el.find('.lg-object').is(':visible')) {
170
-
171
- // check if video container is already present
172
- if (!$el.hasClass('lg-has-video')) {
173
-
174
- $el.addClass('lg-video-playing lg-has-video');
175
-
176
- var _src;
177
- var _html;
178
- var _loadVideo = function(_src, _html) {
179
-
180
- $el.find('.lg-video').append(_this.loadVideo(_src, '', false, _this.core.index, _html));
181
-
182
- if (_html) {
183
- // VideoJS
184
- if (_this.core.s.videojs) {
185
- var player_ref = _this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0);
186
- var videoOptions = _this.core.s.videojsOptions;
187
- /*
188
- jadams, 2020-04-10: Player Readiness:
189
- Pass a callback to the videojs function (as a third argument)
190
- */
191
- try {
192
- videojs(player_ref, videoOptions, function() {
193
- this.addClass('my-test-ready-class');
194
- this.play();
195
- });
196
- } catch (e) {
197
- console.error('Make sure you have included videojs');
198
- }
199
- } else {
200
- _this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0).play();
201
- }
202
- }
203
-
204
- };
205
-
206
- if (_this.core.s.dynamic) {
207
-
208
- _src = _this.core.s.dynamicEl[_this.core.index].src;
209
- _html = _this.core.s.dynamicEl[_this.core.index].html;
210
-
211
- _loadVideo(_src, _html);
212
-
213
- } else {
214
-
215
- _src = _this.core.$items.eq(_this.core.index).attr('href') || _this.core.$items.eq(_this.core.index).attr('data-src');
216
- _html = _this.core.$items.eq(_this.core.index).attr('data-html');
217
-
218
- _loadVideo(_src, _html);
219
-
220
- }
221
-
222
- var $tempImg = $el.find('.lg-object');
223
- $el.find('.lg-video').append($tempImg);
224
-
225
- // @todo loading icon for html5 videos also
226
- // for showing the loading indicator while loading video
227
- if (!$el.find('.lg-video-object').hasClass('lg-html5')) {
228
- $el.removeClass('lg-complete');
229
- $el.find('.lg-video-object').on('load.lg error.lg', function() {
230
- $el.addClass('lg-complete');
231
- });
232
- }
233
-
234
- } else {
235
-
236
- var youtubePlayer;
237
- var vimeoPlayer;
238
- var dailymotionPlayer;
239
- var html5Player;
240
-
241
- /*
242
- jadams, 2020-04-10: Player Readiness:
243
- Make sure that the HTML portion of a player is already loaded
244
- */
245
- var player_loaded = setInterval(function() {
246
-
247
- youtubePlayer = $el.find('.lg-youtube').get(0);
248
- vimeoPlayer = $el.find('.lg-vimeo').get(0);
249
- dailymotionPlayer = $el.find('.lg-dailymotion').get(0);
250
- html5Player = $el.find('.lg-html5').get(0);
251
-
252
- if ( youtubePlayer || vimeoPlayer || dailymotionPlayer || html5Player ) {
253
-
254
- if (youtubePlayer) {
255
- youtubePlayer.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
256
- } else if (vimeoPlayer) {
257
- try {
258
- $f(vimeoPlayer).api('play');
259
- } catch (e) {
260
- console.error('Make sure you have included froogaloop2 js');
261
- }
262
- } else if (dailymotionPlayer) {
263
- dailymotionPlayer.contentWindow.postMessage('play', '*');
264
-
265
- } else if (html5Player) {
266
- if (_this.core.s.videojs) {
267
- try {
268
- videojs(html5Player).play();
269
- } catch (e) {
270
- console.error('Make sure you have included videojs');
271
- }
272
- } else {
273
- html5Player.play();
274
- }
275
- }
276
-
277
- $el.addClass('lg-video-playing');
278
- clearInterval(player_loaded);
279
- }
280
- }, 10);
281
-
282
- $el.addClass('lg-video-playing');
283
- }
284
- }
285
- };
286
-
287
- Video.prototype.destroy = function() {
288
- this.videoLoaded = false;
289
- };
290
-
291
- function onHasVideo(event, index, src, html) {
292
- /* jshint validthis:true */
293
-
294
- var _this = this;
295
-
296
- _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));
297
-
298
- if (html) {
299
- if (_this.core.s.videojs) {
300
- try {
301
- videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
302
- if (!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
303
- this.play();
304
- }
305
- });
306
- } catch (e) {
307
- console.error('Make sure you have included videojs');
308
- }
309
- } else {
310
- if(!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
311
- _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
312
- }
313
- }
314
- }
315
- }
316
-
317
- function onAferAppendSlide(event, index) {
318
- /* jshint validthis:true */
319
-
320
- var $videoCont = this.core.$slide.eq(index).find('.lg-video-cont');
321
-
322
- if (!$videoCont.hasClass('lg-has-iframe')) {
323
- $videoCont.css('max-width', this.core.s.videoMaxWidth);
324
- this.videoLoaded = true;
325
- }
326
- }
327
-
328
- function onBeforeSlide(event, prevIndex, index) {
329
- /* jshint validthis:true */
330
-
331
- var _this = this;
332
- var $videoSlide;
333
-
334
- var youtubePlayer;
335
- var vimeoPlayer;
336
- var dailymotionPlayer;
337
- var html5Player;
338
- var vkPlayer;
339
-
340
- /*
341
- jadams, 2020-04-10: Player Readiness:
342
- Make sure that the HTML portion of a player is already loaded
343
- */
344
- var player_loaded = setInterval(function() {
345
-
346
- $videoSlide = _this.core.$slide.eq(prevIndex);
347
-
348
- youtubePlayer = $videoSlide.find('.lg-youtube').get(0);
349
- vimeoPlayer = $videoSlide.find('.lg-vimeo').get(0);
350
- dailymotionPlayer = $videoSlide.find('.lg-dailymotion').get(0);
351
- vkPlayer = $videoSlide.find('.lg-vk').get(0);
352
- html5Player = $videoSlide.find('.lg-html5').get(0);
353
-
354
- if ( youtubePlayer || vimeoPlayer || dailymotionPlayer || vkPlayer || html5Player ) {
355
-
356
- if (youtubePlayer) {
357
- youtubePlayer.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
358
- } else if (vimeoPlayer) {
359
- try {
360
- $f(vimeoPlayer).api('pause');
361
- } catch (e) {
362
- console.error('Make sure you have included froogaloop2 js');
363
- }
364
- } else if (dailymotionPlayer) {
365
- dailymotionPlayer.contentWindow.postMessage('pause', '*');
366
-
367
- } else if (html5Player) {
368
- if (_this.core.s.videojs) {
369
- try {
370
- videojs(html5Player).pause();
371
- } catch (e) {
372
- console.error('Make sure you have included videojs');
373
- }
374
- } else {
375
- html5Player.pause();
376
- }
377
- } if (vkPlayer) {
378
- $(vkPlayer).attr('src', $(vkPlayer).attr('src').replace('&autoplay', '&noplay'));
379
- }
380
-
381
- var _src;
382
- if (_this.core.s.dynamic) {
383
- _src = _this.core.s.dynamicEl[index].src;
384
- } else {
385
- _src = _this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src');
386
-
387
- }
388
-
389
- var _isVideo = _this.core.isVideo(_src, index) || {};
390
- if (_isVideo.youtube || _isVideo.vimeo || _isVideo.dailymotion || _isVideo.vk) {
391
- _this.core.$outer.addClass('lg-hide-download');
392
- }
393
- clearInterval(player_loaded);
394
- }
395
- }, 10);
396
- }
397
-
398
- $.fn.lightGallery.modules.video = Video;
399
-
400
- })();
401
-
402
- }));
@@ -1,7 +0,0 @@
1
- /*! jg-video - v1 - 2020-04-10
2
- * based on lg-video - v1.2.2 - 2018-05-01
3
- * http://sachinchoolur.github.io/lightGallery
4
- * Copyright (C) 2023-2025 Juergen Adams
5
- * Copyright (C) 2018 Sachin N; Licensed GPLv3
6
- */
7
- !function(e,o){"function"==typeof define&&define.amd?define(["jquery"],function(e){return o(e)}):"object"==typeof module&&module.exports?module.exports=o(require("jquery")):o(e.jQuery)}(this,function(e){!function(){"use strict";var o={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},i=function(i){return this.core=e(i).data("lightGallery"),this.$el=e(i),this.core.s=e.extend({},o,this.core.s),this.videoLoaded=!1,this.init(),this};function a(e,o,i,a){var t=this;if(t.core.$slide.eq(o).find(".lg-video").append(t.loadVideo(i,"lg-object",!0,o,a)),a){if(t.core.s.videojs)try{videojs(t.core.$slide.eq(o).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){!t.videoLoaded&&t.core.s.autoplayFirstVideo&&this.play()})}catch(r){console.error("Make sure you have included videojs")}else!t.videoLoaded&&t.core.s.autoplayFirstVideo&&t.core.$slide.eq(o).find(".lg-html5").get(0).play()}}function t(e,o){var i=this.core.$slide.eq(o).find(".lg-video-cont");i.hasClass("lg-has-iframe")||(i.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}function r(o,i,a){var t,r,s,l,d,c,n=this,m=setInterval(function(){if(r=(t=n.core.$slide.eq(i)).find(".lg-youtube").get(0),s=t.find(".lg-vimeo").get(0),l=t.find(".lg-dailymotion").get(0),c=t.find(".lg-vk").get(0),d=t.find(".lg-html5").get(0),r||s||l||c||d){if(r)r.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(s)try{$f(s).api("pause")}catch(o){console.error("Make sure you have included froogaloop2 js")}else if(l)l.contentWindow.postMessage("pause","*");else if(d){if(n.core.s.videojs)try{videojs(d).pause()}catch(f){console.error("Make sure you have included videojs")}else d.pause()}c&&e(c).attr("src",e(c).attr("src").replace("&autoplay","&noplay")),u=n.core.s.dynamic?n.core.s.dynamicEl[a].src:n.core.$items.eq(a).attr("href")||n.core.$items.eq(a).attr("data-src");var u,y=n.core.isVideo(u,a)||{};(y.youtube||y.vimeo||y.dailymotion||y.vk)&&n.core.$outer.addClass("lg-hide-download"),clearInterval(m)}},10)}i.prototype.init=function(){var o=this;o.core.$el.on("hasVideo.lg.tm",a.bind(this)),o.core.$el.on("onAferAppendSlide.lg.tm",t.bind(this)),o.core.doCss()&&o.core.$items.length>1&&(o.core.s.enableSwipe||o.core.s.enableDrag)?o.core.$el.on("onSlideClick.lg.tm",function(){var e=o.core.$slide.eq(o.core.index);o.loadVideoOnclick(e)}):o.core.$slide.on("click.lg",function(){o.loadVideoOnclick(e(this))}),o.core.$el.on("onBeforeSlide.lg.tm",r.bind(this)),o.core.$el.on("onAfterSlide.lg.tm",function(e,i){o.core.$slide.eq(i).removeClass("lg-video-playing")}),o.core.s.autoplayFirstVideo&&o.core.$el.on("onAferAppendSlide.lg.tm",function(e,i){if(!o.core.lGalleryOn){var a=o.core.$slide.eq(i);setTimeout(function(){o.loadVideoOnclick(a)},100)}})},i.prototype.loadVideo=function(o,i,a,t,r){var s="",l=1,d="",c=this.core.isVideo(o,t)||{};if(a&&(l=this.videoLoaded?0:this.core.s.autoplayFirstVideo?1:0),c.youtube){var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api";var m=document.getElementsByTagName("script")[0];m.parentNode.insertBefore(n,m),d="?wmode=opaque&autoplay="+l+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(d=d+"&"+e.param(this.core.s.youtubePlayerParams)),s='<iframe class="lg-video-object lg-youtube '+i+'" width="560" height="315" src="//www.youtube.com/embed/'+c.youtube[1]+d+'" frameborder="0" allowfullscreen></iframe>'}else if(c.vimeo)d="?autoplay="+l+"&api=1",this.core.s.vimeoPlayerParams&&(d=d+"&"+e.param(this.core.s.vimeoPlayerParams)),s='<iframe class="lg-video-object lg-vimeo '+i+'" width="560" height="315" src="//player.vimeo.com/video/'+c.vimeo[1]+d+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(c.dailymotion)d="?wmode=opaque&autoplay="+l+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(d=d+"&"+e.param(this.core.s.dailymotionPlayerParams)),s='<iframe class="lg-video-object lg-dailymotion '+i+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+c.dailymotion[1]+d+'" frameborder="0" allowfullscreen></iframe>';else if(c.html5){var f=r.substring(0,1);("."===f||"#"===f)&&(r=e(r).html()),s=r}else c.vk&&(d="&autoplay="+l,this.core.s.vkPlayerParams&&(d=d+"&"+e.param(this.core.s.vkPlayerParams)),s='<iframe class="lg-video-object lg-vk '+i+'" width="560" height="315" src="//vk.com/video_ext.php?'+c.vk[1]+d+'" frameborder="0" allowfullscreen></iframe>');return s},i.prototype.loadVideoOnclick=function(e){var o=this;if(e.find(".lg-object").hasClass("lg-has-poster")&&e.find(".lg-object").is(":visible")){if(e.hasClass("lg-has-video")){var i,a,t,r,s=setInterval(function(){if(i=e.find(".lg-youtube").get(0),a=e.find(".lg-vimeo").get(0),t=e.find(".lg-dailymotion").get(0),r=e.find(".lg-html5").get(0),i||a||t||r){if(i)i.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(a)try{$f(a).api("play")}catch(l){console.error("Make sure you have included froogaloop2 js")}else if(t)t.contentWindow.postMessage("play","*");else if(r){if(o.core.s.videojs)try{videojs(r).play()}catch(d){console.error("Make sure you have included videojs")}else r.play()}e.addClass("lg-video-playing"),clearInterval(s)}},10);e.addClass("lg-video-playing")}else{e.addClass("lg-video-playing lg-has-video");var l,d,c=function(i,a){if(e.find(".lg-video").append(o.loadVideo(i,"",!1,o.core.index,a)),a){if(o.core.s.videojs){var t=o.core.$slide.eq(o.core.index).find(".lg-html5").get(0),r=o.core.s.videojsOptions;try{videojs(t,r,function(){this.addClass("my-test-ready-class"),this.play()})}catch(s){console.error("Make sure you have included videojs")}}else o.core.$slide.eq(o.core.index).find(".lg-html5").get(0).play()}};o.core.s.dynamic?c(l=o.core.s.dynamicEl[o.core.index].src,d=o.core.s.dynamicEl[o.core.index].html):c(l=o.core.$items.eq(o.core.index).attr("href")||o.core.$items.eq(o.core.index).attr("data-src"),d=o.core.$items.eq(o.core.index).attr("data-html"));var n=e.find(".lg-object");e.find(".lg-video").append(n),e.find(".lg-video-object").hasClass("lg-html5")||(e.removeClass("lg-complete"),e.find(".lg-video-object").on("load.lg error.lg",function(){e.addClass("lg-complete")}))}}},i.prototype.destroy=function(){this.videoLoaded=!1},e.fn.lightGallery.modules.video=i}()});