j1-template 2020.0.5 → 2020.0.10
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_post.html +2 -2
- data/_includes/themes/j1/modules/navigator/generator.html +8 -8
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +8 -3
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/{lib/starter_web/apps → apps}/public/cc/cc.yml +0 -0
- data/{lib/starter_web/apps → apps}/public/cc/index.adoc +0 -0
- data/assets/data/mmenu.html +1 -1
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/search.yml +32 -10
- data/assets/data/ssm.html +16 -12
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/algolia.js +24 -16
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/attic.js +35 -34
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/carousel.js +34 -23
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/cookie_consent.js +8 -0
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/framer.js +11 -4
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/gallery_customizer.js +16 -8
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/j1.js +87 -139
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/justified_gallery.js +50 -33
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/lightbox.js +9 -1
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/logger.js +12 -4
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/mmenu.js +35 -14
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/navigator.js +77 -75
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/searcher.js +10 -2
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/ssm.js +89 -69
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/themer.js +11 -3
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/toccer.js +54 -156
- data/assets/themes/j1/core/css/theme_extensions.css +599 -118
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/uno.css +609 -118
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +4 -1
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +40 -30
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/ajax-loader.gif +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/grabbing.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl-logo.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl.video.play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iconify/js/iconify.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/index.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/two.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/LICENSE +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/README.md +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/.csslintrc +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/justifiedGallery.less +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.eot +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.ttf +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.woff +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/loading.gif +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/video-play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/vimeo-play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/youtube-play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/animation-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/customize-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/dynamic-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/facebook-icon.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/googleplus-icon.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/html5-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/linked-in.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/module-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/responsive-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/thumb-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/touch-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter-icon.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/video1-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/colorful/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/github/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/igorpro/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/molokai/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai.sublime/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/pastie/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/thankful_eyes/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/tulip/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/froogaloop/js/froogaloop2.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js.map +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js.map +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -3
- data/lib/starter_web/_data/modules/defaults/ssm.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/toccer.yml +9 -14
- data/lib/starter_web/_data/modules/jekyll_search.yml +3 -2
- data/lib/starter_web/_data/modules/navigator.yml +4 -1
- data/lib/starter_web/_data/modules/ssm.yml +10 -1
- data/lib/starter_web/_data/modules/toccer.yml +15 -63
- data/lib/starter_web/_data/resources.yml +5 -54
- data/lib/starter_web/_data/template_settings.yml +13 -13
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/about/about_site.adoc +3 -3
- data/lib/starter_web/pages/public/about/become_a_patron.adoc +9 -11
- data/lib/starter_web/pages/public/clear_button.adoc +121 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +9 -4
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +6 -7
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +7 -3
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +22 -24
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +27 -30
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +54 -48
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +5 -3
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +159 -175
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/lib/starter_web/_data/modules/back2top.yml +0 -40
- data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
- data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
- data/lib/starter_web/_data/modules/navigator.yml.new +0 -232
- data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
- data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
- data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js.new +0 -432
- data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +0 -384
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +0 -384
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +0 -95
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +0 -95
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +0 -11
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +0 -11
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +0 -118
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +0 -118
@@ -64,11 +64,16 @@ regenerate: true
|
|
64
64
|
# Adapter generated: {{site.time}}
|
65
65
|
# -----------------------------------------------------------------------------
|
66
66
|
*/
|
67
|
+
|
68
|
+
// -----------------------------------------------------------------------------
|
69
|
+
// ESLint shimming
|
70
|
+
// -----------------------------------------------------------------------------
|
71
|
+
/* eslint indent: "off" */
|
72
|
+
// -----------------------------------------------------------------------------
|
67
73
|
'use strict';
|
68
74
|
|
69
75
|
{% comment %} Main
|
70
76
|
-------------------------------------------------------------------------------- {% endcomment %}
|
71
|
-
// j1.JustifiedGallery = (function (j1, window) {
|
72
77
|
j1.adapter['jf_gallery'] = (function (j1, window) {
|
73
78
|
|
74
79
|
{% comment %} Global variables
|
@@ -95,7 +100,6 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
95
100
|
// initialize state flag
|
96
101
|
j1.adapter.jf_gallery.state = 'pending';
|
97
102
|
|
98
|
-
|
99
103
|
// -----------------------------------------------------------------------
|
100
104
|
// Default module settings
|
101
105
|
// -----------------------------------------------------------------------
|
@@ -108,7 +112,9 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
108
112
|
-------------------------------------------------------------------------- {% endcomment %}
|
109
113
|
// Load module DEFAULTS|CONFIG
|
110
114
|
//
|
115
|
+
/* eslint-disable */
|
111
116
|
moduleOptions = $.extend({}, {{jf_gallery_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
117
|
+
/* eslint-enable */
|
112
118
|
|
113
119
|
if (typeof settings !== 'undefined') {
|
114
120
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -196,23 +202,23 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
196
202
|
$('#{{gallery_id}}').before(gallery_title);
|
197
203
|
{% endif %}
|
198
204
|
|
199
|
-
$('#{{gallery_id}}').addClass(
|
205
|
+
$('#{{gallery_id}}').addClass('justified-gallery {{css_classes}}');
|
200
206
|
|
201
207
|
{% if gallery_type == "image" %}
|
202
208
|
// Collect image gallery data from data file (xhr_data_path)
|
203
209
|
$.getJSON('{{jf_gallery_options.xhr_data_path}}', function (data) {
|
204
210
|
var content = '';
|
205
|
-
var gallery_class = 'justified-gallery'
|
211
|
+
var gallery_class = 'justified-gallery';
|
206
212
|
{% if lightbox == "lg" %}
|
207
213
|
gallery_class += ' light-gallery ';
|
208
214
|
{% endif %}
|
209
215
|
|
210
|
-
for (var i in data[
|
211
|
-
var img = data[
|
212
|
-
|
213
|
-
var captions_gallery = data[
|
214
|
-
var captions_lightbox = data[
|
215
|
-
var lightbox =
|
216
|
+
for (var i in data['{{item.gallery.id}}']) {
|
217
|
+
var img = data['{{item.gallery.id}}'][i].img;
|
218
|
+
// var img = data['{{item.gallery.id}}'][i].image_path + '/' + data['{{item.gallery.id}}'][i].poster;
|
219
|
+
var captions_gallery = data['{{item.gallery.id}}'][i].captions_gallery;
|
220
|
+
var captions_lightbox = data['{{item.gallery.id}}'][i].captions_lightbox;
|
221
|
+
var lightbox = '{{lightbox}}';
|
216
222
|
|
217
223
|
if (captions_lightbox != null && lightbox == 'lg') {
|
218
224
|
content += '<a data-sub-html="' +captions_lightbox+ '" ';
|
@@ -227,25 +233,25 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
227
233
|
|
228
234
|
} // END for
|
229
235
|
|
230
|
-
{% elsif gallery_type == "video-html5" or gallery_type == "video-online" %}
|
236
|
+
{% elsif gallery_type == "video-html5" or gallery_type == "video-online" %}
|
231
237
|
|
232
238
|
// Collect html5 video gallery data from data file (xhr_data_path)
|
233
239
|
$.getJSON('{{jf_gallery_options.xhr_data_path}}', function (data) {
|
234
240
|
var play_button = '/assets/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png';
|
235
241
|
var content = '';
|
236
|
-
var gallery_class = 'justified-gallery'
|
242
|
+
var gallery_class = 'justified-gallery';
|
237
243
|
{% if lightbox == "lg" %}
|
238
244
|
gallery_class += ' light-gallery ';
|
239
245
|
{% endif %}
|
240
246
|
|
241
|
-
for (var i in data[
|
242
|
-
|
243
|
-
var img = data[
|
244
|
-
var captions_gallery = data[
|
245
|
-
var captions_lightbox = data[
|
246
|
-
var video_id = data[
|
247
|
-
var video = data[
|
248
|
-
var lightbox =
|
247
|
+
for (var i in data['{{item.gallery.id}}']) {
|
248
|
+
// var img = data['{{item.gallery.id}}'][i].img;
|
249
|
+
var img = data['{{item.gallery.id}}'][i].image_path + '/' + data['{{item.gallery.id}}'][i].poster;
|
250
|
+
var captions_gallery = data['{{item.gallery.id}}'][i].captions_gallery;
|
251
|
+
var captions_lightbox = data['{{item.gallery.id}}'][i].captions_lightbox;
|
252
|
+
var video_id = data['{{item.gallery.id}}'][i].video_id;
|
253
|
+
var video = data['{{item.gallery.id}}'][i].video;
|
254
|
+
var lightbox = '{{lightbox}}';
|
249
255
|
|
250
256
|
if (captions_lightbox != null && lightbox == 'lg') {
|
251
257
|
content += '<a data-sub-html="' +captions_lightbox+ '" ';
|
@@ -269,11 +275,11 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
269
275
|
} // END for
|
270
276
|
|
271
277
|
var hidden_video_div = '';
|
272
|
-
for (var i in data[
|
273
|
-
var video = data[
|
274
|
-
var poster = data[
|
275
|
-
var caption = data[
|
276
|
-
var video_id = data[
|
278
|
+
for (var i in data['{{item.gallery.id}}']) {
|
279
|
+
var video = data['{{item.gallery.id}}'][i].video_path + '/' + data['{{item.gallery.id}}'][i].video;
|
280
|
+
var poster = data['{{item.gallery.id}}'][i].image_path + '/' + data['{{item.gallery.id}}'][i].poster;
|
281
|
+
var caption = data['{{item.gallery.id}}'][i].captions_lightbox;
|
282
|
+
var video_id = data['{{item.gallery.id}}'][i].video_id;
|
277
283
|
var video_type = video.substr(video.lastIndexOf('.') + 1);
|
278
284
|
hidden_video_div += '<div style="display:none;" id="' +video_id+ '">' + '\n';
|
279
285
|
hidden_video_div += ' <video class="lg-video-object lg-html5 video-js vjs-default-skin"' + '\n';
|
@@ -284,59 +290,70 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
284
290
|
hidden_video_div += '</div>' + '\n';
|
285
291
|
}
|
286
292
|
$('#{{ gallery_id }}').before(hidden_video_div);
|
287
|
-
|
293
|
+
|
288
294
|
{% endif %}
|
289
295
|
|
290
296
|
// Hide gallery container (until lightGallery is NOT initialized)
|
291
297
|
// and place HTML markup
|
292
|
-
$(
|
298
|
+
$('#{{gallery_id}}').hide().html(content);
|
293
299
|
// Initialize and run the gallery using individual gallery|lightbox options
|
294
300
|
{% if lightbox == "lg" %}
|
295
|
-
var gallery_selector = $(
|
301
|
+
var gallery_selector = $('#{{gallery_id}}');
|
296
302
|
if (options !== undefined) {
|
297
303
|
// lightbox initialized on COMPLETE event of justifiedGallery
|
304
|
+
/* eslint-disable */
|
298
305
|
gallery_selector.justifiedGallery({
|
299
306
|
{% for option in item.gallery.gallery_options %}
|
300
307
|
{{option[0] | json}}: {{option[1] | json}},
|
301
308
|
{% endfor %}
|
302
309
|
})
|
310
|
+
/* eslint-enable */
|
303
311
|
.on('jg.complete', function (e) {
|
304
312
|
e.stopPropagation();
|
313
|
+
|
305
314
|
// options enabled
|
315
|
+
/* eslint-disable */
|
306
316
|
gallery_selector.lightGallery({
|
307
317
|
{% for option in item.gallery.lightbox_options %}
|
308
318
|
{{option[0] | json}}: {{option[1] | json}},
|
309
319
|
{% endfor %}
|
310
320
|
});
|
321
|
+
/* eslint-enable */
|
322
|
+
|
311
323
|
// Initialize instance variable of lightGallery (for later access)
|
312
324
|
j1['{{gallery_id}}'] = gallery_selector.data('lightGallery');
|
313
325
|
// Show gallery DIV element if jg has completed *and* the
|
314
326
|
// lightbox is initialized (delayed)
|
315
|
-
setTimeout(function() {
|
316
|
-
$(
|
327
|
+
setTimeout(function() {
|
328
|
+
$('#{{gallery_id}}').show();
|
317
329
|
logText = 'initializing gallery finished on id: #{{gallery_id}}';
|
318
330
|
logger.info(logText);
|
319
331
|
}, {{show_delay}});
|
320
332
|
});
|
321
333
|
} else {
|
334
|
+
/* eslint-disable */
|
322
335
|
gallery_selector.justifiedGallery({
|
323
336
|
{% for option in item.gallery.gallery_options %}
|
324
337
|
{{option[0] | json}}: {{option[1] | json}},
|
325
338
|
{% endfor %}
|
339
|
+
/* eslint-enable */
|
326
340
|
}).on('jg.complete', function (e) {
|
327
341
|
e.stopPropagation();
|
328
342
|
// lightbox initialized on COMPLETE event of justifiedGallery
|
343
|
+
/* eslint-disable */
|
329
344
|
gallery_selector.lightGallery({
|
330
345
|
{% for option in item.gallery.lightbox_options %}
|
331
346
|
{{option[0] | json}}: {{option[1] | json}},
|
332
347
|
{% endfor %}
|
333
348
|
});
|
349
|
+
/* eslint-enable */
|
350
|
+
|
334
351
|
// Initialize instance variable of lightGallery (for later access)
|
335
352
|
j1['{{gallery_id}}'] = gallery_selector.data('lightGallery');
|
336
353
|
// Show gallery DIV element if jg has completed *and* the
|
337
354
|
// lightbox is initialized (delayed)
|
338
|
-
setTimeout(function() {
|
339
|
-
$(
|
355
|
+
setTimeout(function() {
|
356
|
+
$('#{{gallery_id}}').show();
|
340
357
|
logText = 'initializing gallery finished on id: #{{gallery_id}}';
|
341
358
|
logger.info(logText);
|
342
359
|
}, {{show_delay}});
|
@@ -400,4 +417,4 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
400
417
|
|
401
418
|
{% endcapture %}
|
402
419
|
{{cache | strip_empty_lines}}
|
403
|
-
{% assign cache = nil %}
|
420
|
+
{% assign cache = nil %}
|
@@ -68,6 +68,12 @@ regenerate: false
|
|
68
68
|
# Adapter generated: {{site.time}}
|
69
69
|
# -----------------------------------------------------------------------------
|
70
70
|
*/
|
71
|
+
|
72
|
+
// -----------------------------------------------------------------------------
|
73
|
+
// ESLint shimming
|
74
|
+
// -----------------------------------------------------------------------------
|
75
|
+
/* eslint indent: "off" */
|
76
|
+
// -----------------------------------------------------------------------------
|
71
77
|
'use strict';
|
72
78
|
|
73
79
|
{% comment %} Main
|
@@ -108,6 +114,7 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
108
114
|
logger.info('state: ' + _this.getState());
|
109
115
|
logger.info('module is being initialized');
|
110
116
|
|
117
|
+
/* eslint-disable */
|
111
118
|
lightbox.option({
|
112
119
|
alwaysShowNavOnTouchDevices: {{ lightbox_options.alwaysShowNavOnTouchDevices | json }},
|
113
120
|
albumLabel: {{ lightbox_options.albumLabel | json }},
|
@@ -122,6 +129,7 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
122
129
|
showImageNumberLabel: {{ lightbox_options.showImageNumberLabel | json }},
|
123
130
|
wrapAround: {{ lightbox_options.wrapAround | json }}
|
124
131
|
});
|
132
|
+
/* eslint-enable */
|
125
133
|
|
126
134
|
_this.setState('finished');
|
127
135
|
logger.info('state: ' + _this.getState());
|
@@ -178,4 +186,4 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
178
186
|
|
179
187
|
{% endcapture %}
|
180
188
|
{{ cache | strip_empty_lines }}
|
181
|
-
{% assign cache = nil %}
|
189
|
+
{% assign cache = nil %}
|
@@ -64,6 +64,12 @@ regenerate: false
|
|
64
64
|
# Adapter generated: {{site.time}}
|
65
65
|
# -----------------------------------------------------------------------------
|
66
66
|
*/
|
67
|
+
|
68
|
+
// -----------------------------------------------------------------------------
|
69
|
+
// ESLint shimming
|
70
|
+
// -----------------------------------------------------------------------------
|
71
|
+
/* eslint indent: "off" */
|
72
|
+
// -----------------------------------------------------------------------------
|
67
73
|
'use strict';
|
68
74
|
|
69
75
|
j1.adapter['logger'] = (function (j1, window) {
|
@@ -106,7 +112,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
106
112
|
var getCustomData = function(layout, loggingReference) {
|
107
113
|
var customData = [];
|
108
114
|
|
109
|
-
try {(0)()} catch (e) {
|
115
|
+
try { (0)(); } catch (e) {
|
110
116
|
var pattern = /^(.+?) ?\(?((?:file|https?|chrome-extension):.*?):(\d+)(?::(\d+))?\)?\s*$/ig;
|
111
117
|
// Split the stack trace
|
112
118
|
var output = e.stack.replace(/^.*?\n/,'').replace(/(?:\n@:0)?\s+$/m,'').replace(/^\(/gm,'{anon}(').split('\n');
|
@@ -138,8 +144,8 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
138
144
|
}
|
139
145
|
|
140
146
|
// return custom field %f{1}
|
141
|
-
return customData[0].value
|
142
|
-
}
|
147
|
+
return customData[0].value;
|
148
|
+
};
|
143
149
|
|
144
150
|
var requestCallback = function(data) {
|
145
151
|
var xhrData = data;
|
@@ -147,7 +153,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
147
153
|
// place handling of command|action here
|
148
154
|
//
|
149
155
|
return;
|
150
|
-
}
|
156
|
+
};
|
151
157
|
|
152
158
|
// ---------------------------------------------------------------------------
|
153
159
|
// main object
|
@@ -162,7 +168,9 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
162
168
|
j1.adapter.logger.state = 'started';
|
163
169
|
|
164
170
|
// load module DEFAULTS|CONFIG to js object
|
171
|
+
/* eslint-disable */
|
165
172
|
loggerOptions = $.extend({}, {{logger_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
173
|
+
/* eslint-enable */
|
166
174
|
ajaxAppenderOptions = loggerOptions.appenders[1].appender;
|
167
175
|
|
168
176
|
// -----------------------------------------------------------------------
|
@@ -85,6 +85,12 @@ regenerate: true
|
|
85
85
|
# Adapter generated: {{site.time}}
|
86
86
|
# -----------------------------------------------------------------------------
|
87
87
|
*/
|
88
|
+
|
89
|
+
// -----------------------------------------------------------------------------
|
90
|
+
// ESLint shimming
|
91
|
+
// -----------------------------------------------------------------------------
|
92
|
+
/* eslint indent: "off" */
|
93
|
+
// -----------------------------------------------------------------------------
|
88
94
|
'use strict';
|
89
95
|
|
90
96
|
j1.adapter['mmenu'] = (function (j1, window) {
|
@@ -137,7 +143,9 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
137
143
|
// -----------------------------------------------------------------------
|
138
144
|
// options loader
|
139
145
|
// -----------------------------------------------------------------------
|
146
|
+
/* eslint-disable */
|
140
147
|
var navMenuOptions = $.extend({}, {{nav_mmenu_options | replace: '=>', ':' }});
|
148
|
+
/* eslint-enable */
|
141
149
|
var xhr_data_path;
|
142
150
|
var menu_id;
|
143
151
|
|
@@ -147,7 +155,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
147
155
|
|
148
156
|
// Load (individual) frontmatter options (currently NOT used)
|
149
157
|
//
|
150
|
-
if (options != null) { var frontmatterOptions = $.extend({}, options) }
|
158
|
+
if (options != null) { var frontmatterOptions = $.extend({}, options); }
|
151
159
|
|
152
160
|
_this.setState('started');
|
153
161
|
logger.info('state: ' + _this.getState());
|
@@ -174,7 +182,6 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
174
182
|
j1.adapter.mmenu.mmenuLoader(navMenuOptions);
|
175
183
|
}
|
176
184
|
}, 25);
|
177
|
-
|
178
185
|
}, // END init
|
179
186
|
|
180
187
|
// -------------------------------------------------------------------------
|
@@ -215,9 +222,9 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
215
222
|
|
216
223
|
j1.xhrData (
|
217
224
|
'j1.adapter.mmenu', {
|
218
|
-
xhr_container_id:
|
219
|
-
xhr_data_path:
|
220
|
-
{% if forloop.last %}'
|
225
|
+
xhr_container_id: '{{menu_id}}',
|
226
|
+
xhr_data_path: '{{xhr_data_path}}' },
|
227
|
+
{% if forloop.last %}'null'{% else %}'null'{% endif %}){% if forloop.last %}{% else %},{% endif %}
|
221
228
|
|
222
229
|
{% endif %}
|
223
230
|
{% capture id_list %}{{id_list}}{{menu_id}}{% if forloop.last %}{% else %},{% endif %} {% endcapture %}
|
@@ -226,6 +233,11 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
226
233
|
// ---------------------------------------------------------------------
|
227
234
|
// Initialize MMenu Navs and Drawers
|
228
235
|
// ---------------------------------------------------------------------
|
236
|
+
// Make sure that Load HTML data (AJAX) is finished
|
237
|
+
setTimeout (function() {
|
238
|
+
_this.setState('data_loaded');
|
239
|
+
}, 300);
|
240
|
+
|
229
241
|
var dependencies_met_mmenu_initialized = setInterval (function () {
|
230
242
|
if (_this.getState() === 'data_loaded') {
|
231
243
|
logger.info('load HTML data (AJAX): finished');
|
@@ -235,7 +247,15 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
235
247
|
j1.adapter.mmenu.mmenuInitializer(mmOptions);
|
236
248
|
clearInterval(dependencies_met_mmenu_initialized);
|
237
249
|
}
|
238
|
-
}); // END dependencies_met_mmenu_loaded
|
250
|
+
}, 25); // END dependencies_met_mmenu_loaded
|
251
|
+
|
252
|
+
var dependencies_met_all_menu_loaded = setInterval (function () {
|
253
|
+
if ( $('#menu_mmenu').length && $('#sidebar_mmenu').length && $('#toc_mmenu').length ) {
|
254
|
+
_this.setState('finished');
|
255
|
+
logger.info('status: ' + _this.getState());
|
256
|
+
clearInterval(dependencies_met_all_menu_loaded);
|
257
|
+
}
|
258
|
+
}, 25); // END dependencies_met_all_menu_loaded
|
239
259
|
}); // END done
|
240
260
|
}, // END dataLoader
|
241
261
|
|
@@ -249,8 +269,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
249
269
|
{% for item in nav_mmenu_options.menus %} {% if item.menu.enabled %}
|
250
270
|
|
251
271
|
{% assign menu_id = item.menu.xhr_container_id %}
|
252
|
-
menu_id =
|
253
|
-
xhr_data_path =
|
272
|
+
menu_id = '{{menu_id}}';
|
273
|
+
xhr_data_path = '{{item.menu.xhr_data_path}}';
|
254
274
|
|
255
275
|
// Create an mmenu instance if id exists: {{menu_id}}
|
256
276
|
if ($('#{{menu_id}}').length) {
|
@@ -310,13 +330,14 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
310
330
|
// ? drawer_{{menu_id}}.open()
|
311
331
|
// : drawer_{{menu_id}}.close();
|
312
332
|
|
313
|
-
drawer_{{menu_id}}.open()
|
333
|
+
drawer_{{menu_id}}.open();
|
314
334
|
});
|
315
335
|
});
|
316
336
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
337
|
+
$('#{{item.menu.content.id}}').show();
|
317
338
|
logger.info('initializing mmenu finished on id: #{{menu_id}}');
|
318
339
|
}; // END mmenu_loaded
|
319
|
-
}); // END dependencies_met_mmenu_loaded
|
340
|
+
}, 25); // END dependencies_met_mmenu_loaded
|
320
341
|
{% endif %} // ENDIF content_type: NAVIGATION
|
321
342
|
|
322
343
|
{% if item.menu.content.type == "drawer" %}
|
@@ -340,7 +361,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
340
361
|
|
341
362
|
const drawer_{{menu_id}} = mmenu_{{menu_id}}.offcanvas ({
|
342
363
|
// drawer options
|
343
|
-
position:
|
364
|
+
position: '{{item.menu.drawer.position}}'
|
344
365
|
});
|
345
366
|
|
346
367
|
// button for the MMenu tocbar to open|close the toc drawer
|
@@ -369,17 +390,17 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
369
390
|
// ? drawer_{{menu_id}}.open()
|
370
391
|
// : drawer_{{menu_id}}.close();
|
371
392
|
|
372
|
-
drawer_{{menu_id}}.open()
|
393
|
+
drawer_{{menu_id}}.open();
|
373
394
|
} // END if hasclass
|
374
395
|
});
|
375
396
|
});
|
376
397
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
398
|
+
$('#{{item.menu.content.id}}').show();
|
377
399
|
}; // END if menu_loaded
|
378
|
-
}); // END dependencies_met_mmenu_loaded
|
400
|
+
}, 25); // END dependencies_met_mmenu_loaded
|
379
401
|
logger.info('initializing mmenu finished on id: #{{menu_id}}');
|
380
402
|
{% endif %} // ENDIF content_type: DRAWER
|
381
403
|
} // END menus|drawers
|
382
|
-
|
383
404
|
{% endif %} // ENDIF menu enabled
|
384
405
|
{% endfor %} // ENDFOR menus
|
385
406
|
}, // END mmenuInitializer
|
@@ -125,6 +125,12 @@ ToDo: Remove configuration from j1_navigator.yml
|
|
125
125
|
# Adapter generated: {{site.time}}
|
126
126
|
# -----------------------------------------------------------------------------
|
127
127
|
*/
|
128
|
+
|
129
|
+
// -----------------------------------------------------------------------------
|
130
|
+
// ESLint shimming
|
131
|
+
// -----------------------------------------------------------------------------
|
132
|
+
/* eslint indent: "off" */
|
133
|
+
// -----------------------------------------------------------------------------
|
128
134
|
'use strict';
|
129
135
|
|
130
136
|
j1.adapter['navigator'] = (function (j1, window) {
|
@@ -194,6 +200,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
194
200
|
// -----------------------------------------------------------------------
|
195
201
|
// options loader
|
196
202
|
// -----------------------------------------------------------------------
|
203
|
+
/* eslint-disable */
|
197
204
|
var authConfig = {};
|
198
205
|
var navDefaults = {};
|
199
206
|
var navBarConfig = {};
|
@@ -239,11 +246,24 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
239
246
|
|
240
247
|
// Load (individual) frontmatter options (currently NOT used)
|
241
248
|
if (options != null) { var frontmatterOptions = $.extend({}, options) }
|
249
|
+
/* eslint-enable */
|
242
250
|
|
243
251
|
_this.setState('started');
|
244
252
|
logger.info('state: ' + _this.getState());
|
245
253
|
logger.info('module is being initialized');
|
246
254
|
|
255
|
+
// -----------------------------------------------------------------------
|
256
|
+
// Load HTML data (AJAX)
|
257
|
+
// -----------------------------------------------------------------------
|
258
|
+
// jadams, 202-06-24: Promise (chain) if $.when seems NOT to work correctly.
|
259
|
+
// It semms a chain using .then will be a better solution to make it sure
|
260
|
+
// that the last Deferred set the state to 'data_loaded'.
|
261
|
+
// Found the final state randomly set to 'null' what prevent the module
|
262
|
+
// to run mmenuInitializer.
|
263
|
+
// Workaround: Set 'data_loaded' to be returned by all Deferred in
|
264
|
+
// the chain.
|
265
|
+
// See: https://stackoverflow.com/questions/5436327/jquery-deferreds-and-promises-then-vs-done
|
266
|
+
//
|
247
267
|
// -----------------------------------------------------------------------
|
248
268
|
// data loader
|
249
269
|
// -----------------------------------------------------------------------
|
@@ -268,6 +288,12 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
268
288
|
// ---------------------------------------------------------------------
|
269
289
|
// core initializer
|
270
290
|
// ---------------------------------------------------------------------
|
291
|
+
|
292
|
+
// Make sure that Load HTML data (AJAX) is finished
|
293
|
+
// setTimeout (function() {
|
294
|
+
// _this.setState('data_loaded');
|
295
|
+
// }, 150);
|
296
|
+
|
271
297
|
var dependencies_met_navigator_core = setInterval (function () {
|
272
298
|
if (_this.getState() === 'data_loaded') {
|
273
299
|
_this.setState('processing');
|
@@ -391,7 +417,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
391
417
|
// See: https://www.nickang.com/add-event-listener-for-loop-problem-in-javascript/
|
392
418
|
// -------------------------------------------------------------------------
|
393
419
|
modalEventHandler: function (options) {
|
394
|
-
// var logger = log4javascript.getLogger(
|
420
|
+
// var logger = log4javascript.getLogger('j1.adapter.navigator.EventHandler');
|
395
421
|
var authConfig = options.j1_auth;
|
396
422
|
var route;
|
397
423
|
var provider;
|
@@ -401,17 +427,17 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
401
427
|
|
402
428
|
var signIn = {
|
403
429
|
provider: authConfig.providers.activated[0],
|
404
|
-
users: authConfig.providers[authConfig.providers[
|
430
|
+
users: authConfig.providers[authConfig.providers['activated'][0]]['users'],
|
405
431
|
do: false
|
406
|
-
}
|
432
|
+
};
|
407
433
|
|
408
434
|
var signOut = {
|
409
435
|
provider: authConfig.providers.activated[0],
|
410
436
|
providerSignOut: false,
|
411
437
|
do: false
|
412
|
-
}
|
438
|
+
};
|
413
439
|
|
414
|
-
logText =
|
440
|
+
logText = 'initialize button click events';
|
415
441
|
logger.info(logText);
|
416
442
|
|
417
443
|
// Manage button click events for modal "signInOutButton"
|
@@ -424,13 +450,13 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
424
450
|
signIn.allowed_users = signIn.users.toString();
|
425
451
|
});
|
426
452
|
|
427
|
-
$(
|
428
|
-
if (this.id ===
|
453
|
+
$('a.btn').click(function() {
|
454
|
+
if (this.id === 'signInButton') {
|
429
455
|
signIn.do = true;
|
430
456
|
} else {
|
431
457
|
signIn.do = false;
|
432
458
|
}
|
433
|
-
if (this.id ===
|
459
|
+
if (this.id === 'signOutButton') {
|
434
460
|
signOut.do = true;
|
435
461
|
} else {
|
436
462
|
signOut.do = false;
|
@@ -439,16 +465,16 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
439
465
|
|
440
466
|
$('input:checkbox[name="providerSignOut"]').on('click', function (e) {
|
441
467
|
e.stopPropagation();
|
442
|
-
signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(
|
443
|
-
if(environment
|
444
|
-
logText =
|
468
|
+
signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(':checked');
|
469
|
+
if(environment === 'development') {
|
470
|
+
logText = 'provider signout set to: ' + signOut.providerSignOut;
|
445
471
|
logger.info(logText);
|
446
472
|
}
|
447
473
|
});
|
448
474
|
|
449
475
|
// Manage pre events on modal "modalOmniSignIn"
|
450
476
|
// -----------------------------------------------------------------------
|
451
|
-
$(
|
477
|
+
$('#modalOmniSignOut').on('show.bs.modal', function() {
|
452
478
|
var modal = $(this);
|
453
479
|
logger.info('place current user data');
|
454
480
|
user_session = j1.readCookie(cookie_user_session_name);
|
@@ -457,7 +483,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
457
483
|
|
458
484
|
// Manage post events on modal "modalOmniSignIn"
|
459
485
|
// -----------------------------------------------------------------------
|
460
|
-
$(
|
486
|
+
$('#modalOmniSignIn').on('hidden.bs.modal', function() {
|
461
487
|
if (signIn.do == true) {
|
462
488
|
provider = signIn.provider.toLowerCase();
|
463
489
|
allowed_users = signIn.users.toString();
|
@@ -479,11 +505,11 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
479
505
|
|
480
506
|
// Manage post events on modal "modalOmniSignOut"
|
481
507
|
// -----------------------------------------------------------------------
|
482
|
-
$(
|
508
|
+
$('#modalOmniSignOut').on('hidden.bs.modal', function() {
|
483
509
|
if (signOut.do == true) {
|
484
510
|
logger.info('load active provider from cookie: ' + cookie_user_session_name);
|
485
511
|
|
486
|
-
user_session
|
512
|
+
user_session = j1.readCookie(cookie_user_session_name);
|
487
513
|
provider = user_session.provider;
|
488
514
|
provider_url = user_session.provider_site_url;
|
489
515
|
|
@@ -505,7 +531,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
505
531
|
}
|
506
532
|
}); // END post events "modalSignOut"
|
507
533
|
|
508
|
-
logText =
|
534
|
+
logText = 'initialize button click events completed';
|
509
535
|
logger.info(logText);
|
510
536
|
|
511
537
|
return true;
|
@@ -516,7 +542,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
516
542
|
// Set dynamic CSS styles
|
517
543
|
// -------------------------------------------------------------------------
|
518
544
|
setCSS: function (navBarOptions, navMenuOptions, navQuicklinksOptions, navTopsearchOptions) {
|
519
|
-
var logger = log4javascript.getLogger(
|
545
|
+
var logger = log4javascript.getLogger('j1.adapter.navigator.setCSS');
|
520
546
|
var gridBreakpoint_lg = '992px';
|
521
547
|
var gridBreakpoint_md = '768px';
|
522
548
|
var gridBreakpoint_sm = '576px';
|
@@ -567,94 +593,70 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
567
593
|
{% comment %} navBar styles
|
568
594
|
-------------------------------------------------------------------------- {% endcomment %}
|
569
595
|
var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
|
570
|
-
var bg_scrolled = bg_primary
|
596
|
+
var bg_scrolled = bg_primary;
|
571
597
|
var bg_collapsed = bg_primary;
|
572
598
|
|
573
599
|
$('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
|
574
600
|
|
575
601
|
// Size of brand image
|
576
|
-
$('head').append(
|
577
|
-
// Navbar transparent-light (light)
|
578
|
-
$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator.navbar-transparent.light { background-color: " +navBarOptions.background_color_full+ " !important; border-bottom: solid 0px !important; } }</style>");
|
602
|
+
$('head').append('<style>.navbar-brand > img { height: {{brand_image_height}}px !important; }</style>');
|
579
603
|
|
580
|
-
//
|
581
|
-
$('head').append(
|
582
|
-
|
583
|
-
// Menubar collapsed (mobile)
|
584
|
-
$('head').append('<style>.navbar-collapse.collapse.show { background-color: ' +bg_scrolled+ ' !important; }</style>');
|
585
|
-
|
586
|
-
|
587
|
-
/* Navbar media-queries, LARGE Window|Desktop (>= 1024) */
|
588
|
-
/* jadams: Oversized menu bar fixed by: overflow: hidden */
|
589
|
-
// $('head').append("<style>@media (max-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator { background-color: " +navBarOptions.background_color_collapsed+ " !important; overflow: hidden; } }</style>");
|
590
|
-
$('head').append("<style>@media (max-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator { background-color: " +bg_collapsed+ " !important; overflow: hidden; } }</style>");
|
591
|
-
//$('head').append("<style>@media (max-width: 1023px) { row { margin-left: 0 !important; margin-right: 0 !important; } }</style>");
|
604
|
+
// Navbar transparent-light (light)
|
605
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-transparent.light { background-color: ' +navBarOptions.background_color_full+ ' !important; border-bottom: solid 0px !important; } }</style>');
|
606
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
592
607
|
|
593
608
|
{% comment %} navQuicklinks styles
|
594
609
|
-------------------------------------------------------------------------- {% endcomment %}
|
595
|
-
$('head').append(
|
596
|
-
$('head').append(
|
610
|
+
$('head').append('<style>.attr-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
|
611
|
+
$('head').append('<style>.attr-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
|
597
612
|
|
598
613
|
{% comment %} navMenu styles
|
599
614
|
-------------------------------------------------------------------------- {% endcomment %}
|
600
|
-
|
601
|
-
// TODO: Check if this style is needed for MENU item (hover)
|
602
|
-
//$('head').append("<style>nav.navbar.navbar-transparent ul.nav > li > a:hover,nav.navbar.no-background ul.nav > li > a:hover,nav.navbar ul.nav li.scroll.active > a,nav.navbar.navbar-dark ul.nav li.dropdown ul.dropdown-menu > li > a:hover,nav.navbar ul.nav li.dropdown.on > a,nav.navbar-dark ul.nav li.dropdown.on > a { color: " +navMenuOptions.menu_item_color_hover+ " !important; }</style>");
|
603
|
-
//
|
604
|
-
//$('head').append("<style>.dropdown-menu > .active > a { background-color: " +navMenuOptions.dropdown_background_color_active+ " !important; }</style>");
|
605
615
|
// Remove background for anchor
|
606
|
-
$('head').append(
|
616
|
+
$('head').append('<style>.dropdown-menu > .active > a { background-color: transparent !important; }</style>');
|
607
617
|
// hover menu-item|menu-sub-item
|
608
|
-
$('head').append(
|
609
|
-
// $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li a:hover { color: " +navMenuOptions.menu_item_color_hover+ " !important; background: " +navMenuOptions.dropdown_background_color_hover+ " !important; } }</style>");
|
618
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator .dropdown-item:focus, nav.navbar.navigator .dropdown-item:hover, nav.navbar.navigator .nav-sub-item:focus, nav.navbar.navigator .nav-sub-item:hover { background: ' +navMenuOptions.dropdown_background_color_hover+ ' !important; }}</style>');
|
610
619
|
|
611
|
-
// 1st dropdown
|
612
|
-
|
613
|
-
//$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { max-height: " +navMenuOptions.dropdown_menu_height_max+ "em; overflow: hidden } }</style>");
|
614
|
-
|
615
|
-
// Limit dropdown item width
|
616
|
-
$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator ul.nav.navbar-right .dropdown-menu .dropdown-menu { left: -" +navMenuOptions.dropdown_item_width+ "em !important; } }</style>");
|
620
|
+
// Limit 1st dropdown item width
|
621
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav.navbar-right .dropdown-menu .dropdown-menu { left: -' +navMenuOptions.dropdown_item_width+ 'em !important; } }</style>');
|
617
622
|
|
618
623
|
// Limit last (2nd) dropdown in height (nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu)
|
619
|
-
$('head').append(
|
624
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu { top: -' +navMenuOptions.dropdown_border_top+ 'px !important; max-height: ' +navMenuOptions.dropdown_menu_height_max+ 'em !important; } }</style>');
|
620
625
|
|
621
626
|
// Set dropdown item colors
|
622
|
-
$('head').append(
|
623
|
-
$('head').append(
|
627
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a { color: ' +navMenuOptions.menu_item_color+ ' !important; } }</style>');
|
628
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a:hover { color: ' +navMenuOptions.menu_item_color_hover+ ' !important; } }</style>');
|
624
629
|
|
625
630
|
// Dropdown menu styles
|
626
|
-
//$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: " +navMenuOptions.dropdown_animate_duration+ "s !important; color: " +navMenuOptions.dropdown_border_color+ "; width: " +navMenuOptions.dropdown_item_width+ "px; border-top: solid " +navMenuOptions.dropdown_border_height+ "px; left: 1rem; top: calc(90px + " +navMenuOptions.dropdown_border_height+ "px); } }</style>");
|
627
|
-
//$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: " +navMenuOptions.dropdown_animate_duration+ "s !important; color: " +navMenuOptions.dropdown_border_color+ "; width: " +navMenuOptions.dropdown_item_width+ "em; border-top: solid " +navMenuOptions.dropdown_border_height+ "px; left: 1em; } }</style>");
|
628
631
|
// jadams, 2017-11-30: removed left padding from dropdown mwenu (for new j1nav style based on Navigator|Slate)
|
629
|
-
$('head').append(
|
632
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: ' +navMenuOptions.dropdown_animate_duration+ 's !important; color: ' +bg_scrolled+ ' !important; width: ' +navMenuOptions.dropdown_item_width+ 'emm !important; border-top: solid ' +navMenuOptions.dropdown_border_top+ 'px !important; border-radius: ' +navMenuOptions.dropdown_border_radius+ 'px !important; left: 0; } }</style>');
|
630
633
|
|
631
634
|
{% if dropdown_style == 'raised' %}
|
632
|
-
$('head').append(
|
635
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu { box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important; } }</style>');
|
633
636
|
{% endif %}
|
634
637
|
|
635
|
-
// jadams,2017-11-22:
|
636
|
-
|
637
|
-
|
638
|
-
$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { color: " +navMenuOptions.dropdown_item_color+ " !important; font-size: " +navMenuOptions.dropdown_font_size+ " !important; font-weight: 400; } }</style>");
|
639
|
-
$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator ul.dropdown-menu.megamenu-content .content ul.menu-col li a { color: " +navMenuOptions.dropdown_item_color+ " !important; font-size: " +navMenuOptions.megamenu_font_size+ " !important; font-weight: 400; } }</style>");
|
640
|
-
|
641
|
-
// dropdown-menu item padding
|
642
|
-
// jadams, 2017-11-22: moved item padding to nav|dropdown-item based on font-site (rel|em)
|
643
|
-
{% if dropdown_item_style == 'raised' %}
|
644
|
-
//$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { padding: " +navMenuOptions.dropdown_padding_y+ "px " +navMenuOptions.dropdown_padding_x+ "px; box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2); } }</style>");
|
645
|
-
{% else %}
|
646
|
-
//$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { padding: " +navMenuOptions.dropdown_padding_y+ "px " +navMenuOptions.dropdown_padding_x+ "px; } }</style>");
|
647
|
-
// blödsinn $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator .dropdown .nav-item { padding-top: " +navMenuOptions.dropdown_item_padding+ "px; padding-bottom: " +navMenuOptions.dropdown_item_padding+ "px; } }</style>");
|
648
|
-
{% endif %}
|
638
|
+
// jadams, 2017-11-22: configure dropdown_font_size|color
|
639
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { color: ' +navMenuOptions.dropdown_item_color+ ' !important; font-size: ' +navMenuOptions.dropdown_font_size+ ' !important; font-weight: 400; } }</style>');
|
640
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.dropdown-menu.megamenu-content .content ul.menu-col li a { color: ' +navMenuOptions.dropdown_item_color+ ' !important; font-size: ' +navMenuOptions.megamenu_font_size+ ' !important; font-weight: 400; } }</style>');
|
649
641
|
|
650
642
|
{% comment %} navQuicklinks styles
|
651
643
|
-------------------------------------------------------------------------- {% endcomment %}
|
652
644
|
|
653
645
|
{% comment %} navTopSearch Styles
|
654
646
|
-------------------------------------------------------------------------- {% endcomment %}
|
655
|
-
|
656
|
-
|
657
|
-
$('head').append(
|
647
|
+
// jadams, 2020-07-08: disabled because colors for icons set by the icon font settings
|
648
|
+
// $('head').append('<style>.top-search .input-group-addon { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
|
649
|
+
$('head').append('<style>.top-search { background-color: ' +navTopsearchOptions.background_color+ ' !important; }</style>');
|
650
|
+
$('head').append('<style>.top-search input.form-control { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
|
651
|
+
|
652
|
+
// if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
|
653
|
+
// $('input:-webkit-autofill').each(function(){
|
654
|
+
// var text = $(this).val();
|
655
|
+
// var name = $(this).attr('name');
|
656
|
+
// $(this).after(this.outerHTML).remove();
|
657
|
+
// $('input[name=' + name + ']').val(text);
|
658
|
+
// });
|
659
|
+
// }
|
658
660
|
|
659
661
|
return true;
|
660
662
|
}, // END setCSS
|
@@ -665,11 +667,11 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
665
667
|
// See: http://jsfiddle.net/AndreasPizsa/NzvKC/
|
666
668
|
// -------------------------------------------------------------------------
|
667
669
|
delayShowMenu: function () {
|
668
|
-
var logger = log4javascript.getLogger(
|
670
|
+
var logger = log4javascript.getLogger('j1.adapter.navigator.delayShowMenu');
|
669
671
|
var theTimer = 0;
|
670
672
|
var theElement = null;
|
671
673
|
|
672
|
-
logText =
|
674
|
+
logText ='entered delayShowMenu';
|
673
675
|
logger.info(logText);
|
674
676
|
|
675
677
|
$('#navigator_nav_menu')
|