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