j1-template 2024.3.13 → 2024.3.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +1 -1
  3. data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -4
  4. data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +24 -23
  5. data/_includes/themes/j1/procedures/layouts/content_writer.proc +4 -3
  6. data/_includes/themes/j1/procedures/layouts/default_writer.proc +37 -6
  7. data/_includes/themes/j1/procedures/layouts/module_writer.proc +31 -95
  8. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +51 -29
  9. data/assets/data/amplitude.html +403 -85
  10. data/assets/data/banner.html +9 -7
  11. data/assets/data/cookieconsent.html +8 -8
  12. data/assets/data/masterslider.html +128 -7
  13. data/assets/data/panel.html +16 -65
  14. data/assets/data/speak2me.html +11 -11
  15. data/assets/data/translator.html +29 -29
  16. data/assets/theme/j1/adapter/js/amplitude.js +310 -128
  17. data/assets/theme/j1/adapter/js/attic.js +14 -11
  18. data/assets/theme/j1/adapter/js/docsearch.js +2 -2
  19. data/assets/theme/j1/adapter/js/fab.js +2 -2
  20. data/assets/theme/j1/adapter/js/j1.js +12 -12
  21. data/assets/theme/j1/adapter/js/lazyLoader.js +60 -10
  22. data/assets/theme/j1/adapter/js/masonry.js +1 -1
  23. data/assets/theme/j1/adapter/js/masterslider.js +2 -2
  24. data/assets/theme/j1/adapter/js/particles.js +2 -2
  25. data/assets/theme/j1/adapter/js/scroller.js +2 -2
  26. data/assets/theme/j1/adapter/js/slick.js +2 -2
  27. data/assets/theme/j1/adapter/js/themes.js +43 -5
  28. data/assets/theme/j1/adapter/js/translator.js +2 -2
  29. data/assets/theme/j1/adapter/js/waves.js +1 -1
  30. data/assets/theme/j1/core/css/animate.css +1634 -1070
  31. data/assets/theme/j1/core/css/animate.css.map +1 -0
  32. data/assets/theme/j1/core/css/animate.min.css +2 -1
  33. data/assets/theme/j1/core/css/animate.min.css.map +1 -0
  34. data/assets/theme/j1/core/css/icon-fonts/fontawesome.css +3060 -1538
  35. data/assets/theme/j1/core/css/icon-fonts/fontawesome.css.map +1 -0
  36. data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css +2 -1
  37. data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css.map +1 -0
  38. data/assets/theme/j1/core/css/icon-fonts/iconify.css +2308 -1153
  39. data/assets/theme/j1/core/css/icon-fonts/iconify.css.map +1 -0
  40. data/assets/theme/j1/core/css/icon-fonts/iconify.min.css +2 -1
  41. data/assets/theme/j1/core/css/icon-fonts/iconify.min.css.map +1 -0
  42. data/assets/theme/j1/core/css/icon-fonts/mdi.css +16716 -8423
  43. data/assets/theme/j1/core/css/icon-fonts/mdi.css.map +1 -0
  44. data/assets/theme/j1/core/css/icon-fonts/mdi.min.css +2 -1
  45. data/assets/theme/j1/core/css/icon-fonts/mdi.min.css.map +1 -0
  46. data/assets/theme/j1/core/css/icon-fonts/mdib.css +5576 -2768
  47. data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -0
  48. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +2 -1
  49. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -0
  50. data/assets/theme/j1/core/css/icon-fonts/mdil.css +742 -441
  51. data/assets/theme/j1/core/css/icon-fonts/mdil.css.map +1 -0
  52. data/assets/theme/j1/core/css/icon-fonts/mdil.min.css +2 -1
  53. data/assets/theme/j1/core/css/icon-fonts/mdil.min.css.map +1 -0
  54. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css +6552 -3980
  55. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css.map +1 -0
  56. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css +2 -5
  57. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css.map +1 -0
  58. data/assets/theme/j1/core/css/themes/unodark/bootstrap.css +6818 -4131
  59. data/assets/theme/j1/core/css/themes/unodark/bootstrap.css.map +1 -0
  60. data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css +2 -5
  61. data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css.map +1 -0
  62. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +18568 -11577
  63. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -0
  64. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +2 -35
  65. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -0
  66. data/assets/theme/j1/core/css/vendor.css +1771 -1043
  67. data/assets/theme/j1/core/css/vendor.css.map +1 -0
  68. data/assets/theme/j1/core/css/vendor.min.css +2 -1
  69. data/assets/theme/j1/core/css/vendor.min.css.map +1 -0
  70. data/assets/theme/j1/core/js/template.js +132 -197
  71. data/assets/theme/j1/core/js/template.min.js +7 -7
  72. data/assets/theme/j1/core/js/template.min.js.map +1 -1
  73. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +53 -24
  74. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  75. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +138 -78
  76. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
  77. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +137 -81
  78. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
  79. data/assets/theme/j1/modules/amplitudejs/icons/player/blue/pause.png +0 -0
  80. data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.png +0 -0
  81. data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.svg +87 -0
  82. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +60 -0
  83. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +59 -0
  84. data/assets/theme/j1/modules/amplitudejs/js/amplitude.js +65 -21
  85. data/assets/theme/j1/modules/amplitudejs/js/amplitude.min.js +1 -1
  86. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +113 -0
  87. data/assets/theme/j1/modules/gemini/js/gemini.js.map +1 -1
  88. data/assets/theme/j1/modules/iconPicker/js/universal-icon-picker.js +471 -471
  89. data/assets/theme/j1/modules/j1LazyLoader/LICENSE +21 -0
  90. data/assets/theme/j1/modules/j1LazyLoader/js/j1Lazy.js +870 -0
  91. data/assets/theme/j1/modules/jquery/js/jquery.min.map +1 -1
  92. data/assets/theme/j1/modules/js-cookies/js/js.cookie.js +3 -3
  93. data/assets/theme/j1/modules/lazyCssLoader/js/main.0.js +166 -0
  94. data/assets/theme/j1/modules/lazyCssLoader/js/main.1.js +65 -0
  95. data/assets/theme/j1/modules/lazyCssLoader/js/main.js +66 -0
  96. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/examplePlugin.js +13 -0
  97. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/my-plugin.js +25 -0
  98. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/plugin-interface.js +9 -0
  99. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/pluginA.js +46 -0
  100. data/assets/theme/j1/modules/lazyLoader/js/plugins/README.md +324 -0
  101. data/assets/theme/j1/modules/lazyLoader/js/plugins/jquery.lazy.picture.js +188 -0
  102. data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +1 -1
  103. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +794 -0
  104. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +151 -67
  105. data/assets/theme/j1/modules/slimSelect/js/select.js +1 -1
  106. data/assets/theme/j1/modules/slimSelect/js/select.min.js +3 -3
  107. data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +2 -1
  108. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.js +2 -2
  109. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.min.js +1 -1
  110. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/icon/scalable/dailymotion.svg +62 -0
  111. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.js +832 -0
  112. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.min.js +17 -0
  113. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js +1 -1
  114. data/assets/theme/j1/modules/videojs/js/video.js +2 -2
  115. data/lib/j1/version.rb +1 -1
  116. data/lib/starter_web/README.md +577 -560
  117. data/lib/starter_web/_config.yml +2 -2
  118. data/lib/starter_web/_data/blocks/footer.yml +10 -5
  119. data/lib/starter_web/_data/blocks/panel.yml +2 -2
  120. data/lib/starter_web/_data/layouts/default.yml +14 -3
  121. data/lib/starter_web/_data/modules/amplitude.yml +595 -30
  122. data/lib/starter_web/_data/modules/defaults/amplitude.yml +30 -7
  123. data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +2 -2
  124. data/lib/starter_web/_data/modules/gallery.yml +136 -0
  125. data/lib/starter_web/_data/modules/lazyLoader.yml +69 -32
  126. data/lib/starter_web/_data/modules/masonry.yml +4 -4
  127. data/lib/starter_web/_data/modules/masterslider.yml +124 -18
  128. data/lib/starter_web/_data/modules/navigator_menu.yml +831 -803
  129. data/lib/starter_web/_data/resources.yml +155 -190
  130. data/lib/starter_web/_data/templates/feed.xml +1 -1
  131. data/lib/starter_web/_includes/attributes.asciidoc +1 -0
  132. data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -1
  133. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +2 -1
  134. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +1 -1
  135. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +4 -2
  136. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
  137. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
  138. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
  139. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +2 -1
  140. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +58 -46
  141. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +26 -19
  142. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +30 -40
  143. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  144. data/lib/starter_web/assets/audio/cover/spontanorama/spontanorama.jpg +0 -0
  145. data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.png +0 -0
  146. data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.psd +0 -0
  147. data/lib/starter_web/assets/image/icons/lanus/favicon.ico +0 -0
  148. data/lib/starter_web/assets/image/icons/lanus/lanus-512x512.png +0 -0
  149. data/lib/starter_web/assets/image/icons/lanus/lanus.ico +0 -0
  150. data/lib/starter_web/assets/image/icons/lanus/lanus.png +0 -0
  151. data/lib/starter_web/assets/image/icons/lanus/scalable/lanus.svg +76 -0
  152. data/lib/starter_web/assets/image/icons/lanus/scalable/lanus_sw.svg +62 -0
  153. data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28 - social.svg +86 -0
  154. data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28.svg +64 -0
  155. data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x.svg +1 -0
  156. data/lib/starter_web/assets/image/modules/icons/social/twitter_x.png +0 -0
  157. data/lib/starter_web/package.json +7 -18
  158. data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +218 -0
  159. data/lib/starter_web/pages/public/features/template.adoc +18 -8
  160. data/lib/starter_web/pages/public/features/template.asciidoc +758 -0
  161. data/lib/starter_web/pages/public/lazy_loader_tester.adoc +402 -0
  162. data/lib/starter_web/pages/public/manuals/ytdl/man.adoc +3020 -0
  163. data/lib/starter_web/pages/public/manuals/ytdl/man.md +2378 -0
  164. data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +0 -16
  165. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/amplitudejs.large.css.asciidoc +505 -0
  166. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.hover.html +69 -0
  167. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.nested.html +75 -0
  168. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.textarea.html +57 -0
  169. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/my.content.html +112 -0
  170. data/lib/starter_web/pages/public/tools/previewer/preview_amplitudejs.adoc +172 -0
  171. data/lib/starter_web/pages/{public/tour → tour}/_includes/attributes.asciidoc +2 -2
  172. data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/419_advanced_modals_demo.asciidoc +16 -16
  173. data/lib/starter_web/pages/{public/tour → tour}/asciidoc_extensions.adoc +14 -4
  174. data/lib/starter_web/pages/{public/tour → tour}/bootstrap_themes.adoc +13 -4
  175. data/lib/starter_web/pages/{public/tour → tour}/highlghter_rouge.adoc +14 -4
  176. data/lib/starter_web/pages/{public/tour → tour}/icon_fonts.adoc +12 -3
  177. data/lib/starter_web/pages/{public/tour → tour}/modal_extentions.adoc +13 -7
  178. data/lib/starter_web/pages/{public/tour/playback_audio.adoc → tour/play_audio.adoc} +215 -188
  179. data/lib/starter_web/pages/{public/tour/playback_video.adoc → tour/play_video.adoc} +68 -53
  180. data/lib/starter_web/pages/{public/tour → tour}/present_images.adoc +42 -19
  181. data/lib/starter_web/pages/{public/tour → tour}/quicksearch.adoc +14 -4
  182. data/lib/starter_web/pages/{public/tour → tour}/responsive_tables.adoc +14 -5
  183. data/lib/starter_web/pages/{public/tour → tour}/typography.adoc +13 -4
  184. metadata +112 -47
  185. /data/assets/theme/j1/modules/{lazyLoader → j1LazyLoader/js}/plugins/README.md +0 -0
  186. /data/assets/theme/j1/modules/{lazyLoader/plugins/jquery.lazy.picture.js → j1LazyLoader/js/plugins/picture.js} +0 -0
  187. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.js +0 -0
  188. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.min.js +0 -0
  189. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.js +0 -0
  190. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.min.js +0 -0
  191. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.js +0 -0
  192. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.min.js +0 -0
  193. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.js +0 -0
  194. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.min.js +0 -0
  195. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.picture.min.js +0 -0
  196. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.js +0 -0
  197. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.min.js +0 -0
  198. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.js +0 -0
  199. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.min.js +0 -0
  200. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.js +0 -0
  201. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.min.js +0 -0
  202. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/100_gistblock.asciidoc +0 -0
  203. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_bottom_info.asciidoc +0 -0
  204. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_bottom_left_warning.asciidoc +0 -0
  205. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_bottom_right_danger.asciidoc +0 -0
  206. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_central_success.asciidoc +0 -0
  207. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_full_height_left_info.asciidoc +0 -0
  208. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_full_height_right_success.asciidoc +0 -0
  209. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -0
  210. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_top_info.asciidoc +0 -0
  211. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_top_left_info.asciidoc +0 -0
  212. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_top_right_success.asciidoc +0 -0
  213. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/tables/bs_modal_examples.asciidoc +0 -0
  214. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/themes_bootstrap.asciidoc +0 -0
  215. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/themes_rouge.asciidoc +0 -0
@@ -0,0 +1,59 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ viewBox="0 0 24 24"
11
+ version="1.1"
12
+ id="svg4"
13
+ sodipodi:docname="step-forward.svg"
14
+ inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
15
+ <metadata
16
+ id="metadata10">
17
+ <rdf:RDF>
18
+ <cc:Work
19
+ rdf:about="">
20
+ <dc:format>image/svg+xml</dc:format>
21
+ <dc:type
22
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
23
+ <dc:title></dc:title>
24
+ </cc:Work>
25
+ </rdf:RDF>
26
+ </metadata>
27
+ <defs
28
+ id="defs8" />
29
+ <sodipodi:namedview
30
+ pagecolor="#ffffff"
31
+ bordercolor="#666666"
32
+ borderopacity="1"
33
+ objecttolerance="10"
34
+ gridtolerance="10"
35
+ guidetolerance="10"
36
+ inkscape:pageopacity="0"
37
+ inkscape:pageshadow="2"
38
+ inkscape:window-width="1258"
39
+ inkscape:window-height="1246"
40
+ id="namedview6"
41
+ showgrid="true"
42
+ inkscape:pagecheckerboard="true"
43
+ inkscape:showpageshadow="false"
44
+ inkscape:zoom="30.625"
45
+ inkscape:cx="12"
46
+ inkscape:cy="12"
47
+ inkscape:window-x="1618"
48
+ inkscape:window-y="0"
49
+ inkscape:window-maximized="0"
50
+ inkscape:current-layer="svg4">
51
+ <inkscape:grid
52
+ type="xygrid"
53
+ id="grid12" />
54
+ </sodipodi:namedview>
55
+ <path
56
+ d="M 2,0 V 24 H 5.75 V 0 m 2.5,0 V 24 L 22,12"
57
+ id="path2"
58
+ style="stroke-width:1.46385;fill:#ffffff;fill-opacity:1" />
59
+ </svg>
@@ -7408,7 +7408,8 @@ var Next = function () {
7408
7408
  /*
7409
7409
  Gets the playlist attribute from the element.
7410
7410
  */
7411
- var playlist = this.getAttribute("data-amplitude-playlist");
7411
+ var playlist = this.getAttribute("data-amplitude-playlist");
7412
+ var source = this.getAttribute("data-amplitude-source");
7412
7413
 
7413
7414
  /*
7414
7415
  If the playlist is null, we handle the global next.
@@ -7421,7 +7422,11 @@ var Next = function () {
7421
7422
  If the playlist is set, we handle the playlist next.
7422
7423
  */
7423
7424
  if (playlist != null) {
7424
- handlePlaylistNext(playlist);
7425
+ if (source === 'youtube' ) {
7426
+ return false;
7427
+ } else {
7428
+ handlePlaylistNext(playlist);
7429
+ }
7425
7430
  }
7426
7431
  }
7427
7432
  }
@@ -8096,11 +8101,12 @@ var PlayPause = function () {
8096
8101
  */
8097
8102
  if (!_config2.default.is_touch_moving) {
8098
8103
  /*
8099
- Get the playlist and song from the element. It's alright if these
8100
- are null.
8104
+ Get the playlist and song from the element. It's alright if these are null.
8101
8105
  */
8102
- var playlist = this.getAttribute("data-amplitude-playlist");
8103
- var song = this.getAttribute("data-amplitude-song-index");
8106
+ var playlist = this.getAttribute("data-amplitude-playlist");
8107
+ var source = this.getAttribute("data-amplitude-source");
8108
+ var song = this.getAttribute("data-amplitude-song-index");
8109
+
8104
8110
 
8105
8111
  /*
8106
8112
  Handle a global play pause button
@@ -8113,7 +8119,11 @@ var PlayPause = function () {
8113
8119
  Handle a playlist play pause button
8114
8120
  */
8115
8121
  if (playlist != null && song == null) {
8116
- handlePlaylistPlayPause(playlist);
8122
+ if (source === 'youtube' ) {
8123
+ return false;
8124
+ } else {
8125
+ handlePlaylistPlayPause(playlist);
8126
+ }
8117
8127
  }
8118
8128
 
8119
8129
  /*
@@ -8127,7 +8137,11 @@ var PlayPause = function () {
8127
8137
  Handle a song in playlist play pause button
8128
8138
  */
8129
8139
  if (playlist != null && song != null) {
8130
- handleSongInPlaylistPlayPause(playlist, song);
8140
+ if (source === 'youtube' ) {
8141
+ return false;
8142
+ } else {
8143
+ handleSongInPlaylistPlayPause(playlist, song);
8144
+ }
8131
8145
  }
8132
8146
  }
8133
8147
  }
@@ -8500,7 +8514,8 @@ var Prev = function () {
8500
8514
  /*
8501
8515
  Gets the playlist attribute from the element.
8502
8516
  */
8503
- var playlist = this.getAttribute("data-amplitude-playlist");
8517
+ var playlist = this.getAttribute("data-amplitude-playlist");
8518
+ var source = this.getAttribute("data-amplitude-source");
8504
8519
 
8505
8520
  /*
8506
8521
  If the playlist is null, we handle the global prev.
@@ -8513,7 +8528,11 @@ var Prev = function () {
8513
8528
  If the playlist is set, we handle the playlist prev.
8514
8529
  */
8515
8530
  if (playlist != null) {
8516
- handlePlaylistPrev(playlist);
8531
+ if (source === 'youtube' ) {
8532
+ return false;
8533
+ } else {
8534
+ handlePlaylistPrev(playlist);
8535
+ }
8517
8536
  }
8518
8537
  }
8519
8538
  }
@@ -8703,7 +8722,8 @@ var Repeat = function () {
8703
8722
  /*
8704
8723
  Gets the playlist attribute from the element.
8705
8724
  */
8706
- var playlist = this.getAttribute("data-amplitude-playlist");
8725
+ var playlist = this.getAttribute("data-amplitude-playlist");
8726
+ var source = this.getAttribute("data-amplitude-source");
8707
8727
 
8708
8728
  /*
8709
8729
  If the playlist is null, we handle the global repeat.
@@ -8716,7 +8736,11 @@ var Repeat = function () {
8716
8736
  If the playlist is set, we handle the playlist repeat.
8717
8737
  */
8718
8738
  if (playlist != null) {
8719
- handlePlaylistRepeat(playlist);
8739
+ if (source === 'youtube' ) {
8740
+ return false;
8741
+ } else {
8742
+ handlePlaylistRepeat(playlist);
8743
+ }
8720
8744
  }
8721
8745
  }
8722
8746
  }
@@ -8911,7 +8935,8 @@ var Shuffle = function () {
8911
8935
  /*
8912
8936
  Get the playlist attribute
8913
8937
  */
8914
- var playlist = this.getAttribute("data-amplitude-playlist");
8938
+ var playlist = this.getAttribute("data-amplitude-playlist");
8939
+ var source = this.getAttribute("data-amplitude-source");
8915
8940
 
8916
8941
  /*
8917
8942
  Check to see if the shuffle button belongs to a playlist
@@ -8919,7 +8944,11 @@ var Shuffle = function () {
8919
8944
  if (playlist == null) {
8920
8945
  handleGlobalShuffle();
8921
8946
  } else {
8922
- handlePlaylistShuffle(playlist);
8947
+ if (source === 'youtube' ) {
8948
+ return false;
8949
+ } else {
8950
+ handlePlaylistShuffle(playlist);
8951
+ }
8923
8952
  }
8924
8953
  }
8925
8954
  }
@@ -9053,9 +9082,11 @@ var SkipTo = function () {
9053
9082
  /*
9054
9083
  Extracts the needed attributes from the element.
9055
9084
  */
9056
- var playlist = this.getAttribute("data-amplitude-playlist");
9085
+ var playlist = this.getAttribute("data-amplitude-playlist");
9086
+ var source = this.getAttribute("data-amplitude-source");
9087
+
9057
9088
  var songIndex = this.getAttribute("data-amplitude-song-index");
9058
- var location = this.getAttribute("data-amplitude-location");
9089
+ var location = this.getAttribute("data-amplitude-location");
9059
9090
 
9060
9091
  /*
9061
9092
  If the location is null, write a message. We can't skip to a location
@@ -9083,7 +9114,11 @@ var SkipTo = function () {
9083
9114
  if (playlist == null) {
9084
9115
  handleSkipToSong(parseInt(songIndex), parseInt(location));
9085
9116
  } else {
9086
- handleSkipToPlaylist(playlist, parseInt(songIndex), parseInt(location));
9117
+ if (source === 'youtube' ) {
9118
+ return false;
9119
+ } else {
9120
+ handleSkipToPlaylist(playlist, parseInt(songIndex), parseInt(location));
9121
+ }
9087
9122
  }
9088
9123
  }
9089
9124
  }
@@ -9242,8 +9277,9 @@ var SongSlider = function () {
9242
9277
  /*
9243
9278
  Gets the attributes for playlist and index for the element.
9244
9279
  */
9245
- var playlist = this.getAttribute("data-amplitude-playlist");
9246
- var song = this.getAttribute("data-amplitude-song-index");
9280
+ var playlist = this.getAttribute("data-amplitude-playlist");
9281
+ var source = this.getAttribute("data-amplitude-source");
9282
+ var song = this.getAttribute("data-amplitude-song-index");
9247
9283
 
9248
9284
  /*
9249
9285
  If no playlist or song is defined, then it's a global song slider.
@@ -9256,7 +9292,11 @@ var SongSlider = function () {
9256
9292
  If a playlist but no song is defined, then it's playlist slider.
9257
9293
  */
9258
9294
  if (playlist != null && song == null) {
9259
- handlePlaylistSongSlider(computedTime, locationPercentage, playlist);
9295
+ if (source === 'youtube' ) {
9296
+ return false;
9297
+ } else {
9298
+ handlePlaylistSongSlider(computedTime, locationPercentage, playlist);
9299
+ }
9260
9300
  }
9261
9301
 
9262
9302
  /*
@@ -9271,7 +9311,11 @@ var SongSlider = function () {
9271
9311
  slider.
9272
9312
  */
9273
9313
  if (playlist != null && song != null) {
9274
- handleSongInPlaylistSongSlider(computedTime, locationPercentage, playlist, song);
9314
+ if (source === 'youtube' ) {
9315
+ return false;
9316
+ } else {
9317
+ handleSongInPlaylistSongSlider(computedTime, locationPercentage, playlist, song);
9318
+ }
9275
9319
  }
9276
9320
  }
9277
9321