j1-template 2024.3.14 → 2024.3.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/amplitude.html +104 -51
  3. data/assets/data/cookieconsent.html +8 -8
  4. data/assets/data/speak2me.html +11 -11
  5. data/assets/data/translator.html +29 -29
  6. data/assets/theme/j1/adapter/js/amplitude.js +14 -9
  7. data/assets/theme/j1/adapter/js/j1.js +4 -4
  8. data/assets/theme/j1/adapter/js/themes.js +42 -4
  9. data/assets/theme/j1/core/css/icon-fonts/mdib.css +24 -4
  10. data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -1
  11. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +1 -1
  12. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -1
  13. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +2 -2
  14. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
  15. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  16. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
  17. data/assets/theme/j1/core/js/template.js +258 -275
  18. data/assets/theme/j1/core/js/template.min.js +7 -7
  19. data/assets/theme/j1/core/js/template.min.js.map +1 -1
  20. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +50 -23
  21. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  22. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +100 -75
  23. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
  24. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +92 -76
  25. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
  26. data/assets/theme/j1/modules/gemini/js/gemini.js.map +1 -1
  27. data/assets/theme/j1/modules/jquery/js/jquery.min.map +1 -1
  28. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.js +2 -2
  29. data/lib/j1/version.rb +1 -1
  30. data/lib/starter_web/README.md +5 -5
  31. data/lib/starter_web/_config.yml +1 -1
  32. data/lib/starter_web/_data/modules/amplitude.yml +452 -32
  33. data/lib/starter_web/_data/modules/defaults/amplitude.yml +1 -0
  34. data/lib/starter_web/_data/modules/lazyLoader.yml +8 -8
  35. data/lib/starter_web/_data/modules/masterslider.yml +6 -6
  36. data/lib/starter_web/_data/resources.yml +1 -0
  37. data/lib/starter_web/_data/templates/feed.xml +1 -1
  38. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +2 -1
  39. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
  40. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
  41. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +2 -1
  42. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  43. data/lib/starter_web/assets/audio/cover/spontanorama/spontanorama.jpg +0 -0
  44. data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.png +0 -0
  45. data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.psd +0 -0
  46. data/lib/starter_web/package.json +1 -1
  47. data/lib/starter_web/pages/{public/tour → tour}/asciidoc_extensions.adoc +1 -1
  48. data/lib/starter_web/pages/{public/tour → tour}/bootstrap_themes.adoc +1 -1
  49. data/lib/starter_web/pages/{public/tour → tour}/highlghter_rouge.adoc +1 -1
  50. data/lib/starter_web/pages/{public/tour → tour}/modal_extentions.adoc +1 -1
  51. data/lib/starter_web/pages/{public/tour → tour}/play_audio.adoc +35 -27
  52. data/lib/starter_web/pages/{public/tour → tour}/play_video.adoc +25 -8
  53. data/lib/starter_web/pages/{public/tour → tour}/present_images.adoc +17 -16
  54. data/lib/starter_web/pages/{public/tour → tour}/quicksearch.adoc +1 -1
  55. data/lib/starter_web/pages/{public/tour → tour}/responsive_tables.adoc +1 -1
  56. data/lib/starter_web/pages/{public/tour → tour}/typography.adoc +1 -1
  57. metadata +32 -35
  58. data/assets/data/amplitude.28.html +0 -887
  59. data/assets/data/amplitude.29.html +0 -923
  60. data/assets/theme/j1/adapter/js/amplitude.23.js +0 -1165
  61. data/assets/theme/j1/adapter/js/amplitude.24.js +0 -1164
  62. data/assets/theme/j1/adapter/js/amplitude.25.js +0 -1268
  63. data/lib/starter_web/_data/modules/lazyLoader.0.yml +0 -118
  64. /data/lib/starter_web/pages/{public/tour → tour}/_includes/attributes.asciidoc +0 -0
  65. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/100_gistblock.asciidoc +0 -0
  66. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_bottom_info.asciidoc +0 -0
  67. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_bottom_left_warning.asciidoc +0 -0
  68. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_bottom_right_danger.asciidoc +0 -0
  69. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_central_success.asciidoc +0 -0
  70. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_full_height_left_info.asciidoc +0 -0
  71. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_full_height_right_success.asciidoc +0 -0
  72. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -0
  73. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_top_info.asciidoc +0 -0
  74. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_top_left_info.asciidoc +0 -0
  75. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/410_top_right_success.asciidoc +0 -0
  76. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/419_advanced_modals_demo.asciidoc +0 -0
  77. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/tables/bs_modal_examples.asciidoc +0 -0
  78. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/themes_bootstrap.asciidoc +0 -0
  79. /data/lib/starter_web/pages/{public/tour → tour}/_includes/documents/themes_rouge.asciidoc +0 -0
  80. /data/lib/starter_web/pages/{public/tour → tour}/icon_fonts.adoc +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5be7836bc33acb8bf5f1b59fec31b90911672b3ef04b852c17cd24b67ae3bad
4
- data.tar.gz: dca09ed5424070053b2c02d61e8693dab770e985d766a2d39f88eaf749611794
3
+ metadata.gz: 0cc26025b66a47d260512809ce845d8658b7032b67349658b7d05e791de677eb
4
+ data.tar.gz: 65a9fad816f02fdfb2c9c78a4168ccb8bdf5934d761aba64984bb8778dbac99e
5
5
  SHA512:
6
- metadata.gz: 0e48f1e2eb39763739bcbcaa8c691c0aa86007fb8d6d6642bf03262b431e2c07434e19eb8f81a73a10e5df1aa29ee2d844777a2b4fe0eff9ed7fc192de37ce3c
7
- data.tar.gz: 38cc045d0abf8a18225ae76917e8be24a3460150922a6c26f67d05dd66371eb679a0d1f86d986b3dcc26490369b3fb79c828f5c96c34501217c397c46d0bf485
6
+ metadata.gz: 57da3c587bcd593312a73f92f69211cf3f563cb6a85240bc04eb75d98fc31c59d60d3f132b40a278de3028f71a0ffed464d364ea45b1e39e638436341f12871f
7
+ data.tar.gz: 873952cb4e5993d663225f81cf13b2b46c66cd88361ef9e695f25e386ef9814506ff62539cff77dbfc0cc7d2ad2194db9f6b2919b61042b4ff4a6fb9ace6e229
@@ -87,6 +87,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
87
87
  ---------------------------------------------------------------------------- {% endcomment %}
88
88
  {% assign source_media = amplitude_defaults.player.source %}
89
89
  {% assign song_progress_bar = amplitude_defaults.player.song_progress_bar %}
90
+ {% assign audio_rating = amplitude_defaults.player.audio_rating %}
90
91
  {% assign display_hours = amplitude_defaults.player.display_hours %}
91
92
  {% assign volume_slider = amplitude_defaults.player.volume_slider.enabled %}
92
93
  {% assign volume_slider_min = amplitude_defaults.player.volume_slider.min_value %}
@@ -149,6 +150,13 @@ amplitude_defaults: {{amplitude_defaults | debug}}
149
150
  {% assign player_audio_info = player.playlist.audio_info %}
150
151
  {% endif %}
151
152
 
153
+ {% if player.audio_rating %}
154
+ {% assign player_audio_rating = player.audio_rating %}
155
+ {% else %}
156
+ {% assign player_audio_rating = audio_rating %}
157
+ {% endif %}
158
+
159
+
152
160
  {% comment %} unused
153
161
  ----------------------------------------------------------------------------
154
162
  {% unless player.playlist.scrollbar %}
@@ -323,7 +331,6 @@ amplitude_defaults: {{amplitude_defaults | debug}}
323
331
  Hide Playlist
324
332
  </div> <!-- END playlist-screen header (toggle playlist) -->
325
333
 
326
- <!-- jadams, 2024-07-06: controls configurable in player -->
327
334
  {% if playlist_controls %}
328
335
  <div class="playlist-screen-controls">
329
336
  <div class="playlist-screen-meta-container">
@@ -333,9 +340,16 @@ amplitude_defaults: {{amplitude_defaults | debug}}
333
340
  data-amplitude-song-info="name"></span>
334
341
  <div class="song-artist-album">
335
342
  <span
336
- data-amplitude-playlist="{{player_playlist}}"
337
- data-amplitude-source="{{source_media_attribute}}"
338
- data-amplitude-song-info="artist" data-amplitude-song-index="0"></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 -->
339
353
  </div>
340
354
  </div>
341
355
  <div class="list-controls">
@@ -358,7 +372,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
358
372
  </div> <!-- END playlist controls -->
359
373
  {% endif %}
360
374
 
361
- <!-- START playlist items -->
375
+ <!-- START playlist items (COMPACT player )-->
362
376
  <div
363
377
  id="compact_player_title_list_{{player_playlist}}"
364
378
  class="compact-player-title-list">
@@ -385,24 +399,37 @@ amplitude_defaults: {{amplitude_defaults | debug}}
385
399
  data-amplitude-source="{{source_media_attribute}}"
386
400
  data-amplitude-playlist="{{player_playlist}}">
387
401
  <span class="song-name">{{item.title}}</span>
388
- <span class="song-artist-album">
402
+
403
+ {% if player_audio_rating %}
404
+ <span class="audio-rating">
405
+ {{item.rating}}
406
+ <i class="mdib mdib-star md-gray-400 mdib-18px"></i>
407
+ </span>
408
+ {% endif %}
409
+
410
+ <!-- span class="song-artist-album">
389
411
  <span>{{item.name}}</span>
390
412
  <span class="song-artist-album-delimiter">·</span>
391
413
  <span>{{item.artist}}</span>
414
+ </span -->
415
+
416
+ <span class="song-artist-album">
417
+ <span>{{item.artist}}</span>
392
418
  </span>
393
- </div>
394
419
 
395
- <a href="{{item.audio_info}}" class="audio-info-link" target="_blank">
396
420
  {% if player_audio_info %}
397
- <img class="audio-info-blue" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-blue.svg" alt="audio-info" style="display: block">
398
- <img class="audio-info-white" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-white.svg" alt="audio-info" style="display: none">
399
- {% else %}
400
- <img class="audio-info-blue" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-blue.svg" alt="audio-info" style="display: none">
401
- <img class="audio-info-white" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-white.svg" alt="audio-info" style="display: none">
421
+ <span class="audio-info">
422
+ <a href="{{item.audio_info}}" class="audio-info-link" target="_blank">
423
+ <i class="mdib mdib-information md-gray-400 mdib-24px"></i>
424
+ </a>
425
+ </span>
402
426
  {% endif %}
403
- </a>
404
427
 
405
- <span class="audio-duration">{{item.duration}}</span>
428
+ <span class="audio-duration">{{item.duration}}</span>
429
+
430
+ </div> <!-- END song-meta-container -->
431
+
432
+
406
433
  </div>
407
434
  <!-- END list item -->
408
435
  {% endif %} {% endfor %}
@@ -436,13 +463,16 @@ amplitude_defaults: {{amplitude_defaults | debug}}
436
463
  </div> <!-- END compact player header (toggle playlist) -->
437
464
 
438
465
  <div class="player-top">
439
- <!-- jadams, DEFAULT album cover image replaced by AmplidudeJS (based on playlist) -->
440
- <img
441
- src="/assets/audio/cover/default/placeholder-blue.jpg"
442
- data-amplitude-source="{{source_media_attribute}}"
443
- data-amplitude-playlist="{{player_playlist}}"
444
- data-amplitude-song-info="cover_art_url"
445
- alt="album cover">
466
+ <!-- NOTE: album cover image (replaced by AJS API based on playlist) -->
467
+ <div class="album-cover-image">
468
+ <img
469
+ src="/assets/audio/cover/default/placeholder-blue.jpg"
470
+ data-amplitude-playlist="{{player_playlist}}"
471
+ data-amplitude-source="{{source_media_attribute}}"
472
+ data-amplitude-song-info="cover_art_url"
473
+ alt="album cover image"
474
+ >
475
+ </div>
446
476
  </div>
447
477
 
448
478
  <!-- START progress bar -->
@@ -657,15 +687,17 @@ amplitude_defaults: {{amplitude_defaults | debug}}
657
687
  </span>
658
688
  </div>
659
689
 
660
- <!-- NOTE: DEFAULT album cover image (replaced by AJS API based on playlist) -->
661
- <img
662
- src="/assets/audio/cover/default/placeholder-blue.jpg"
663
- width="500" height="500"
664
- data-amplitude-playlist="{{player_playlist}}"
665
- data-amplitude-source="{{source_media_attribute}}"
666
- data-amplitude-song-info="cover_art_url"
667
- alt="album cover"
668
- >
690
+ <!-- NOTE: album cover image (replaced by AJS API based on playlist) -->
691
+ <div class="album-cover-image">
692
+ <img
693
+ src="/assets/audio/cover/default/placeholder-blue.jpg"
694
+ data-amplitude-playlist="{{player_playlist}}"
695
+ data-amplitude-source="{{source_media_attribute}}"
696
+ data-amplitude-song-info="cover_art_url"
697
+ alt="album cover image"
698
+ >
699
+ </div>
700
+
669
701
  <!-- START progress bar -->
670
702
  {% if song_progress_bar %}
671
703
  <progress
@@ -793,7 +825,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
793
825
  data-amplitude-source="{{source_media_attribute}}"
794
826
  data-amplitude-playlist="{{player_playlist}}">
795
827
  </span>
796
- :
828
+ :
797
829
  {% endif %}
798
830
  <span
799
831
  class="amplitude-duration-minutes"
@@ -856,7 +888,6 @@ amplitude_defaults: {{amplitude_defaults | debug}}
856
888
  class="large-player-playlist-header">Playlist
857
889
  </div>
858
890
 
859
- <!-- jadams, 2024-07-06: controls configurable in player -->
860
891
  {% if playlist_controls %}
861
892
  <div class="playlist-screen-controls large-player">
862
893
  <div class="playlist-screen-meta-container">
@@ -870,9 +901,14 @@ amplitude_defaults: {{amplitude_defaults | debug}}
870
901
  <span
871
902
  data-amplitude-source="{{source_media_attribute}}"
872
903
  data-amplitude-playlist="{{player_playlist}}"
873
- data-amplitude-song-info="artist"
874
- data-amplitude-song-index="0">
904
+ data-amplitude-song-info="artist">
875
905
  </span>
906
+ <!-- span class="song-artist-album-delimiter">·</span>
907
+ <span
908
+ data-amplitude-source="audio"
909
+ data-amplitude-playlist="{{player_playlist}}"
910
+ data-amplitude-song-info="album">
911
+ </span -->
876
912
  </div>
877
913
  </div>
878
914
  <div class="list-controls">
@@ -894,7 +930,7 @@ amplitude_defaults: {{amplitude_defaults | debug}}
894
930
  </div> <!-- END playlist controls -->
895
931
  {% endif %}
896
932
 
897
- <!-- START playlist items -->
933
+ <!-- START playlist items (Large Player) -->
898
934
  <div
899
935
  id="large_player_title_list_{{player_playlist}}"
900
936
  class="large-player-title-list">
@@ -907,11 +943,14 @@ amplitude_defaults: {{amplitude_defaults | debug}}
907
943
  data-amplitude-playlist="{{player_playlist}}">
908
944
 
909
945
  <div
910
- class="song-now-playing-icon-container"
946
+ class="song-number-now-playing"
911
947
  data-amplitude-source="{{source_media_attribute}}"
912
948
  data-amplitude-playlist="{{player_playlist}}">
913
949
  <span class="title-number">{{forloop.index}}
914
- <img class="now-playing" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg" alt="now-playing">
950
+ <img
951
+ class="now-playing"
952
+ src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg"
953
+ alt="now-playing">
915
954
  </span>
916
955
  </div>
917
956
 
@@ -919,29 +958,43 @@ amplitude_defaults: {{amplitude_defaults | debug}}
919
958
  class="audio-meta-data"
920
959
  data-amplitude-playlist="{{player_playlist}}">
921
960
  <span class="audio-title">{{item.title}}</span>
961
+
962
+ {% if player_audio_rating %}
963
+ <span class="audio-rating">
964
+ {{item.rating}}
965
+ <i class="mdib mdib-star md-gray-400 mdib-18px"></i>
966
+ </span>
967
+ {% endif %}
968
+
922
969
  <span class="audio-artist">
923
- <span>{{item.name}}</span>
924
- <span class="song-artist-album-delimiter">·</span>
925
970
  <span>{{item.artist}}</span>
971
+ <!-- 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 %}
926
981
  </span>
927
982
  </div>
928
983
 
929
- <a href="{{item.audio_info}}" class="audio-info-link" target="_blank">
930
- {% if player_audio_info %}
931
- <img class="audio-info-blue" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-blue.svg" alt="audio-info" style="display: block">
932
- <img class="audio-info-white" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-white.svg" alt="audio-info" style="display: none">
933
- {% else %}
934
- <img class="audio-info-blue" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-blue.svg" alt="audio-info" style="display: none">
935
- <img class="audio-info-white" src="/assets/theme/j1/modules/amplitudejs/icons/player/dark/audio-info-white.svg" alt="audio-info" style="display: none">
936
- {% endif %}
937
- </a>
938
-
984
+ <!-- jadams, 2024-11-05: workaround -->
985
+ {% if player.display_hours %}
939
986
  <span class="audio-duration">{{item.duration}}</span>
987
+ {% else %}
988
+ <span class="audio-duration" style="margin-left: 50px;">{{item.duration}}</span>
989
+ <!-- span class="audio-duration">{{item.duration}}</span -->
990
+ {% endif %}
991
+
992
+
940
993
  </div>
941
994
  <!-- END list item -->
942
995
  {% endif %}{% endfor %}
943
996
  </div>
944
- <!-- EBD playlist items -->
997
+ <!-- END playlist items (Large Player) -->
945
998
 
946
999
  </div> <!-- END Large Player|Right Side -->
947
1000
 
@@ -147,16 +147,16 @@ exclude_from_search: true
147
147
  </div>
148
148
 
149
149
  <div class="modal-footer">
150
- <button id="bccs-buttonDoNotAgree" type="button" class="btn btn-outline-secondary mb-1 mr-2" style="min-width: 20rem">
150
+ <button id="bccs-buttonDoNotAgree" type="button" class="btn btn-danger mb-1 mr-2" style="min-width: 20rem">
151
151
  I Do not Agree
152
152
  </button>
153
- <button id="bccs-buttonAgree" type="button" class="btn btn-primary mb-1 mr-2" style="min-width: 20rem">
153
+ <button id="bccs-buttonAgree" type="button" class="btn btn-success mb-1 mr-2" style="min-width: 20rem">
154
154
  I Agree
155
155
  </button>
156
- <button id="bccs-buttonSave" type="button" class="btn btn-outline-secondary mb-1 mr-2" style="display: none; min-width: 20rem">
156
+ <button id="bccs-buttonSave" type="button" class="btn btn-warning mb-1 mr-2" style="display: none; min-width: 20rem">
157
157
  Save selection
158
158
  </button>
159
- <button id="bccs-buttonAgreeAll" type="button" class="btn btn-primary mb-1 mr-2" style="display: none; min-width: 20rem">
159
+ <button id="bccs-buttonAgreeAll" type="button" class="btn btn-success mb-1 mr-2" style="display: none; min-width: 20rem">
160
160
  Agree on all
161
161
  </button>
162
162
  </div>
@@ -242,16 +242,16 @@ exclude_from_search: true
242
242
  </div>
243
243
 
244
244
  <div class="modal-footer">
245
- <button id="bccs-buttonDoNotAgree" type="button" class="btn btn-outline-secondary mb-1 mr-2" style="min-width: 20rem">
245
+ <button id="bccs-buttonDoNotAgree" type="button" class="btn btn-warning mb-1 mr-2" style="min-width: 20rem">
246
246
  Ich stimme nicht zu
247
247
  </button>
248
- <button id="bccs-buttonAgree" type="button" class="btn btn-primary mb-1 mr-2" style="min-width: 20rem">
248
+ <button id="bccs-buttonAgree" type="button" class="btn btn-success mb-1 mr-2" style="min-width: 20rem">
249
249
  Ich stimme zu
250
250
  </button>
251
- <button id="bccs-buttonSave" type="button" class="btn btn-outline-secondary mb-1 mr-2" style="display: none; min-width: 20rem">
251
+ <button id="bccs-buttonSave" type="button" class="btn btn-warning mb-1 mr-2" style="display: none; min-width: 20rem">
252
252
  Auswahl speichern
253
253
  </button>
254
- <button id="bccs-buttonAgreeAll" type="button" class="btn btn-primary mb-1 mr-2" style="display: none; min-width: 20rem">
254
+ <button id="bccs-buttonAgreeAll" type="button" class="btn btn-success mb-1 mr-2" style="display: none; min-width: 20rem">
255
255
  Stimme allen zu
256
256
  </button>
257
257
  </div>
@@ -144,17 +144,6 @@ exclude_from_search: true
144
144
  <!-- start control buttons -->
145
145
  <div class="ml-2">
146
146
 
147
- <!-- speak button -->
148
- <button type="button"
149
- id="speak_button"
150
- class="btn btn-{{speak2me_options.modal.settings.speak_button_style}} btn-sm"
151
- style="min-width: 180px;"
152
- onclick="j1.adapter.speak2me.speak('{{speak2me_options.speechSelector}}')"
153
- data-bs-dismiss="modal">
154
- <i class="mdib mdib-speaker mdib-sm mr-2"></i>
155
- {{speak2me_options.modal.settings.speak_button_text}}
156
- </button>
157
-
158
147
  <!-- stop button -->
159
148
  <button type="button"
160
149
  id="stop_button"
@@ -166,6 +155,17 @@ exclude_from_search: true
166
155
  {{speak2me_options.modal.settings.stop_button_text}}
167
156
  </button>
168
157
 
158
+ <!-- speak button -->
159
+ <button type="button"
160
+ id="speak_button"
161
+ class="btn btn-{{speak2me_options.modal.settings.speak_button_style}} btn-sm"
162
+ style="min-width: 180px;"
163
+ onclick="j1.adapter.speak2me.speak('{{speak2me_options.speechSelector}}')"
164
+ data-bs-dismiss="modal">
165
+ <i class="mdib mdib-speaker mdib-sm mr-2"></i>
166
+ {{speak2me_options.modal.settings.speak_button_text}}
167
+ </button>
168
+
169
169
  <!-- pause button -->
170
170
  <button type="button"
171
171
  id="pause_button"
@@ -149,40 +149,40 @@ exclude_from_search: true
149
149
  <button
150
150
  id="translator-buttonDoNotAgree"
151
151
  type="button"
152
- class="btn btn-outline-secondary mb-1 mr-2"
152
+ class="btn btn-danger mb-1 mr-2"
153
153
  style="min-width: 20rem">
154
- No, disable translation
154
+ No, disable translation
155
155
  </button>
156
156
 
157
157
  <button
158
- id="translator-buttonAgree"
158
+ id="translator-buttonExit"
159
159
  type="button"
160
- class="btn btn-primary mb-1 mr-2"
161
- style="min-width: 20rem">
162
- Yes, please translate
160
+ class="btn btn-info mb-1 mr-2"
161
+ style="min-width: 20rem"
162
+ data-bs-dismiss="modal">
163
+ Do nothing
163
164
  </button>
164
165
 
165
166
  <button
166
- id="translator-buttonExit"
167
+ id="translator-buttonAgree"
167
168
  type="button"
168
- class="btn btn-warning mb-1 mr-2"
169
- style="min-width: 20rem"
170
- data-bs-dismiss="modal">
171
- Do nothing
169
+ class="btn btn-success mb-1 mr-2"
170
+ style="min-width: 20rem">
171
+ Yes, please translate
172
172
  </button>
173
173
 
174
174
  <button
175
175
  id="translator-buttonSave"
176
176
  type="button"
177
- class="btn btn-outline-secondary mb-1 mr-2"
177
+ class="btn btn-warning mb-1 mr-2"
178
178
  style="display:none; min-width: 20rem">
179
- Save selection
179
+ Save selection
180
180
  </button>
181
181
 
182
182
  <button
183
183
  id="translator-buttonAgreeAll"
184
184
  type="button"
185
- class="btn btn-primary mb-1 mr-2"
185
+ class="btn btn-success mb-1 mr-2"
186
186
  style="display:none; min-width: 20rem">
187
187
  I Agree on all
188
188
  </button>
@@ -272,42 +272,42 @@ exclude_from_search: true
272
272
  <button
273
273
  id="translator-buttonDoNotAgree"
274
274
  type="button"
275
- class="btn btn-outline-secondary mb-1 mr-2"
275
+ class="btn btn-danger mb-1 mr-2"
276
276
  style="min-width: 20rem">
277
- Nein, Übersetzung deaktivieren
277
+ Nein, Übersetzung deaktivieren
278
278
  </button>
279
279
 
280
280
  <button
281
- id="translator-buttonAgree"
281
+ id="translator-buttonExit"
282
282
  type="button"
283
- class="btn btn-primary mb-1 mr-2"
284
- style="min-width: 20rem">
285
- Ja, bitte übersetzen Sie
283
+ class="btn btn-info mb-1 mr-2"
284
+ style="min-width: 20rem"
285
+ data-bs-dismiss="modal">
286
+ Nichts tun
286
287
  </button>
287
288
 
288
289
  <button
289
- id="translator-buttonExit"
290
+ id="translator-buttonAgree"
290
291
  type="button"
291
- class="btn btn-warning mb-1 mr-2"
292
- style="min-width: 20rem"
293
- data-bs-dismiss="modal">
294
- Nichts tun
292
+ class="btn btn-success mb-1 mr-2"
293
+ style="min-width: 20rem">
294
+ Ja, bitte übersetzen Sie
295
295
  </button>
296
296
 
297
297
  <button
298
298
  id="translator-buttonSave"
299
299
  type="button"
300
- class="btn btn-outline-secondary mb-1 mr-2"
300
+ class="btn btn-warning mb-1 mr-2"
301
301
  style="display:none; min-width: 20rem">
302
- Auswahl speichern
302
+ Auswahl speichern
303
303
  </button>
304
304
 
305
305
  <button
306
306
  id="translator-buttonAgreeAll"
307
307
  type="button"
308
- class="btn btn-primary mb-1 mr-2"
308
+ class="btn btn-success mb-1 mr-2"
309
309
  style="display:none; min-width: 20rem">
310
- Stimme allen zu
310
+ Stimme allen zu
311
311
  </button>
312
312
  </div>
313
313
 
@@ -550,16 +550,19 @@ j1.adapter.amplitude = ((j1, window) => {
550
550
  if (apiInitialized.state) {
551
551
  logger.info('\n' + 'initialize player specific UI events: started');
552
552
 
553
+ var parentContainer = (document.getElementById('{{xhr_container_id}}') !== null) ? true : false;
554
+ var parentContainerExist = ($('#' + '{{xhr_container_id}}')[0] !== undefined) ? true : false;
555
+
553
556
  {% for player in amplitude_options.players %} {% if player.enabled %}
554
557
  {% assign xhr_data_path = amplitude_options.xhr_data_path %}
555
558
  {% capture xhr_container_id %}{{player.id}}_parent{% endcapture %}
556
559
 
557
- playerID = '{{player.id}}';
558
- playerType = '{{player.type}}';
559
- playList = '{{player.playlist}}';
560
- playListName = '{{player.playlist.name}}'
561
- playListTitle = '{{player.playlist.title}}';
562
-
560
+ playerID = '{{player.id}}';
561
+ playerType = '{{player.type}}';
562
+ playList = '{{player.playlist}}';
563
+ playListName = '{{player.playlist.name}}'
564
+ playListTitle = '{{player.playlist.title}}';
565
+
563
566
  logger.debug('\n' + 'set playlist {{player.playlist}} on id #{{player.id}} with title: ' + playListTitle);
564
567
 
565
568
  // dynamic loader variable to setup the player on ID {{player.id}}
@@ -571,9 +574,11 @@ j1.adapter.amplitude = ((j1, window) => {
571
574
  // -----------------------------------------------------------------
572
575
  load_dependencies['dependencies_met_player_loaded_{{player.id}}'] = setInterval (() => {
573
576
  // check if HTML portion of the player is loaded successfully
574
- var xhrLoadState = j1.xhrDOMState['#' + '{{xhr_container_id}}'];
577
+ var xhrLoadState = j1.xhrDOMState['#' + '{{xhr_container_id}}'];
578
+ var playerExistsInPage = ($('#' + '{{xhr_container_id}}')[0] !== undefined) ? true : false;
575
579
 
576
- if (xhrLoadState === 'success') {
580
+ if (xhrLoadState === 'success' && playerExistsInPage) {
581
+ // if (xhrLoadState === 'success') {
577
582
 
578
583
  // set song (title) specific audio info links
579
584
  // -------------------------------------------------------------
@@ -658,7 +663,7 @@ j1.adapter.amplitude = ((j1, window) => {
658
663
  playlistScreen.classList.remove('slide-out-top');
659
664
  playlistScreen.classList.add('slide-in-top');
660
665
  playlistScreen.style.display = "block";
661
- playlistScreen.style.zIndex = "999";
666
+ playlistScreen.style.zIndex = "199";
662
667
 
663
668
  // disable scrolling (if window viewport >= BS Medium and above)
664
669
  if (window.innerWidth >= 720) {
@@ -301,10 +301,10 @@ var j1 = ((options) => {
301
301
  var user_state = {
302
302
  'writer': 'j1.adapter',
303
303
  'template_version': '{{template_version}}',
304
- 'theme_name': 'UnoLight',
305
- 'theme_css': '/assets/theme/j1/core/css/themes/unolight/bootstrap.css',
306
- 'theme_author': 'J1 Team',
307
- 'theme_version': '{{template_version}}',
304
+ 'theme_name': '',
305
+ 'theme_css': '',
306
+ 'theme_author': '',
307
+ 'theme_version': '',
308
308
  'session_active': false,
309
309
  'google_translate': 'disabled',
310
310
  'translate_all_pages': true,
@@ -263,9 +263,47 @@ j1.adapter.themes = (function (j1, window) {
263
263
  logger.info('\n' + 'hide page until theme is loaded');
264
264
  $('#no_flicker').hide();
265
265
 
266
- // logger.info('\n' + 'cookie ' + cookie_names.user_state + ' successfully loaded after: ' + interval_count * 25 + ' ms');
267
-
268
- // initial theme data
266
+ logger.info('\n' + 'cookie ' + cookie_names.user_state + ' successfully loaded after: ' + interval_count * 25 + ' ms');
267
+
268
+ // load previously selected theme from cookie (preferred)
269
+ // if (user_state.theme_css !== '') {
270
+ // user_state.theme_name = default_theme_name;
271
+ // user_state.theme_css = default_theme_css;
272
+ // user_state.theme_author = default_theme_author;
273
+ // user_state.theme_author_url = default_theme_author_url;
274
+
275
+ // cookie_written = j1.writeCookie({
276
+ // name: cookie_names.user_state,
277
+ // data: user_state,
278
+ // secure: secure,
279
+ // expires: 365
280
+ // });
281
+
282
+ // if (!cookie_written) {
283
+ // logger.error('\n' + 'failed to write cookie: ' + cookie_names.user_consent);
284
+ // }
285
+ // } // END load previously selected theme
286
+
287
+ // load default theme (j1_config and NO theme given with (user_state) cookie
288
+ // if (user_state.theme_css === '' && default_theme_css.theme_css !== '') {
289
+ // user_state.theme_name = default_theme_name;
290
+ // user_state.theme_css = default_theme_css;
291
+ // user_state.theme_author = default_theme_author;
292
+ // user_state.theme_author_url = default_theme_author_url;
293
+
294
+ // cookie_written = j1.writeCookie({
295
+ // name: cookie_names.user_state,
296
+ // data: user_state,
297
+ // secure: secure,
298
+ // expires: 365
299
+ // });
300
+
301
+ // if (!cookie_written) {
302
+ // logger.error('\n' + 'failed to write cookie: ' + cookie_names.user_consent);
303
+ // }
304
+ // } // END load default theme
305
+
306
+ // load default theme if NO theme given with (user_state) cookie
269
307
  if (user_state.theme_css === '') {
270
308
  user_state.theme_name = default_theme_name;
271
309
  user_state.theme_css = default_theme_css;
@@ -282,7 +320,7 @@ j1.adapter.themes = (function (j1, window) {
282
320
  if (!cookie_written) {
283
321
  logger.error('\n' + 'failed to write cookie: ' + cookie_names.user_consent);
284
322
  }
285
- } // END if user_state theme_css === ''
323
+ } // END oad default theme
286
324
 
287
325
  // set the theme switcher state
288
326
  user_state.theme_switcher = themesOptions.enabled;
@@ -7248,6 +7248,26 @@
7248
7248
  content: "\F039F";
7249
7249
  }
7250
7250
 
7251
+ .mdib-numeric-1:before {
7252
+ content: "\F0B3A";
7253
+ }
7254
+
7255
+ .mdib-numeric-2:before {
7256
+ content: "\F0B3B";
7257
+ }
7258
+
7259
+ .mdib-numeric-3:before {
7260
+ content: "\F0B3C";
7261
+ }
7262
+
7263
+ .mdib-numeric-4:before {
7264
+ content: "\F0B3D";
7265
+ }
7266
+
7267
+ .mdib-numeric-5:before {
7268
+ content: "\F0B3E";
7269
+ }
7270
+
7251
7271
  .mdib-npm:before {
7252
7272
  content: "\F06F7";
7253
7273
  }
@@ -9444,6 +9464,10 @@
9444
9464
  content: "\F0E67";
9445
9465
  }
9446
9466
 
9467
+ .mdib-star:before {
9468
+ content: "\F04CE";
9469
+ }
9470
+
9447
9471
  .mdib-squeegee:before {
9448
9472
  content: "\F0AE1";
9449
9473
  }
@@ -9500,10 +9524,6 @@
9500
9524
  content: "\F07EF";
9501
9525
  }
9502
9526
 
9503
- .mdib-star:before {
9504
- content: "\F04CE";
9505
- }
9506
-
9507
9527
  .mdib-state-machine:before {
9508
9528
  content: "\F11EF";
9509
9529
  }