j1-template 2024.3.16 → 2024.3.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/amplitude.html +132 -61
  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 +1 -1
  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 +152 -121
  26. data/assets/theme/j1/adapter/js/j1.js +3 -3
  27. data/assets/theme/j1/adapter/js/masterslider.js +2 -1
  28. data/assets/theme/j1/adapter/js/swiper.js +231 -0
  29. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +13 -3
  30. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  31. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +53 -6
  32. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +2 -1
  33. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.15.js +1594 -0
  34. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +1617 -89
  35. data/assets/theme/j1/modules/amplitudejs/js/visualizations/bar.js +1 -1
  36. data/assets/theme/j1/modules/amplitudejs/js/visualizations/circular-equalizer.js +31 -1
  37. data/assets/theme/j1/modules/amplitudejs/js/visualizations/frequency-analyzer.js +1 -1
  38. data/assets/theme/j1/modules/amplitudejs/js/visualizations/michael-bromley.js +1 -1
  39. data/assets/theme/j1/modules/amplitudejs/js/visualizations/template.js +1 -1
  40. data/assets/theme/j1/modules/photoswipe/.version_5.4.4 +6 -0
  41. data/assets/theme/j1/modules/photoswipe/LICENSE +21 -0
  42. data/assets/theme/j1/modules/photoswipe/README.md +32 -0
  43. data/assets/theme/j1/modules/photoswipe/css/org/photoswipe-dynamic-caption-plugin.umd.min.js +5 -0
  44. data/assets/theme/j1/modules/photoswipe/css/org/photoswipe.css +420 -0
  45. data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.css +67 -0
  46. data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.min.css +16 -0
  47. data/assets/theme/j1/modules/photoswipe/css/photoswipe.css +376 -0
  48. data/assets/theme/j1/modules/photoswipe/css/photoswipe.min.css +17 -0
  49. data/assets/theme/j1/modules/photoswipe/css/scss/photoswipe.scss +427 -0
  50. data/assets/theme/j1/modules/photoswipe/example/photoswipe-caption-plugin.html +237 -0
  51. data/assets/theme/j1/modules/photoswipe/example/test-gallery.html +36 -0
  52. data/assets/theme/j1/modules/photoswipe/js/README.md +43 -0
  53. data/assets/theme/j1/modules/photoswipe/js/photoswipe-caption-plugin.min.js +5 -0
  54. data/assets/theme/j1/modules/photoswipe/js/photoswipe-core.min.js +18 -0
  55. data/assets/theme/j1/modules/photoswipe/js/photoswipe-lightbox.min.js +18 -0
  56. data/assets/theme/j1/modules/swiper/.version_1.2.0 +15 -0
  57. data/assets/theme/j1/modules/swiper/LICENSE +20 -0
  58. data/assets/theme/j1/modules/swiper/README.md +95 -0
  59. data/assets/theme/j1/modules/swiper/css/swiper-bundle.css +740 -0
  60. data/assets/theme/j1/modules/swiper/css/swiper-bundle.min..css +17 -0
  61. data/assets/theme/j1/modules/swiper/css/theme/uno.css +249 -0
  62. data/assets/theme/j1/modules/swiper/css/theme/uno.min.css +154 -0
  63. data/assets/theme/j1/modules/swiper/js/swiper-bundle.js +9785 -0
  64. data/assets/theme/j1/modules/swiper/js/swiper-bundle.min.js +17 -0
  65. data/assets/theme/j1/modules/swiper/swiperjs.com-demos.url +2 -0
  66. data/lib/j1/version.rb +1 -1
  67. data/lib/starter_web/README.md +5 -5
  68. data/lib/starter_web/_config.yml +1 -1
  69. data/lib/starter_web/_data/modules/amplitude.yml +374 -39
  70. data/lib/starter_web/_data/modules/defaults/amplitude.yml +60 -35
  71. data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
  72. data/lib/starter_web/_data/modules/defaults/swiper.yml +515 -0
  73. data/lib/starter_web/_data/modules/swiper.yml +227 -0
  74. data/lib/starter_web/_data/resources.yml +53 -1
  75. data/lib/starter_web/_data/templates/feed.xml +1 -1
  76. data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -0
  77. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +0 -4
  78. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  79. data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/der_unverzichtbare_feind.jpg +0 -0
  80. data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/ein_diener_vieler_herren.jpg +0 -0
  81. data/lib/starter_web/assets/video/poster/youtube/the_piano/the-piano.jpg +0 -0
  82. data/lib/starter_web/package.json +1 -1
  83. data/lib/starter_web/pages/public/_includes/attributes.asciidoc +45 -0
  84. data/lib/starter_web/pages/public/_includes/documents/photoswipe/200_photoswipe_parameters.asciidoc +510 -0
  85. data/lib/starter_web/pages/public/_includes/documents/photoswipe/210_photoswipe_lightbox_parameters.asciidoc +98 -0
  86. data/lib/starter_web/pages/public/_includes/documents/photoswipe/300_caption_plugin_for_photoSwipe.asciidoc +327 -0
  87. data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_features.asciidoc +50 -0
  88. data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_html_layout.asciidoc +122 -0
  89. data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_initialization.asciidoc +53 -0
  90. data/lib/starter_web/pages/public/_includes/documents/swiper/110_swiper_common_options.asciidoc +43 -0
  91. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_a_k.asciidoc +994 -0
  92. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_l_o.asciidoc +473 -0
  93. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_p_s.asciidoc +700 -0
  94. data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_t_z.asciidoc +413 -0
  95. data/lib/starter_web/pages/public/_includes/documents/swiper/300_swiper_instance_properties.asciidoc +873 -0
  96. data/lib/starter_web/pages/public/_includes/documents/swiper/400_swiper_modules.asciidoc +2514 -0
  97. data/lib/starter_web/pages/public/_includes/documents/swiper/500_swiper_methods.asciidoc +989 -0
  98. data/lib/starter_web/pages/public/_includes/documents/swiper/600_swiper_events.asciidoc +1534 -0
  99. data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +77 -63
  100. data/lib/starter_web/pages/public/photoswipe_api.adoc +150 -0
  101. data/lib/starter_web/pages/public/swiper_api.adoc +128 -0
  102. data/lib/starter_web/pages/public/swiper_tester.adoc +973 -0
  103. data/lib/starter_web/pages/public/tour/modal_extentions.adoc +12 -5
  104. data/lib/starter_web/pages/public/tour/play_audio.adoc +60 -5
  105. data/lib/starter_web/pages/public/tour/play_video.adoc +30 -0
  106. data/lib/starter_web/pages/public/tour/present_images.adoc +5 -5
  107. metadata +56 -3
  108. data/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js +0 -211
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 251fb8bf58d0e8b429cc9977024e2cdb33ed2fdbe3c4fd40bee91071a4cfbde7
4
- data.tar.gz: 4a29a03ae20e9929dcf8750b57199d1307d2061657414ee1f1bca619f7cb1ea7
3
+ metadata.gz: c2ebc68fcc74a9338ed7d59eae9936fea701ceb916a647f5cc83363900c19cbb
4
+ data.tar.gz: 7adb79dea06c3c5422844d2d630cef21e56c89413315bfa127e21170a3905edc
5
5
  SHA512:
6
- metadata.gz: 0a4be674066ffc6b70b91cc8a6c8db8b3e6cf50dbe3810a363049bd6e69fd0523c353900271a3c4fb32a9accd359885f9d8d66da4b4c18a720af9f481ed01f56
7
- data.tar.gz: 0b89aeade5c213100a07267077fdff3391443ac3b13c7a9580c0fe8563a8395f1dd69eed1ffd7d64e9a0b80aaedf3d314825d9c1dee1eb958bd759c5a8d5050d
6
+ metadata.gz: af0a5f1f4242d0e5dcf6fc78ae6e75e6a6014af77a0c4ce68f65dadd9bf992977e101352e63e809a98977f1a137fd6fe43be9bda3f2d5a59e997fc3619e2314f
7
+ data.tar.gz: a40943dbe4071c04364c28babd1b408c44f1df34a20f8d0dc8af442f47e36cd145ab42d2b39df1869aebbf6bbac0159428d87212e6a2ce703000f2762252315d
@@ -97,7 +97,8 @@ amplitude_defaults: {{amplitude_defaults | debug}}
97
97
  {% assign shuffle_button = amplitude_defaults.player.shuffle_button %}
98
98
  {% assign skip_forward_backward_button = amplitude_defaults.player.skip_forward_backward_button %}
99
99
  {% assign playlist_controls = amplitude_defaults.player.playlist.controls %}
100
- {% assign playlist_audio_info = amplitude_defaults.player.playlist.audio_info %}
100
+ {% assign playlist_audio_info = amplitude_defaults.player.playlist.audio_info %}
101
+ {% assign playlist_audio_rating = amplitude_defaults.player.playlist.audio_rating %}
101
102
 
102
103
  {% comment %} player settings
103
104
  ---------------------------------------------------------------------------- {% endcomment %}
@@ -111,7 +112,9 @@ amplitude_defaults: {{amplitude_defaults | debug}}
111
112
 
112
113
  {% if player.playlist.controls %}
113
114
  {% assign playlist_controls = player.playlist.controls %}
114
- {% endif %}
115
+ {% else %}
116
+ {% assign playlist_controls = playlist_controls %}
117
+ {% endif %}
115
118
 
116
119
  {% if player.song_progress_bar %}
117
120
  {% assign song_progress_bar = player.song_progress_bar %}
@@ -147,13 +150,15 @@ amplitude_defaults: {{amplitude_defaults | debug}}
147
150
  {% endif %}
148
151
 
149
152
  {% if player.playlist.audio_info %}
150
- {% assign player_audio_info = player.playlist.audio_info %}
153
+ {% assign player_audio_info_enabled = player.playlist.audio_info %}
154
+ {% else %}
155
+ {% assign player_audio_info_enabled = playlist_audio_info %}
151
156
  {% endif %}
152
157
 
153
- {% if player.audio_rating %}
154
- {% assign player_audio_rating = player.audio_rating %}
158
+ {% if player.playlist.audio_rating %}
159
+ {% assign player_audio_rating_enabled = player.playlist.audio_rating %}
155
160
  {% else %}
156
- {% assign player_audio_rating = audio_rating %}
161
+ {% assign player_audio_rating_enabled = playlist_audio_rating %}
157
162
  {% endif %}
158
163
 
159
164
 
@@ -280,10 +285,12 @@ amplitude_defaults: {{amplitude_defaults | debug}}
280
285
  </span>
281
286
  <div class="audio-artist-album">
282
287
  <span
288
+ class="artist"
283
289
  data-amplitude-playlist="{{player_playlist}}"
284
290
  data-amplitude-song-info="artist">
285
291
  </span>
286
292
  <span
293
+ class="album"
287
294
  data-amplitude-playlist="{{player_playlist}}"
288
295
  data-amplitude-song-info="album">
289
296
  </span>
@@ -330,28 +337,45 @@ amplitude_defaults: {{amplitude_defaults | debug}}
330
337
  <img class="compact-player-header-arrows" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg" alt="Hide Playlist">
331
338
  Playlist
332
339
  </div> <!-- END playlist-screen header (toggle playlist) -->
333
-
334
- {% if playlist_controls %}
340
+
335
341
  <div class="playlist-screen-controls">
336
342
  <div class="playlist-screen-meta-container">
337
343
  <span
338
344
  class="song-name" data-amplitude-playlist="{{player_playlist}}"
339
345
  data-amplitude-source="{{source_media_attribute}}"
340
- data-amplitude-song-info="name"></span>
346
+ data-amplitude-song-info="name">
347
+ </span>
348
+
349
+ <!-- START player_audio_info -->
350
+ <!-- load initial (first) info URL -->
351
+ {% for item in playlist_items %} {% if item.enabled %}
352
+ {% if playlist_audio_info and forloop.first %}
353
+ <span class="audio-info">
354
+ <a class="audio-info-link" href="{{item.audio_info}}" target="_blank">
355
+ <i class="mdib mdib-information md-gray-400 mdib-24px"></i>
356
+ </a>
357
+ </span>
358
+ {% else %}
359
+ {% break %}
360
+ {% endif %}
361
+ {% endif %} {% endfor %}
362
+ <!-- END player_audio_info -->
363
+
341
364
  <div class="song-artist-album">
342
365
  <span
343
- data-amplitude-source="{{source_media_attribute}}"
344
- data-amplitude-playlist="{{player_playlist}}"
345
- data-amplitude-song-info="artist">
346
- </span>
347
- <!-- span class="song-artist-album-delimiter">·</span>
348
- <span
349
- data-amplitude-source="audio"
350
- data-amplitude-playlist="{{player_playlist}}"
351
- data-amplitude-song-info="album">
352
- </span -->
366
+ data-amplitude-source="{{source_media_attribute}}"
367
+ data-amplitude-playlist="{{player_playlist}}"
368
+ data-amplitude-song-info="artist">
369
+ </span>
370
+ <span class="song-artist-album-delimiter">·</span>
371
+ <span
372
+ data-amplitude-source="audio"
373
+ data-amplitude-playlist="{{player_playlist}}"
374
+ data-amplitude-song-info="album">
375
+ </span>
353
376
  </div>
354
377
  </div>
378
+ {% if playlist_controls %}
355
379
  <div class="list-controls">
356
380
  <div
357
381
  class="list-previous amplitude-prev"
@@ -369,8 +393,9 @@ amplitude_defaults: {{amplitude_defaults | debug}}
369
393
  data-amplitude-playlist="{{player_playlist}}">
370
394
  </div>
371
395
  </div>
396
+ {% endif %}
372
397
  </div> <!-- END playlist controls -->
373
- {% endif %}
398
+
374
399
 
375
400
  <!-- START playlist items (COMPACT player )-->
376
401
  <div
@@ -400,12 +425,14 @@ amplitude_defaults: {{amplitude_defaults | debug}}
400
425
  data-amplitude-playlist="{{player_playlist}}">
401
426
  <span class="song-name">{{item.title}}</span>
402
427
 
403
- {% if player_audio_rating %}
428
+ {% comment %}
429
+ {% if playlist_audio_rating %}
404
430
  <span class="audio-rating">
405
431
  {{item.rating}}
406
432
  <i class="mdib mdib-star md-gray-400 mdib-18px"></i>
407
433
  </span>
408
434
  {% endif %}
435
+ {% endcomment %}
409
436
 
410
437
  <!-- span class="song-artist-album">
411
438
  <span>{{item.name}}</span>
@@ -417,7 +444,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
417
444
  <span>{{item.artist}}</span>
418
445
  </span>
419
446
 
420
- {% if player_audio_info %}
447
+ {% if player_audio_infooo %}
421
448
  <span class="audio-info">
422
449
  <a href="{{item.audio_info}}" class="audio-info-link" target="_blank">
423
450
  <i class="mdib mdib-information md-gray-400 mdib-24px"></i>
@@ -624,11 +651,13 @@ amplitude_defaults: {{amplitude_defaults | debug}}
624
651
  </span>
625
652
  <div class="audio-artist-album">
626
653
  <span
654
+ class="artist"
627
655
  data-amplitude-source="{{source_media_attribute}}"
628
656
  data-amplitude-playlist="{{player_playlist}}"
629
657
  data-amplitude-song-info="artist">
630
658
  </span>
631
659
  <span
660
+ class="album"
632
661
  data-amplitude-source="{{source_media_attribute}}"
633
662
  data-amplitude-playlist="{{player_playlist}}"
634
663
  data-amplitude-song-info="album">
@@ -671,7 +700,9 @@ amplitude_defaults: {{amplitude_defaults | debug}}
671
700
  <!-- START LARGE player left TOP -->
672
701
  <div class="player-left-top">
673
702
 
674
- <div class="large-player-playlist-header">
703
+ <div
704
+ id="large_player_title_header_{{player_id}}"
705
+ class="large-player-playlist-header">
675
706
  <span class="audio-artist">
676
707
  <span
677
708
  data-amplitude-playlist="{{player_playlist}}"
@@ -690,6 +721,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
690
721
  <!-- NOTE: album cover image (replaced by AJS API based on playlist) -->
691
722
  <div class="album-cover-image">
692
723
  <img
724
+ class="cover-image-{{player_playlist}} cover-image"
693
725
  src="/assets/audio/cover/default/placeholder-blue.jpg"
694
726
  data-amplitude-playlist="{{player_playlist}}"
695
727
  data-amplitude-source="{{source_media_attribute}}"
@@ -701,7 +733,8 @@ amplitude_defaults: {{amplitude_defaults | debug}}
701
733
  <!-- START progress bar -->
702
734
  {% if song_progress_bar %}
703
735
  <progress
704
- class="large-player-progress amplitude-song-played-progress"
736
+ id="large_player_progress_{{player_id}}"
737
+ class="large-player-progress-{{player_playlist}} large-player-progress amplitude-song-played-progress"
705
738
  data-amplitude-source="{{source_media_attribute}}"
706
739
  data-amplitude-playlist="{{player_playlist}}">
707
740
 
@@ -721,47 +754,49 @@ amplitude_defaults: {{amplitude_defaults | debug}}
721
754
  {% if shuffle_button %}
722
755
  <div
723
756
  id="large_player_shuffle"
724
- class="amplitude-shuffle amplitude-shuffle-off"
757
+ class="large-player-shuffle-{{player_id}} amplitude-shuffle amplitude-shuffle-off"
725
758
  data-amplitude-source="{{source_media_attribute}}"
726
759
  data-amplitude-playlist="{{player_playlist}}">
727
760
  </div>
728
761
  {% endif %}
729
762
  <div
730
763
  id="large_player_previous"
731
- class="amplitude-prev"
764
+ class="large-player-previous-{{player_id}} large-player-previous amplitude-prev"
732
765
  data-amplitude-source="{{source_media_attribute}}"
733
766
  data-amplitude-playlist="{{player_playlist}}">
734
767
  </div>
735
768
  {% if skip_forward_backward_button %}
736
769
  <div
737
770
  id="skip-backward_{{player_id}}"
738
- class="large-player-skip-backward"
739
- data-amplitude-source="{{source_media_attribute}}">
771
+ class="large-player-skip-backward-{{player_id}} large-player-skip-backward"
772
+ data-amplitude-source="{{source_media_attribute}}"
773
+ data-amplitude-playlist="{{player_playlist}}">
740
774
  </div>
741
775
  {% endif %}
742
776
  <div
743
777
  id="large_player_play_pause"
744
- class="amplitude-play-pause amplitude-paused"
778
+ class="large-player-play-pause-{{player_id}} large-player-play-pause amplitude-play-pause amplitude-paused"
745
779
  data-amplitude-source="{{source_media_attribute}}"
746
780
  data-amplitude-playlist="{{player_playlist}}">
747
781
  </div>
748
782
  {% if skip_forward_backward_button %}
749
783
  <div
750
784
  id="skip-forward_{{player_id}}"
751
- class="large-player-skip-forward"
752
- data-amplitude-source="{{source_media_attribute}}">
785
+ class="large-player-skip-forward-{{player_id}} large-player-skip-forward"
786
+ data-amplitude-source="{{source_media_attribute}}"
787
+ data-amplitude-playlist="{{player_playlist}}">
753
788
  </div>
754
789
  {% endif %}
755
790
  <div
756
791
  id="large_player_next"
757
- class="amplitude-next"
792
+ class="large-player-next-{{player_id}} large-player-next amplitude-next"
758
793
  data-amplitude-source="{{source_media_attribute}}"
759
794
  data-amplitude-playlist="{{player_playlist}}">
760
795
  </div>
761
796
  {% if repeat_button %}
762
797
  <div
763
798
  id="large_player_repeat"
764
- class="amplitude-repeat amplitude-repeat-off"
799
+ class="large-player-repeat-{{player_id}} large-player-repeat amplitude-repeat amplitude-repeat-off"
765
800
  data-amplitude-source="{{source_media_attribute}}"
766
801
  data-amplitude-playlist="{{player_playlist}}">
767
802
  </div>
@@ -800,20 +835,20 @@ amplitude_defaults: {{amplitude_defaults | debug}}
800
835
  <span class="current-time">
801
836
  {% if display_hours %}
802
837
  <span
803
- class="amplitude-current-hours"
838
+ class="amplitude-current-hours-{{player_playlist}} amplitude-current-hours"
804
839
  data-amplitude-source="{{source_media_attribute}}"
805
840
  data-amplitude-playlist="{{player_playlist}}">
806
841
  </span>
807
842
  :
808
843
  {% endif %}
809
844
  <span
810
- class="amplitude-current-minutes"
845
+ class="amplitude-current-minutes-{{player_playlist}} amplitude-current-minutes"
811
846
  data-amplitude-source="{{source_media_attribute}}"
812
847
  data-amplitude-playlist="{{player_playlist}}">
813
848
  </span>
814
849
  :
815
850
  <span
816
- class="amplitude-current-seconds"
851
+ class="amplitude-current-seconds-{{player_playlist}} amplitude-current-seconds"
817
852
  data-amplitude-source="{{source_media_attribute}}"
818
853
  data-amplitude-playlist="{{player_playlist}}">
819
854
  </span>
@@ -821,20 +856,20 @@ amplitude_defaults: {{amplitude_defaults | debug}}
821
856
  <span class="duration">
822
857
  {% if display_hours %}
823
858
  <span
824
- class="amplitude-duration-hours"
859
+ class="amplitude-duration-hours-{{player_playlist}} amplitude-duration-hours"
825
860
  data-amplitude-source="{{source_media_attribute}}"
826
861
  data-amplitude-playlist="{{player_playlist}}">
827
862
  </span>
828
863
  :
829
864
  {% endif %}
830
865
  <span
831
- class="amplitude-duration-minutes"
866
+ class="amplitude-duration-minutes-{{player_playlist}} amplitude-duration-minutes"
832
867
  data-amplitude-source="{{source_media_attribute}}"
833
868
  data-amplitude-playlist="{{player_playlist}}">
834
869
  </span>
835
870
  :
836
871
  <span
837
- class="amplitude-duration-seconds"
872
+ class="amplitude-duration-seconds-{{player_playlist}} amplitude-duration-seconds"
838
873
  data-amplitude-source="{{source_media_attribute}}"
839
874
  data-amplitude-playlist="{{player_playlist}}">
840
875
  </span>
@@ -844,19 +879,21 @@ amplitude_defaults: {{amplitude_defaults | debug}}
844
879
 
845
880
  <div class="meta-container large-player">
846
881
  <span
847
- class="song-name"
882
+ class="song-name-{{player_playlist}} song-name"
848
883
  data-amplitude-source="{{source_media_attribute}}"
849
884
  data-amplitude-playlist="{{player_playlist}}"
850
885
  data-amplitude-song-info="name">
851
886
  </span>
852
887
  <div class="audio-artist-album">
853
888
  <span
854
- data-amplitude-source="{{source_media_attribute}}"
889
+ class="artist-name-{{player_playlist}} artist"
890
+ data-amplitude-source="{{source_media_attribute}}"
855
891
  data-amplitude-playlist="{{player_playlist}}"
856
892
  data-amplitude-song-info="artist">
857
893
  </span>
858
894
  <span
859
- data-amplitude-source="{{source_media_attribute}}"
895
+ class="album-name-{{player_playlist}} album"
896
+ data-amplitude-source="{{source_media_attribute}}"
860
897
  data-amplitude-playlist="{{player_playlist}}"
861
898
  data-amplitude-song-info="album">
862
899
  </span>
@@ -888,29 +925,65 @@ amplitude_defaults: {{amplitude_defaults | debug}}
888
925
  class="large-player-playlist-header">Playlist
889
926
  </div>
890
927
 
891
- {% if playlist_controls %}
892
928
  <div class="playlist-screen-controls large-player">
893
929
  <div class="playlist-screen-meta-container">
894
930
  <span
895
- class="song-name"
931
+ class="song-name-{{player_playlist}} song-name"
896
932
  data-amplitude-source="{{source_media_attribute}}"
897
933
  data-amplitude-playlist="{{player_playlist}}"
898
934
  data-amplitude-song-info="name">
899
935
  </span>
936
+
937
+ <!-- START player_audio_info -->
938
+ <!-- load initial (first element) info URL -->
939
+ {% for item in playlist_items %} {% if item.enabled %}
940
+ {% if playlist_audio_info and forloop.first %}
941
+ <span class="audio-info">
942
+ <a class="audio-info-link-{player_playlist}} audio-info-link" href="{{item.audio_info}}" target="_blank">
943
+ <i class="mdib mdib-information md-gray-400 mdib-24px"></i>
944
+ </a>
945
+ </span>
946
+ {% else %}
947
+ {% break %}
948
+ {% endif %}
949
+
950
+ <!-- load initial (first element) rating -->
951
+ {% if playlist_audio_rating and forloop.first %}
952
+ {% if item.rating %}
953
+ <span class="audio-rating-{player_playlist}} audio-rating">
954
+ {{item.rating}}
955
+ <i class="mdib mdib-star md-gray-400 mdib-18px"></i>
956
+ </span>
957
+ {% else %}
958
+ <!-- place empty (span) element (placeholder) -->
959
+ <span class="audio-rating-{player_playlist}} audio-rating"></span>
960
+ {% endif %}
961
+ {% else %}
962
+ {% break %}
963
+ {% endif %}
964
+ {% endif %} {% endfor %}
965
+ <!-- END playlist_audio_info -->
966
+
900
967
  <div class="song-artist-album">
901
968
  <span
969
+ class="song-artist-{{player_playlist}}"
902
970
  data-amplitude-source="{{source_media_attribute}}"
903
971
  data-amplitude-playlist="{{player_playlist}}"
904
972
  data-amplitude-song-info="artist">
905
973
  </span>
906
- <!-- span class="song-artist-album-delimiter">·</span>
974
+ <!-- jadams, 2024-12-08: make album info configurable -->
975
+ <span class="song-artist-album-delimiter">·</span>
907
976
  <span
977
+ class="song-info-{{player_playlist}}"
908
978
  data-amplitude-source="audio"
909
979
  data-amplitude-playlist="{{player_playlist}}"
910
980
  data-amplitude-song-info="album">
911
- </span -->
981
+ </span>
912
982
  </div>
913
983
  </div>
984
+
985
+ <!-- place extra control buttons (playlist_controls: {{playlist_controls}}) -->
986
+ {% if playlist_controls %}
914
987
  <div class="list-controls">
915
988
  <div
916
989
  class="list-previous amplitude-prev"
@@ -925,10 +998,13 @@ amplitude_defaults: {{amplitude_defaults | debug}}
925
998
  <div
926
999
  class="list-next amplitude-next"
927
1000
  data-amplitude-source="{{source_media_attribute}}"
928
- data-amplitude-playlist="{{player_playlist}}"></div>
1001
+ data-amplitude-playlist="{{player_playlist}}">
1002
+ </div>
929
1003
  </div>
1004
+ {% endif %}
1005
+
930
1006
  </div> <!-- END playlist controls -->
931
- {% endif %}
1007
+
932
1008
 
933
1009
  <!-- START playlist items (Large Player) -->
934
1010
  <div
@@ -937,7 +1013,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
937
1013
  {% for item in playlist_items %}{% if item.enabled %}
938
1014
  <!-- START list item -->
939
1015
  <div
940
- class="song amplitude-song-container amplitude-play-pause"
1016
+ class="amplitude-song-container-large-player-{{player_id}} song amplitude-song-container amplitude-play-pause"
941
1017
  data-amplitude-song-index="{{forloop.index0}}"
942
1018
  data-amplitude-source="{{source_media_attribute}}"
943
1019
  data-amplitude-playlist="{{player_playlist}}">
@@ -956,28 +1032,23 @@ amplitude_defaults: {{amplitude_defaults | debug}}
956
1032
 
957
1033
  <div
958
1034
  class="audio-meta-data"
959
- data-amplitude-playlist="{{player_playlist}}">
1035
+ data-amplitude-playlist="{{player_playlist}}"
1036
+ data-amplitude-song-index="{{forloop.index0}}">
960
1037
  <span class="audio-title">{{item.title}}</span>
961
1038
 
962
- {% if player_audio_rating %}
1039
+ {% comment %}
1040
+ {% if playlist_audio_rating %}
963
1041
  <span class="audio-rating">
964
1042
  {{item.rating}}
965
1043
  <i class="mdib mdib-star md-gray-400 mdib-18px"></i>
966
1044
  </span>
967
1045
  {% endif %}
1046
+ {% endcomment %}
968
1047
 
969
1048
  <span class="audio-artist">
970
1049
  <span>{{item.artist}}</span>
971
1050
  <!-- span class="song-artist-album-delimiter">·</span>
972
- <span>{{item.name}}</span -->
973
-
974
- {% if player_audio_info %}
975
- <span class="audio-info">
976
- <a href="{{item.audio_info}}" class="audio-info-link" target="_blank">
977
- <i class="mdib mdib-information md-gray-400 mdib-24px"></i>
978
- </a>
979
- </span>
980
- {% endif %}
1051
+ <span>{{item.name}}</span -->
981
1052
  </span>
982
1053
  </div>
983
1054
 
@@ -1025,7 +1096,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
1025
1096
  </html>
1026
1097
  {%- endcapture -%}
1027
1098
 
1028
- {% comment %} beautify|compress page
1099
+ {% comment %} Beautify|compress page
1029
1100
  -------------------------------------------------------------------------------- {% endcomment %}
1030
1101
  {%- if production -%}
1031
1102
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -529,7 +529,7 @@ exclude_from_search: true
529
529
  </html>
530
530
  {%- endcapture -%}
531
531
 
532
- {% comment %} Beatify|Compress page
532
+ {% comment %} Beautify|Compress page
533
533
  -------------------------------------------------------------------------------- {% endcomment %}
534
534
  {%- if production -%}
535
535
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -266,7 +266,7 @@ exclude_from_search: true
266
266
  </html>
267
267
  {%- endcapture -%}
268
268
 
269
- {% comment %} Beatify|Compress page
269
+ {% comment %} Beautify|Compress page
270
270
  -------------------------------------------------------------------------------- {% endcomment %}
271
271
  {%- if production -%}
272
272
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -148,7 +148,7 @@ exclude_from_search: true
148
148
  </html>
149
149
  {%- endcapture -%}
150
150
 
151
- {% comment %} Beatify|Compress page
151
+ {% comment %} Beautify|Compress page
152
152
  -------------------------------------------------------------------------------- {% endcomment %}
153
153
  {%- if production -%}
154
154
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
data/assets/data/fab.html CHANGED
@@ -148,7 +148,7 @@ fab_defaults: {{fab_defaults | debug}}
148
148
  </html>
149
149
  {%- endcapture -%}
150
150
 
151
- {% comment %} Beatify|Compress page
151
+ {% comment %} Beautify|Compress page
152
152
  -------------------------------------------------------------------------------- {% endcomment %}
153
153
  {%- if production -%}
154
154
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -274,7 +274,7 @@ exclude_from_search: true
274
274
  </html>
275
275
  {%- endcapture -%}
276
276
 
277
- {% comment %} Beatify|Compress page
277
+ {% comment %} Beautify|Compress page
278
278
  -------------------------------------------------------------------------------- {% endcomment %}
279
279
  {%- if production -%}
280
280
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -241,7 +241,7 @@ exclude_from_search: true
241
241
  </html>
242
242
  {%- endcapture -%}
243
243
 
244
- {% comment %} Beatify|Compress page
244
+ {% comment %} Beautify|Compress page
245
245
  -------------------------------------------------------------------------------- {% endcomment %}
246
246
  {%- if production -%}
247
247
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -175,7 +175,7 @@ NOTE: currently NOT used
175
175
  </html>
176
176
  {%- endcapture -%}
177
177
 
178
- {% comment %} Beatify|Compress page
178
+ {% comment %} Beautify|Compress page
179
179
  -------------------------------------------------------------------------------- {% endcomment %}
180
180
  {%- if production -%}
181
181
  {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _END %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _END %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}