j1-template 2024.3.21 → 2024.3.23

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 (383) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/amplitude_app.html +60 -51
  3. data/assets/data/{galeries.html → gallery_app.html} +4 -4
  4. data/assets/theme/bla +0 -0
  5. data/assets/theme/j1/adapter/js/advertising.js +40 -38
  6. data/assets/theme/j1/adapter/js/algolia.js +13 -11
  7. data/assets/theme/j1/adapter/js/amplitude.js +628 -380
  8. data/assets/theme/j1/adapter/js/analytics.js +19 -17
  9. data/assets/theme/j1/adapter/js/asciidoctor.js +10 -8
  10. data/assets/theme/j1/adapter/js/attic.js +24 -22
  11. data/assets/theme/j1/adapter/js/bmd.js +10 -8
  12. data/assets/theme/j1/adapter/js/carousel.js +12 -9
  13. data/assets/theme/j1/adapter/js/chatbot.js +106 -104
  14. data/assets/theme/j1/adapter/js/clipboard.js +16 -14
  15. data/assets/theme/j1/adapter/js/comments.js +24 -22
  16. data/assets/theme/j1/adapter/js/cookieConsent.js +5 -1
  17. data/assets/theme/j1/adapter/js/customFunctions.js +12 -10
  18. data/assets/theme/j1/adapter/js/customModule.js +10 -8
  19. data/assets/theme/j1/adapter/js/docsearch.js +33 -31
  20. data/assets/theme/j1/adapter/js/dropdowns.js +16 -14
  21. data/assets/theme/j1/adapter/js/fab.js +34 -32
  22. data/assets/theme/j1/adapter/js/gallery.js +22 -20
  23. data/assets/theme/j1/adapter/js/gemini.js +66 -64
  24. data/assets/theme/j1/adapter/js/iconPicker.js +31 -29
  25. data/assets/theme/j1/adapter/js/iconPickerPage.js +11 -9
  26. data/assets/theme/j1/adapter/js/iframer.js +17 -15
  27. data/assets/theme/j1/adapter/js/j1.js +146 -143
  28. data/assets/theme/j1/adapter/js/lazyLoader.js +33 -31
  29. data/assets/theme/j1/adapter/js/lightbox.js +9 -7
  30. data/assets/theme/j1/adapter/js/logger.js +11 -9
  31. data/assets/theme/j1/adapter/js/lunr.js +37 -35
  32. data/assets/theme/j1/adapter/js/masonry.js +23 -21
  33. data/assets/theme/j1/adapter/js/masterslider.js +31 -29
  34. data/assets/theme/j1/adapter/js/mmenu.js +25 -23
  35. data/assets/theme/j1/adapter/js/navigator.js +43 -41
  36. data/assets/theme/j1/adapter/js/particles.js +12 -10
  37. data/assets/theme/j1/adapter/js/rangeSlider.js +21 -19
  38. data/assets/theme/j1/adapter/js/rouge.js +10 -8
  39. data/assets/theme/j1/adapter/js/rtable.js +14 -12
  40. data/assets/theme/j1/adapter/js/rtextResizer.js +10 -8
  41. data/assets/theme/j1/adapter/js/scroller.js +15 -13
  42. data/assets/theme/j1/adapter/js/slick.js +18 -16
  43. data/assets/theme/j1/adapter/js/slimSelect.js +30 -28
  44. data/assets/theme/j1/adapter/js/speak2me.js +25 -23
  45. data/assets/theme/j1/adapter/js/swiper.js +13 -11
  46. data/assets/theme/j1/adapter/js/themeToggler.js +11 -9
  47. data/assets/theme/j1/adapter/js/themes.js +60 -86
  48. data/assets/theme/j1/adapter/js/toccer.js +13 -11
  49. data/assets/theme/j1/adapter/js/translator.js +19 -16
  50. data/assets/theme/j1/adapter/js/videojs.js +9 -7
  51. data/assets/theme/j1/adapter/js/waves.js +18 -16
  52. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +19 -52
  53. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  54. data/assets/theme/j1/core/js/template.js +11180 -10968
  55. data/assets/theme/j1/core/js/template.min.js +13 -18
  56. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +10 -4
  57. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  58. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +15 -8
  59. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +2 -1
  60. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +35 -14
  61. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
  62. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +817 -695
  63. data/assets/theme/j1/modules/backstretch/js/backstretch.js +2 -2
  64. data/assets/theme/j1/modules/backstretch/js/backstretch.min.js +1 -1
  65. data/assets/theme/j1/modules/cookieConsent/js/cookieConsent.js +11 -11
  66. data/assets/theme/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -1
  67. data/assets/theme/j1/modules/dropdowns/js/dropdowns.js +2 -2
  68. data/assets/theme/j1/modules/dropdowns/js/dropdowns.min.js +1 -1
  69. data/assets/theme/j1/modules/fab/js/fab.js +2 -2
  70. data/assets/theme/j1/modules/fab/js/fab.min.js +1 -1
  71. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.css +984 -0
  72. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.min.css +26 -0
  73. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.css +1627 -0
  74. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.min.css +25 -0
  75. data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.css +1 -1
  76. data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.min.css +1 -1
  77. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.svg +54 -0
  78. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.ttf +0 -0
  79. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff +0 -0
  80. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff2 +0 -0
  81. data/assets/theme/j1/modules/lightGallery/!v2.7.2/images/loading.gif +0 -0
  82. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/loading.gif +0 -0
  83. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/video-play.png +0 -0
  84. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/vimeo-play.png +0 -0
  85. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/youtube-play.png +0 -0
  86. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.js +2782 -0
  87. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.min.js +26 -0
  88. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/LICENSE.md +44 -0
  89. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/README.md +37 -0
  90. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.js +890 -0
  91. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.min.js +8 -0
  92. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/lg-video.1.js +585 -0
  93. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.js +275 -0
  94. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.min.js +26 -0
  95. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.js +230 -0
  96. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.min.js +26 -0
  97. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.js +160 -0
  98. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.min.js +26 -0
  99. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.js +223 -0
  100. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.min.js +27 -0
  101. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.js +157 -0
  102. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.min.js +26 -0
  103. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.js +164 -0
  104. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.min.js +26 -0
  105. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.js +299 -0
  106. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.min.js +26 -0
  107. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.js +244 -0
  108. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.min.js +27 -0
  109. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.js +509 -0
  110. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.min.js +26 -0
  111. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.js +909 -0
  112. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.min.js +26 -0
  113. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.js +207 -0
  114. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
  115. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.js +999 -0
  116. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.min.js +26 -0
  117. data/assets/theme/j1/modules/lightGallery/css/lg-transitions.css +3 -126
  118. data/assets/theme/j1/modules/lightGallery/css/lg-transitions.min.css +3 -10
  119. data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.css +70 -237
  120. data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.min.css +4 -10
  121. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/animation-w.png +0 -0
  122. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/customize-w.png +0 -0
  123. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/dynamic-w.png +0 -0
  124. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/facebook-icon.svg +10 -0
  125. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/googleplus-icon.svg +30 -0
  126. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/html5-w.png +0 -0
  127. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/linked-in.png +0 -0
  128. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/module-w.png +0 -0
  129. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button-hover.svg +94 -0
  130. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.png +0 -0
  131. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.svg +93 -0
  132. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/responsive-w.png +0 -0
  133. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/thumb-w.png +0 -0
  134. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/touch-w.png +0 -0
  135. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter-icon.svg +15 -0
  136. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter.png +0 -0
  137. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/video1-w.png +0 -0
  138. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom-w.png +0 -0
  139. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom.png +0 -0
  140. data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.css +276 -0
  141. data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +17 -0
  142. data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +163 -120
  143. data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +6 -6
  144. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.0.js +495 -0
  145. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.1.js +513 -0
  146. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.0.js +553 -0
  147. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +1 -1
  148. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.2.js +914 -0
  149. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +4 -4
  150. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +5 -5
  151. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +5 -5
  152. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.min.js +6 -6
  153. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +4 -4
  154. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +5 -5
  155. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +4 -4
  156. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.min.js +5 -6
  157. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +5 -5
  158. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +6 -6
  159. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +4 -4
  160. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.min.js +5 -5
  161. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +179 -0
  162. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.min.js +32 -0
  163. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +4 -4
  164. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +6 -6
  165. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +4 -4
  166. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.min.js +6 -7
  167. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +27 -20
  168. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +5 -5
  169. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +77 -125
  170. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +6 -6
  171. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +4 -4
  172. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +5 -5
  173. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +11 -5
  174. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +5 -5
  175. data/assets/theme/j1/modules/lunr/js/j1.js +1 -1
  176. data/assets/theme/j1/modules/lunr/js/j1.min.js +2 -1
  177. data/assets/theme/j1/modules/rtable/js/rtable.js +2 -2
  178. data/assets/theme/j1/modules/rtable/js/rtable.min.js +2 -1
  179. data/assets/theme/j1/modules/scroller/js/scroller.js +31 -29
  180. data/assets/theme/j1/modules/scroller/js/scroller.min.js +2 -1
  181. data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +38 -37
  182. data/assets/theme/j1/modules/themeSwitcher/js/switcher.min.js +2 -1
  183. data/assets/theme/j1/modules/translator/js/translator.js +17 -17
  184. data/assets/theme/j1/modules/translator/js/translator.min.js +1 -1
  185. data/assets/theme/j1/modules/videoPlayer/tiktoc/README.md +1 -0
  186. data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/README.md +151 -0
  187. data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/VideoJS.svg +150 -0
  188. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.css +147 -0
  189. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.min.css +5 -0
  190. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.css +113 -0
  191. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.min.css +5 -0
  192. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.css +166 -0
  193. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.min.css +5 -0
  194. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.css +72 -0
  195. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.min.css +5 -0
  196. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.css +311 -0
  197. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.min.css +19 -0
  198. data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.css +1686 -0
  199. data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.min.css +13 -0
  200. data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.js +65226 -0
  201. data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.min.js +55 -0
  202. data/assets/theme/j1/modules/videojs/assets/README.md +1 -0
  203. data/assets/theme/j1/modules/videojs/assets/icons/speedometer-medium.svg +35 -0
  204. data/assets/theme/j1/modules/videojs/css/font/VideoJS.ttf +0 -0
  205. data/assets/theme/j1/modules/videojs/css/font/VideoJS.woff +0 -0
  206. data/assets/theme/j1/modules/videojs/css/themes/uno.css +157 -22
  207. data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
  208. data/assets/theme/j1/modules/videojs/css/videojs.css +674 -316
  209. data/assets/theme/j1/modules/videojs/css/videojs.min.css +4 -3
  210. data/assets/theme/j1/modules/videojs/js/video.js +15893 -12288
  211. data/assets/theme/j1/modules/videojs/js/video.min.js +22 -23
  212. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +31 -0
  213. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/LICENSE +19 -0
  214. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/README.md +69 -0
  215. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.css +2 -0
  216. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.min.css +2 -0
  217. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.js +339 -0
  218. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.min.js +2 -0
  219. data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.js +0 -5
  220. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +29 -0
  221. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/LICENSE +19 -0
  222. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/README.md +90 -0
  223. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.js +120 -0
  224. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js +2 -0
  225. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +37 -0
  226. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/LICENSE +19 -0
  227. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/README.md +61 -0
  228. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.js +94 -0
  229. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.min.js +20 -0
  230. data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/skipbuttons/README.md +25 -11
  231. data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css +7 -6
  232. data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +22 -0
  233. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js +11 -9
  234. data/assets/theme/j1/modules/videojs/plugins/players/dm/js/dailymotion.min.js +19 -0
  235. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.0.js +521 -0
  236. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.1.js +605 -0
  237. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.3.js +643 -0
  238. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.4.js +583 -0
  239. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.5.js +665 -0
  240. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.6.js +642 -0
  241. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.7.js +673 -0
  242. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.js +1 -1
  243. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.min.js +1 -1
  244. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm → plugins/players/vm/js}/vimeo.js +13 -12
  245. data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +28 -0
  246. data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.0.js +395 -0
  247. data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.1.js +401 -0
  248. data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.js +13 -11
  249. data/assets/theme/j1/modules/videojs/plugins/players/wt/js/wistia.min.js +21 -0
  250. data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.js +10 -8
  251. data/assets/theme/j1/modules/videojs/plugins/players/yt/js/youtube.min.js +21 -0
  252. data/lib/j1/version.rb +1 -1
  253. data/lib/starter_web/README.md +5 -5
  254. data/lib/starter_web/_config.yml +1 -1
  255. data/lib/starter_web/_data/modules/amplitude_playlists.yml +140 -80
  256. data/lib/starter_web/_data/modules/defaults/amplitude.yml +5 -3
  257. data/lib/starter_web/_data/modules/defaults/gallery.yml +3 -3
  258. data/lib/starter_web/_data/modules/gallery.yml +83 -87
  259. data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
  260. data/lib/starter_web/_data/resources.yml +16 -12
  261. data/lib/starter_web/_data/templates/feed.xml +1 -1
  262. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +50 -22
  263. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +37 -16
  264. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  265. data/lib/starter_web/assets/audio/album/emancipator/Alligator.mp3 +0 -0
  266. data/lib/starter_web/assets/audio/album/emancipator/DabCity.mp3 +0 -0
  267. data/lib/starter_web/assets/audio/album/emancipator/SeaToSky.mp3 +0 -0
  268. data/lib/starter_web/assets/audio/album/emancipator/TimeForSpace.mp3 +0 -0
  269. data/lib/starter_web/assets/audio/cover/emancipator/alligator.jpg +0 -0
  270. data/lib/starter_web/assets/audio/cover/emancipator/anthem.jpg +0 -0
  271. data/lib/starter_web/assets/audio/cover/emancipator/dab-city.jpg +0 -0
  272. data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn.jpg +0 -0
  273. data/lib/starter_web/assets/audio/cover/emancipator/safe-in-the-steep-cliffs.jpg +0 -0
  274. data/lib/starter_web/assets/audio/cover/emancipator/sea-to-sky.jpg +0 -0
  275. data/lib/starter_web/assets/audio/cover/emancipator/soon-it-will-be-cold-enough.jpg +0 -0
  276. data/lib/starter_web/assets/audio/cover/emancipator/tine-for-space.jpg +0 -0
  277. data/lib/starter_web/assets/video/poster/vimeo/fall_2011.jpg +0 -0
  278. data/lib/starter_web/package.json +1 -1
  279. data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +282 -0
  280. data/lib/starter_web/pages/public/tour/audio_data.adoc +11 -6
  281. data/lib/starter_web/pages/public/tour/video_data.adoc +1 -0
  282. metadata +238 -115
  283. data/assets/data/swiper_app.2.html +0 -757
  284. data/assets/data/swiper_app.4.html +0 -769
  285. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +0 -32
  286. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +0 -31
  287. data/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.min.css +0 -21
  288. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.min.js +0 -19
  289. data/assets/theme/j1/modules/videojs/js/plugins/players/vm/vimeo.min.js +0 -16
  290. data/assets/theme/j1/modules/videojs/js/plugins/players/wt/api/src/WistiaPlayer.ts +0 -1617
  291. data/assets/theme/j1/modules/videojs/js/plugins/players/wt/wistia.min.js +0 -21
  292. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js +0 -21
  293. data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/anthem.jpg +0 -0
  294. data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/from-dusk-to-dawn.jpg +0 -0
  295. data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/safe-in-the-steep-cliffs.jpg +0 -0
  296. data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/soon-it-will-be-cold-enough.jpg +0 -0
  297. data/lib/starter_web/assets/video/poster/vimeo/stay_colorful.jpg +0 -0
  298. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/animation-w.png +0 -0
  299. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/customize-w.png +0 -0
  300. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/dynamic-w.png +0 -0
  301. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/facebook-icon.svg +0 -0
  302. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/googleplus-icon.svg +0 -0
  303. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/html5-w.png +0 -0
  304. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/linked-in.png +0 -0
  305. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/module-w.png +0 -0
  306. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button-hover.svg +0 -0
  307. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.png +0 -0
  308. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.svg +0 -0
  309. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/responsive-w.png +0 -0
  310. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/thumb-w.png +0 -0
  311. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/touch-w.png +0 -0
  312. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter-icon.svg +0 -0
  313. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter.png +0 -0
  314. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/video1-w.png +0 -0
  315. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom-w.png +0 -0
  316. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom.png +0 -0
  317. /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.js +0 -0
  318. /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.min.js +0 -0
  319. /data/assets/theme/j1/modules/videoPlayer/dailymotion/js/{!readme → README.md} +0 -0
  320. /data/assets/theme/j1/modules/videoPlayer/tiktoc/{js/player.min.js → player.min.js} +0 -0
  321. /data/assets/theme/j1/modules/videoPlayer/vimeo/js/{!readme → README.md} +0 -0
  322. /data/assets/theme/j1/modules/videoPlayer/wistia/js/{!readme → README.md} +0 -0
  323. /data/assets/theme/j1/modules/videojs/{css → !v8.12.0/css}/font/video-js-cdn.css +0 -0
  324. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/LICENSE +0 -0
  325. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/README.md +0 -0
  326. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.min.js +0 -0
  327. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys/examples → plugins/controls/hotkeys/!examples}/example.html +0 -0
  328. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/LICENSE.md +0 -0
  329. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/README.md +0 -0
  330. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.js +0 -0
  331. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.min.js +0 -0
  332. /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.css +0 -0
  333. /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.min.css +0 -0
  334. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.js +0 -0
  335. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.min.js +0 -0
  336. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.html +0 -0
  337. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.js +0 -0
  338. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/styles.css +0 -0
  339. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/LICENSE.md +0 -0
  340. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/README.md +0 -0
  341. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.js +0 -0
  342. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.min.js +0 -0
  343. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-controls.html +0 -0
  344. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-javascript.html +0 -0
  345. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-playlist.html +0 -0
  346. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/global-parameters.html +0 -0
  347. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/simple.html +0 -0
  348. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/switch.html +0 -0
  349. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/LICENSE +0 -0
  350. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/doc → plugins/players/dm}/README.md +0 -0
  351. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/api/LICENSE +0 -0
  352. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api/doc → plugins/players/dm/api}/README.md +0 -0
  353. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.js +0 -0
  354. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.min.js +0 -0
  355. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/icon/scalable/dailymotion.svg +0 -0
  356. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/index.html +0 -0
  357. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/player/index.html +0 -0
  358. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/LICENSE +0 -0
  359. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/doc → plugins/players/vm}/README.md +0 -0
  360. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api/doc → plugins/players/vm/api}/README.md +0 -0
  361. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.css +0 -0
  362. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.uno.css +0 -0
  363. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/player.css +0 -0
  364. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/doc → plugins/players/wt}/README.md +0 -0
  365. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api/doc/Readme.txt → plugins/players/wt/api/README.md} +0 -0
  366. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api → plugins/players/wt/api/js}/wistia.min.js +0 -0
  367. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/global-parameters.html +0 -0
  368. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/simple.html +0 -0
  369. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/switch.html +0 -0
  370. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-controls.html +0 -0
  371. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-javascript.html +0 -0
  372. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-list.html +0 -0
  373. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-playlist.html +0 -0
  374. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.js +0 -0
  375. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.min.js +0 -0
  376. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/yt/LICENSE +0 -0
  377. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/doc → plugins/players/yt}/README.md +0 -0
  378. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/api → plugins/players/yt/api/js}/youtube.min.js +0 -0
  379. /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn → !info}/!sound.links.txt +0 -0
  380. /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/Anthem.mp3 → Anthem.mp3} +0 -0
  381. /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/DuskToDawn.mp3 → DuskToDawn.mp3} +0 -0
  382. /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/FirstSnow.mp3 → FirstSnow.mp3} +0 -0
  383. /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/SafeInTheSteepCliffs.mp3 → SafeInTheSteepCliffs.mp3} +0 -0
@@ -0,0 +1,401 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/theme/j1/modules/videojs/js/wt/wistia.js
4
+ # Provides Wistia Playback Technology (Tech) for Video.js V8 and newer
5
+ # See: https://github.com/edly-io/videojs-wistia
6
+ #
7
+ # Product/Info:
8
+ # http://jekyll.one
9
+ #
10
+ # Copyright (C) 2020-2021 Zia Fazal
11
+ # Copyright (C) 2021 Edly by Arbisoft
12
+ # Copyright (C) 2023-2025 Juergen Adams
13
+ #
14
+ # videojs-wistia is licensed under MIT License.
15
+ # See: https://github.com/edly-io/videojs-wistia/blob/master/LICENSE
16
+ # J1 Theme is licensed under MIT License.
17
+ # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
18
+ # -----------------------------------------------------------------------------
19
+ */
20
+
21
+ /* global define, Wistia */
22
+ (function (root, factory) {
23
+ if(typeof exports==='object' && typeof module!=='undefined') {
24
+ var videojs = require('video.js');
25
+ module.exports = factory(videojs.default || videojs);
26
+ } else if(typeof define === 'function' && define.amd) {
27
+ define(['videojs'], function(videojs){
28
+ return (root.Wistia = factory(videojs));
29
+ });
30
+ } else {
31
+ root.Wistia = factory(root.videojs);
32
+ }
33
+ }(this, function(videojs) {
34
+ 'use strict';
35
+
36
+ var logger = log4javascript.getLogger('videoJS.plugin.wistia');
37
+ var _isOnMobile = videojs.browser.IS_IOS || videojs.browser.IS_NATIVE_ANDROID;
38
+ var Tech = videojs.getTech('Tech');
39
+
40
+ var startTimeModule;
41
+ var endTimeModule;
42
+
43
+ class Wistia extends Tech {
44
+
45
+ constructor(options, ready) {
46
+ super(options, ready);
47
+
48
+ this.setPoster(options.poster);
49
+ this.setSrc(this.options_.source, true);
50
+
51
+ this.setTimeout(function() {
52
+ if (this.el_) {
53
+ this.el_.parentNode.className += ' vjs-wistia';
54
+
55
+ if (_isOnMobile) {
56
+ this.el_.parentNode.className += ' vjs-wistia-mobile';
57
+ }
58
+
59
+ if (Wistia.isApiReady) {
60
+ this.initWistiaPlayer();
61
+ } else {
62
+ Wistia.apiReadyQueue.push(this);
63
+ }
64
+ }
65
+ }.bind(this));
66
+ } // END constructor
67
+
68
+ dispose() {
69
+ if (this.wistiaPlayer) {
70
+ // dispose of the Wistia Player
71
+ if (this.wistiaPlayer) {
72
+ this.wistiaPlayer.pause();
73
+ this.wistiaPlayer.remove();
74
+ }
75
+ } else {
76
+ // Wistia API hasn't finished loading or the player is already disposed
77
+ var index = Wistia.apiReadyQueue.indexOf(this);
78
+ if (index !== -1) {
79
+ Wistia.apiReadyQueue.splice(index, 1);
80
+ }
81
+ }
82
+ this.wistiaPlayer = null;
83
+
84
+ this.el_.parentNode.className = this.el_.parentNode.className
85
+ .replace(' vjs-wistia', '')
86
+ .replace(' vjs-wistia-mobile', '');
87
+ this.el_.parentNode.removeChild(this.el_);
88
+ } // END dispose
89
+
90
+ createEl() {
91
+ var div = document.createElement('div');
92
+ div.setAttribute('id', this.options_.techId);
93
+ div.setAttribute('style', 'width:100%;height:100%;top:0;left:0;position:absolute');
94
+ div.setAttribute('class', 'vjs-tech ' + this.options_.playback_css_class);
95
+
96
+ var divWrapper = document.createElement('div');
97
+ divWrapper.appendChild(div);
98
+
99
+ return divWrapper;
100
+ } // END createEl
101
+
102
+ initWistiaPlayer() {
103
+ var playerConfig = {
104
+ controlsVisibleOnLoad: false,
105
+ chromeless: true,
106
+ playbar: false,
107
+ playButton: false,
108
+ settingsControl: false,
109
+ smallPlayButton: false,
110
+ volumeControl: false,
111
+ videoFoam: false,
112
+ fullscreenButton: false,
113
+ preload: true,
114
+ doNotTrack: true,
115
+ autoPlay: false
116
+ };
117
+
118
+ if (typeof this.options_.videoFoam !== 'undefined') {
119
+ playerConfig.videoFoam = this.options_.videoFoam;
120
+ }
121
+
122
+ if (typeof this.options_.source !== 'undefined') {
123
+ this.videoId = this.options_.source.src;
124
+ }
125
+
126
+ if (typeof this.options_.autoplay !== 'undefined') {
127
+ playerConfig.autoPlay = this.options_.autoplay;
128
+ playerConfig.muted = this.options_.autoplay;
129
+ }
130
+
131
+ var this_ = this;
132
+ window._wq = window._wq || [];
133
+ _wq.push({
134
+ id: this.videoId,
135
+ options: playerConfig,
136
+ onReady: function(video) {
137
+ this_.wistiaPlayer = video;
138
+ this_.onPlayerReady();
139
+ this_.wistiaPlayer.bind('end', this_.onPlaybackEnded.bind(this_));
140
+ }
141
+ });
142
+
143
+ logger.debug('\n' + 'created ' + this.name_ + ' player on ID: ' + this.el_.firstChild.id);
144
+ } // END initWistiaPlayer
145
+
146
+ onPlayerReady() {
147
+ var wt_player = document.getElementById(this.options_.playerId + '_wistia_api');
148
+ var wt_embed = document.getElementsByClassName("w-vulcan-v2");
149
+ var currState;
150
+
151
+ // set the cursor on the embedded player to 'pointer'
152
+ for (var i = 0; i < wt_embed.length; i++) {
153
+ wt_embed[i].style.cursor = 'pointer';
154
+ }
155
+
156
+ // workaround toggle play|pause for Wistia Tech (click on video itself)
157
+ wt_player.addEventListener('click', (event) => {
158
+ currState = this.wistiaPlayer.state();
159
+
160
+ // suppress default actions|bubble up
161
+ event.preventDefault();
162
+ event.stopPropagation();
163
+
164
+ // trigger play on state beforeplay (initiate FIRST play)
165
+ if (currState === 'beforeplay') {
166
+ this.wistiaPlayer.play();
167
+ this.trigger('play');
168
+ logger.debug('\n' + 'triggered play on state: ' + currState);
169
+ }
170
+
171
+ // update player state
172
+ if (currState === 'playing' ) {
173
+ this.trigger('play');
174
+ }
175
+
176
+ // update player state
177
+ if (currState === 'paused' ) {
178
+ this.trigger('pause');
179
+ }
180
+ }); // END EventListener 'click'
181
+
182
+ // default actions
183
+ // ---------------------------------------------------------------------
184
+ if (this.options_.muted) {
185
+ this.wistiaPlayer.mute();
186
+ }
187
+
188
+ this.playerReady_ = true;
189
+ this.triggerReady();
190
+
191
+ if (this.playOnReady) {
192
+ this.play();
193
+ }
194
+ } // END onPlayerReady
195
+
196
+ onPlaybackEnded() {
197
+ this.trigger('ended');
198
+ } // END onPlaybackEnded
199
+
200
+ src(src) {
201
+ this.setSrc({ src: src });
202
+ return this.source;
203
+ } // END src
204
+
205
+ setSrc(source) {
206
+ if (!source || !source.src) { return; }
207
+
208
+ delete this.errorName;
209
+ this.source = source;
210
+
211
+ if (this.options_.autoplay && !_isOnMobile) {
212
+ if (this.isReady_) {
213
+ this.play();
214
+ } else {
215
+ this.playOnReady = true;
216
+ }
217
+ }
218
+ } // END setSrc
219
+
220
+ autoplay() {
221
+ return this.options_.autoplay;
222
+ } // END autoplay
223
+
224
+ setAutoplay(val) {
225
+ this.options_.autoplay = val;
226
+ } // END setAutoplay
227
+
228
+ loop() {
229
+ return this.options_.loop;
230
+ } // END loop
231
+
232
+ setLoop(val) {
233
+ this.options_.loop = val;
234
+ } // END setLoop
235
+
236
+ play() {
237
+ if (!this.videoId) { return; }
238
+
239
+ if (this.isReady_) {
240
+ this.wistiaPlayer.play();
241
+ this.trigger('play');
242
+ } else {
243
+ this.trigger('waiting');
244
+ this.playOnReady = true;
245
+ }
246
+ } // END play
247
+
248
+ pause() {
249
+ this.wistiaPlayer.pause();
250
+ this.trigger('pause');
251
+ } // END pause
252
+
253
+ paused() {
254
+ return this.wistiaPlayer.state() === 'paused' || this.wistiaPlayer.state() === 'ended';
255
+ } // END paused
256
+
257
+ currentTime() {
258
+ return this.wistiaPlayer.time();
259
+ } // END currentTime
260
+
261
+ setCurrentTime(seconds) {
262
+ this.wistiaPlayer.time(seconds);
263
+ } // END setCurrentTime
264
+
265
+ duration() {
266
+ return this.wistiaPlayer.duration();
267
+ } // END duration
268
+
269
+ currentSrc() {
270
+ return this.source && this.source.src;
271
+ } // END currentSrc
272
+
273
+ ended() {
274
+ return this.wistiaPlayer.state() === 'ended';
275
+ } // END ended
276
+
277
+ volume() {
278
+ return this.wistiaPlayer.volume();
279
+ } // END volume
280
+
281
+ setVolume(percentAsDecimal) {
282
+ this.wistiaPlayer.volume(percentAsDecimal);
283
+ this.trigger('volumechange');
284
+ } // END setVolume
285
+
286
+ muted() {
287
+ return this.wistiaPlayer.isMuted();
288
+ } // END muted
289
+
290
+ setMuted(mute) {
291
+ if (mute === true) {
292
+ this.wistiaPlayer.mute();
293
+ } else {
294
+ this.wistiaPlayer.unmute();
295
+ }
296
+
297
+ this.trigger('volumechange');
298
+ } // END setMuted
299
+
300
+ supportsFullScreen() {
301
+ return true;
302
+ } // END supportsFullScreen
303
+
304
+ } // END class Wistia
305
+
306
+ Wistia.isSupported = function() {
307
+ return true;
308
+ };
309
+
310
+ Wistia.canPlaySource = function(e) {
311
+ return Wistia.canPlayType(e.type);
312
+ };
313
+
314
+ Wistia.canPlayType = function(e) {
315
+ return (e === 'video/wistia');
316
+ };
317
+
318
+ function apiLoaded() {
319
+ Wistia.isApiReady = true;
320
+ logger.debug('\n' + 'API loaded successfully');
321
+ for (var i = 0; i < Wistia.apiReadyQueue.length; ++i) {
322
+ Wistia.apiReadyQueue[i].initWistiaPlayer();
323
+ }
324
+ logger.debug('\n' + 'created all players from queue: #' + i);
325
+
326
+ endTimeModule = Date.now();
327
+ logger.debug('\n' + 'initializing plugin: finished');
328
+ logger.debug('\n' + 'plugin initializing time: ' + (endTimeModule-startTimeModule) + 'ms');
329
+ } // END apiLoaded
330
+
331
+ function loadScript(src, callback) {
332
+ var loaded = false;
333
+ var tag = document.createElement('script');
334
+ var firstScriptTag = document.getElementsByTagName('script')[0];
335
+ if (!firstScriptTag) { return; }
336
+
337
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
338
+ tag.onload = function () {
339
+ if (!loaded) {
340
+ loaded = true;
341
+ callback();
342
+ }
343
+ };
344
+
345
+ tag.onreadystatechange = function () {
346
+ if (!loaded && (this.readyState === 'complete' || this.readyState === 'loaded')) {
347
+ loaded = true;
348
+ callback();
349
+ }
350
+ };
351
+
352
+ tag.src = src;
353
+ } // END loadScript
354
+
355
+ function injectCss() {
356
+ var css = '.vjs-wistia-mobile .vjs-big-play-button {display: none;}';
357
+ var head = document.head || document.getElementsByTagName('head')[0];
358
+
359
+ var style = document.createElement('style');
360
+ style.type = 'text/css';
361
+
362
+ if (style.styleSheet){
363
+ style.styleSheet.cssText = css;
364
+ } else {
365
+ style.appendChild(document.createTextNode(css));
366
+ }
367
+
368
+ logger.debug('\n' + 'added additional CSS styles');
369
+ head.appendChild(style);
370
+ } // END injectCss
371
+
372
+ Wistia.apiReadyQueue = [];
373
+
374
+ // initialize plugin when page ready
375
+ // -------------------------------------------------------------------------
376
+ var dependencies_met_page_ready = setInterval (() => {
377
+ var pageState = $('#content').css("display");
378
+ var pageVisible = (pageState === 'block') ? true : false;
379
+ var j1CoreFinished = (j1.getState() === 'finished') ? true : false;
380
+
381
+ if (j1CoreFinished && pageVisible) {
382
+ startTimeModule = Date.now();
383
+
384
+ logger.debug('\n' + 'initializing plugin: started');
385
+ logger.debug('\n' + 'version of videoJS detected: ' + videojs.VERSION);
386
+
387
+ loadScript('//fast.wistia.com/assets/external/E-v1.js', apiLoaded);
388
+ injectCss();
389
+
390
+ clearInterval(dependencies_met_page_ready);
391
+ } // END pageVisible
392
+ }, 10); // END dependencies_met_page_ready
393
+
394
+ // check VJS version to register Wistia TECH
395
+ if (typeof videojs.registerTech !== 'undefined') {
396
+ videojs.registerTech('Wistia', Wistia);
397
+ } else {
398
+ console.error('\n' + 'invalid version of videoJS detected: ' + videojs.VERSION);
399
+ } // END check VJS version
400
+
401
+ }));
@@ -33,6 +33,8 @@
33
33
  }(this, function(videojs) {
34
34
  'use strict';
35
35
 
36
+ const isDev = (j1.env === "development" || j1.env === "dev") ? true : false;
37
+
36
38
  var logger = log4javascript.getLogger('videoJS.plugin.wistia');
37
39
  var _isOnMobile = videojs.browser.IS_IOS || videojs.browser.IS_NATIVE_ANDROID;
38
40
  var Tech = videojs.getTech('Tech');
@@ -150,7 +152,7 @@
150
152
  }
151
153
  });
152
154
 
153
- logger.debug('\n' + 'created ' + this.name_ + ' player on ID: ' + this.el_.firstChild.id);
155
+ isDev && logger.debug('\n' + 'created ' + this.name_ + ' player on ID: ' + this.el_.firstChild.id);
154
156
  } // END initWistiaPlayer
155
157
 
156
158
  onPlayerReady(options) {
@@ -170,7 +172,7 @@
170
172
  wt_player.addEventListener('click', (event) => {
171
173
  wtPlayerState = this.wistiaPlayer.state();
172
174
 
173
- logger.debug('\n' + 'wt player state: ' + wtPlayerState);
175
+ isDev && logger.debug('\n' + 'wt player state: ' + wtPlayerState);
174
176
  }); // END EventListener 'click'
175
177
  } else {
176
178
  // workaround toggle play|pause for Wistia Tech (click on video itself)
@@ -178,13 +180,13 @@
178
180
  wt_player.addEventListener('click', (event) => {
179
181
  wtPlayerState = this.wistiaPlayer.state();
180
182
 
181
- logger.debug('\n' + 'wt player state: ' + wtPlayerState);
183
+ isDev && logger.debug('\n' + 'wt player state: ' + wtPlayerState);
182
184
 
183
185
  // trigger play on state beforeplay (initiate FIRST play)
184
186
  if (wtPlayerState === 'beforeplay') {
185
187
  this.wistiaPlayer.play();
186
188
  this.trigger('play');
187
- logger.debug('\n' + 'triggered play on state: ' + wtPlayerState);
189
+ isDev && logger.debug('\n' + 'triggered play on state: ' + wtPlayerState);
188
190
  }
189
191
  }); // END EventListener 'click'
190
192
 
@@ -332,17 +334,17 @@
332
334
 
333
335
  function apiLoaded() {
334
336
  Wistia.isApiReady = true;
335
- logger.debug('\n' + 'API loaded successfully');
337
+ isDev && logger.debug('\n' + 'API loaded successfully');
336
338
 
337
339
  // NOTE: skip first element in ready queue as it is used internally
338
340
  for (var i = 0; i < Wistia.apiReadyQueue.length; ++i) {
339
341
  Wistia.apiReadyQueue[i].initWistiaPlayer();
340
342
  }
341
- logger.debug('\n' + 'added players to ready queue: #' + i);
343
+ isDev && logger.debug('\n' + 'added players to ready queue: #' + i);
342
344
 
343
345
  endTimeModule = Date.now();
344
- logger.debug('\n' + 'initializing plugin: finished');
345
- logger.debug('\n' + 'plugin initializing time: ' + (endTimeModule-startTimeModule) + 'ms');
346
+ isDev && logger.debug('\n' + 'initializing plugin: finished');
347
+ isDev && logger.debug('\n' + 'plugin initializing time: ' + (endTimeModule-startTimeModule) + 'ms');
346
348
  } // END apiLoaded
347
349
 
348
350
  function loadScript(src, callback) {
@@ -385,7 +387,7 @@
385
387
  style.appendChild(document.createTextNode(css));
386
388
  }
387
389
 
388
- logger.debug('\n' + 'added additional CSS styles');
390
+ isDev && logger.debug('\n' + 'added additional CSS styles');
389
391
  head.appendChild(style);
390
392
  } // END injectCss
391
393
 
@@ -401,8 +403,8 @@
401
403
  if (j1CoreFinished && pageVisible) {
402
404
  startTimeModule = Date.now();
403
405
 
404
- logger.debug('\n' + 'initializing plugin: started');
405
- logger.debug('\n' + 'version of videoJS detected: ' + videojs.VERSION);
406
+ isDev && logger.debug('\n' + 'initializing plugin: started');
407
+ isDev && logger.debug('\n' + 'version of videoJS detected: ' + videojs.VERSION);
406
408
 
407
409
  loadScript('//fast.wistia.com/assets/external/E-v1.js', apiLoaded);
408
410
  injectCss();
@@ -0,0 +1,21 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/theme/j1/modules/videojs/js/plugins/players/wt/wistia.min.js
4
+ # Provides Wistia Playback Technology (Tech) for Video.js V8 and newer
5
+ # See: https://github.com/edly-io/videojs-wistia
6
+ #
7
+ # Product/Info:
8
+ # http://jekyll.one
9
+ #
10
+ # Copyright (C) 2020-2021 Zia Fazal
11
+ # Copyright (C) 2021 Edly by Arbisoft
12
+ # Copyright (C) 2023-2025 Juergen Adams
13
+ #
14
+ # videojs-wistia is licensed under MIT License.
15
+ # See: https://github.com/edly-io/videojs-wistia/blob/master/LICENSE
16
+ # J1 Theme is licensed under MIT License.
17
+ # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
18
+ # -----------------------------------------------------------------------------
19
+ */
20
+
21
+ !function(e,t){if("object"==typeof exports&&"undefined"!=typeof module){var i=require("video.js");module.exports=t(i.default||i)}else"function"==typeof define&&define.amd?define(["videojs"],(function(i){return e.Wistia=t(i)})):e.Wistia=t(e.videojs)}(this,(function(e){"use strict";const t="development"===j1.env||"dev"===j1.env;var i,s,a,o=log4javascript.getLogger("videoJS.plugin.wistia"),r=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,n=e.getTech("Tech");class l extends n{constructor(e,t){super(e,t),this.setPoster(e.poster),this.setSrc(this.options_.source,!0);var i=document.getElementById(e.playerId);i.classList.remove("vjs-controls-disabled"),i.classList.add("vjs-controls-enabled"),i.classList.remove("vjs-user-inactive"),i.classList.add("vjs-user-active"),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-wistia",r&&(this.el_.parentNode.className+=" vjs-wistia-mobile"),l.isApiReady?this.initWistiaPlayer():l.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.wistiaPlayer)this.wistiaPlayer&&(this.wistiaPlayer.pause(),this.wistiaPlayer.remove());else{var e=l.apiReadyQueue.indexOf(this);-1!==e&&l.apiReadyQueue.splice(e,1)}this.wistiaPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-wistia","").replace(" vjs-wistia-mobile",""),this.el_.parentNode.removeChild(this.el_)}createEl(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;width:100%;height:100%;top:0;left:0"),e.setAttribute("class","vjs-tech "+this.options_.playback_css_class);var t=document.createElement("div");return t.appendChild(e),t}initWistiaPlayer(){var e={controlsVisibleOnLoad:!1,chromeless:!0,playbar:!1,playButton:!1,settingsControl:!1,smallPlayButton:!1,volumeControl:!1,videoFoam:!1,fullscreenButton:!1,preload:!0,doNotTrack:!0,autoPlay:!1};void 0!==this.options_.videoFoam&&(e.videoFoam=this.options_.videoFoam),void 0!==this.options_.source&&(this.videoId=this.options_.source.src),void 0!==this.options_.autoplay&&(e.autoPlay=this.options_.autoplay,e.muted=this.options_.autoplay);var i=this;window._wq=window._wq||[],_wq.push({id:this.videoId,options:e,onReady:e=>{i.wistiaPlayer=e,i.onPlayerReady(i.options_),i.wistiaPlayer.bind("end",i.onPlaybackEnded.bind(i))}}),t&&o.debug("\ncreated "+this.name_+" player on ID: "+this.el_.firstChild.id)}onPlayerReady(e){for(var s=e.poster,a=e.techId,r=document.getElementById(a),n=(document.getElementsByClassName("w-vulcan-v2"),document.getElementsByClassName("vjs-poster")),l=0;l<n.length;l++)n[l].style.cursor="default";""!==s?r.addEventListener("click",(e=>{i=this.wistiaPlayer.state(),t&&o.debug("\nwt player state: "+i)})):r.addEventListener("click",(e=>{i=this.wistiaPlayer.state(),t&&o.debug("\nwt player state: "+i),"beforeplay"===i&&(this.wistiaPlayer.play(),this.trigger("play"),t&&o.debug("\ntriggered play on state: "+i))})),this.options_.muted&&this.wistiaPlayer.mute(),this.playerReady_=!0,this.triggerReady(),this.playOnReady&&this.play()}onPlaybackEnded(){this.trigger("ended")}src(e){return this.setSrc({src:e}),this.source}setSrc(e){e&&e.src&&(delete this.errorName,this.source=e,this.options_.autoplay&&!r&&(this.isReady_?this.play():this.playOnReady=!0))}setPoster(e){this.poster_=e}autoplay(){return this.options_.autoplay}setAutoplay(e){this.options_.autoplay=e}loop(){return this.options_.loop}setLoop(e){this.options_.loop=e}play(){this.videoId&&(this.isReady_?(this.wistiaPlayer.play(),this.trigger("play")):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.wistiaPlayer.pause(),this.trigger("pause")}paused(){return"paused"===this.wistiaPlayer.state()||"ended"===this.wistiaPlayer.state()}currentTime(){return this.wistiaPlayer.time()}setCurrentTime(e){this.wistiaPlayer.time(e)}duration(){return this.wistiaPlayer.duration()}currentSrc(){return this.source&&this.source.src}ended(){return"ended"===this.wistiaPlayer.state()}volume(){return this.wistiaPlayer.volume()}setVolume(e){this.wistiaPlayer.volume(e),this.trigger("volumechange")}muted(){return this.wistiaPlayer.isMuted()}setMuted(e){!0===e?this.wistiaPlayer.mute():this.wistiaPlayer.unmute(),this.trigger("volumechange")}supportsFullScreen(){return!0}}function d(){l.isApiReady=!0,t&&o.debug("\nAPI loaded successfully");for(var e=0;e<l.apiReadyQueue.length;++e)l.apiReadyQueue[e].initWistiaPlayer();t&&o.debug("\nadded players to ready queue: #"+e),a=Date.now(),t&&o.debug("\ninitializing plugin: finished"),t&&o.debug("\nplugin initializing time: "+(a-s)+"ms")}l.isSupported=()=>!0,l.canPlaySource=e=>l.canPlayType(e.type),l.canPlayType=e=>"video/wistia"===e,l.apiReadyQueue=[];var u=setInterval((()=>{var i="block"===$("#content").css("display");"finished"===j1.getState()&&i&&(s=Date.now(),t&&o.debug("\ninitializing plugin: started"),t&&o.debug("\nversion of videoJS detected: "+e.VERSION),function(e,t){var i=!1,s=document.createElement("script"),a=document.getElementsByTagName("script")[0];a&&(a.parentNode.insertBefore(s,a),s.onload=()=>{i||(i=!0,t())},s.onreadystatechange=()=>{i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,t())},s.src=e)}("//fast.wistia.com/assets/external/E-v1.js",d),function(){const e="\n .vjs-wistia-mobile .vjs-big-play-button { display: none; }\n ";var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),t&&o.debug("\nadded additional CSS styles"),i.appendChild(s)}(),clearInterval(u))}),10);void 0!==e.registerTech?e.registerTech("Wistia",l):console.error("\ninvalid version of videoJS detected: "+e.VERSION)}));
@@ -33,6 +33,8 @@
33
33
  }(this, function(videojs) {
34
34
  'use strict';
35
35
 
36
+ const isDev = (j1.env === "development" || j1.env === "dev") ? true : false;
37
+
36
38
  var logger = log4javascript.getLogger('videoJS.plugin.youtube');
37
39
  var _isOnMobile = videojs.browser.IS_IOS || videojs.browser.IS_NATIVE_ANDROID;
38
40
  var Tech = videojs.getTech('Tech');
@@ -277,7 +279,7 @@
277
279
 
278
280
  this.ytPlayer = new YT.Player(this.options_.techId, playerConfig);
279
281
 
280
- logger.debug('\n' + 'created ' + this.name_ + ' player on ID: ' + this.el_.firstChild.id);
282
+ isDev && logger.debug('\n' + 'created ' + this.name_ + ' player on ID: ' + this.el_.firstChild.id);
281
283
  } // END initYTPlayer
282
284
 
283
285
  onPlayerReady() {
@@ -762,16 +764,16 @@
762
764
  function apiLoaded() {
763
765
  YT.ready(() => {
764
766
  Youtube.isApiReady = true;
765
- logger.debug('\n' + 'API loaded successfully');
767
+ isDev && logger.debug('\n' + 'API loaded successfully');
766
768
 
767
769
  for (var i = 0; i < Youtube.apiReadyQueue.length; ++i) {
768
770
  Youtube.apiReadyQueue[i].initYTPlayer();
769
771
  }
770
- logger.debug('\n' + 'created all players from queue: #' + i);
772
+ isDev && logger.debug('\n' + 'created all players from queue: #' + i);
771
773
 
772
774
  endTimeModule = Date.now();
773
- logger.debug('\n' + 'initializing plugin: finished');
774
- logger.debug('\n' + 'plugin initializing time: ' + (endTimeModule-startTimeModule) + 'ms');
775
+ isDev && logger.debug('\n' + 'initializing plugin: finished');
776
+ isDev && logger.debug('\n' + 'plugin initializing time: ' + (endTimeModule-startTimeModule) + 'ms');
775
777
  });
776
778
  } // END apiLoaded
777
779
 
@@ -820,7 +822,7 @@
820
822
  }
821
823
 
822
824
  head.appendChild(style);
823
- logger.debug('\n' + 'added additional CSS styles');
825
+ isDev && logger.debug('\n' + 'added additional CSS styles');
824
826
  } // END injectCss
825
827
 
826
828
  Youtube.apiReadyQueue = [];
@@ -835,8 +837,8 @@
835
837
  if (j1CoreFinished && pageVisible) {
836
838
  startTimeModule = Date.now();
837
839
 
838
- logger.debug('\n' + 'initializing plugin: started');
839
- logger.debug('\n' + 'version of videoJS detected: ' + videojs.VERSION);
840
+ isDev && logger.debug('\n' + 'initializing plugin: started');
841
+ isDev && logger.debug('\n' + 'version of videoJS detected: ' + videojs.VERSION);
840
842
 
841
843
  loadScript('//www.youtube.com/iframe_api', apiLoaded);
842
844
  injectCss();
@@ -0,0 +1,21 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js
4
+ # Provides YouTube Playback Technology (Tech) for Video.js V8 and newer
5
+ #
6
+ # Product/Info:
7
+ # http://jekyll.one
8
+ #
9
+ # Copyright (C) 2023-2025 Juergen Adams
10
+ # Copyright (C) 2014-2015 Gary Katsevman, Benoit Tremblay
11
+ #
12
+ # YouTube Playback Technology (Tech) is licensed under MIT License.
13
+ # See: https://github.com/videojs/videojs-youtube/blob/main/README.md
14
+ # J1 Theme is licensed under MIT License.
15
+ # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
16
+ # -----------------------------------------------------------------------------
17
+ */
18
+
19
+ /* Version 3.0.1, modified version for J1 Template */
20
+
21
+ !function(e,t){if("object"==typeof exports&&"undefined"!=typeof module){var i=require("video.js");module.exports=t(i.default||i)}else"function"==typeof define&&define.amd?define(["videojs"],(function(i){return e.Youtube=t(i)})):e.Youtube=t(e.videojs)}(this,(function(e){"use strict";const t="development"===j1.env||"dev"===j1.env;var i,s,o=log4javascript.getLogger("videoJS.plugin.youtube"),a=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,r=e.getTech("Tech");class n extends r{constructor(e,t){super(e,t),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",a&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),n.isApiReady?this.initYTPlayer():n.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=n.apiReadyQueue.indexOf(this);-1!==e&&n.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),r.prototype.dispose.call(this)}createEl(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!a&&!this.options_.ytControls){var i=document.createElement("div");i.setAttribute("class","vjs-iframe-blocker"),i.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),i.onclick=function(){this.pause()}.bind(this),t.appendChild(i)}return t}initYTPlayer(){var e=j1.modules.videojs.options.players.youtube,i={autoplay:e.autoplay,controls:e.controls,cc_load_policy:e.cc_load_policy,disablekb:e.disablekb,enablejsapi:e.enablejsapi,fs:e.fs,iv_load_policy:e.iv_load_policy,loop:e.loop,modestbranding:e.modestbranding,rel:e.rel,showinfo:e.showinfo};if(void 0!==this.options_.autohide&&(i.autohide=this.options_.autohide),void 0!==this.options_.loop&&(i.loop=this.options_.loop),void 0!==this.options_.cc_load_policy&&(i.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.cc_load_policy&&(i.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.ytControls&&(i.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(i.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(i.color=this.options_.color),i.controls?void 0!==this.options_.fs&&(i.fs=this.options_.fs):i.fs=0,-1!==this.options_.source.src.indexOf("end=")){var s=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(s[1])}if(void 0!==this.options_.end&&(i.end=this.options_.end),void 0!==this.options_.hl?i.hl=this.options_.hl:void 0!==this.options_.language&&(i.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(i.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?i.list=this.options_.list:this.url&&void 0!==this.url.listId&&(i.list=this.url.listId),void 0!==this.options_.listType&&(i.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(i.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(i.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(i.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(i.rel=this.options_.rel),void 0!==this.options_.showinfo&&(i.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var a=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(a[1])}if(void 0!==this.options_.start&&(i.start=this.options_.start),void 0!==this.options_.theme&&(i.theme=this.options_.theme),void 0!==this.options_.customVars){var r=this.options_.customVars;Object.keys(r).forEach((e=>{i[e]=r[e]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=i.list;var n={videoId:this.activeVideoId,playerVars:i,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(n.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,n),t&&o.debug("\ncreated "+this.name_+" player on ID: "+this.el_.firstChild.id)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(e){var t=e.data;if(t!==this.lastState&&!this.errorNumber)switch(this.lastState=t,t){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(e){this.errorNumber=e.data,this.trigger("pause"),this.trigger("error")}error(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:"Error while trying to play the video"};case 2:case 100:return{code:e,message:"Unable to find the video"};case 101:case 150:return{code:e,message:"Playback on other Websites has been disabled by the video owner."}}return{code:e,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(t)}cueVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(t)}poster(){return a?null:this.poster_}setPoster(e){this.poster_=e}src(e){return e&&this.setSrc({src:e}),this.source}setSrc(e){e&&e.src&&(delete this.errorNumber,this.source=e,this.url=n.parseUrl(e.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/sddefault.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!a?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(e){this.options_.autoplay=e}loop(){return this.options_.loop}setLoop(e){this.options_.loop=e}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?e.time.createTimeRanges(0,this.ytPlayer.getDuration()):e.time.createTimeRanges()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(e){this.ytPlayer&&this.ytPlayer.setVolume(100*e)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(e){this.ytPlayer&&(this.muted(!0),e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((()=>{this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.time.createTimeRanges();this.ytPlayer.getVideoLoadedFraction(),this.ytPlayer.getDuration();return e.time.createTimeRanges(0,this.ytPlayer.getDuration())}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var e="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var t=new Image;t.onload=function(){if("naturalHeight"in t){if(t.naturalHeight<=90||t.naturalWidth<=120)return}else if(t.height<=90||t.width<=120)return;this.poster_=e,this.trigger("posterchange")}.bind(this),t.onerror=function(){},t.src=e}catch(e){}}}function l(){YT.ready((()=>{n.isApiReady=!0,t&&o.debug("\nAPI loaded successfully");for(var e=0;e<n.apiReadyQueue.length;++e)n.apiReadyQueue[e].initYTPlayer();t&&o.debug("\ncreated all players from queue: #"+e),s=Date.now(),t&&o.debug("\ninitializing plugin: finished"),t&&o.debug("\nplugin initializing time: "+(s-i)+"ms")}))}n.isSupported=()=>!0,n.canPlaySource=e=>n.canPlayType(e.type),n.canPlayType=e=>"video/youtube"===e,n.parseUrl=e=>{var t={videoId:null},i=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(t.videoId=i[2]);return(i=e.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(t.listId=i[1]),t},n.apiReadyQueue=[];var h=setInterval((()=>{var s="block"===$("#content").css("display");"finished"===j1.getState()&&s&&(i=Date.now(),t&&o.debug("\ninitializing plugin: started"),t&&o.debug("\nversion of videoJS detected: "+e.VERSION),function(e,t){var i=!1,s=document.createElement("script"),o=document.getElementsByTagName("script")[0];o&&(o.parentNode.insertBefore(s,o),s.onload=()=>{i||(i=!0,t())},s.onreadystatechange=()=>{i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,t())},s.src=e)}("//www.youtube.com/iframe_api",l),function(){const e="\n .vjs-youtube .vjs-iframe-blocker { display: none; }\n .vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }\n .vjs-youtube .vjs-poster { background-size: cover; }\n .vjs-youtube-mobile .vjs-big-play-button { display: none; }\n ";var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),i.appendChild(s),t&&o.debug("\nadded additional CSS styles")}(),clearInterval(h))}),10);void 0!==e.registerTech?e.registerTech("Youtube",n):console.error("\ninvalid version of videoJS detected: "+e.VERSION)}));
data/lib/j1/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module J1
2
- VERSION = '2024.3.21'
2
+ VERSION = '2024.3.23'
3
3
  end
@@ -379,7 +379,7 @@ This command creates a **initial** project in folder **my-starter**.
379
379
  2023-02-28 18:12:12 - GENERATE: Resolving dependencies...
380
380
  2023-02-28 18:12:12 - GENERATE: Using bundler 2.3.7
381
381
  ...
382
- 2023-02-28 18:12:12 - GENERATE: Using j1-template 2024.3.21
382
+ 2023-02-28 18:12:12 - GENERATE: Using j1-template 2024.3.23
383
383
  2023-02-28 18:12:12 - GENERATE: Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
384
384
  2023-02-28 18:12:12 - GENERATE: Bundled gems are installed into `../../.gem`
385
385
  2023-02-28 18:12:12 - GENERATE: C:/Users/xxx/.gem/ruby/3.1.0;C:/DevTools/Ruby31-x64/lib/ruby/gems/3.1.0;
@@ -415,7 +415,7 @@ commands are available as well.
415
415
  2023-02-28 18:17:48 - SETUP: Initialize the project ...
416
416
  2023-02-28 18:17:48 - SETUP: Be patient, this will take a while ...
417
417
  2023-02-28 18:17:49 - SETUP:
418
- 2023-02-28 18:17:49 - SETUP: > j1@2024.3.21 setup C:\Users\xxx\j1-projects\my-starter
418
+ 2023-02-28 18:17:49 - SETUP: > j1@2024.3.23 setup C:\Users\xxx\j1-projects\my-starter
419
419
  2023-02-28 18:17:49 - SETUP: > npm --silent run setup-start && npm --silent run setup-base && run-s -s setup:*
420
420
  2023-02-28 18:17:49 - SETUP:
421
421
  2023-02-28 18:17:50 - SETUP: Setup project for first use ..
@@ -460,7 +460,7 @@ browser. Let's start the journey ...
460
460
  Check setup state of the J1 project ...
461
461
  2023-02-28 18:26:18 - SITE: Starting up your site ...
462
462
  2023-02-28 18:26:18 - SITE:
463
- 2023-02-28 18:26:18 - SITE: > j1@2024.3.21 j1-site C:\Users\jadams\j1-projects\my-starter
463
+ 2023-02-28 18:26:18 - SITE: > j1@2024.3.23 j1-site C:\Users\jadams\j1-projects\my-starter
464
464
  2023-02-28 18:26:18 - SITE: > run-p -s j1-site:*
465
465
  2023-02-28 18:26:18 - SITE:
466
466
  2023-02-28 18:26:20 - SITE: Startup UTILSRV ..
@@ -499,7 +499,7 @@ Check setup state of the J1 project ...
499
499
  REBUILD: Rebuild the projects website ...
500
500
  REBUILD: Be patient, this will take a while ...
501
501
  2023-02-28 18:45:09 - REBUILD:
502
- 2023-02-28 18:45:09 - REBUILD: > j1@2024.3.21 rebuild C:\Users\xxx\j1-projects\my-starter
502
+ 2023-02-28 18:45:09 - REBUILD: > j1@2024.3.23 rebuild C:\Users\xxx\j1-projects\my-starter
503
503
  2023-02-28 18:45:09 - REBUILD: > run-s -s rebuild:* && run-s -s post-rebuild:*
504
504
  2023-02-28 18:45:09 - REBUILD:
505
505
  2023-02-28 18:45:10 - REBUILD: Rebuild site incremental ..
@@ -547,7 +547,7 @@ using Lerna for all packages:
547
547
  2023-02-28 18:29:07 - RESET: Reset the project to factory state ...
548
548
  2023-02-28 18:29:07 - RESET: Be patient, this will take a while ...
549
549
  2023-02-28 18:29:08 - RESET:
550
- 2023-02-28 18:29:08 - RESET: > j1@2024.3.21 reset C:\Users\xxx\j1-projects\my-starter
550
+ 2023-02-28 18:29:08 - RESET: > j1@2024.3.23 reset C:\Users\xxx\j1-projects\my-starter
551
551
  2023-02-28 18:29:08 - RESET: > run-s -s reset:*
552
552
  2023-02-28 18:29:08 - RESET:
553
553
  2023-02-28 18:29:08 - RESET: Reset project to factory state ..