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,585 +0,0 @@
1
- /*
2
- # -----------------------------------------------------------------------------
3
- # ~/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js
4
- # Provides lightGallery JS code for the plugin lgVideo
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
- /*!
20
- * lightgallery | 2.7.2 | September 20th 2023
21
- * http://www.lightgalleryjs.com/
22
- * Copyright (c) 2020 Sachin Neravath;
23
- * @license GPLv3
24
- */
25
-
26
- (function (global, factory) {
27
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
28
- typeof define === 'function' && define.amd ? define(factory) :
29
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.lgVideo = factory());
30
- }(this, (function () { 'use strict';
31
-
32
- /*! *****************************************************************************
33
- Copyright (c) Microsoft Corporation.
34
-
35
- Permission to use, copy, modify, and/or distribute this software for any
36
- purpose with or without fee is hereby granted.
37
-
38
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
- PERFORMANCE OF THIS SOFTWARE.
45
- ***************************************************************************** */
46
-
47
- var __assign = function() {
48
- __assign = Object.assign || function __assign(t) {
49
- for (var s, i = 1, n = arguments.length; i < n; i++) {
50
- s = arguments[i];
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
52
- }
53
- return t;
54
- };
55
- return __assign.apply(this, arguments);
56
- };
57
-
58
- var videoSettings = {
59
- autoplayFirstVideo: true,
60
- youTubePlayerParams: false,
61
- vimeoPlayerParams: false,
62
- wistiaPlayerParams: false,
63
- dailymotionPlayerParams: false,
64
- vkPlayerParams: false,
65
- gotoNextSlideOnVideoEnd: true,
66
- autoplayVideoOnSlide: false,
67
- videojs: false,
68
- videojsTheme: '',
69
- videojsOptions: {},
70
- };
71
-
72
- /**
73
- * List of lightGallery events
74
- * All events should be documented here
75
- * Below interfaces are used to build the website documentations
76
- * */
77
- var lGEvents = {
78
- afterAppendSlide: 'lgAfterAppendSlide',
79
- init: 'lgInit',
80
- hasVideo: 'lgHasVideo',
81
- containerResize: 'lgContainerResize',
82
- updateSlides: 'lgUpdateSlides',
83
- afterAppendSubHtml: 'lgAfterAppendSubHtml',
84
- beforeOpen: 'lgBeforeOpen',
85
- afterOpen: 'lgAfterOpen',
86
- slideItemLoad: 'lgSlideItemLoad',
87
- beforeSlide: 'lgBeforeSlide',
88
- afterSlide: 'lgAfterSlide',
89
- posterClick: 'lgPosterClick',
90
- dragStart: 'lgDragStart',
91
- dragMove: 'lgDragMove',
92
- dragEnd: 'lgDragEnd',
93
- beforeNextSlide: 'lgBeforeNextSlide',
94
- beforePrevSlide: 'lgBeforePrevSlide',
95
- beforeClose: 'lgBeforeClose',
96
- afterClose: 'lgAfterClose',
97
- rotateLeft: 'lgRotateLeft',
98
- rotateRight: 'lgRotateRight',
99
- flipHorizontal: 'lgFlipHorizontal',
100
- flipVertical: 'lgFlipVertical',
101
- autoplay: 'lgAutoplay',
102
- autoplayStart: 'lgAutoplayStart',
103
- autoplayStop: 'lgAutoplayStop',
104
- };
105
-
106
- var param = function (obj) {
107
- return Object.keys(obj)
108
- .map(function (k) {
109
- return encodeURIComponent(k) + '=' + encodeURIComponent(obj[k]);
110
- })
111
- .join('&');
112
- };
113
- var paramsToObject = function (url) {
114
- var paramas = url
115
- .slice(1)
116
- .split('&')
117
- .map(function (p) { return p.split('='); })
118
- .reduce(function (obj, pair) {
119
- var _a = pair.map(decodeURIComponent), key = _a[0], value = _a[1];
120
- obj[key] = value;
121
- return obj;
122
- }, {});
123
- return paramas;
124
- };
125
- var getYouTubeParams = function (videoInfo, youTubePlayerParamsSettings) {
126
- if (!videoInfo.youtube)
127
- return '';
128
- var slideUrlParams = videoInfo.youtube[2]
129
- ? paramsToObject(videoInfo.youtube[2])
130
- : '';
131
- // For youtube first params gets priority if duplicates found
132
- var defaultYouTubePlayerParams = {
133
- wmode: 'opaque',
134
- autoplay: 1,
135
- mute: 0,
136
- enablejsapi: 1,
137
- };
138
- var playerParamsSettings = youTubePlayerParamsSettings || {};
139
- var youTubePlayerParams = __assign(__assign(__assign({}, defaultYouTubePlayerParams), playerParamsSettings), slideUrlParams);
140
- var youTubeParams = "?" + param(youTubePlayerParams);
141
- return youTubeParams;
142
- };
143
- var isYouTubeNoCookie = function (url) {
144
- return url.includes('youtube-nocookie.com');
145
- };
146
- var getVimeoURLParams = function (defaultParams, videoInfo) {
147
- if (!videoInfo || !videoInfo.vimeo)
148
- return '';
149
- var urlParams = videoInfo.vimeo[2] || '';
150
- var defaultPlayerParams = defaultParams && Object.keys(defaultParams).length !== 0
151
- ? '&' + param(defaultParams)
152
- : '';
153
- // Support private video
154
- var urlWithHash = videoInfo.vimeo[0].split('/').pop() || '';
155
- var urlWithHashWithParams = urlWithHash.split('?')[0] || '';
156
- var hash = urlWithHashWithParams.split('#')[0];
157
- var isPrivate = videoInfo.vimeo[1] !== hash;
158
- if (isPrivate) {
159
- urlParams = urlParams.replace("/" + hash, '');
160
- }
161
- urlParams =
162
- urlParams[0] == '?' ? '&' + urlParams.slice(1) : urlParams || '';
163
- // For vimeo last params gets priority if duplicates found
164
- var vimeoPlayerParams = "?autoplay=0&muted=0" + (isPrivate ? "&h=" + hash : '') + defaultPlayerParams + urlParams;
165
- return vimeoPlayerParams;
166
- };
167
-
168
- /**
169
- * Video module for lightGallery
170
- * Supports HTML5, YouTube, Vimeo, wistia videos
171
- *
172
- *
173
- * @ref Wistia
174
- * https://wistia.com/support/integrations/wordpress(How to get url)
175
- * https://wistia.com/support/developers/embed-options#using-embed-options
176
- * https://wistia.com/support/developers/player-api
177
- * https://wistia.com/support/developers/construct-an-embed-code
178
- * http://jsfiddle.net/xvnm7xLm/
179
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
180
- * https://wistia.com/support/embed-and-share/sharing-videos
181
- * https://private-sharing.wistia.com/medias/mwhrulrucj
182
- *
183
- * @ref Youtube
184
- * https://developers.google.com/youtube/player_parameters#enablejsapi
185
- * https://developers.google.com/youtube/iframe_api_reference
186
- * https://developer.chrome.com/blog/autoplay/#iframe-delegation
187
- *
188
- * @ref Vimeo
189
- * https://stackoverflow.com/questions/10488943/easy-way-to-get-vimeo-id-from-a-vimeo-url
190
- * https://vimeo.zendesk.com/hc/en-us/articles/360000121668-Starting-playback-at-a-specific-timecode
191
- * https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters
192
- */
193
- var Video = /** @class */ (function () {
194
- function Video(instance) {
195
- // get lightGallery core plugin instance
196
- this.core = instance;
197
- this.settings = __assign(__assign({}, videoSettings), this.core.settings);
198
- return this;
199
- }
200
-
201
- Video.prototype.init = function () {
202
- var _this = this;
203
- /**
204
- * Event triggered when video url found without poster
205
- * Append video HTML
206
- * Play if autoplayFirstVideo is true
207
- */
208
- this.core.LGel.on(lGEvents.hasVideo + ".video", this.onHasVideo.bind(this));
209
- this.core.LGel.on(lGEvents.posterClick + ".video", function () {
210
- var $el = _this.core.getSlideItem(_this.core.index);
211
- _this.loadVideoOnPosterClick($el);
212
- });
213
- this.core.LGel.on(lGEvents.slideItemLoad + ".video", this.onSlideItemLoad.bind(this));
214
- // @desc fired immediately before each slide transition.
215
- this.core.LGel.on(lGEvents.beforeSlide + ".video", this.onBeforeSlide.bind(this));
216
- // @desc fired immediately after each slide transition.
217
- this.core.LGel.on(lGEvents.afterSlide + ".video", this.onAfterSlide.bind(this));
218
- };
219
-
220
- /**
221
- * @desc Event triggered when a slide is completely loaded
222
- *
223
- * @param {Event} event - lightGalley custom event
224
- */
225
- Video.prototype.onSlideItemLoad = function (event) {
226
- var _this = this;
227
- var _a = event.detail, isFirstSlide = _a.isFirstSlide, index = _a.index;
228
- // Should check the active slide as well as user may have moved to different slide before the first slide is loaded
229
- if (this.settings.autoplayFirstVideo &&
230
- isFirstSlide &&
231
- index === this.core.index) {
232
- // Delay is just for the transition effect on video load
233
- setTimeout(function () {
234
- _this.loadAndPlayVideo(index);
235
- }, 200);
236
- }
237
- // Should not call on first slide. should check only if the slide is active
238
- if (!isFirstSlide &&
239
- this.settings.autoplayVideoOnSlide &&
240
- index === this.core.index) {
241
- this.loadAndPlayVideo(index);
242
- }
243
- };
244
-
245
- /**
246
- * @desc Event triggered when video url or poster found
247
- * Append video HTML is poster is not given
248
- * Play if autoplayFirstVideo is true
249
- *
250
- * @param {Event} event - Javascript Event object.
251
- */
252
- Video.prototype.onHasVideo = function (event) {
253
- var _a = event.detail, index = _a.index, src = _a.src, html5Video = _a.html5Video, hasPoster = _a.hasPoster;
254
- if (!hasPoster) {
255
- // All functions are called separately if poster exist in loadVideoOnPosterClick function
256
- this.appendVideos(this.core.getSlideItem(index), {
257
- src: src,
258
- addClass: 'lg-object',
259
- index: index,
260
- html5Video: html5Video,
261
- });
262
- // Automatically navigate to next slide once video reaches the end.
263
- this.gotoNextSlideOnVideoEnd(src, index);
264
- }
265
- };
266
-
267
- /**
268
- * @desc fired immediately before each slide transition.
269
- * Pause the previous video
270
- * Hide the download button if the slide contains YouTube, Vimeo, or Wistia videos.
271
- *
272
- * @param {Event} event - Javascript Event object.
273
- * @param {number} prevIndex - Previous index of the slide.
274
- * @param {number} index - Current index of the slide
275
- */
276
- Video.prototype.onBeforeSlide = function (event) {
277
- if (this.core.lGalleryOn) {
278
- var prevIndex = event.detail.prevIndex;
279
- this.pauseVideo(prevIndex);
280
- }
281
- };
282
-
283
- /**
284
- * @desc fired immediately after each slide transition.
285
- * Play video if autoplayVideoOnSlide option is enabled.
286
- *
287
- * @param {Event} event - Javascript Event object.
288
- * @param {number} prevIndex - Previous index of the slide.
289
- * @param {number} index - Current index of the slide
290
- * @todo should check on onSlideLoad as well if video is not loaded on after slide
291
- */
292
- Video.prototype.onAfterSlide = function (event) {
293
- var _this = this;
294
- var _a = event.detail, index = _a.index, prevIndex = _a.prevIndex;
295
- // Do not call on first slide
296
- var $slide = this.core.getSlideItem(index);
297
- if (this.settings.autoplayVideoOnSlide && index !== prevIndex) {
298
- if ($slide.hasClass('lg-complete')) {
299
- setTimeout(function () {
300
- _this.loadAndPlayVideo(index);
301
- }, 100);
302
- }
303
- }
304
- };
305
-
306
- Video.prototype.loadAndPlayVideo = function (index) {
307
- var $slide = this.core.getSlideItem(index);
308
- var currentGalleryItem = this.core.galleryItems[index];
309
- if (currentGalleryItem.poster) {
310
- this.loadVideoOnPosterClick($slide, true);
311
- }
312
- else {
313
- this.playVideo(index);
314
- }
315
- };
316
- /**
317
- * Play HTML5, Youtube, Vimeo or Wistia videos in a particular slide.
318
- * @param {number} index - Index of the slide
319
- */
320
- Video.prototype.playVideo = function (index) {
321
- this.controlVideo(index, 'play');
322
- };
323
-
324
- /**
325
- * Pause HTML5, Youtube, Vimeo or Wistia videos in a particular slide.
326
- * @param {number} index - Index of the slide
327
- */
328
- Video.prototype.pauseVideo = function (index) {
329
- this.controlVideo(index, 'pause');
330
- };
331
-
332
- Video.prototype.getVideoHtml = function (src, addClass, index, html5Video) {
333
- var video = '';
334
- var videoInfo = this.core.galleryItems[index]
335
- .__slideVideoInfo || {};
336
- var currentGalleryItem = this.core.galleryItems[index];
337
- var videoTitle = currentGalleryItem.title || currentGalleryItem.alt;
338
- videoTitle = videoTitle ? 'title="' + videoTitle + '"' : '';
339
- var commonIframeProps = "allowtransparency=\"true\"\n frameborder=\"0\"\n scrolling=\"no\"\n allowfullscreen\n mozallowfullscreen\n webkitallowfullscreen\n oallowfullscreen\n msallowfullscreen";
340
- if (videoInfo.youtube) {
341
- var videoId = 'lg-youtube' + index;
342
- var youTubeParams = getYouTubeParams(videoInfo, this.settings.youTubePlayerParams);
343
- var isYouTubeNoCookieURL = isYouTubeNoCookie(src);
344
- var youtubeURL = isYouTubeNoCookieURL
345
- ? '//www.youtube-nocookie.com/'
346
- : '//www.youtube.com/';
347
- video = "<iframe allow=\"autoplay\" id=" + videoId + " class=\"lg-video-object lg-youtube " + addClass + "\" " + videoTitle + " src=\"" + youtubeURL + "embed/" + (videoInfo.youtube[1] + youTubeParams) + "\" " + commonIframeProps + "></iframe>";
348
- }
349
- else if (videoInfo.vimeo) {
350
- var videoId = 'lg-vimeo' + index;
351
- var playerParams = getVimeoURLParams(this.settings.vimeoPlayerParams, videoInfo);
352
- video = "<iframe allow=\"autoplay\" id=" + videoId + " class=\"lg-video-object lg-vimeo " + addClass + "\" " + videoTitle + " src=\"//player.vimeo.com/video/" + (videoInfo.vimeo[1] + playerParams) + "\" " + commonIframeProps + "></iframe>";
353
- }
354
- else if (videoInfo.wistia) {
355
- var wistiaId = 'lg-wistia' + index;
356
- var playerParams = param(this.settings.wistiaPlayerParams);
357
- playerParams = playerParams ? '?' + playerParams : '';
358
- video = "<iframe allow=\"autoplay\" id=\"" + wistiaId + "\" src=\"//fast.wistia.net/embed/iframe/" + (videoInfo.wistia[4] + playerParams) + "\" " + videoTitle + " class=\"wistia_embed lg-video-object lg-wistia " + addClass + "\" name=\"wistia_embed\" " + commonIframeProps + "></iframe>";
359
- }
360
- // jadams: added Dailymotion Player
361
- else if (videoInfo.dailymotion) {
362
- var dailymotionId = 'lg-dailymotion' + index;
363
- var playerParams = param(this.settings.dailymotionPlayerParams);
364
- playerParams = playerParams ? '?' + playerParams : '';
365
- video = "<iframe allow=\"autoplay\" id=\"" + dailymotionId + "\" src=\"//www.dailymotion.com/embed/video/" + (videoInfo.dailymotion[1] + playerParams) + "\" " + videoTitle + " class=\"dailymotion_embed lg-video-object lg-dailymotion " + addClass + "\" name=\"dailymotion_embed\" " + commonIframeProps + "></iframe>"
366
- }
367
- else if (videoInfo.html5) {
368
- var html5VideoMarkup = '';
369
- for (var i = 0; i < html5Video.source.length; i++) {
370
- html5VideoMarkup += "<source src=\"" + html5Video.source[i].src + "\" type=\"" + html5Video.source[i].type + "\">";
371
- }
372
- if (html5Video.tracks) {
373
- var _loop_1 = function (i) {
374
- var trackAttributes = '';
375
- var track = html5Video.tracks[i];
376
- Object.keys(track || {}).forEach(function (key) {
377
- trackAttributes += key + "=\"" + track[key] + "\" ";
378
- });
379
- html5VideoMarkup += "<track " + trackAttributes + ">";
380
- };
381
- for (var i = 0; i < html5Video.tracks.length; i++) {
382
- _loop_1(i);
383
- }
384
- }
385
- var html5VideoAttrs_1 = '';
386
- var videoAttributes_1 = html5Video.attributes || {};
387
- Object.keys(videoAttributes_1 || {}).forEach(function (key) {
388
- html5VideoAttrs_1 += key + "=\"" + videoAttributes_1[key] + "\" ";
389
- });
390
- video = "<video class=\"lg-video-object lg-html5 " + (this.settings.videojs && this.settings.videojsTheme
391
- ? this.settings.videojsTheme + ' '
392
- : '') + " " + (this.settings.videojs ? ' video-js' : '') + "\" " + html5VideoAttrs_1 + ">\n " + html5VideoMarkup + "\n Your browser does not support HTML5 video.\n </video>";
393
- }
394
- return video;
395
- };
396
-
397
- /**
398
- * @desc - Append videos to the slide
399
- *
400
- * @param {HTMLElement} el - slide element
401
- * @param {Object} videoParams - Video parameters, Contains src, class, index, htmlVideo
402
- */
403
- Video.prototype.appendVideos = function (el, videoParams) {
404
- var _a;
405
- var videoHtml = this.getVideoHtml(videoParams.src, videoParams.addClass, videoParams.index, videoParams.html5Video);
406
- el.find('.lg-video-cont').append(videoHtml);
407
- var $videoElement = el.find('.lg-video-object').first();
408
- if (videoParams.html5Video) {
409
- $videoElement.on('mousedown.lg.video', function (e) {
410
- e.stopPropagation();
411
- });
412
- }
413
- if (this.settings.videojs && ((_a = this.core.galleryItems[videoParams.index].__slideVideoInfo) === null || _a === void 0 ? void 0 : _a.html5)) {
414
- try {
415
- return videojs($videoElement.get(), this.settings.videojsOptions);
416
- }
417
- catch (e) {
418
- console.warn('lightGallery: Make sure you have included videojs');
419
- }
420
- }
421
- };
422
-
423
- Video.prototype.gotoNextSlideOnVideoEnd = function (src, index) {
424
- var _this = this;
425
- var $videoElement = this.core
426
- .getSlideItem(index)
427
- .find('.lg-video-object')
428
- .first();
429
- var videoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
430
- if (this.settings.gotoNextSlideOnVideoEnd) {
431
- if (videoInfo.html5) {
432
- $videoElement.on('ended', function () {
433
- _this.core.goToNextSlide();
434
- });
435
- }
436
- else if (videoInfo.vimeo) {
437
- try {
438
- // https://github.com/vimeo/player.js/#ended
439
- new Vimeo.Player($videoElement.get()).on('ended', function () {
440
- _this.core.goToNextSlide();
441
- });
442
- }
443
- catch (e) {
444
- // jadams:
445
- console.warn('lightGallery: Make sure you have included //github.com/vimeo/player.js');
446
- }
447
- }
448
- else if (videoInfo.wistia) {
449
- try {
450
- window._wq = window._wq || [];
451
- // @todo Event is gettign triggered multiple times
452
- window._wq.push({
453
- id: $videoElement.attr('id'),
454
- onReady: function (video) {
455
- video.bind('end', function () {
456
- _this.core.goToNextSlide();
457
- });
458
- },
459
- });
460
- }
461
- catch (e) {
462
- // jadams:
463
- console.warn('lightGallery: Make sure you have included //fast.wistia.com/assets/external/E-v1.js');
464
- }
465
- }
466
- }
467
- };
468
-
469
- Video.prototype.controlVideo = function (index, action) {
470
- var $videoElement = this.core
471
- .getSlideItem(index)
472
- .find('.lg-video-object')
473
- .first();
474
- var videoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
475
- if (!$videoElement.get())
476
- return;
477
- if (videoInfo.youtube) {
478
- try {
479
- $videoElement.get().contentWindow.postMessage("{\"event\":\"command\",\"func\":\"" + action + "Video\",\"args\":\"\"}", '*');
480
- }
481
- catch (e) {
482
- console.error("lightGallery:- " + e);
483
- }
484
- }
485
- else if (videoInfo.vimeo) {
486
- try {
487
- new Vimeo.Player($videoElement.get())[action]();
488
- }
489
- catch (e) {
490
- console.warn('lightGallery: Make sure you have included //github.com/vimeo/player.js');
491
- }
492
- }
493
- else if (videoInfo.html5) {
494
- if (this.settings.videojs) {
495
- try {
496
- videojs($videoElement.get())[action]();
497
- }
498
- catch (e) {
499
- console.warn('lightGallery: Make sure you have included videojs');
500
- }
501
- }
502
- else {
503
- $videoElement.get()[action]();
504
- }
505
- }
506
- else if (videoInfo.wistia) {
507
- try {
508
- window._wq = window._wq || [];
509
- // @todo Find a way to destroy wistia player instance
510
- window._wq.push({
511
- id: $videoElement.attr('id'),
512
- onReady: function (video) {
513
- video[action]();
514
- },
515
- });
516
- }
517
- catch (e) {
518
- console.warn('lightGallery: Make sure you have included //fast.wistia.com/assets/external/E-v1.js');
519
- }
520
- }
521
- };
522
-
523
- Video.prototype.loadVideoOnPosterClick = function ($el, forcePlay) {
524
- var _this = this;
525
- // check slide has poster
526
- if (!$el.hasClass('lg-video-loaded')) {
527
- // check already video element present
528
- if (!$el.hasClass('lg-has-video')) {
529
- $el.addClass('lg-has-video');
530
- var _html = void 0;
531
- var _src = this.core.galleryItems[this.core.index].src;
532
- var video = this.core.galleryItems[this.core.index].video;
533
- if (video) {
534
- _html =
535
- typeof video === 'string' ? JSON.parse(video) : video;
536
- }
537
- var videoJsPlayer_1 = this.appendVideos($el, {
538
- src: _src,
539
- addClass: '',
540
- index: this.core.index,
541
- html5Video: _html,
542
- });
543
- this.gotoNextSlideOnVideoEnd(_src, this.core.index);
544
- var $tempImg = $el.find('.lg-object').first().get();
545
- // @todo make sure it is working
546
- $el.find('.lg-video-cont').first().append($tempImg);
547
- $el.addClass('lg-video-loading');
548
- videoJsPlayer_1 &&
549
- videoJsPlayer_1.ready(function () {
550
- videoJsPlayer_1.on('loadedmetadata', function () {
551
- _this.onVideoLoadAfterPosterClick($el, _this.core.index);
552
- });
553
- });
554
- $el.find('.lg-video-object')
555
- .first()
556
- .on('load.lg error.lg loadedmetadata.lg', function () {
557
- setTimeout(function () {
558
- _this.onVideoLoadAfterPosterClick($el, _this.core.index);
559
- }, 50);
560
- });
561
- }
562
- else {
563
- this.playVideo(this.core.index);
564
- }
565
- }
566
- else if (forcePlay) {
567
- this.playVideo(this.core.index);
568
- }
569
- };
570
-
571
- Video.prototype.onVideoLoadAfterPosterClick = function ($el, index) {
572
- $el.addClass('lg-video-loaded');
573
- this.playVideo(index);
574
- };
575
-
576
- Video.prototype.destroy = function () {
577
- this.core.LGel.off('.lg.video');
578
- this.core.LGel.off('.video');
579
- };
580
- return Video;
581
- }());
582
-
583
- return Video;
584
-
585
- })));