j1-template 2024.3.15 → 2024.3.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/amplitude.html +139 -68
  3. data/assets/data/banner.html +1 -1
  4. data/assets/data/cookieconsent.html +1 -1
  5. data/assets/data/docsearch.html +1 -1
  6. data/assets/data/fab.html +1 -1
  7. data/assets/data/footer.html +1 -1
  8. data/assets/data/galeries.html +1 -1
  9. data/assets/data/gallery_customizer.html +1 -1
  10. data/assets/data/gemini-ui.html +1 -1
  11. data/assets/data/iframes.html +1 -1
  12. data/assets/data/masonry.html +1 -1
  13. data/assets/data/masterslider.html +1 -1
  14. data/assets/data/menu.html +1 -1
  15. data/assets/data/mmenu.html +1 -1
  16. data/assets/data/mmenu_sidebar.html +1 -1
  17. data/assets/data/mmenu_toc.html +1 -1
  18. data/assets/data/panel.html +5 -4
  19. data/assets/data/quicklinks.html +1 -1
  20. data/assets/data/rtext_resizer.html +1 -1
  21. data/assets/data/slick.html +1 -1
  22. data/assets/data/speak2me.html +1 -1
  23. data/assets/data/swiper.html +313 -0
  24. data/assets/theme/j1/adapter/js/amplitude.30.js +1177 -0
  25. data/assets/theme/j1/adapter/js/amplitude.js +241 -191
  26. data/assets/theme/j1/adapter/js/j1.js +3 -3
  27. data/assets/theme/j1/adapter/js/masonry.js +2 -2
  28. data/assets/theme/j1/adapter/js/masterslider.js +2 -1
  29. data/assets/theme/j1/adapter/js/swiper.js +231 -0
  30. data/assets/theme/j1/adapter/js/videojs.js +212 -0
  31. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +7 -4
  32. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
  33. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  34. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
  35. data/assets/theme/j1/core/js/template.js +4 -0
  36. data/assets/theme/j1/core/js/template.min.js +2 -2
  37. data/assets/theme/j1/core/js/template.min.js.map +1 -1
  38. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +94 -4
  39. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  40. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +3 -2
  41. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
  42. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +72 -10
  43. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +2 -1
  44. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/artist.svg +78 -0
  45. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg +52 -20
  46. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg +20 -39
  47. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg +24 -38
  48. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg +85 -0
  49. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-music.svg +85 -0
  50. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-show.svg +85 -0
  51. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist.svg +85 -0
  52. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg +18 -37
  53. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +33 -30
  54. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +33 -29
  55. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg +55 -14
  56. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg +56 -14
  57. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg +38 -21
  58. data/assets/theme/j1/modules/amplitudejs/js/amplitude.map +20 -20
  59. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.15.js +1594 -0
  60. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +1617 -89
  61. data/assets/theme/j1/modules/amplitudejs/js/visualizations/bar.js +1 -1
  62. data/assets/theme/j1/modules/amplitudejs/js/visualizations/circular-equalizer.js +31 -1
  63. data/assets/theme/j1/modules/amplitudejs/js/visualizations/frequency-analyzer.js +1 -1
  64. data/assets/theme/j1/modules/amplitudejs/js/visualizations/michael-bromley.js +1 -1
  65. data/assets/theme/j1/modules/amplitudejs/js/visualizations/template.js +1 -1
  66. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +206 -122
  67. data/assets/theme/j1/modules/photoswipe/.version_5.4.4 +6 -0
  68. data/assets/theme/j1/modules/photoswipe/LICENSE +21 -0
  69. data/assets/theme/j1/modules/photoswipe/README.md +32 -0
  70. data/assets/theme/j1/modules/photoswipe/css/org/photoswipe-dynamic-caption-plugin.umd.min.js +5 -0
  71. data/assets/theme/j1/modules/photoswipe/css/org/photoswipe.css +420 -0
  72. data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.css +67 -0
  73. data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.min.css +16 -0
  74. data/assets/theme/j1/modules/photoswipe/css/photoswipe.css +376 -0
  75. data/assets/theme/j1/modules/photoswipe/css/photoswipe.min.css +17 -0
  76. data/assets/theme/j1/modules/photoswipe/css/scss/photoswipe.scss +427 -0
  77. data/assets/theme/j1/modules/photoswipe/example/photoswipe-caption-plugin.html +237 -0
  78. data/assets/theme/j1/modules/photoswipe/example/test-gallery.html +36 -0
  79. data/assets/theme/j1/modules/photoswipe/js/README.md +43 -0
  80. data/assets/theme/j1/modules/photoswipe/js/photoswipe-caption-plugin.min.js +5 -0
  81. data/assets/theme/j1/modules/photoswipe/js/photoswipe-core.min.js +18 -0
  82. data/assets/theme/j1/modules/photoswipe/js/photoswipe-lightbox.min.js +18 -0
  83. data/assets/theme/j1/modules/swiper/.version_1.2.0 +15 -0
  84. data/assets/theme/j1/modules/swiper/LICENSE +20 -0
  85. data/assets/theme/j1/modules/swiper/README.md +95 -0
  86. data/assets/theme/j1/modules/swiper/css/swiper-bundle.css +740 -0
  87. data/assets/theme/j1/modules/swiper/css/swiper-bundle.min..css +17 -0
  88. data/assets/theme/j1/modules/swiper/css/theme/uno.css +249 -0
  89. data/assets/theme/j1/modules/swiper/css/theme/uno.min.css +154 -0
  90. data/assets/theme/j1/modules/swiper/js/swiper-bundle.js +9785 -0
  91. data/assets/theme/j1/modules/swiper/js/swiper-bundle.min.js +17 -0
  92. data/assets/theme/j1/modules/swiper/swiperjs.com-demos.url +2 -0
  93. data/assets/theme/j1/modules/videojs/assets/icons/custom-icons/next.svg +82 -0
  94. data/assets/theme/j1/modules/videojs/css/font/README.md +151 -0
  95. data/assets/theme/j1/modules/videojs/css/font/VideoJS.svg +150 -0
  96. data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +2012 -0
  97. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +32 -0
  98. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +31 -0
  99. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.css +31 -0
  100. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.min.css +21 -0
  101. data/assets/theme/j1/modules/videojs/css/themes/uno.css +14 -3
  102. data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
  103. data/assets/theme/j1/modules/videojs/css/videojs.css +1 -0
  104. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/LICENSE +13 -0
  105. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/README.md +75 -0
  106. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.js +149 -0
  107. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.min.js +21 -0
  108. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/README.md +76 -30
  109. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.js +64 -53
  110. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.min.js +1 -1
  111. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/README.md +133 -0
  112. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.js +137 -0
  113. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.min.js +21 -0
  114. data/assets/theme/j1/modules/videojs/js/plugins/controls/zoom/zoom.js +15 -12
  115. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.js +43 -16
  116. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/fastfilereaderext.so +0 -0
  117. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/rubyeventmachine.so +0 -0
  118. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/fastfilereaderext.so +0 -0
  119. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/rubyeventmachine.so +0 -0
  120. data/lib/j1/version.rb +1 -1
  121. data/lib/j1_app/j1_auth_manager/config.rb +0 -4
  122. data/lib/starter_web/Gemfile +45 -22
  123. data/lib/starter_web/README.md +5 -5
  124. data/lib/starter_web/_config.yml +4 -6
  125. data/lib/starter_web/_data/modules/amplitude.yml +308 -363
  126. data/lib/starter_web/_data/modules/defaults/amplitude.yml +60 -35
  127. data/lib/starter_web/_data/modules/defaults/gallery.yml +42 -0
  128. data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
  129. data/lib/starter_web/_data/modules/defaults/swiper.yml +515 -0
  130. data/lib/starter_web/_data/modules/defaults/videojs.yml +107 -0
  131. data/lib/starter_web/_data/modules/gallery.yml +30 -14
  132. data/lib/starter_web/_data/modules/masonry.yml +15 -0
  133. data/lib/starter_web/_data/modules/swiper.yml +227 -0
  134. data/lib/starter_web/_data/modules/videojs.yml +57 -0
  135. data/lib/starter_web/_data/resources.yml +50 -16
  136. data/lib/starter_web/_data/templates/feed.xml +1 -1
  137. data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +1 -0
  138. data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -0
  139. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +4 -1
  140. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +141 -24
  141. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +4 -1
  142. data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +313 -0
  143. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +192 -17
  144. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  145. data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/der_unverzichtbare_feind.jpg +0 -0
  146. data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/ein_diener_vieler_herren.jpg +0 -0
  147. data/lib/starter_web/assets/video/poster/youtube/the_piano/the-piano.jpg +0 -0
  148. data/lib/starter_web/package.json +1 -1
  149. data/lib/starter_web/pages/public/_includes/attributes.asciidoc +45 -0
  150. data/lib/starter_web/pages/public/_includes/documents/photoswipe/200_photoswipe_parameters.asciidoc +510 -0
  151. data/lib/starter_web/pages/public/_includes/documents/photoswipe/210_photoswipe_lightbox_parameters.asciidoc +98 -0
  152. data/lib/starter_web/pages/public/_includes/documents/photoswipe/300_caption_plugin_for_photoSwipe.asciidoc +327 -0
  153. data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_features.asciidoc +50 -0
  154. data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_html_layout.asciidoc +122 -0
  155. data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_initialization.asciidoc +53 -0
  156. data/lib/starter_web/pages/public/_includes/documents/swiper/110_swiper_common_options.asciidoc +43 -0
  157. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_a_k.asciidoc +994 -0
  158. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_l_o.asciidoc +473 -0
  159. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_p_s.asciidoc +700 -0
  160. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_t_z.asciidoc +413 -0
  161. data/lib/starter_web/pages/public/_includes/documents/swiper/300_swiper_instance_properties.asciidoc +873 -0
  162. data/lib/starter_web/pages/public/_includes/documents/swiper/400_swiper_modules.asciidoc +2514 -0
  163. data/lib/starter_web/pages/public/_includes/documents/swiper/500_swiper_methods.asciidoc +989 -0
  164. data/lib/starter_web/pages/public/_includes/documents/swiper/600_swiper_events.asciidoc +1534 -0
  165. data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +89 -62
  166. data/lib/starter_web/pages/public/manuals/integrations/amplitudejs/amplitudejs-api.adoc +1 -1
  167. data/lib/starter_web/pages/public/manuals/integrations/videojs/youtube-api.adoc +1638 -0
  168. data/lib/starter_web/pages/public/photoswipe_api.adoc +150 -0
  169. data/lib/starter_web/pages/public/swiper_api.adoc +128 -0
  170. data/lib/starter_web/pages/public/swiper_tester.adoc +973 -0
  171. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -6
  172. data/lib/starter_web/pages/public/tools/previewer/preview_videojs.adoc +203 -0
  173. data/lib/starter_web/pages/{tour → public/tour}/modal_extentions.adoc +12 -5
  174. data/lib/starter_web/pages/{tour → public/tour}/play_audio.adoc +63 -15
  175. data/lib/starter_web/pages/{tour → public/tour}/play_video.adoc +79 -40
  176. data/lib/starter_web/pages/{tour → public/tour}/present_images.adoc +5 -5
  177. metadata +114 -41
  178. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_pause.svg +0 -19
  179. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_play.svg +0 -18
  180. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/show-playlist.svg +0 -15
  181. data/assets/theme/j1/modules/jqueryScrollbar/LICENSE +0 -20
  182. data/assets/theme/j1/modules/jqueryScrollbar/README.md +0 -28
  183. data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.css +0 -939
  184. data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.min.css +0 -20
  185. data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.js +0 -851
  186. data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.min.js +0 -36
  187. data/assets/theme/j1/modules/jqueryScrollbar/sass/scrollbar.scss +0 -806
  188. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +0 -794
  189. /data/lib/starter_web/pages/{tour → public/tour}/_includes/attributes.asciidoc +0 -0
  190. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/100_gistblock.asciidoc +0 -0
  191. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_info.asciidoc +0 -0
  192. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_left_warning.asciidoc +0 -0
  193. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_right_danger.asciidoc +0 -0
  194. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_central_success.asciidoc +0 -0
  195. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_left_info.asciidoc +0 -0
  196. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_right_success.asciidoc +0 -0
  197. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -0
  198. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_info.asciidoc +0 -0
  199. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_left_info.asciidoc +0 -0
  200. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_right_success.asciidoc +0 -0
  201. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/419_advanced_modals_demo.asciidoc +0 -0
  202. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/tables/bs_modal_examples.asciidoc +0 -0
  203. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_bootstrap.asciidoc +0 -0
  204. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_rouge.asciidoc +0 -0
  205. /data/lib/starter_web/pages/{tour → public/tour}/asciidoc_extensions.adoc +0 -0
  206. /data/lib/starter_web/pages/{tour → public/tour}/bootstrap_themes.adoc +0 -0
  207. /data/lib/starter_web/pages/{tour → public/tour}/highlghter_rouge.adoc +0 -0
  208. /data/lib/starter_web/pages/{tour → public/tour}/icon_fonts.adoc +0 -0
  209. /data/lib/starter_web/pages/{tour → public/tour}/quicksearch.adoc +0 -0
  210. /data/lib/starter_web/pages/{tour → public/tour}/responsive_tables.adoc +0 -0
  211. /data/lib/starter_web/pages/{tour → public/tour}/typography.adoc +0 -0
@@ -42,6 +42,15 @@ resource_options:
42
42
  // Enable the Liquid Preprocessor
43
43
  :page-liquid:
44
44
 
45
+ // Attribute settings for section control
46
+ //
47
+ :ytp-api--description: false
48
+ :ytp--example: false
49
+ :ytp--audio-player: true
50
+ :ms-slider-video--example: false
51
+
52
+ :manon-melodie--playlist: //youtube.com/channel/UCEsIlUzfXYT5AZSOVnbFqsQ
53
+
45
54
  // Set (local) page attributes here
46
55
  // -----------------------------------------------------------------------------
47
56
  // :page--attr: <attr-value>
@@ -58,17 +67,13 @@ resource_options:
58
67
  // Page content
59
68
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
69
  [role="dropcap"]
61
- The J1 Template support playing video on web pages by HTML5 Video, the new
62
- standard of HTML to show videos on webpages.
63
-
64
- Modern browsers support the video tag `<video>` for the new HTML5 video
65
- standard. The previous proprietary de facto standard software like
66
- _Flash Player_, _Quicktime_, or _Silverlight_ is no longer needed as the
67
- Jekyll theme J1 provides HTML5 Video support for local video content
68
- and from online sources on the Internet.
70
+ The J1 Template supports the AmpltidueJS module playing audio from (YouTube)
71
+ video. The Template system provides a plugin (Tech) to mimic AmpliudeJS
72
+ players to control the audio.
69
73
 
70
74
  // Include sub-documents (if any)
71
75
  // -----------------------------------------------------------------------------
76
+ ifeval::[{ytp-api--description} == true]
72
77
  [role="mt-4"]
73
78
  == YouTube Audio
74
79
 
@@ -79,10 +84,9 @@ and from online sources on the Internet.
79
84
  // https://www.youtube.com/watch?v=ryxAe4B_3Pg
80
85
  // https://www.youtube.com/watch?v=wI1Rr29OCJM
81
86
 
82
- You can embed any YouTube video in your web pages and visitors on your
83
- site will be able to play and pause the video audio with a simple click.
84
- With this technique, you can also use a YouTube video as background audio
85
- that runs in a loop.
87
+ You can embed any YouTube video on your web pages, and visitors can play
88
+ and pause the audio with a simple click. This technique can also be used
89
+ to use a YouTube video as background audio that runs in a loop.
86
90
 
87
91
  [TIP]
88
92
  ====
@@ -93,11 +97,11 @@ http://www.labnol.org/internet/youtube-audio-player/26740/[Embed YouTube as an A
93
97
  [role="mt-4"]
94
98
  === How to Embed YouTube Audio
95
99
 
96
- It takes just one step to embed a YouTube audio. Open any YouTube video
97
- and make a note of the YouTube Video ID (a string of 11 characters).
100
+ It takes just one step to embed a YouTube audio. Open any YouTube video and
101
+ make a note of the YouTube Video ID (a string of 11 characters).
98
102
 
99
- Next copy-paste the code below anywhere on your website and replace
100
- VIDEO_ID with actual ID of your YouTube video.
103
+ Next, copy and paste the code below anywhere on your website, replacing
104
+ VIDEO_ID with the actual ID of your YouTube video.
101
105
 
102
106
  [source, html]
103
107
  ----
@@ -106,53 +110,43 @@ VIDEO_ID with actual ID of your YouTube video.
106
110
  <script src="https://cdn.rawgit.com/labnol/files/master/yt.js"></script>
107
111
  ----
108
112
 
109
- There are few other configuration parameters that you can change depending
110
- on requirements. For instance, if you set data-autoplay to 1, the audio will
111
- begin playing immediately on page load. Likewise, set data-loop to 1 and the
112
- audio will play continuously in a never-ending loop until manually stopped.
113
+ The following example is using the YouTube JavaScript API, which renders a
114
+ regular YouTube player with the width and height set to *0 pixels*. When
115
+ the user clicks the audio button, it toggles the existing YouTube player state,
116
+ and the video begins to play or pauses.
113
117
 
114
- This internally renders the YouTube video using the IFRAME player and would
115
- thus work on both desktop and mobile browsers. The JavaScript files are hosted
116
- on Github while the images are hosted on Imgur. It is recommended that you
117
- copy the assets to your own server before deploying on a heavy-traffic website.
118
+ Here’s the annotated version of the source code. It can be extended to embed
119
+ YouTube playlists; the default playback volume can be changed, or you even
120
+ https://www.labnol.org/internet/embed-part-of-youtube-video/27948/[embeda part, {browser-window--new}]
121
+ of the video.
118
122
 
119
123
  [role="mt-4"]
120
124
  === Technical Details
121
125
 
122
- We are using the YouTube JavaScript API that renders a regular YouTube player
123
- but with the width and height set to *0 pixels*. When the user clicks the
124
- audio button, it toggles the existing YouTube player state and the video
125
- begins to play or pauses.
126
-
127
- Here’s the annotated version of the source code. It can be extended to embed
128
- YouTube playlists, the default playback volume can be changed or you even
129
- https://www.labnol.org/internet/embed-part-of-youtube-video/27948/[embeda part, {browser-window--new}]
130
- of the video.
126
+ lorem:sentences[5]
127
+ endif::[]
131
128
 
132
- ////
129
+ ifeval::[{ytp--example} == true]
133
130
  [role="mt-5"]
134
- === YT Player
131
+ == YT Player Example
135
132
  ++++
136
- <!-- 1. The <iframe> (and video player) will replace this <div> tag. -->
133
+ <!-- the <iframe> (video player) will replace this <div> tag -->
137
134
  <!-- =========================================================================== -->
138
135
  <div style="display:flex;justify-content:center;align-items:center;">
139
136
  <div id="youtube-audio1" data-video="WxcWO9O4DSM" data-autoplay="0" data-loop="1"></div>
140
137
  <div id="youtube-audio2" data-video="zAmDwCz2BOs" data-autoplay="0" data-loop="1"></div>
141
- <!-- div id="youtube-audio2"></div -->
142
138
  <div id="youtube-audio3" data-video="ryxAe4B_3Pg" data-autoplay="0" data-loop="1"></div>
143
139
  <div id="youtube-audio4" data-video="wI1Rr29OCJM" data-autoplay="0" data-loop="1"></div>
144
140
  </div>
145
- ++++
146
141
 
147
- ++++
148
142
  <script>
149
143
  $(function() {
150
144
 
151
- // Load the IFrame Player API code asynchronously.
145
+ // load the IFrame Player API code (asynchronously)
152
146
  var techScript;
153
147
 
154
148
  var tech = document.createElement('script');
155
- tech.src = "/assets/theme/j1/modules/amplitudejs/js/tech/youtube.js";
149
+ tech.src = "/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js";
156
150
  techScript = document.getElementsByTagName('script')[0];
157
151
 
158
152
  techScript.parentNode.insertBefore(tech, techScript);
@@ -160,33 +154,66 @@ of the video.
160
154
  });
161
155
  </script>
162
156
  ++++
163
- ////
157
+ endif::[]
164
158
 
159
+
160
+ ifeval::[{ytp--audio-player} == true]
165
161
  [role="mt-5"]
166
- == Amplitude Player
162
+ == Amplitude YT Player
167
163
 
168
- lorem:sentences[5]
164
+ The example below demonstrates playing only the *Audio* track from YouTube
165
+ Video using an AmplitudJS player. The J1 template uses the video *plugin* ytp
166
+ to extend the native functionality of the AmplitudeJS API to playback YouTube
167
+ files for the audio part.
169
168
 
170
- .Mimi Rutherfurt · Maritim Verlag (YouTube)
171
- amplitude::mimi_rutherfurt_yt_large[role="mt-4 mb-8"]
169
+ [role="mt-4 mb-5"]
170
+ [TIP]
171
+ ====
172
+ Find complete playlist for the example of Manon Mélodie on link:{manon-melodie--playlist}[YouTube, {browser-window--new}].
173
+ ====
172
174
 
173
- ++++
174
- <script>
175
- $(function() {
175
+ // [role="mt-4"]
176
+ // [[manon_melodie]]
177
+ // === Manon Mélodie
176
178
 
177
- // Load the IFrame Player API code asynchronously.
178
- var techScript;
179
+ // lorem:sentences[3]
179
180
 
180
- var tech = document.createElement('script');
181
- tech.src = "/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js";
182
- techScript = document.getElementsByTagName('script')[0];
181
+ // .Manon Mélodie · YouTube 2024
182
+ // amplitude::manon_melodie_yt_large[role="mt-4 mb-5"]
183
183
 
184
- techScript.parentNode.insertBefore(tech, techScript);
184
+ [role="mt-4"]
185
+ === Mimi Rutherfurt
185
186
 
186
- });
187
- </script>
188
- ++++
189
- ////
187
+ lorem:sentences[3]
188
+
189
+ .Mimi Rutherfurt · Maritim Verlag
190
+ amplitude::mimi_rutherfurt_yt_large[role="mt-4 mb-5"]
191
+
192
+ // [role="mt-4"]
193
+ // [[faelle_des_bnd]]
194
+ // === Die größten Fälle des BND
195
+
196
+ // lorem:sentences[3]
197
+
198
+ // .Die größten Fälle des BND · Maritim Verlag
199
+ // amplitude::faelle_des_bnd_yt_large[role="mt-4 mb-5"]
200
+
201
+ endif::[]
202
+
203
+ [role="mb-8"]
204
+ [CAUTION]
205
+ ====
206
+ Playing audio tracks is currently supported only for videos from YouTube (YT).
207
+ The YT plugin *ytp* embeds a YouTube (iframe) player and mimics the AmplitudeJS
208
+ player buttons and controls to manage a *playlist* of video the same as known
209
+ for native audio files.
210
+
211
+ Note, AmplitudeJS YT Player can only be used with the J1 Template. Currently,
212
+ only AJS players of type *compact* and *large* are supported.
213
+ ====
214
+
215
+
216
+ ifeval::[{ms-slider-video--example} == true]
190
217
  [[ms_video]]
191
218
  == MS Slider using YouTube Video
192
219
 
@@ -197,7 +224,7 @@ masterslider::ms_00010[role="mt-4 mb-5"]
197
224
 
198
225
 
199
226
  [role="mt-5"]
200
- == YouTube Video
227
+ === YouTube Video
201
228
 
202
229
  YouTube is a popular online video-sharing platform that allows users to
203
230
  upload, view, share, and comment on videos. The platform provides services
@@ -208,11 +235,11 @@ youtube::q3zqJs7JUCQ[poster="//img.youtube.com/vi/q3zqJs7JUCQ/maxresdefault.jpg"
208
235
 
209
236
 
210
237
  [role="mt-5"]
211
- == Local Video
238
+ === Local Video
212
239
 
213
240
  VideoJS provides a flexible and customizable platform for displaying and
214
241
  controlling MPEG 4 video content on websites and web applications.
215
242
 
216
243
  .Video over VideoJS
217
244
  gallery::jg_video_html5_videojs[role="mt-4 mb-5"]
218
- ////
245
+ endif::[]
@@ -27,7 +27,7 @@ regenerate: false
27
27
  personalization: true
28
28
  permalink: /pages/public/manuals/integrations/amplitudejs/amplitudejs_api/
29
29
 
30
- resources: [ amplitudejs ]
30
+ resources: [ amplitudejs, rouge ]
31
31
  resource_options:
32
32
  - toccer:
33
33
  collapseDepth: 3