j1-template 2024.3.21 → 2024.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/data/amplitude_app.html +60 -51
- data/assets/data/{galeries.html → gallery_app.html} +4 -4
- data/assets/theme/bla +0 -0
- data/assets/theme/j1/adapter/js/advertising.js +40 -38
- data/assets/theme/j1/adapter/js/algolia.js +13 -11
- data/assets/theme/j1/adapter/js/amplitude.js +628 -380
- data/assets/theme/j1/adapter/js/analytics.js +19 -17
- data/assets/theme/j1/adapter/js/asciidoctor.js +10 -8
- data/assets/theme/j1/adapter/js/attic.js +24 -22
- data/assets/theme/j1/adapter/js/bmd.js +10 -8
- data/assets/theme/j1/adapter/js/carousel.js +12 -9
- data/assets/theme/j1/adapter/js/chatbot.js +106 -104
- data/assets/theme/j1/adapter/js/clipboard.js +16 -14
- data/assets/theme/j1/adapter/js/comments.js +24 -22
- data/assets/theme/j1/adapter/js/cookieConsent.js +5 -1
- data/assets/theme/j1/adapter/js/customFunctions.js +12 -10
- data/assets/theme/j1/adapter/js/customModule.js +10 -8
- data/assets/theme/j1/adapter/js/docsearch.js +33 -31
- data/assets/theme/j1/adapter/js/dropdowns.js +16 -14
- data/assets/theme/j1/adapter/js/fab.js +34 -32
- data/assets/theme/j1/adapter/js/gallery.js +22 -20
- data/assets/theme/j1/adapter/js/gemini.js +66 -64
- data/assets/theme/j1/adapter/js/iconPicker.js +31 -29
- data/assets/theme/j1/adapter/js/iconPickerPage.js +11 -9
- data/assets/theme/j1/adapter/js/iframer.js +17 -15
- data/assets/theme/j1/adapter/js/j1.js +146 -143
- data/assets/theme/j1/adapter/js/lazyLoader.js +33 -31
- data/assets/theme/j1/adapter/js/lightbox.js +9 -7
- data/assets/theme/j1/adapter/js/logger.js +11 -9
- data/assets/theme/j1/adapter/js/lunr.js +37 -35
- data/assets/theme/j1/adapter/js/masonry.js +23 -21
- data/assets/theme/j1/adapter/js/masterslider.js +31 -29
- data/assets/theme/j1/adapter/js/mmenu.js +25 -23
- data/assets/theme/j1/adapter/js/navigator.js +43 -41
- data/assets/theme/j1/adapter/js/particles.js +12 -10
- data/assets/theme/j1/adapter/js/rangeSlider.js +21 -19
- data/assets/theme/j1/adapter/js/rouge.js +10 -8
- data/assets/theme/j1/adapter/js/rtable.js +14 -12
- data/assets/theme/j1/adapter/js/rtextResizer.js +10 -8
- data/assets/theme/j1/adapter/js/scroller.js +15 -13
- data/assets/theme/j1/adapter/js/slick.js +18 -16
- data/assets/theme/j1/adapter/js/slimSelect.js +30 -28
- data/assets/theme/j1/adapter/js/speak2me.js +25 -23
- data/assets/theme/j1/adapter/js/swiper.js +13 -11
- data/assets/theme/j1/adapter/js/themeToggler.js +11 -9
- data/assets/theme/j1/adapter/js/themes.js +60 -86
- data/assets/theme/j1/adapter/js/toccer.js +13 -11
- data/assets/theme/j1/adapter/js/translator.js +19 -16
- data/assets/theme/j1/adapter/js/videojs.js +9 -7
- data/assets/theme/j1/adapter/js/waves.js +18 -16
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +19 -52
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/js/template.js +11180 -10968
- data/assets/theme/j1/core/js/template.min.js +13 -18
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +10 -4
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +15 -8
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +2 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +35 -14
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +817 -695
- data/assets/theme/j1/modules/backstretch/js/backstretch.js +2 -2
- data/assets/theme/j1/modules/backstretch/js/backstretch.min.js +1 -1
- data/assets/theme/j1/modules/cookieConsent/js/cookieConsent.js +11 -11
- data/assets/theme/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -1
- data/assets/theme/j1/modules/dropdowns/js/dropdowns.js +2 -2
- data/assets/theme/j1/modules/dropdowns/js/dropdowns.min.js +1 -1
- data/assets/theme/j1/modules/fab/js/fab.js +2 -2
- data/assets/theme/j1/modules/fab/js/fab.min.js +1 -1
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.css +984 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.min.css +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.css +1627 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.min.css +25 -0
- data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.css +1 -1
- data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.min.css +1 -1
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.svg +54 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.ttf +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff2 +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/images/loading.gif +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/loading.gif +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/video-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/vimeo-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/youtube-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.js +2782 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/LICENSE.md +44 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/README.md +37 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.js +890 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.min.js +8 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/lg-video.1.js +585 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.js +275 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.js +230 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.js +160 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.js +223 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.min.js +27 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.js +157 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.js +164 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.js +299 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.js +244 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.min.js +27 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.js +509 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.js +909 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.js +207 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.js +999 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/css/lg-transitions.css +3 -126
- data/assets/theme/j1/modules/lightGallery/css/lg-transitions.min.css +3 -10
- data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.css +70 -237
- data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.min.css +4 -10
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/animation-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/customize-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/dynamic-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/facebook-icon.svg +10 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/googleplus-icon.svg +30 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/html5-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/linked-in.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/module-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button-hover.svg +94 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.svg +93 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/responsive-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/thumb-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/touch-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter-icon.svg +15 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/video1-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.css +276 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +17 -0
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +163 -120
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.0.js +495 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.1.js +513 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.0.js +553 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +1 -1
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.2.js +914 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.min.js +5 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +179 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.min.js +32 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.min.js +6 -7
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +27 -20
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +77 -125
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +11 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +5 -5
- data/assets/theme/j1/modules/lunr/js/j1.js +1 -1
- data/assets/theme/j1/modules/lunr/js/j1.min.js +2 -1
- data/assets/theme/j1/modules/rtable/js/rtable.js +2 -2
- data/assets/theme/j1/modules/rtable/js/rtable.min.js +2 -1
- data/assets/theme/j1/modules/scroller/js/scroller.js +31 -29
- data/assets/theme/j1/modules/scroller/js/scroller.min.js +2 -1
- data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +38 -37
- data/assets/theme/j1/modules/themeSwitcher/js/switcher.min.js +2 -1
- data/assets/theme/j1/modules/translator/js/translator.js +17 -17
- data/assets/theme/j1/modules/translator/js/translator.min.js +1 -1
- data/assets/theme/j1/modules/videoPlayer/tiktoc/README.md +1 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/README.md +151 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/VideoJS.svg +150 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.css +147 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.css +113 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.css +166 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.css +72 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.css +311 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.min.css +19 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.css +1686 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.min.css +13 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.js +65226 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.min.js +55 -0
- data/assets/theme/j1/modules/videojs/assets/README.md +1 -0
- data/assets/theme/j1/modules/videojs/assets/icons/speedometer-medium.svg +35 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.ttf +0 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.woff +0 -0
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +157 -22
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +674 -316
- data/assets/theme/j1/modules/videojs/css/videojs.min.css +4 -3
- data/assets/theme/j1/modules/videojs/js/video.js +15893 -12288
- data/assets/theme/j1/modules/videojs/js/video.min.js +22 -23
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +31 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/README.md +69 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.css +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.min.css +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.js +339 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.min.js +2 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.js +0 -5
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +29 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/README.md +90 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.js +120 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +37 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/README.md +61 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.js +94 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.min.js +20 -0
- data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/skipbuttons/README.md +25 -11
- data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css +7 -6
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +22 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js +11 -9
- data/assets/theme/j1/modules/videojs/plugins/players/dm/js/dailymotion.min.js +19 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.0.js +521 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.1.js +605 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.3.js +643 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.4.js +583 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.5.js +665 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.6.js +642 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.7.js +673 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.min.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm → plugins/players/vm/js}/vimeo.js +13 -12
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +28 -0
- data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.0.js +395 -0
- data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.1.js +401 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.js +13 -11
- data/assets/theme/j1/modules/videojs/plugins/players/wt/js/wistia.min.js +21 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.js +10 -8
- data/assets/theme/j1/modules/videojs/plugins/players/yt/js/youtube.min.js +21 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/amplitude_playlists.yml +140 -80
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +5 -3
- data/lib/starter_web/_data/modules/defaults/gallery.yml +3 -3
- data/lib/starter_web/_data/modules/gallery.yml +83 -87
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/resources.yml +16 -12
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +50 -22
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +37 -16
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/audio/album/emancipator/Alligator.mp3 +0 -0
- data/lib/starter_web/assets/audio/album/emancipator/DabCity.mp3 +0 -0
- data/lib/starter_web/assets/audio/album/emancipator/SeaToSky.mp3 +0 -0
- data/lib/starter_web/assets/audio/album/emancipator/TimeForSpace.mp3 +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/alligator.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/anthem.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/dab-city.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/safe-in-the-steep-cliffs.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/sea-to-sky.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/soon-it-will-be-cold-enough.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/tine-for-space.jpg +0 -0
- data/lib/starter_web/assets/video/poster/vimeo/fall_2011.jpg +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +282 -0
- data/lib/starter_web/pages/public/tour/audio_data.adoc +11 -6
- data/lib/starter_web/pages/public/tour/video_data.adoc +1 -0
- metadata +238 -115
- data/assets/data/swiper_app.2.html +0 -757
- data/assets/data/swiper_app.4.html +0 -769
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +0 -32
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +0 -31
- data/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.min.css +0 -21
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.min.js +0 -19
- data/assets/theme/j1/modules/videojs/js/plugins/players/vm/vimeo.min.js +0 -16
- data/assets/theme/j1/modules/videojs/js/plugins/players/wt/api/src/WistiaPlayer.ts +0 -1617
- data/assets/theme/j1/modules/videojs/js/plugins/players/wt/wistia.min.js +0 -21
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js +0 -21
- data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/anthem.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/from-dusk-to-dawn.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/safe-in-the-steep-cliffs.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/emancipator/from-dusk-to-dawn/soon-it-will-be-cold-enough.jpg +0 -0
- data/lib/starter_web/assets/video/poster/vimeo/stay_colorful.jpg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/animation-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/customize-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/dynamic-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/facebook-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/googleplus-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/html5-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/linked-in.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/module-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button-hover.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/responsive-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/thumb-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/touch-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/video1-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.js +0 -0
- /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.min.js +0 -0
- /data/assets/theme/j1/modules/videoPlayer/dailymotion/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/tiktoc/{js/player.min.js → player.min.js} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/vimeo/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/wistia/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videojs/{css → !v8.12.0/css}/font/video-js-cdn.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys/examples → plugins/controls/hotkeys/!examples}/example.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/LICENSE.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.css +0 -0
- /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.min.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/styles.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/LICENSE.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-controls.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-javascript.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-playlist.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/global-parameters.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/simple.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/switch.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/doc → plugins/players/dm}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/api/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api/doc → plugins/players/dm/api}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/icon/scalable/dailymotion.svg +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/player/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/doc → plugins/players/vm}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api/doc → plugins/players/vm/api}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.uno.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/player.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/doc → plugins/players/wt}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api/doc/Readme.txt → plugins/players/wt/api/README.md} +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api → plugins/players/wt/api/js}/wistia.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/global-parameters.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/simple.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/switch.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-controls.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-javascript.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-list.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-playlist.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/yt/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/doc → plugins/players/yt}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/api → plugins/players/yt/api/js}/youtube.min.js +0 -0
- /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn → !info}/!sound.links.txt +0 -0
- /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/Anthem.mp3 → Anthem.mp3} +0 -0
- /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/DuskToDawn.mp3 → DuskToDawn.mp3} +0 -0
- /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/FirstSnow.mp3 → FirstSnow.mp3} +0 -0
- /data/lib/starter_web/assets/audio/album/emancipator/{from-dusk-to-dawn/SafeInTheSteepCliffs.mp3 → SafeInTheSteepCliffs.mp3} +0 -0
@@ -170,7 +170,7 @@ Asciidoctor::Extensions.register do
|
|
170
170
|
// insert div|caption container AFTER the image
|
171
171
|
image.parentNode.insertBefore(newDiv, image.nextSibling);
|
172
172
|
} else {
|
173
|
-
console.error(`
|
173
|
+
console.error(`No image found at: '${imageSrc}'`);
|
174
174
|
}
|
175
175
|
}
|
176
176
|
|
@@ -183,7 +183,8 @@ Asciidoctor::Extensions.register do
|
|
183
183
|
var j1CoreFinished = (j1.getState() === 'finished') ? true : false;
|
184
184
|
|
185
185
|
if (j1CoreFinished && pageVisible) {
|
186
|
-
var vjs_player
|
186
|
+
var vjs_player = document.getElementById("#{video_id}");
|
187
|
+
var appliedOnce = false;
|
187
188
|
|
188
189
|
// add|skip captions (on poster image)
|
189
190
|
if ('#{caption_enabled}' === 'true') {
|
@@ -212,12 +213,42 @@ Asciidoctor::Extensions.register do
|
|
212
213
|
var vjsPlayerCustomButtons = ("#{custom_buttons}" === 'true') ? true : false;
|
213
214
|
|
214
215
|
if (vjsPlayerExist && vjsPlayerCustomButtons) {
|
216
|
+
|
215
217
|
// apply player customization on 'player ready'
|
218
|
+
// -------------------------------------------------------------
|
216
219
|
videojs("#{video_id}").ready(function() {
|
217
|
-
|
220
|
+
const vjsPlayer = this;
|
221
|
+
|
222
|
+
// add custom progressControlSilder
|
223
|
+
// -----------------------------------------------------------
|
224
|
+
|
225
|
+
// create customControlContainer for progressControlSilder|time (display) elements
|
226
|
+
const customProgressContainer = vjsPlayer.controlBar.addChild('Component', {
|
227
|
+
el: videojs.dom.createEl('div', {
|
228
|
+
className: 'vjs-theme-uno custom-progressbar-container'
|
229
|
+
})
|
230
|
+
});
|
231
|
+
|
232
|
+
// move progressControlSlider into customControlContainer
|
233
|
+
const progressControlSlider = vjsPlayer.controlBar.progressControl;
|
234
|
+
if (progressControlSlider) {
|
235
|
+
customProgressContainer.el().appendChild(progressControlSlider.el());
|
236
|
+
}
|
237
|
+
|
238
|
+
// move currentTimeDisplay BEFORE the progressControlSilder
|
239
|
+
const currentTimeDisplay = vjsPlayer.controlBar.currentTimeDisplay;
|
240
|
+
if (currentTimeDisplay) {
|
241
|
+
customProgressContainer.el().insertBefore(currentTimeDisplay.el(), progressControlSlider.el());
|
242
|
+
}
|
243
|
+
|
244
|
+
// move the durationDisplay AFTER the progressControlSilder
|
245
|
+
const durationDisplay = vjsPlayer.controlBar.durationDisplay;
|
246
|
+
if (durationDisplay) {
|
247
|
+
customProgressContainer.el().appendChild(durationDisplay.el());
|
248
|
+
}
|
218
249
|
|
219
250
|
// add|skip playbackRates
|
220
|
-
//
|
251
|
+
// -----------------------------------------------------------
|
221
252
|
if (videojsConfig.playbackRates.enabled) {
|
222
253
|
vjsPlayer.playbackRates(vjsPlaybackRates);
|
223
254
|
}
|
@@ -260,6 +291,7 @@ Asciidoctor::Extensions.register do
|
|
260
291
|
}
|
261
292
|
|
262
293
|
// add|skip skipButtons plugin
|
294
|
+
// -----------------------------------------------------------
|
263
295
|
if (piSkipButtons.enabled) {
|
264
296
|
var backwardIndex = piSkipButtons.backward;
|
265
297
|
var forwardIndex = piSkipButtons.forwardIndex;
|
@@ -279,16 +311,6 @@ Asciidoctor::Extensions.register do
|
|
279
311
|
});
|
280
312
|
}
|
281
313
|
|
282
|
-
// add|skip zoomButtons plugin
|
283
|
-
if (piZoomButtons.enabled && vjsPlayerType === 'native') {
|
284
|
-
vjsPlayer.zoomButtons({
|
285
|
-
moveX: piZoomButtons.moveX,
|
286
|
-
moveY: piZoomButtons.moveY,
|
287
|
-
rotate: piZoomButtons.rotate,
|
288
|
-
zoom: piZoomButtons.zoom
|
289
|
-
});
|
290
|
-
}
|
291
|
-
|
292
314
|
// set start position of current video (on play)
|
293
315
|
// -----------------------------------------------------------
|
294
316
|
var appliedOnce = false;
|
@@ -308,7 +330,6 @@ Asciidoctor::Extensions.register do
|
|
308
330
|
}, 10); // END 'dependencies_met_vjs_player_exist'
|
309
331
|
|
310
332
|
}); // END 'document ready'
|
311
|
-
|
312
333
|
</script>
|
313
334
|
)
|
314
335
|
|
@@ -317,4 +338,4 @@ Asciidoctor::Extensions.register do
|
|
317
338
|
end
|
318
339
|
|
319
340
|
block_macro YouTubeBlockMacro
|
320
|
-
end
|
341
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,282 @@
|
|
1
|
+
---
|
2
|
+
title: VideoJS over YT
|
3
|
+
title_extention: Custom progressControlSlider
|
4
|
+
tagline: Custom progressControlSlider
|
5
|
+
|
6
|
+
date: 2025-06-05
|
7
|
+
last_modified: 2025-06-08
|
8
|
+
|
9
|
+
description: >
|
10
|
+
Test the VideoJS ADOC Macro for
|
11
|
+
custom AJS progressControlSilder
|
12
|
+
keywords: >
|
13
|
+
open source, free, template, jekyll,
|
14
|
+
jekyllone, web, sites, static, jamstack,
|
15
|
+
bootstrap, html, html5, video, support,
|
16
|
+
videojs
|
17
|
+
|
18
|
+
categories: [ Tester ]
|
19
|
+
tags: [ Module, VideoJS ]
|
20
|
+
|
21
|
+
image:
|
22
|
+
path: /assets/image/module/attic/markus-spiske-1920x1280.jpg
|
23
|
+
width: 1920
|
24
|
+
height: 1280
|
25
|
+
|
26
|
+
attic: false
|
27
|
+
regenerate: false
|
28
|
+
personalization: true
|
29
|
+
permalink: /pages/public/tester/videojs_yt/
|
30
|
+
|
31
|
+
resources: [ videojs ]
|
32
|
+
resource_options:
|
33
|
+
- toccer:
|
34
|
+
collapseDepth: 3
|
35
|
+
- attic:
|
36
|
+
slides:
|
37
|
+
- url: /assets/image/module/attic/markus-spiske-1920x1280.jpg
|
38
|
+
alt: Swiper Tester
|
39
|
+
---
|
40
|
+
|
41
|
+
// Page Initializer
|
42
|
+
// =============================================================================
|
43
|
+
// Enable the Liquid Preprocessor
|
44
|
+
:page-liquid:
|
45
|
+
|
46
|
+
// Attribute settings for section control
|
47
|
+
//
|
48
|
+
:swiper--features: false
|
49
|
+
|
50
|
+
// Set (local) page attributes here
|
51
|
+
// -----------------------------------------------------------------------------
|
52
|
+
// :page--attr: <attr-value>
|
53
|
+
|
54
|
+
// Load Liquid procedures
|
55
|
+
// -----------------------------------------------------------------------------
|
56
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
57
|
+
|
58
|
+
// Load page attributes
|
59
|
+
// -----------------------------------------------------------------------------
|
60
|
+
{% include {{load_attributes}} scope="global" %}
|
61
|
+
|
62
|
+
|
63
|
+
// Page content
|
64
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
65
|
+
[role="dropcap"]
|
66
|
+
Swiper, the free and most modern mobile touch slider with hardware accelerated
|
67
|
+
transitions and amazing native behavior. It is intended to be used in mobile
|
68
|
+
websites, mobile web apps, and mobile native/hybrid apps.
|
69
|
+
|
70
|
+
// Include sub-documents (if any)
|
71
|
+
// -----------------------------------------------------------------------------
|
72
|
+
== VideoJS Player over YouTube
|
73
|
+
|
74
|
+
lorem:sentences[3]
|
75
|
+
|
76
|
+
++++
|
77
|
+
<style>
|
78
|
+
|
79
|
+
/* -----------------------------------------------------------------------------
|
80
|
+
styles moved to VJS theme uno at:
|
81
|
+
assets/theme/j1/modules/videojs/css/themes/uno.css
|
82
|
+
*/
|
83
|
+
|
84
|
+
</style>
|
85
|
+
++++
|
86
|
+
|
87
|
+
++++
|
88
|
+
<div class="video-title">
|
89
|
+
<i class="mdib mdib-video mdib-24px mr-2"></i>
|
90
|
+
The Breathtaking Beauty of Nature
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div class="mb-8">
|
94
|
+
<video
|
95
|
+
id="2rtQOsWaAXc"
|
96
|
+
class="video-js vjs-theme-uno"
|
97
|
+
controls
|
98
|
+
width="640"
|
99
|
+
height="360"
|
100
|
+
poster="//img.youtube.com/vi/IUN664s7N-c/maxresdefault.jpg" alt="Beauty of Nature"
|
101
|
+
aria-label="The Breathtaking Beauty of Nature"
|
102
|
+
data-setup='{
|
103
|
+
"fluid" : true,
|
104
|
+
"techOrder": [
|
105
|
+
"youtube", "html5"
|
106
|
+
],
|
107
|
+
"sources": [{
|
108
|
+
"type": "video/youtube",
|
109
|
+
"src": "//youtube.com/watch?v=IUN664s7N-c"
|
110
|
+
}],
|
111
|
+
"controlBar": {
|
112
|
+
"pictureInPictureToggle": false,
|
113
|
+
"volumePanel": {
|
114
|
+
"inline": false
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}'
|
118
|
+
></video>
|
119
|
+
</div>
|
120
|
+
++++
|
121
|
+
|
122
|
+
++++
|
123
|
+
<script>
|
124
|
+
|
125
|
+
$(function() {
|
126
|
+
// ===========================================================================
|
127
|
+
// take over VideoJS configuration data (JSON data from Ruby)
|
128
|
+
// ---------------------------------------------------------------------------
|
129
|
+
//
|
130
|
+
const videojsDefaultConfigJson = '{"description":{"title":"J1 VideoJS","scope":"Default settings","location":"_data/modules/defaults/videojs.yml"},"defaults":{"enabled":false,"playbackRates":{"enabled":false,"values":[0.25,0.5,1,1.5,2]},"players":{"youtube":{"autoplay":0,"cc_load_policy":0,"controls":0,"disablekb":1,"enablejsapi":1,"fs":0,"iv_load_policy":3,"loop":0,"modestbranding":1,"rel":0,"showinfo":0,"default_poster":"/assets/image/icon/videojs/videojs-poster.png","poster":"maxresdefault.jpg","end":true,"start":true}},"plugins":{"autoCaption":{"enabled":false},"hotKeys":{"enabled":false,"seekStep":15,"volumeStep":0.1,"alwaysCaptureHotkeys":true,"captureDocumentHotkeys":false,"hotkeysFocusElementFilter":"function () { return false }","enableFullscreen":true,"enableHoverScroll":true,"enableInactiveFocus":true,"enableJogStyle":false,"enableMute":true,"enableModifiersForNumbers":true,"enableNumbers":false,"enableVolumeScroll":true,"skipInitialFocus":false},"skipButtons":{"enabled":false,"surroundPlayButton":false,"backwardIndex":1,"forwardIndex":1,"forward":10,"backward":10},"zoomButtons":{"enabled":false,"moveX":0,"moveY":0,"rotate":0,"zoom":1}}}}';
|
131
|
+
|
132
|
+
const videojsUserConfigJson = '{"description":{"title":"J1 VideoJS","scope":"User settings","location":"_data/modules/videojs.yml"},"settings":{"enabled":true,"playbackRates":{"enabled":true},"plugins":{"hotKeys":{"enabled":false,"enableInactiveFocus":false},"skipButtons":{"enabled":true,"surroundPlayButton":true},"zoomButtons":{"enabled":false}}}}';
|
133
|
+
|
134
|
+
// ===========================================================================
|
135
|
+
// create config objects from JSON data
|
136
|
+
// ---------------------------------------------------------------------------
|
137
|
+
const videojsDefaultSettings = JSON.parse(videojsDefaultConfigJson);
|
138
|
+
const videojsUserSettings = JSON.parse(videojsUserConfigJson);
|
139
|
+
const videojsConfig = $.extend(true, {}, videojsDefaultSettings.defaults, videojsUserSettings.settings);
|
140
|
+
|
141
|
+
// ===========================================================================
|
142
|
+
// VideoJS player settings
|
143
|
+
// ---------------------------------------------------------------------------
|
144
|
+
const vjsPlayerType = 'ytp';
|
145
|
+
const vjsPlaybackRates = videojsConfig.playbackRates.values;
|
146
|
+
|
147
|
+
// ===========================================================================
|
148
|
+
// VideoJS plugin settings
|
149
|
+
// -----------------------------------------------------------------
|
150
|
+
const piAutoCaption = videojsConfig.plugins.autoCaption;
|
151
|
+
const piHotKeys = videojsConfig.plugins.hotKeys;
|
152
|
+
const piSkipButtons = videojsConfig.plugins.skipButtons;
|
153
|
+
const piZoomButtons = videojsConfig.plugins.zoomButtons;
|
154
|
+
|
155
|
+
// ===========================================================================
|
156
|
+
// helper functions
|
157
|
+
// ---------------------------------------------------------------------------
|
158
|
+
function addCaptionAfterImage(imageSrc) {
|
159
|
+
const image = document.querySelector(`img[src="${imageSrc}"]`);
|
160
|
+
|
161
|
+
if (image) {
|
162
|
+
// create div|caption container
|
163
|
+
const newDiv = document.createElement('div');
|
164
|
+
newDiv.classList.add('caption');
|
165
|
+
newDiv.textContent = 'The Breathtaking Beauty of Nature';
|
166
|
+
|
167
|
+
// insert div|caption container AFTER the image
|
168
|
+
image.parentNode.insertBefore(newDiv, image.nextSibling);
|
169
|
+
} else {
|
170
|
+
console.error(`No image found at: ${imageSrc}`);
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
// ===========================================================================
|
175
|
+
// initialize the VideoJS player (on page ready)
|
176
|
+
// ---------------------------------------------------------------------------
|
177
|
+
var dependencies_met_page_ready = setInterval(function(options) {
|
178
|
+
var pageState = $('#content').css("display");
|
179
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
180
|
+
var j1CoreFinished = (j1.getState() === 'finished') ? true : false;
|
181
|
+
|
182
|
+
if (j1CoreFinished && pageVisible) {
|
183
|
+
const vjs_player = document.getElementById("2rtQOsWaAXc");
|
184
|
+
|
185
|
+
// add captions (on poster image)
|
186
|
+
addCaptionAfterImage('//img.youtube.com/vi/IUN664s7N-c/maxresdefault.jpg');
|
187
|
+
|
188
|
+
// scroll page to the players top position
|
189
|
+
// -----------------------------------------------------------------------
|
190
|
+
vjs_player.addEventListener('click', function(event) {
|
191
|
+
const targetDiv = document.getElementById("2rtQOsWaAXc");
|
192
|
+
const targetDivPosition = targetDiv.offsetTop;
|
193
|
+
const scrollOffset = (window.innerWidth >= 720) ? -130 : -110;
|
194
|
+
|
195
|
+
// scroll player to top position
|
196
|
+
window.scrollTo(0, targetDivPosition + scrollOffset);
|
197
|
+
});// END EventListener 'click'
|
198
|
+
|
199
|
+
clearInterval(dependencies_met_page_ready);
|
200
|
+
}
|
201
|
+
}, 10);
|
202
|
+
|
203
|
+
// customize the yt player created
|
204
|
+
// ---------------------------------------------------------------------------
|
205
|
+
var dependencies_met_vjs_player_exist = setInterval(function(options) {
|
206
|
+
var vjsPlayerExist = document.getElementById("2rtQOsWaAXc") ? true : false;
|
207
|
+
|
208
|
+
if (vjsPlayerExist) {
|
209
|
+
|
210
|
+
// apply player customization on 'player ready'
|
211
|
+
videojs("2rtQOsWaAXc").ready(function() {
|
212
|
+
const vjsPlayer = this;
|
213
|
+
|
214
|
+
// create customControlContainer for progressControlSilder|time (display) elements
|
215
|
+
const customProgressContainer = vjsPlayer.controlBar.addChild('Component', {
|
216
|
+
el: videojs.dom.createEl('div', {
|
217
|
+
className: 'vjs-theme-uno custom-progressbar-container'
|
218
|
+
})
|
219
|
+
});
|
220
|
+
|
221
|
+
// move progressControlSlider into customControlContainer
|
222
|
+
const progressControlSlider = vjsPlayer.controlBar.progressControl;
|
223
|
+
if (progressControlSlider) {
|
224
|
+
customProgressContainer.el().appendChild(progressControlSlider.el());
|
225
|
+
}
|
226
|
+
|
227
|
+
// move currentTimeDisplay BEFORE the progressControlSilder
|
228
|
+
const currentTimeDisplay = vjsPlayer.controlBar.currentTimeDisplay;
|
229
|
+
if (currentTimeDisplay) {
|
230
|
+
customProgressContainer.el().insertBefore(currentTimeDisplay.el(), progressControlSlider.el());
|
231
|
+
}
|
232
|
+
|
233
|
+
// move the durationDisplay AFTER the progressControlSilder
|
234
|
+
const durationDisplay = vjsPlayer.controlBar.durationDisplay;
|
235
|
+
if (durationDisplay) {
|
236
|
+
customProgressContainer.el().appendChild(durationDisplay.el());
|
237
|
+
}
|
238
|
+
|
239
|
+
// add|skip playbackRates
|
240
|
+
if (videojsConfig.playbackRates.enabled) {
|
241
|
+
vjsPlayer.playbackRates(vjsPlaybackRates);
|
242
|
+
}
|
243
|
+
|
244
|
+
// add|skip skipButtons plugin
|
245
|
+
if (piSkipButtons.enabled) {
|
246
|
+
var backwardIndex = piSkipButtons.backward;
|
247
|
+
var forwardIndex = piSkipButtons.forwardIndex;
|
248
|
+
|
249
|
+
// property 'surroundPlayButton' takes precendence
|
250
|
+
if (piSkipButtons.surroundPlayButton) {
|
251
|
+
var backwardIndex = 0;
|
252
|
+
var forwardIndex = 1;
|
253
|
+
}
|
254
|
+
|
255
|
+
vjsPlayer.skipButtons({
|
256
|
+
backwardIndex: backwardIndex,
|
257
|
+
forwardIndex: forwardIndex,
|
258
|
+
backward: piSkipButtons.backward,
|
259
|
+
forward: piSkipButtons.forward,
|
260
|
+
});
|
261
|
+
}
|
262
|
+
|
263
|
+
// set start position of current video (on play)
|
264
|
+
// ---------------------------------------------------------------------
|
265
|
+
var appliedOnce = false;
|
266
|
+
vjsPlayer.on("play", function() {
|
267
|
+
var startFromSecond = new Date('1970-01-01T' + "00:00:00" + 'Z').getTime() / 1000;
|
268
|
+
if (!appliedOnce) {
|
269
|
+
vjsPlayer.currentTime(startFromSecond);
|
270
|
+
appliedOnce = true;
|
271
|
+
}
|
272
|
+
});
|
273
|
+
|
274
|
+
}); // eventListener on 'player ready'
|
275
|
+
|
276
|
+
clearInterval(dependencies_met_vjs_player_exist);
|
277
|
+
} // END if 'vjsPlayerExist'
|
278
|
+
}, 10); // END 'dependencies_met_vjs_player_exist'
|
279
|
+
}); // END 'document ready'
|
280
|
+
|
281
|
+
</script>
|
282
|
+
++++
|
@@ -135,6 +135,9 @@ volume adjustment, while taking up less screen space.
|
|
135
135
|
.Emancipator · From Dusk To Dawn
|
136
136
|
amplitude::emancipator_mini[role="mb-4"]
|
137
137
|
|
138
|
+
// .Royalty Free Music · Disco 80th
|
139
|
+
// amplitude::disco_mini[role="mb-4"]
|
140
|
+
|
138
141
|
Mini players are beneficial when you want to listen to audio in the
|
139
142
|
background without dedicating the entire screen to the player. They
|
140
143
|
are commonly found on music streaming services, podcast platforms, and
|
@@ -153,7 +156,7 @@ overwhelming or dominating the content around it.
|
|
153
156
|
amplitude::emancipator_compact[role="mb-4"]
|
154
157
|
|
155
158
|
// .Royalty Free Music · Disco 80th
|
156
|
-
// amplitude::disco_compact[role="mb-
|
159
|
+
// amplitude::disco_compact[role="mb-4"]
|
157
160
|
|
158
161
|
The player aims to balance functionality and space efficiency, ensuring users
|
159
162
|
can easily access and control the audio playback without sacrificing too much
|
@@ -168,10 +171,10 @@ to a design or layout that minimizes the component's space while maintaining
|
|
168
171
|
its functionality and usability.
|
169
172
|
|
170
173
|
.Emancipator · From Dusk To Dawn
|
171
|
-
amplitude::emancipator_large[role="mb-
|
174
|
+
amplitude::emancipator_large[role="mb-4"]
|
172
175
|
|
173
|
-
.Royalty Free Music · Disco 80th
|
174
|
-
amplitude::disco_large[role="mb-4"]
|
176
|
+
// .Royalty Free Music · Disco 80th
|
177
|
+
// amplitude::disco_large[role="mb-4"]
|
175
178
|
|
176
179
|
The large design provides the full functionality of an audio player to ensure
|
177
180
|
users can easily control audio playback. The player behaves similarly to a
|
@@ -180,7 +183,7 @@ no need to open other widgets.
|
|
180
183
|
|
181
184
|
|
182
185
|
[role="mt-5"]
|
183
|
-
== J1 AmplitudeJS on
|
186
|
+
== J1 AmplitudeJS on YouTube
|
184
187
|
|
185
188
|
The example demonstrates playing *Audio* track from *YouTube Video* using an
|
186
189
|
AmplitudJS player. The J1 template uses the video *plugin ytp* to extend the
|
@@ -199,6 +202,9 @@ for native audio files.
|
|
199
202
|
.Bea and her Business · YouTube 2025
|
200
203
|
amplitude::bea_yt_large[role="mb-5"]
|
201
204
|
|
205
|
+
.Diana Krall · YouTube
|
206
|
+
amplitude::diana_krall_yt_large[role="mb-4"]
|
207
|
+
|
202
208
|
[role="mt-4 mb-5"]
|
203
209
|
[NOTE]
|
204
210
|
====
|
@@ -225,4 +231,3 @@ HTML5 video for local content and from online sources on the Internet.
|
|
225
231
|
|
226
232
|
[role="mb-8"]
|
227
233
|
Incredible? See the next example page link:{url-tour--video_data}[Video Player].
|
228
|
-
|