j1-template 2024.3.13 → 2024.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) 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.28.html +887 -0
  10. data/assets/data/amplitude.29.html +923 -0
  11. data/assets/data/amplitude.html +311 -46
  12. data/assets/data/banner.html +9 -7
  13. data/assets/data/masterslider.html +128 -7
  14. data/assets/data/panel.html +16 -65
  15. data/assets/theme/j1/adapter/js/amplitude.23.js +1165 -0
  16. data/assets/theme/j1/adapter/js/amplitude.24.js +1164 -0
  17. data/assets/theme/j1/adapter/js/amplitude.25.js +1268 -0
  18. data/assets/theme/j1/adapter/js/amplitude.js +294 -117
  19. data/assets/theme/j1/adapter/js/attic.js +14 -11
  20. data/assets/theme/j1/adapter/js/docsearch.js +2 -2
  21. data/assets/theme/j1/adapter/js/fab.js +2 -2
  22. data/assets/theme/j1/adapter/js/j1.js +8 -8
  23. data/assets/theme/j1/adapter/js/lazyLoader.js +60 -10
  24. data/assets/theme/j1/adapter/js/masonry.js +1 -1
  25. data/assets/theme/j1/adapter/js/masterslider.js +2 -2
  26. data/assets/theme/j1/adapter/js/particles.js +2 -2
  27. data/assets/theme/j1/adapter/js/scroller.js +2 -2
  28. data/assets/theme/j1/adapter/js/slick.js +2 -2
  29. data/assets/theme/j1/adapter/js/themes.js +1 -1
  30. data/assets/theme/j1/adapter/js/translator.js +2 -2
  31. data/assets/theme/j1/adapter/js/waves.js +1 -1
  32. data/assets/theme/j1/core/css/animate.css +1634 -1070
  33. data/assets/theme/j1/core/css/animate.css.map +1 -0
  34. data/assets/theme/j1/core/css/animate.min.css +2 -1
  35. data/assets/theme/j1/core/css/animate.min.css.map +1 -0
  36. data/assets/theme/j1/core/css/icon-fonts/fontawesome.css +3060 -1538
  37. data/assets/theme/j1/core/css/icon-fonts/fontawesome.css.map +1 -0
  38. data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css +2 -1
  39. data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css.map +1 -0
  40. data/assets/theme/j1/core/css/icon-fonts/iconify.css +2308 -1153
  41. data/assets/theme/j1/core/css/icon-fonts/iconify.css.map +1 -0
  42. data/assets/theme/j1/core/css/icon-fonts/iconify.min.css +2 -1
  43. data/assets/theme/j1/core/css/icon-fonts/iconify.min.css.map +1 -0
  44. data/assets/theme/j1/core/css/icon-fonts/mdi.css +16716 -8423
  45. data/assets/theme/j1/core/css/icon-fonts/mdi.css.map +1 -0
  46. data/assets/theme/j1/core/css/icon-fonts/mdi.min.css +2 -1
  47. data/assets/theme/j1/core/css/icon-fonts/mdi.min.css.map +1 -0
  48. data/assets/theme/j1/core/css/icon-fonts/mdib.css +5554 -2766
  49. data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -0
  50. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +2 -1
  51. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -0
  52. data/assets/theme/j1/core/css/icon-fonts/mdil.css +742 -441
  53. data/assets/theme/j1/core/css/icon-fonts/mdil.css.map +1 -0
  54. data/assets/theme/j1/core/css/icon-fonts/mdil.min.css +2 -1
  55. data/assets/theme/j1/core/css/icon-fonts/mdil.min.css.map +1 -0
  56. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css +6552 -3980
  57. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css.map +1 -0
  58. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css +2 -5
  59. data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css.map +1 -0
  60. data/assets/theme/j1/core/css/themes/unodark/bootstrap.css +6818 -4131
  61. data/assets/theme/j1/core/css/themes/unodark/bootstrap.css.map +1 -0
  62. data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css +2 -5
  63. data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css.map +1 -0
  64. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +18568 -11577
  65. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -0
  66. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +2 -35
  67. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -0
  68. data/assets/theme/j1/core/css/vendor.css +1771 -1043
  69. data/assets/theme/j1/core/css/vendor.css.map +1 -0
  70. data/assets/theme/j1/core/css/vendor.min.css +2 -1
  71. data/assets/theme/j1/core/css/vendor.min.css.map +1 -0
  72. data/assets/theme/j1/core/js/template.js +399 -447
  73. data/assets/theme/j1/core/js/template.min.js +7 -7
  74. data/assets/theme/j1/core/js/template.min.js.map +1 -1
  75. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +4 -2
  76. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +39 -4
  77. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
  78. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +57 -17
  79. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
  80. data/assets/theme/j1/modules/amplitudejs/icons/player/blue/pause.png +0 -0
  81. data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.png +0 -0
  82. data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.svg +87 -0
  83. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +60 -0
  84. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +59 -0
  85. data/assets/theme/j1/modules/amplitudejs/js/amplitude.js +65 -21
  86. data/assets/theme/j1/modules/amplitudejs/js/amplitude.min.js +1 -1
  87. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +113 -0
  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/js-cookies/js/js.cookie.js +3 -3
  92. data/assets/theme/j1/modules/lazyCssLoader/js/main.0.js +166 -0
  93. data/assets/theme/j1/modules/lazyCssLoader/js/main.1.js +65 -0
  94. data/assets/theme/j1/modules/lazyCssLoader/js/main.js +66 -0
  95. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/examplePlugin.js +13 -0
  96. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/my-plugin.js +25 -0
  97. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/plugin-interface.js +9 -0
  98. data/assets/theme/j1/modules/lazyCssLoader/js/plugins/pluginA.js +46 -0
  99. data/assets/theme/j1/modules/lazyLoader/js/plugins/README.md +324 -0
  100. data/assets/theme/j1/modules/lazyLoader/js/plugins/jquery.lazy.picture.js +188 -0
  101. data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +1 -1
  102. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +794 -0
  103. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +151 -67
  104. data/assets/theme/j1/modules/slimSelect/js/select.js +1 -1
  105. data/assets/theme/j1/modules/slimSelect/js/select.min.js +3 -3
  106. data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +2 -1
  107. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.min.js +1 -1
  108. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/icon/scalable/dailymotion.svg +62 -0
  109. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.js +832 -0
  110. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.min.js +17 -0
  111. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js +1 -1
  112. data/assets/theme/j1/modules/videojs/js/video.js +2 -2
  113. data/lib/j1/version.rb +1 -1
  114. data/lib/starter_web/README.md +577 -560
  115. data/lib/starter_web/_config.yml +2 -2
  116. data/lib/starter_web/_data/blocks/footer.yml +10 -5
  117. data/lib/starter_web/_data/blocks/panel.yml +2 -2
  118. data/lib/starter_web/_data/layouts/default.yml +14 -3
  119. data/lib/starter_web/_data/modules/amplitude.yml +145 -0
  120. data/lib/starter_web/_data/modules/defaults/amplitude.yml +29 -7
  121. data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +2 -2
  122. data/lib/starter_web/_data/modules/gallery.yml +136 -0
  123. data/lib/starter_web/_data/modules/lazyLoader.0.yml +118 -0
  124. data/lib/starter_web/_data/modules/lazyLoader.yml +68 -31
  125. data/lib/starter_web/_data/modules/masonry.yml +4 -4
  126. data/lib/starter_web/_data/modules/masterslider.yml +118 -12
  127. data/lib/starter_web/_data/modules/navigator_menu.yml +831 -803
  128. data/lib/starter_web/_data/resources.yml +154 -190
  129. data/lib/starter_web/_data/templates/feed.xml +1 -1
  130. data/lib/starter_web/_includes/attributes.asciidoc +1 -0
  131. data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -1
  132. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +1 -1
  133. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +4 -2
  134. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
  135. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +58 -46
  136. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +26 -19
  137. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +30 -40
  138. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  139. data/lib/starter_web/assets/image/icons/lanus/favicon.ico +0 -0
  140. data/lib/starter_web/assets/image/icons/lanus/lanus-512x512.png +0 -0
  141. data/lib/starter_web/assets/image/icons/lanus/lanus.ico +0 -0
  142. data/lib/starter_web/assets/image/icons/lanus/lanus.png +0 -0
  143. data/lib/starter_web/assets/image/icons/lanus/scalable/lanus.svg +76 -0
  144. data/lib/starter_web/assets/image/icons/lanus/scalable/lanus_sw.svg +62 -0
  145. data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28 - social.svg +86 -0
  146. data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28.svg +64 -0
  147. data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x.svg +1 -0
  148. data/lib/starter_web/assets/image/modules/icons/social/twitter_x.png +0 -0
  149. data/lib/starter_web/package.json +7 -18
  150. data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +218 -0
  151. data/lib/starter_web/pages/public/features/template.adoc +18 -8
  152. data/lib/starter_web/pages/public/features/template.asciidoc +758 -0
  153. data/lib/starter_web/pages/public/lazy_loader_tester.adoc +402 -0
  154. data/lib/starter_web/pages/public/manuals/ytdl/man.adoc +3020 -0
  155. data/lib/starter_web/pages/public/manuals/ytdl/man.md +2378 -0
  156. data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +0 -16
  157. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/amplitudejs.large.css.asciidoc +505 -0
  158. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.hover.html +69 -0
  159. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.nested.html +75 -0
  160. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.textarea.html +57 -0
  161. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/my.content.html +112 -0
  162. data/lib/starter_web/pages/public/tools/previewer/preview_amplitudejs.adoc +172 -0
  163. data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +2 -2
  164. data/lib/starter_web/pages/public/tour/_includes/documents/419_advanced_modals_demo.asciidoc +16 -16
  165. data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +13 -3
  166. data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +12 -3
  167. data/lib/starter_web/pages/public/tour/highlghter_rouge.adoc +13 -3
  168. data/lib/starter_web/pages/public/tour/icon_fonts.adoc +12 -3
  169. data/lib/starter_web/pages/public/tour/modal_extentions.adoc +12 -6
  170. data/lib/starter_web/pages/public/tour/{playback_audio.adoc → play_audio.adoc} +207 -188
  171. data/lib/starter_web/pages/public/tour/{playback_video.adoc → play_video.adoc} +49 -51
  172. data/lib/starter_web/pages/public/tour/present_images.adoc +27 -5
  173. data/lib/starter_web/pages/public/tour/quicksearch.adoc +13 -3
  174. data/lib/starter_web/pages/public/tour/responsive_tables.adoc +13 -4
  175. data/lib/starter_web/pages/public/tour/typography.adoc +12 -3
  176. metadata +90 -22
  177. /data/assets/theme/j1/modules/{lazyLoader → j1LazyLoader/js}/plugins/README.md +0 -0
  178. /data/assets/theme/j1/modules/{lazyLoader/plugins/jquery.lazy.picture.js → j1LazyLoader/js/plugins/picture.js} +0 -0
  179. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.js +0 -0
  180. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.min.js +0 -0
  181. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.js +0 -0
  182. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.min.js +0 -0
  183. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.js +0 -0
  184. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.min.js +0 -0
  185. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.js +0 -0
  186. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.min.js +0 -0
  187. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.picture.min.js +0 -0
  188. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.js +0 -0
  189. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.min.js +0 -0
  190. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.js +0 -0
  191. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.min.js +0 -0
  192. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.js +0 -0
  193. /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.min.js +0 -0
@@ -243,11 +243,11 @@ exclude_from_search: true
243
243
  <p>
244
244
  <span>
245
245
  <a class="image" href="https://badge.fury.io/rb/j1-template" target="_blank" rel="noopener noreferrer">
246
- <img src="https://badge.fury.io/rb/j1-template.svg" alt="Current Gem Version">
246
+ <img class="lazy" data-src="https://badge.fury.io/rb/j1-template.svg" src="" alt="Current Gem Version">
247
247
  </a>
248
248
  </span>
249
249
  <span>
250
- <img src="https://img.shields.io/gem/dt/j1-template" alt="Current Gem Downloads">
250
+ <img class="lazy" data-src="https://img.shields.io/gem/dt/j1-template" src="" alt="Current Gem Downloads">
251
251
  </span>
252
252
  </p>
253
253
  </div>
@@ -268,8 +268,9 @@ exclude_from_search: true
268
268
  target="blank"
269
269
  rel="noopener noreferrer">
270
270
  <img
271
- class="sticker-image"
272
- src="/assets/image/sticker/600x600/sticker-new-version.png"
271
+ class="lazy sticker-image"
272
+ data-src="/assets/image/sticker/600x600/sticker-new-version.png"
273
+ src=""
273
274
  alt="Get new version 2023.3.2"
274
275
  title="Get new version 2023.3.2"
275
276
  style="width: 140px; height: 120px;"
@@ -438,7 +439,8 @@ exclude_from_search: true
438
439
  {% comment %} Add individual STYLE tags
439
440
  ------------------------------------------------------------------ {% endcomment %}
440
441
  <!-- [INFO ] [~/assets/data/banner.html ] [ Add individual styles for the parallax banner ] -->
441
- <style>
442
+ <div class="lazy parallaxBg" alt="{{banner_settings.id}}_parallaxBg">
443
+ <style>
442
444
  .{{banner_settings.id}}-parallaxBg{background:url("{{background_image}}"); min-height: {{size_y}}px; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
443
445
  .{{banner_settings.id}}-parallax-quote{color:#fff;padding:100px 0;position:relative;text-align:center}
444
446
  .{{banner_settings.id}}-parallax-quote:before{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;{% if gridify == true %}background: url("{{gridifier}}") repeat;{% endif %}}
@@ -448,8 +450,8 @@ exclude_from_search: true
448
450
  {% if card_text and card_cite_text_quotes %}
449
451
  .{{banner_settings.id}}-parallax-quote-in p:after,.{{banner_settings.id}}-parallax-quote-in p:before{content:' " ';}
450
452
  {% endif %}
451
-
452
- </style>
453
+ </style>
454
+ </div>
453
455
 
454
456
  <div class="panel-fluid {{banner_settings.properties}}">
455
457
  <div class="row no-gutters {{banner_settings.id}}-parallax-quote {{banner_settings.id}}-parallaxBg parallax-quoteblock">
@@ -44,12 +44,22 @@ exclude_from_search: true
44
44
  {% assign slider_settings = modules.masterslider.settings %}
45
45
 
46
46
  {% comment %} Set config options
47
- module_version: {{module_version | debug}}
47
+ slider_options: {{slider_options.options | debug}}
48
+ module_version: {{module_version | debug}}
48
49
  -------------------------------------------------------------------------------- {% endcomment %}
49
50
  {% assign slider_options = slider_defaults | merge: slider_settings %}
50
51
  {% assign sliders = slider_settings.sliders %}
51
52
  {% assign module_version = slider_options.module_version %}
52
53
 
54
+ {% comment %} Detect slider modes
55
+ --------------------------------------------------------------------------------
56
+ slider_mode: {{slider_mode | debug}}
57
+ video_mode: {{video_mode | debug}}
58
+
59
+ {% assign slider_mode = slider_options.options.sliderMode %}
60
+ {% assign video_mode = slider_options.options.videoMode %}
61
+ -------------------------------------------------------------------------------- {% endcomment %}
62
+
53
63
 
54
64
  {% comment %} Configure permalink settings
55
65
  -------------------------------------------------------------------------------- {% endcomment %}
@@ -143,12 +153,15 @@ module_version: {{module_version | debug}}
143
153
  ---------------------------------------------------------------------------- {% endcomment %}
144
154
  <!-- [INFO ] [~/assets/data/masterslider.html ] [Place 'LightGallery' data for id: {{slider.id}}] -->
145
155
  <div id="lightgallery_{{slider.id}}" class="lightgallery-container" style="display: none;">
156
+
146
157
  {% for slide in slider.slides %}
158
+ {% if slide.type == 'image' %}
147
159
  <img
148
160
  id="{{slider.id}}_{{forloop.index}}"
149
161
  src="{{slide.foreground_image}}"
150
162
  alt="{{slide.alt}}" title="{{slide.title}}"
151
163
  />
164
+ {% endif %}
152
165
  {% endfor %}
153
166
  </div>
154
167
 
@@ -167,27 +180,136 @@ module_version: {{module_version | debug}}
167
180
  aria-label="Show Lightbox"
168
181
  rel="alternate"
169
182
  data-lightbox="{{slider.id}}"
170
- data-title="{{slide.title}}"
171
- >
183
+ data-title="{{slide.title}}">
172
184
  <i class="mdib mdib-image mdib-2x md-gray-600"></i>
173
185
  </a>
174
186
  </div>
175
187
  {% endif %}
176
188
 
177
- {% comment %} Place images
189
+ {% comment %} Place slides (image|video)
190
+ slide.type: {{slide.type}}
178
191
  -------------------------------------------------------------------------- {% endcomment %}
192
+ {% if slide.type == 'image' %}
179
193
  <img
180
194
  class="{{slider.id}}-lg-item"
181
195
  src="{{slide.background_image}}"
182
196
  alt="{{slide.alt}}" title="{{slide.title}}"
183
197
  data-src="{{slide.foreground_image}}"
184
- >
198
+ />
199
+ {% endif %}
200
+
201
+ {% if slide.type == 'video' %}
202
+ <!-- img
203
+ class="{{slider.id}}-lg-item"
204
+ alt="{{slide.alt}}" title="{{slide.title}}"
205
+ data-src="{{slide.poster_image}}"
206
+ / -->
207
+ <a
208
+ class="ms-slide-video"
209
+ href="{{slide.video_url}}">
210
+ </a>
211
+ {% endif %}
212
+
213
+ {% comment %}
214
+ --------------------------------------------------------------------------
215
+ {% if slide.type == 'video' %}
216
+ <video
217
+ id="{{slider.id}}"
218
+ class="video-js vjs-theme-uno"
219
+ controls
220
+ width="640" height="360"
221
+ poster="{{poster_image}}"
222
+ alt="{{slide.alt}}"
223
+ aria-label="{{slide.alt}}"
224
+ data-setup='{
225
+ "fluid" : true,
226
+ "techOrder": [
227
+ "youtube", "html5"
228
+ ],
229
+ "sources": [{
230
+ "type": "video/youtube",
231
+ "src": "{{slide.video_url}}"
232
+ }],
233
+ "controlBar": {
234
+ "pictureInPictureToggle": false,
235
+ "volumePanel": {
236
+ "inline": false
237
+ }
238
+ }
239
+ }'>
240
+ </video>
241
+ {% endif %}
242
+ -------------------------------------------------------------------------- {% endcomment %}
243
+
244
+ {% comment %}
245
+ --------------------------------------------------------------------------
246
+ {% if slide.type == 'video' %}
247
+ <div>
248
+ <div class="youtube-player bottom">
249
+ <div class="video-title"> <i class="mdib mdi-bs-primary mdib-youtube-tv mdib-18px mr-1"></i> Fortnight (feat. Post Malone, Official Music Video) · Taylor Swift </div>
250
+ <video id="cDv6v6LwLqL" class="video-js vjs-theme-uno" controls width="640" height="360" poster="//img.youtube.com/vi/q3zqJs7JUCQ/maxresdefault.jpg" alt="Fortnight (feat. Post Malone, Official Music Video) · Taylor Swift" aria-label="Fortnight (feat. Post Malone, Official Music Video) · Taylor Swift" data-setup='{
251
+ "fluid" : true,
252
+ "techOrder": [
253
+ "youtube", "html5"
254
+ ],
255
+ "sources": [{
256
+ "type": "video/youtube",
257
+ "src": "//youtube.com/watch?v=q3zqJs7JUCQ"
258
+ }],
259
+ "controlBar": {
260
+ "pictureInPictureToggle": false,
261
+ "volumePanel": {
262
+ "inline": false
263
+ }
264
+ }
265
+ }'> </video>
266
+ </div>
267
+ <script>
268
+ $(function() {
269
+ function addCaptionAfterImage(imageSrc) {
270
+ const image = document.querySelector(`img[src="${imageSrc}"]`);
271
+ if (image) {
272
+ // create div|caption container
273
+ const newDiv = document.createElement('div');
274
+ newDiv.classList.add('caption');
275
+ newDiv.textContent = 'Fortnight (feat. Post Malone, Official Music Video) · Taylor Swift';
276
+ // insert div|caption container AFTER the image
277
+ image.parentNode.insertBefore(newDiv, image.nextSibling);
278
+ } else {
279
+ console.error(`Kein Bild mit src="${imageSrc}" gefunden.`);
280
+ }
281
+ }
282
+ var dependencies_met_page_ready = setInterval (function (options) {
283
+ var pageState = $('#content').css("display");
284
+ var pageVisible = (pageState == 'block') ? true : false;
285
+ var j1CoreFinished = (j1.getState() === 'finished') ? true : false;
286
+ if (j1CoreFinished && pageVisible) {
287
+ addCaptionAfterImage('//img.youtube.com/vi/q3zqJs7JUCQ/maxresdefault.jpg');
288
+ // scroll to player top position
289
+ // -------------------------------------------------------------
290
+ var vjs_player = document.getElementById("cDv6v6LwLqL");
291
+ vjs_player.addEventListener('click', function(event) {
292
+ var scrollOffset = (window.innerWidth >= 720) ? -130 : -110;
293
+ // scroll player to top position
294
+ const targetDiv = document.getElementById("cDv6v6LwLqL");
295
+ const targetDivPosition = targetDiv.offsetTop;
296
+ window.scrollTo(0, targetDivPosition + scrollOffset);
297
+ }); // END EventListener 'click'
298
+
299
+ clearInterval(dependencies_met_page_ready);
300
+ }
301
+ }, 10);
302
+ });
303
+ </script>
304
+ </div>
305
+ {% endif %}
306
+ -------------------------------------------------------------------------- {% endcomment %}
185
307
 
186
308
  {% if slide.thumb_image %}
187
309
  <img
188
310
  class="ms-thumb" src="{{slide.thumb_image}}"
189
311
  alt="thumb_image_{{slider.id}}"
190
- >
312
+ />
191
313
  {% endif %}
192
314
 
193
315
  {% comment %} Place Thumb Info
@@ -214,7 +336,6 @@ module_version: {{module_version | debug}}
214
336
  </div>
215
337
  {% endif %}
216
338
 
217
-
218
339
  {% comment %} Place Slide Info
219
340
  -------------------------------------------------------------------------- {% endcomment %}
220
341
  {% assign slideinfo = slide.slideinfo %}
@@ -191,20 +191,6 @@ exclude_from_search: true
191
191
  {% assign icon_family = 'mdi' %}
192
192
  {% endif %}
193
193
 
194
- {% comment %} generate the HTML portion for the TOP wave element
195
- ---------------------------------------------------------------------- {% endcomment %}
196
- {% if wave_properties.top.enabled %}
197
- {% include {{get_wave}} position="top" wave=wave_properties.top %}
198
- {% assign panel_wave_top = _wave %}
199
- {% endif %}
200
-
201
- {% comment %} generate the HTML portion for the BOTTOM wave element
202
- ---------------------------------------------------------------------- {% endcomment %}
203
- {% if wave_properties.bottom.enabled %}
204
- {% include {{get_wave}} position="bottom" wave=wave_properties.bottom %}
205
- {% assign panel_wave_bottom = _wave %}
206
- {% endif %}
207
-
208
194
  {% comment %} process current panel
209
195
  ---------------------------------------------------------------------- {% endcomment %}
210
196
  {% if panel_settings.enabled %}
@@ -212,17 +198,13 @@ exclude_from_search: true
212
198
  {% case panel_settings.type %}
213
199
 
214
200
  {% comment %} Collect INTRO panel
215
- -------------------------------------------------------------------- {% endcomment %}
201
+ ==================================================================== {% endcomment %}
216
202
  {% when 'intro' %}
217
203
  {% assign panel_options = panel_config_defaults.intro | merge: panel_settings %}
218
204
 
219
205
  <!-- Panel {{panel_settings.id}} -->
220
206
  <div id="{{panel_settings.id}}_content">
221
207
 
222
- {% if wave_properties.top.enabled %}
223
- {{panel_wave_top}}
224
- {% endif %}
225
-
226
208
  <!-- Main Container -->
227
209
  <div class="container {{panel_settings.properties}}">
228
210
 
@@ -296,7 +278,7 @@ exclude_from_search: true
296
278
  {% if key == 'text' %} {% assign card_text = value | strip_newlines %} {% endif %}
297
279
  {% if key == 'buttons' %} {% assign card_buttons = value %} {% endif %}
298
280
  {% endfor %}
299
- {% if card_enabled == false %} {% assign card_items = card_items|minus:1 %} {% assign card_enabled = false%} {% endif %}
281
+ {% if card_enabled == false %} {% assign card_items = card_items|minus:1 %} {% assign card_enabled = false %} {% endif %}
300
282
  {% endfor %}
301
283
  {% assign col_size = 12|divided_by:card_items %}
302
284
 
@@ -392,22 +374,18 @@ exclude_from_search: true
392
374
  </div>
393
375
  <!-- END main container -->
394
376
 
395
- {% if wave_properties.bottom.enabled %}
396
- {{panel_wave_bottom}}
397
- {% endif %}
398
-
399
377
  </div>
400
378
 
401
379
  <!-- END Panel {{panel_settings.id}} -->
402
380
 
403
381
  {% comment %} Reset element variables (already processed)
404
382
  -------------------------------------------------------------------- {% endcomment %}
405
- {% assign panel_settings = false%}
406
- {% assign card_enabled = false%}
383
+ {% assign panel_settings = false %}
384
+ {% assign card_enabled = false %}
407
385
 
408
386
 
409
387
  {% comment %} Collect PLAN panel
410
- -------------------------------------------------------------------- {% endcomment %}
388
+ ==================================================================== {% endcomment %}
411
389
  {% when 'plan' %}
412
390
  {% assign panel_options = panel_config_defaults.plan | merge: panel_settings %}
413
391
  {% assign plan_details_page = panel_options.plan_details_page %}
@@ -442,10 +420,6 @@ exclude_from_search: true
442
420
  <!-- Panel {{panel_settings.id}} -->
443
421
  <div id="{{panel_settings.id}}_content">
444
422
 
445
- {% if wave_properties.top.enabled %}
446
- {{panel_wave_top}}
447
- {% endif %}
448
-
449
423
  <!-- Main Container -->
450
424
  <div class="container {{panel_settings.properties}}">
451
425
 
@@ -487,7 +461,7 @@ exclude_from_search: true
487
461
  {% if key == 'enabled' %} {% assign card_enabled = value %} {% endif %}
488
462
  {% endfor %}
489
463
  {% if card_enabled == false %}
490
- {% assign card_items = card_items|minus:1 %} {% assign card_enabled = false%} {% endif %}
464
+ {% assign card_items = card_items|minus:1 %} {% assign card_enabled = false %} {% endif %}
491
465
  {% endfor %}
492
466
  {% endfor %}
493
467
 
@@ -591,25 +565,18 @@ exclude_from_search: true
591
565
 
592
566
  </div> <!-- END main container -->
593
567
 
594
- {% if wave_properties.bottom.enabled %}
595
- {{panel_wave_bottom}}
596
- {% endif %}
597
-
598
568
  </div> <!-- END Panel {{panel_settings.id}} -->
599
569
 
600
570
  {% comment %} Reset element variables (already processed)
601
571
  -------------------------------------------------------------------- {% endcomment %}
602
- {% assign panel_settings = false%}
572
+ {% assign panel_settings = false %}
603
573
 
604
574
  {% comment %} END PLAN panel
605
575
  -------------------------------------------------------------------- {% endcomment %}
606
576
 
607
577
 
608
578
  {% comment %} Collect SERVICE panel
609
- panel_defaults: {{panel_config_defaults.service}}
610
- panel_settings: {{panel_settings}}
611
- panel_options: {{panel_options}}
612
- -------------------------------------------------------------------- {% endcomment %}
579
+ ==================================================================== {% endcomment %}
613
580
  {% when 'service' %}
614
581
  {% assign panel_options = panel_config_defaults.service | merge: panel_settings %}
615
582
 
@@ -636,10 +603,6 @@ exclude_from_search: true
636
603
  <!-- Panel {{panel_settings.id}} -->
637
604
  <div id="{{panel_settings.id}}_content">
638
605
 
639
- {% if wave_properties.top.enabled %}
640
- {{panel_wave_top}}
641
- {% endif %}
642
-
643
606
  <!-- Main Container -->
644
607
  <div class="container {{panel_settings.properties}}">
645
608
 
@@ -680,7 +643,7 @@ exclude_from_search: true
680
643
  {% if key == 'enabled' %} {% assign card_enabled = value %} {% endif %}
681
644
  {% endfor %}
682
645
  {% if card_enabled == false %}
683
- {% assign card_items = card_items|minus:1 %} {% assign card_enabled = false%} {% endif %}
646
+ {% assign card_items = card_items|minus:1 %} {% assign card_enabled = false %} {% endif %}
684
647
  {% endfor %}
685
648
  {% endfor %}
686
649
 
@@ -792,23 +755,19 @@ exclude_from_search: true
792
755
  </div>
793
756
  <!-- End Main Container -->
794
757
 
795
- {% if wave_properties.bottom.enabled %}
796
- {{panel_wave_bottom}}
797
- {% endif %}
798
-
799
758
  </div>
800
759
  <!-- END Panel {{panel_settings.id}} -->
801
760
 
802
761
  {% comment %} Reset element variables (already processed)
803
762
  -------------------------------------------------------------------- {% endcomment %}
804
- {% assign panel_settings = false%}
763
+ {% assign panel_settings = false %}
805
764
 
806
765
  {% comment %} END SERVICES panel
807
766
  -------------------------------------------------------------------- {% endcomment %}
808
767
 
809
768
 
810
769
  {% comment %} Collect NEWS panel
811
- -------------------------------------------------------------------- {% endcomment %}
770
+ ==================================================================== {% endcomment %}
812
771
  {% when 'news' %}
813
772
 
814
773
  {% assign panel_options = panel_config_defaults.news|merge: panel_settings %}
@@ -836,10 +795,6 @@ exclude_from_search: true
836
795
  <!-- Panel {{panel_settings.id}} -->
837
796
  <div id="{{panel_settings.id}}_content">
838
797
 
839
- {% if wave_properties.top.enabled %}
840
- {{panel_wave_top}}
841
- {% endif %}
842
-
843
798
  <!-- Main Container -->
844
799
  <div class="container {{panel_settings.properties}}">
845
800
 
@@ -896,9 +851,9 @@ exclude_from_search: true
896
851
  {% assign card_block = "card-deck" %}
897
852
  {% endif %}
898
853
 
899
- <div class="previewer-headline">
854
+ <div id="previewer" class="previewer-headline">
900
855
  <div class="post-headline">
901
- <h2 id="post-headline" class="notoc mt-4">Preview</h2>
856
+ <h2 id="post-headline" class="notoc notranslate mt-3">Vorschau</h2>
902
857
  </div>
903
858
  </div>
904
859
 
@@ -1055,23 +1010,19 @@ exclude_from_search: true
1055
1010
  </div>
1056
1011
  <!-- End Main Container -->
1057
1012
 
1058
- {% if wave_properties.bottom.enabled %}
1059
- {{panel_wave_bottom}}
1060
- {% endif %}
1061
-
1062
1013
  </div>
1063
1014
  <!-- End news panel: {{panel_settings.id}} -->
1064
1015
 
1065
1016
  {% comment %} Reset element variables (already processed)
1066
1017
  -------------------------------------------------------------------- {% endcomment %}
1067
- {% assign panel_settings = false%}
1018
+ {% assign panel_settings = false %}
1068
1019
 
1069
1020
  {% comment %} END NEWS panel
1070
1021
  -------------------------------------------------------------------- {% endcomment %}
1071
1022
 
1072
1023
  {% else %}
1073
1024
  {% comment %} Collect EXCEPTION panel: given type NOT found
1074
- -------------------------------------------------------------------- {% endcomment %}
1025
+ ==================================================================== {% endcomment %}
1075
1026
  {% unless panel_settings.id == 'exception_container' %}
1076
1027
  <div id="{{panel_settings.id}}_content">
1077
1028
  <div class="container-fluid no-padding">
@@ -1102,7 +1053,7 @@ exclude_from_search: true
1102
1053
 
1103
1054
  {% comment %} Reset element variables (already processed)
1104
1055
  -------------------------------------------------------------------- {% endcomment %}
1105
- {% assign panel_settings = false%}
1056
+ {% assign panel_settings = false %}
1106
1057
 
1107
1058
  {% comment %} END EXEPTION panel
1108
1059
  -------------------------------------------------------------------- {% endcomment %}