j1-template 2024.3.27 → 2024.3.28

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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/banner.html +3 -1
  3. data/assets/theme/j1/adapter/js/masonry.js +6 -8
  4. data/assets/theme/j1/core/js/template.js +28 -1
  5. data/assets/theme/j1/core/js/template.min.js +4 -4
  6. data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +4 -2
  7. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +6 -3
  8. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +6 -3
  9. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +6 -3
  10. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +6 -3
  11. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +6 -3
  12. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +6 -3
  13. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +6 -3
  14. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +6 -4
  15. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +6 -3
  16. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +6 -3
  17. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +113 -76
  18. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +1 -2
  19. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +6 -3
  20. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +6 -3
  21. data/assets/theme/j1/modules/videojs/plugins/players/yt/js/youtube.js +21 -6
  22. data/assets/theme/j1/modules/videojs/plugins/players/yt/js/youtube.min.js +1 -1
  23. data/lib/j1/version.rb +1 -1
  24. data/lib/starter_web/README.md +5 -5
  25. data/lib/starter_web/_config.yml +1 -1
  26. data/lib/starter_web/_data/blocks/banner.yml +29 -18
  27. data/lib/starter_web/_data/blocks/panel.yml +79 -124
  28. data/lib/starter_web/_data/modules/blog_navigator.yml +1 -1
  29. data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +2 -2
  30. data/lib/starter_web/_data/modules/gallery.yml +145 -19
  31. data/lib/starter_web/_data/modules/masonry.yml +9 -10
  32. data/lib/starter_web/_data/templates/feed.xml +1 -1
  33. data/lib/starter_web/_includes/attributes.asciidoc +2 -1
  34. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  35. data/lib/starter_web/assets/image/module/attic/1920x1280/nick-fewings.jpg +0 -0
  36. data/lib/starter_web/assets/image/module/attic/1920x1280/no-revisions.jpg +0 -0
  37. data/lib/starter_web/assets/image/module/attic/1920x1280/wolfgang-weiser.jpg +0 -0
  38. data/lib/starter_web/assets/image/page/features/example-content-1280x800.jpg +0 -0
  39. data/lib/starter_web/assets/image/page/features/google-lighthouse-1080x300.jpg +0 -0
  40. data/lib/starter_web/assets/image/page/features/google-lighthouse-scores.jpg +0 -0
  41. data/lib/starter_web/assets/image/page/features/master-header-1280x600.jpg +0 -0
  42. data/lib/starter_web/assets/image/page/features/nav-module-1280x300.jpg +0 -0
  43. data/lib/starter_web/assets/image/page/features/teaser-banner-1280x600.jpg +0 -0
  44. data/lib/starter_web/assets/image/page/features/tts-1280x500.jpg +0 -0
  45. data/lib/starter_web/assets/video/tracks/html5/peck_pocketed/captions/video.vtt +2 -3
  46. data/lib/starter_web/assets/video/tracks/html5/peck_pocketed/chapters/video.vtt +4 -6
  47. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +18 -20
  48. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +6 -7
  49. data/lib/starter_web/collections/posts/public/featured/_posts/{2023-10-18-url-types.adoc → 2022-10-18-url-types.adoc} +7 -4
  50. data/lib/starter_web/collections/posts/public/featured/_posts/{2021-02-01-static-site-generators.adoc → 2023-02-01-static-site-generators.adoc} +5 -6
  51. data/lib/starter_web/collections/posts/public/featured/_posts/{2022-02-01-about-j1.adoc → 2024-02-01-about-j1.adoc} +4 -5
  52. data/lib/starter_web/index.html +17 -73
  53. data/lib/starter_web/package.json +1 -1
  54. data/lib/starter_web/pages/public/features/{general.adoc → core-features.adoc} +92 -47
  55. data/lib/starter_web/pages/public/features/{template.adoc → theme-features.adoc} +313 -195
  56. data/lib/starter_web/pages/public/tools/tester/app_tester_swiperjs.adoc +10 -15
  57. data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +43 -2
  58. data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +13 -21
  59. data/lib/starter_web/pages/public/tour/audio_data.adoc +2 -2
  60. data/lib/starter_web/pages/public/tour/icon_fonts.adoc +1 -1
  61. data/lib/starter_web/pages/public/tour/image_data.adoc +138 -234
  62. data/lib/starter_web/pages/public/tour/responsive_tables.adoc +1 -1
  63. data/lib/starter_web/pages/public/tour/video_data.adoc +74 -85
  64. metadata +12 -9
  65. data/lib/starter_web/assets/image/module/attic/cookies-1920x1200.jpg +0 -0
  66. data/lib/starter_web/pages/public/tour/modal_extentions.adoc +0 -126
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 313ef844ffd93a5fe0a2a9e84a8714946bf48fed40e3c8955c8f375b7d79393a
4
- data.tar.gz: c12bc3717d97a98e0095298f5991a8b952dcf6ac35091d22cdb6102462a59214
3
+ metadata.gz: c7aeaa5fe96cd8d77dd03306eb660f53455ed837f0ca57049c7f5df41ac5abbf
4
+ data.tar.gz: 204f5f31912d9c71bd5c186820f2f8ebd309a3933402415022e46b7b859038d3
5
5
  SHA512:
6
- metadata.gz: 6cfbc7429c4aa5c4fc0be2989867ac4e88aa5f0bc991bc8db9fdbd31ef96a0a44c4717c33f568fa7b0e12152a121ec8e57d047ef73ce63075bdd6bd8f4c74d1d
7
- data.tar.gz: b5b48ea9d4d3491208e4de7edf597f842aa01cf2a1e2b67d520b363b05fa88d80bebaa5dd6b092e2aa4859fd55fcf81f4d1e6a587e4f3e51bec2caa65474967b
6
+ metadata.gz: afc20debb5058449efa5aa738c923b997fb60a680772d52d786fa462bc29d6fff5d700254f75eee667b2871eb501c1c3972ca91b213c64a9ef49edff1ee15698
7
+ data.tar.gz: 62e80dd823873b90755e6c62fed1fb2949293c073fb79261869e762abde8b96415f959c64ba32c6a0723dda2cad8cb592c97494dbcc8824f391fba132caddb44
@@ -304,7 +304,9 @@ exclude_from_search: true
304
304
  <div class="{{card_properties}}">{{card_description}}</div>
305
305
  {% if card_buttons %}
306
306
  <!-- Footer|Button row -->
307
- <div class="speak2me-ignore mt-5">
307
+ <!-- TODO: Make styles for the button div configurable -->
308
+ <!-- div class="speak2me-ignore mt-5" -->
309
+ <div class="speak2me-ignore mt-4 fw-bold d-flex justify-content-center flex-wrap">
308
310
  {% for button_hash in card_buttons %}
309
311
  {% include {{create_bs_button}} button_data=button_hash button_type="link" %}
310
312
  {{bs_button_html}}
@@ -290,14 +290,12 @@ j1.adapter.masonry = ((j1, window) => {
290
290
  videojs: {{grid.videojs.enabled}},
291
291
  videojsTheme: "vjs-theme-{{grid.videojs.theme}}",
292
292
  videojsOptions: {
293
- {% for option in grid.lightGallery.player.videojsPlayer.options %}
294
- {% if option == 'playbackRates' %}
295
- playbackRates: [{{option[1]}}],
296
- {% continue %}
297
- {% endif %}
298
- {{option[0] | json}}: {{option[1] | json}},
299
- {% endfor %}
300
- "controls": {{grid.videojs.player.videojsPlayer.controls}},
293
+ {% comment %} disabled because of side effects
294
+ ------------------------------------------------------
295
+ "tracks": {{grid.videojs.player.videojsPlayer.videojsOptions.tracks}},
296
+ ------------------------------------------------------
297
+ {% endcomment %}
298
+ "controls": {{grid.videojs.player.videojsPlayer.videojsOptions.controls}},
301
299
  "controlBar": {
302
300
  {% for option in grid.videojs.player.videojsPlayer.controlBar %}
303
301
  {{option[0] | json}}: {{option[1] | json}}{% if forloop.last %}{% else %},{% endif %}
@@ -12007,6 +12007,7 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
12007
12007
  voiceTags['.listingblock'] = new voiceTag('Text element' + pause_spoken, 'Element not spoken' + pause_spoken);
12008
12008
  voiceTags['.gist'] = new voiceTag('Gist element' + pause_spoken, 'Element not spoken' + pause_spoken);
12009
12009
  voiceTags['.slider'] = new voiceTag('Slider element' + pause_spoken, 'Element not spoken' + pause_spoken);
12010
+ voiceTags['.swiper-app'] = new voiceTag('Slider element' + pause_spoken, 'Element not spoken' + pause_spoken);
12010
12011
  voiceTags['.modal'] = new voiceTag('Info element' + pause_spoken, 'Element not spoken' + pause_spoken);
12011
12012
  voiceTags['.masonry'] = new voiceTag('Masonry element' + pause_spoken, 'Element not spoken' + pause_spoken);
12012
12013
  voiceTags['.lightbox-block'] = new voiceTag('Lightbox element' + pause_spoken, 'Element not spoken' + pause_spoken);
@@ -12840,7 +12841,33 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
12840
12841
  $(this).remove();
12841
12842
  });
12842
12843
 
12843
- // Search for a lightbox blocks and extract the <caption> tag data,
12844
+ // Search for (SwiperJS) slider elements, check for previous declared
12845
+ // <div> container that contains the title element and insert the
12846
+ // text if exists and finally remove the DOM object.
12847
+ //
12848
+ $(clone).find('.swiper-app').addBack('.swiper-app').each(function () {
12849
+ if ($(this).prev()[0] !== undefined) {
12850
+ title = $(this).prev()[0].innerText;
12851
+ title_element = $(this).prev();
12852
+ // remove the title BEFORE the DOM object gets deleted
12853
+ //
12854
+ $(title_element).remove();
12855
+ } else {
12856
+ title = '';
12857
+ }
12858
+ prepend = voiceTags['.swiper-app'].prepend;
12859
+ appended = voiceTags['.swiper-app'].append;
12860
+ if (title !== undefined && title != '') {
12861
+ prepend !== '' && $('<div>' + prepend + ' with the title ' + title + pause_spoken + '</div>').insertBefore(this);
12862
+ appended !== '' && $('<div>' + appended + '</div>').insertBefore(this);
12863
+ } else {
12864
+ prepend !== '' && $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
12865
+ appended !== '' && $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
12866
+ }
12867
+ $(this).remove();
12868
+ });
12869
+
12870
+ // Search for lightbox block elements and extract the <caption> tag data,
12844
12871
  // insert the text if exists and finally remove the DOM object.
12845
12872
  //
12846
12873
  $(clone).find('.lightbox-block').addBack('.lightbox-block').each(function () {