j1-template 2020.0.6 → 2020.0.11
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 +6 -6
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +8 -3
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/_layouts/default.html +18 -8
- 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/search.yml +32 -10
- data/assets/data/ssm.html +16 -12
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/algolia.js +21 -13
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/attic.js +31 -30
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/carousel.js +31 -20
- 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 +8 -1
- 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 +74 -103
- 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 +16 -8
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/navigator.js +64 -76
- 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 +86 -68
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/themer.js +10 -2
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/toccer.js +51 -146
- data/assets/themes/j1/core/css/theme_extensions.css +562 -53
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/uno.css +640 -53
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +10 -3
- data/assets/themes/j1/core/css/vendor.min.css +2 -2
- data/assets/themes/j1/core/js/template.js +29 -19
- 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 +4 -8
- data/lib/starter_web/_data/modules/jekyll_search.yml +3 -2
- data/lib/starter_web/_data/modules/navigator_menu.yml +4 -0
- data/lib/starter_web/_data/modules/ssm.yml +10 -1
- data/lib/starter_web/_data/modules/toccer.yml +7 -12
- data/lib/starter_web/_data/resources.yml +3 -9
- data/lib/starter_web/_data/template_settings.yml +22 -2
- 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/{floating_sidebar.adoc → examples/floating_div.adoc} +27 -49
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/parts.asciidoc +1 -1
- 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/000_bs_tour_api.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_table_3_column.asciidoc +1 -1
- 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 +9 -5
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +26 -28
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +28 -31
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +19 -19
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_table_3_column.asciidoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +54 -48
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/120_relative_sizes.asciidoc +1 -41
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/300_flip.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/600_md_color_palette.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/200_rotate.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/300_flip.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +671 -860
- data/lib/starter_web/pages/public/previewer/mdb_preview/000_includes/attributes.asciidoc +69 -0
- data/lib/starter_web/pages/public/previewer/mdb_preview/000_includes/documents/100_buttons.asciidoc +170 -0
- data/lib/starter_web/pages/public/previewer/mdb_preview/mdb_previewer.adoc +52 -0
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +163 -168
- data/lib/starter_web/_plugins/uglify.rb +0 -41
- 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 -153
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +0 -153
- 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());
|
@@ -214,8 +222,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
214
222
|
|
215
223
|
j1.xhrData (
|
216
224
|
'j1.adapter.mmenu', {
|
217
|
-
xhr_container_id:
|
218
|
-
xhr_data_path:
|
225
|
+
xhr_container_id: '{{menu_id}}',
|
226
|
+
xhr_data_path: '{{xhr_data_path}}' },
|
219
227
|
{% if forloop.last %}'null'{% else %}'null'{% endif %}){% if forloop.last %}{% else %},{% endif %}
|
220
228
|
|
221
229
|
{% endif %}
|
@@ -261,8 +269,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
261
269
|
{% for item in nav_mmenu_options.menus %} {% if item.menu.enabled %}
|
262
270
|
|
263
271
|
{% assign menu_id = item.menu.xhr_container_id %}
|
264
|
-
menu_id =
|
265
|
-
xhr_data_path =
|
272
|
+
menu_id = '{{menu_id}}';
|
273
|
+
xhr_data_path = '{{item.menu.xhr_data_path}}';
|
266
274
|
|
267
275
|
// Create an mmenu instance if id exists: {{menu_id}}
|
268
276
|
if ($('#{{menu_id}}').length) {
|
@@ -322,7 +330,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
322
330
|
// ? drawer_{{menu_id}}.open()
|
323
331
|
// : drawer_{{menu_id}}.close();
|
324
332
|
|
325
|
-
drawer_{{menu_id}}.open()
|
333
|
+
drawer_{{menu_id}}.open();
|
326
334
|
});
|
327
335
|
});
|
328
336
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
@@ -353,7 +361,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
353
361
|
|
354
362
|
const drawer_{{menu_id}} = mmenu_{{menu_id}}.offcanvas ({
|
355
363
|
// drawer options
|
356
|
-
position:
|
364
|
+
position: '{{item.menu.drawer.position}}'
|
357
365
|
});
|
358
366
|
|
359
367
|
// button for the MMenu tocbar to open|close the toc drawer
|
@@ -382,7 +390,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
382
390
|
// ? drawer_{{menu_id}}.open()
|
383
391
|
// : drawer_{{menu_id}}.close();
|
384
392
|
|
385
|
-
drawer_{{menu_id}}.open()
|
393
|
+
drawer_{{menu_id}}.open();
|
386
394
|
} // END if hasclass
|
387
395
|
});
|
388
396
|
});
|
@@ -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,6 +246,7 @@ 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());
|
@@ -354,8 +362,12 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
354
362
|
$(window).on('resize', function() {
|
355
363
|
j1.core.navigator.manageDropdownMenu(navDefaults, navMenuOptions);
|
356
364
|
|
365
|
+
// jadams, 2020-07-10: cause big touble on mobile devices if
|
366
|
+
// OnScreen Kbd comes up and reduces the window size
|
367
|
+
// DISABLED
|
368
|
+
// -------------------------------------------------------------------
|
357
369
|
// Hide|Close topSearch on resize event
|
358
|
-
$('.top-search').slideUp();
|
370
|
+
// $('.top-search').slideUp();
|
359
371
|
|
360
372
|
// Manage sticky NAV bars
|
361
373
|
setTimeout (function(){
|
@@ -409,7 +421,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
409
421
|
// See: https://www.nickang.com/add-event-listener-for-loop-problem-in-javascript/
|
410
422
|
// -------------------------------------------------------------------------
|
411
423
|
modalEventHandler: function (options) {
|
412
|
-
// var logger = log4javascript.getLogger(
|
424
|
+
// var logger = log4javascript.getLogger('j1.adapter.navigator.EventHandler');
|
413
425
|
var authConfig = options.j1_auth;
|
414
426
|
var route;
|
415
427
|
var provider;
|
@@ -419,17 +431,17 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
419
431
|
|
420
432
|
var signIn = {
|
421
433
|
provider: authConfig.providers.activated[0],
|
422
|
-
users: authConfig.providers[authConfig.providers[
|
434
|
+
users: authConfig.providers[authConfig.providers['activated'][0]]['users'],
|
423
435
|
do: false
|
424
|
-
}
|
436
|
+
};
|
425
437
|
|
426
438
|
var signOut = {
|
427
439
|
provider: authConfig.providers.activated[0],
|
428
440
|
providerSignOut: false,
|
429
441
|
do: false
|
430
|
-
}
|
442
|
+
};
|
431
443
|
|
432
|
-
logText =
|
444
|
+
logText = 'initialize button click events';
|
433
445
|
logger.info(logText);
|
434
446
|
|
435
447
|
// Manage button click events for modal "signInOutButton"
|
@@ -442,13 +454,13 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
442
454
|
signIn.allowed_users = signIn.users.toString();
|
443
455
|
});
|
444
456
|
|
445
|
-
$(
|
446
|
-
if (this.id ===
|
457
|
+
$('a.btn').click(function() {
|
458
|
+
if (this.id === 'signInButton') {
|
447
459
|
signIn.do = true;
|
448
460
|
} else {
|
449
461
|
signIn.do = false;
|
450
462
|
}
|
451
|
-
if (this.id ===
|
463
|
+
if (this.id === 'signOutButton') {
|
452
464
|
signOut.do = true;
|
453
465
|
} else {
|
454
466
|
signOut.do = false;
|
@@ -457,16 +469,16 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
457
469
|
|
458
470
|
$('input:checkbox[name="providerSignOut"]').on('click', function (e) {
|
459
471
|
e.stopPropagation();
|
460
|
-
signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(
|
461
|
-
if(environment
|
462
|
-
logText =
|
472
|
+
signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(':checked');
|
473
|
+
if(environment === 'development') {
|
474
|
+
logText = 'provider signout set to: ' + signOut.providerSignOut;
|
463
475
|
logger.info(logText);
|
464
476
|
}
|
465
477
|
});
|
466
478
|
|
467
479
|
// Manage pre events on modal "modalOmniSignIn"
|
468
480
|
// -----------------------------------------------------------------------
|
469
|
-
$(
|
481
|
+
$('#modalOmniSignOut').on('show.bs.modal', function() {
|
470
482
|
var modal = $(this);
|
471
483
|
logger.info('place current user data');
|
472
484
|
user_session = j1.readCookie(cookie_user_session_name);
|
@@ -475,7 +487,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
475
487
|
|
476
488
|
// Manage post events on modal "modalOmniSignIn"
|
477
489
|
// -----------------------------------------------------------------------
|
478
|
-
$(
|
490
|
+
$('#modalOmniSignIn').on('hidden.bs.modal', function() {
|
479
491
|
if (signIn.do == true) {
|
480
492
|
provider = signIn.provider.toLowerCase();
|
481
493
|
allowed_users = signIn.users.toString();
|
@@ -497,11 +509,11 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
497
509
|
|
498
510
|
// Manage post events on modal "modalOmniSignOut"
|
499
511
|
// -----------------------------------------------------------------------
|
500
|
-
$(
|
512
|
+
$('#modalOmniSignOut').on('hidden.bs.modal', function() {
|
501
513
|
if (signOut.do == true) {
|
502
514
|
logger.info('load active provider from cookie: ' + cookie_user_session_name);
|
503
515
|
|
504
|
-
user_session
|
516
|
+
user_session = j1.readCookie(cookie_user_session_name);
|
505
517
|
provider = user_session.provider;
|
506
518
|
provider_url = user_session.provider_site_url;
|
507
519
|
|
@@ -523,7 +535,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
523
535
|
}
|
524
536
|
}); // END post events "modalSignOut"
|
525
537
|
|
526
|
-
logText =
|
538
|
+
logText = 'initialize button click events completed';
|
527
539
|
logger.info(logText);
|
528
540
|
|
529
541
|
return true;
|
@@ -534,7 +546,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
534
546
|
// Set dynamic CSS styles
|
535
547
|
// -------------------------------------------------------------------------
|
536
548
|
setCSS: function (navBarOptions, navMenuOptions, navQuicklinksOptions, navTopsearchOptions) {
|
537
|
-
var logger = log4javascript.getLogger(
|
549
|
+
var logger = log4javascript.getLogger('j1.adapter.navigator.setCSS');
|
538
550
|
var gridBreakpoint_lg = '992px';
|
539
551
|
var gridBreakpoint_md = '768px';
|
540
552
|
var gridBreakpoint_sm = '576px';
|
@@ -585,94 +597,70 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
585
597
|
{% comment %} navBar styles
|
586
598
|
-------------------------------------------------------------------------- {% endcomment %}
|
587
599
|
var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
|
588
|
-
var bg_scrolled = bg_primary
|
600
|
+
var bg_scrolled = bg_primary;
|
589
601
|
var bg_collapsed = bg_primary;
|
590
602
|
|
591
603
|
$('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
|
592
604
|
|
593
605
|
// Size of brand image
|
594
|
-
$('head').append(
|
595
|
-
// Navbar transparent-light (light)
|
596
|
-
$('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>");
|
597
|
-
|
598
|
-
// $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator.navbar-scrolled.light { background-color: " +navBarOptions.background_color_scrolled+ " !important; } }</style>");
|
599
|
-
$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator.navbar-scrolled.light { background-color: " +bg_scrolled+ " !important; } }</style>");
|
600
|
-
|
601
|
-
// Menubar collapsed (mobile)
|
602
|
-
// $('head').append('<style>.navbar-collapse.collapse.show { background-color: ' +bg_scrolled+ ' !important; }</style>');
|
606
|
+
$('head').append('<style>.navbar-brand > img { height: {{brand_image_height}}px !important; }</style>');
|
603
607
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
// $('head').append("<style>@media (max-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator { background-color: " +navBarOptions.background_color_collapsed+ " !important; overflow: hidden; } }</style>");
|
608
|
-
// $('head').append("<style>@media (max-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator { background-color: " +bg_collapsed+ " !important; overflow: hidden; } }</style>");
|
609
|
-
// $('head').append("<style>@media (max-width: 1023px) { row { margin-left: 0 !important; margin-right: 0 !important; } }</style>");
|
608
|
+
// Navbar transparent-light (light)
|
609
|
+
$('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>');
|
610
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
610
611
|
|
611
612
|
{% comment %} navQuicklinks styles
|
612
613
|
-------------------------------------------------------------------------- {% endcomment %}
|
613
|
-
$('head').append(
|
614
|
-
$('head').append(
|
614
|
+
$('head').append('<style>.attr-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
|
615
|
+
$('head').append('<style>.attr-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
|
615
616
|
|
616
617
|
{% comment %} navMenu styles
|
617
618
|
-------------------------------------------------------------------------- {% endcomment %}
|
618
|
-
|
619
|
-
// TODO: Check if this style is needed for MENU item (hover)
|
620
|
-
//$('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>");
|
621
|
-
//
|
622
|
-
//$('head').append("<style>.dropdown-menu > .active > a { background-color: " +navMenuOptions.dropdown_background_color_active+ " !important; }</style>");
|
623
619
|
// Remove background for anchor
|
624
|
-
$('head').append(
|
620
|
+
$('head').append('<style>.dropdown-menu > .active > a { background-color: transparent !important; }</style>');
|
625
621
|
// hover menu-item|menu-sub-item
|
626
|
-
$('head').append(
|
627
|
-
// $('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>");
|
628
|
-
|
629
|
-
// 1st dropdown, limit height
|
630
|
-
// TODO: overflow needs to be managed correctly (not static)
|
631
|
-
//$('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>");
|
622
|
+
$('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>');
|
632
623
|
|
633
|
-
//
|
634
|
-
$('head').append(
|
624
|
+
// Limit 1st dropdown item width
|
625
|
+
$('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>');
|
635
626
|
|
636
627
|
// Limit last (2nd) dropdown in height (nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu)
|
637
|
-
$('head').append(
|
628
|
+
$('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>');
|
638
629
|
|
639
630
|
// Set dropdown item colors
|
640
|
-
$('head').append(
|
641
|
-
$('head').append(
|
631
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a { color: ' +navMenuOptions.menu_item_color+ ' !important; } }</style>');
|
632
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a:hover { color: ' +navMenuOptions.menu_item_color_hover+ ' !important; } }</style>');
|
642
633
|
|
643
634
|
// Dropdown menu styles
|
644
|
-
//$('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>");
|
645
|
-
//$('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>");
|
646
635
|
// jadams, 2017-11-30: removed left padding from dropdown mwenu (for new j1nav style based on Navigator|Slate)
|
647
|
-
$('head').append(
|
636
|
+
$('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>');
|
648
637
|
|
649
638
|
{% if dropdown_style == 'raised' %}
|
650
|
-
$('head').append(
|
639
|
+
$('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>');
|
651
640
|
{% endif %}
|
652
641
|
|
653
|
-
// jadams,2017-11-22:
|
654
|
-
|
655
|
-
|
656
|
-
$('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>");
|
657
|
-
$('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>");
|
658
|
-
|
659
|
-
// dropdown-menu item padding
|
660
|
-
// jadams, 2017-11-22: moved item padding to nav|dropdown-item based on font-site (rel|em)
|
661
|
-
{% if dropdown_item_style == 'raised' %}
|
662
|
-
//$('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>");
|
663
|
-
{% else %}
|
664
|
-
//$('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>");
|
665
|
-
// 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>");
|
666
|
-
{% endif %}
|
642
|
+
// jadams, 2017-11-22: configure dropdown_font_size|color
|
643
|
+
$('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>');
|
644
|
+
$('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>');
|
667
645
|
|
668
646
|
{% comment %} navQuicklinks styles
|
669
647
|
-------------------------------------------------------------------------- {% endcomment %}
|
670
648
|
|
671
649
|
{% comment %} navTopSearch Styles
|
672
650
|
-------------------------------------------------------------------------- {% endcomment %}
|
673
|
-
|
674
|
-
|
675
|
-
$('head').append(
|
651
|
+
// jadams, 2020-07-08: disabled because colors for icons set by the icon font settings
|
652
|
+
// $('head').append('<style>.top-search .input-group-addon { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
|
653
|
+
$('head').append('<style>.top-search { background-color: ' +navTopsearchOptions.background_color+ ' !important; }</style>');
|
654
|
+
$('head').append('<style>.top-search input.form-control { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
|
655
|
+
|
656
|
+
// if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
|
657
|
+
// $('input:-webkit-autofill').each(function(){
|
658
|
+
// var text = $(this).val();
|
659
|
+
// var name = $(this).attr('name');
|
660
|
+
// $(this).after(this.outerHTML).remove();
|
661
|
+
// $('input[name=' + name + ']').val(text);
|
662
|
+
// });
|
663
|
+
// }
|
676
664
|
|
677
665
|
return true;
|
678
666
|
}, // END setCSS
|
@@ -683,11 +671,11 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
683
671
|
// See: http://jsfiddle.net/AndreasPizsa/NzvKC/
|
684
672
|
// -------------------------------------------------------------------------
|
685
673
|
delayShowMenu: function () {
|
686
|
-
var logger = log4javascript.getLogger(
|
674
|
+
var logger = log4javascript.getLogger('j1.adapter.navigator.delayShowMenu');
|
687
675
|
var theTimer = 0;
|
688
676
|
var theElement = null;
|
689
677
|
|
690
|
-
logText =
|
678
|
+
logText ='entered delayShowMenu';
|
691
679
|
logger.info(logText);
|
692
680
|
|
693
681
|
$('#navigator_nav_menu')
|