j1-template 2020.0.8 → 2020.0.13
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/blocks/ads/ad.html +64 -0
- data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +1 -1
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +3 -2
- data/_includes/themes/j1/layouts/content_generator_collection.html +3 -2
- data/_includes/themes/j1/layouts/content_generator_page.html +3 -2
- data/_includes/themes/j1/layouts/content_generator_post.html +12 -12
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +134 -4
- data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +6 -9
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +9 -6
- data/_includes/themes/j1/modules/connectors/ads +3 -6
- data/_includes/themes/j1/modules/navigator/generator.html +6 -7
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +10 -5
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +7 -7
- data/_layouts/default.html +18 -13
- data/assets/data/authclient.html +18 -8
- data/assets/data/banner.html +23 -23
- data/assets/data/carousel.json +30 -21
- data/assets/data/cookie_consent.html +79 -51
- data/assets/data/footer.html +14 -5
- data/assets/data/galleries.json +90 -81
- data/assets/data/gallery_customizer.html +19 -10
- data/assets/data/mdi_icons.json +55 -1
- data/assets/data/menu.html +14 -7
- data/assets/data/mmenu.html +47 -94
- data/assets/data/mmenu_sidebar.html +40 -44
- data/assets/data/mmenu_toc.html +19 -3
- data/assets/data/panel.html +30 -23
- data/assets/data/quicklinks.html +13 -3
- data/assets/data/{search.yml → search.json} +44 -14
- data/assets/data/ssm.html +20 -9
- data/assets/data/themes.json +17 -6
- data/assets/data/twa_v1.json +7034 -6978
- data/assets/themes/j1/adapter/js/algolia.js +34 -17
- data/assets/themes/j1/adapter/js/attic.js +66 -46
- data/assets/themes/j1/adapter/js/carousel.js +43 -22
- data/assets/themes/j1/adapter/js/clipboard.js +230 -0
- data/assets/themes/j1/adapter/js/cookie_consent.js +21 -4
- data/assets/themes/j1/adapter/js/framer.js +18 -3
- data/assets/themes/j1/adapter/js/gallery_customizer.js +27 -10
- data/assets/themes/j1/adapter/js/j1.js +342 -757
- data/assets/themes/j1/adapter/js/{justified_gallery.js → jf_gallery.js} +64 -38
- data/assets/themes/j1/adapter/js/lightbox.js +20 -3
- data/assets/themes/j1/adapter/js/logger.js +23 -6
- data/assets/themes/j1/adapter/js/mdb.js +167 -0
- data/assets/themes/j1/adapter/js/mmenu.js +33 -30
- data/assets/themes/j1/adapter/js/navigator.js +126 -140
- data/assets/themes/j1/adapter/js/searcher.js +22 -4
- data/assets/themes/j1/adapter/js/ssm.js +84 -63
- data/assets/themes/j1/adapter/js/themer.js +35 -53
- data/assets/themes/j1/adapter/js/toccer.js +29 -14
- data/assets/themes/j1/core/css/theme_extensions.css +120 -1230
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/uno.css +256 -1288
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +7 -57
- data/assets/themes/j1/core/css/vendor.min.css +2 -2
- data/assets/themes/j1/core/js/template.js +16 -86
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/extensions/bsDatepicker/css/datepicker.css +203 -0
- data/assets/themes/j1/extensions/bsDatepicker/css/theme/uno.css +235 -0
- data/assets/themes/j1/extensions/bsDatepicker/js/datepicker.js +509 -0
- data/assets/themes/j1/extensions/bsDatepicker/less/datepicker.less +122 -0
- data/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.js +425 -0
- data/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.min.js +20 -0
- data/assets/themes/j1/extensions/clipboard/LICENSE +20 -0
- data/assets/themes/j1/extensions/clipboard/css/theme/uno.css +52 -0
- data/assets/themes/j1/extensions/clipboard/css/theme/uno.min.css +52 -0
- data/assets/themes/j1/extensions/clipboard/js/clipboard.js +975 -0
- data/assets/themes/j1/extensions/clipboard/js/clipboard.min.js +7 -0
- data/assets/themes/j1/extensions/{iconify → iconifyAPI}/js/iconify.min.js +0 -0
- data/assets/themes/j1/extensions/iframeResizer/LICENSE +21 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/frame.absolute.html +127 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/frame.content.html +157 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/frame.hover.html +68 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/frame.nested.html +100 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/frame.textarea.html +45 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/frame.tolerance.html +113 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/index.html +83 -0
- data/assets/themes/j1/extensions/iframeResizer/examples/two.html +88 -0
- data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.js +1288 -0
- data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.map +1 -0
- data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.min.js +10 -0
- data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.js +1390 -0
- data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.map +1 -0
- data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.min.js +9 -0
- data/assets/themes/j1/extensions/jqMouseWheel/README.md +76 -0
- data/assets/themes/j1/extensions/jqMouseWheel/js/jquery.mousewheel.js +221 -0
- data/assets/themes/j1/extensions/jqMouseWheel/js/jquery.mousewheel.min.js +9 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/LICENSE +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/README.md +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/justifiedGallery.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/theme/uno.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.js +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/less/.csslintrc +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/less/justifiedGallery.less +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/justifiedGallery.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/theme/uno.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/justifiedGallery.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/justifiedGallery.min.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/theme/uno.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/theme/uno.min.css +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/js/justifiedGallery.js +0 -0
- data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/js/justifiedGallery.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-fb-comment-box.css +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-fb-comment-box.min.css +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-transitions.css +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-transitions.min.css +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lightgallery.css +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lightgallery.min.css +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.eot +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.svg +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.ttf +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.woff +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/loading.gif +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/video-play.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/vimeo-play.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/youtube-play.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/animation-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/customize-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/dynamic-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/facebook-icon.svg +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/googleplus-icon.svg +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/html5-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/linked-in.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/module-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/play-button.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/responsive-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/thumb-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/touch-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/twitter-icon.svg +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/twitter.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/video1-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/zoom-w.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/zoom.png +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/uno.css +1 -1
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/uno.min.css +1 -1
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/core/lightgallery.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/core/lightgallery.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/j1/j1-video.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/j1/j1-video.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-autoplay.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-autoplay.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-fullscreen.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-fullscreen.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-hash.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-hash.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-pager.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-pager.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-share.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-share.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-thumbnail.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-thumbnail.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-video.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-video.min.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-zoom.js +0 -0
- data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-zoom.min.js +0 -0
- data/assets/themes/j1/extensions/lightbox/LICENSE +22 -0
- data/assets/themes/j1/extensions/lightbox/css/lightbox.css +224 -0
- data/assets/themes/j1/extensions/lightbox/css/lightbox.min.css +21 -0
- data/assets/themes/j1/extensions/lightbox/css/theme/uno.css +25 -0
- data/assets/themes/j1/extensions/lightbox/css/theme/uno.min.css +26 -0
- data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/close.png +0 -0
- data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/loading.gif +0 -0
- data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/next.png +0 -0
- data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/prev.png +0 -0
- data/assets/themes/j1/extensions/lightbox/js/lightbox.js +583 -0
- data/assets/themes/j1/extensions/lightbox/js/lightbox.min.js +35 -0
- data/assets/themes/j1/extensions/mmenuLight/css/mmenu.css +392 -0
- data/assets/themes/j1/extensions/mmenuLight/css/mmenu.min.css +393 -0
- data/assets/themes/j1/extensions/mmenuLight/css/theme/uno.css +170 -0
- data/assets/themes/j1/extensions/mmenuLight/css/theme/uno.min.css +169 -0
- data/assets/themes/j1/extensions/mmenuLight/js/mmenu.js +30 -0
- data/assets/themes/j1/extensions/noUISlider/LICENSE +13 -0
- data/assets/themes/j1/extensions/noUISlider/css/nouislider.css +260 -0
- data/assets/themes/j1/extensions/noUISlider/css/nouislider.min.css +1 -0
- data/assets/themes/j1/extensions/noUISlider/js/nouislider.js +2312 -0
- data/assets/themes/j1/extensions/noUISlider/js/nouislider.min.js +3 -0
- data/assets/themes/j1/extensions/twemoji/js/LICENSE +21 -0
- data/assets/themes/j1/extensions/twemoji/js/picker/LICENSE +21 -0
- data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.js +21 -0
- data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.min.js +21 -0
- data/assets/themes/j1/extensions/twemoji/js/twemoji.js +590 -0
- data/assets/themes/j1/extensions/twemoji/js/twemoji.min.js +25 -0
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +7 -1
- data/lib/starter_web/_config.yml +9 -8
- data/lib/starter_web/_data/_defaults/resources.yml +13 -13
- data/lib/starter_web/_data/blocks/banner.yml +21 -29
- data/lib/starter_web/_data/blocks/footer.yml +10 -3
- data/lib/starter_web/_data/blocks/panel.yml +13 -13
- data/lib/starter_web/_data/layouts/default.yml +10 -0
- data/lib/starter_web/_data/layouts/home.yml +7 -7
- data/lib/starter_web/_data/layouts/page.yml +15 -16
- data/lib/starter_web/_data/modules/advertising.yml +48 -0
- data/lib/starter_web/_data/modules/attics.yml +2 -38
- data/lib/starter_web/_data/modules/cookie_consent.yml +3 -95
- data/lib/starter_web/_data/modules/defaults/attics.yml +16 -15
- data/lib/starter_web/_data/modules/defaults/cookie_consent.yml +75 -12
- data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +9 -9
- data/lib/starter_web/_data/modules/defaults/navigator.yml +56 -21
- 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 -21
- data/lib/starter_web/_data/modules/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/navigator_menu.yml +4 -0
- data/lib/starter_web/_data/modules/ssm.yml +9 -0
- data/lib/starter_web/_data/modules/themer.yml +2 -3
- data/lib/starter_web/_data/modules/toccer.yml +6 -11
- data/lib/starter_web/_data/resources.yml +240 -112
- data/lib/starter_web/_data/template_settings.yml +117 -6
- data/lib/starter_web/_plugins/asciidoctor-extensions/fab-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/fas-icon-inline.rb +2 -2
- data/lib/starter_web/_plugins/asciidoctor-extensions/iconify-icon-inline.rb +2 -2
- data/lib/starter_web/_plugins/asciidoctor-extensions/mdi-icon-inline.rb +2 -2
- data/lib/starter_web/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb +2 -2
- data/lib/starter_web/_plugins/minifyJS.rb +54 -0
- data/lib/starter_web/_plugins/{uglify.rb → minifyJSON.rb} +15 -9
- data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/library-1920x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/runner-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/welcome-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/andreas-brucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-2_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/luca-bravo_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/thomas-tucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/banter-snaps_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/emmad-mazhari_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/ethan-brooke_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/federico-rizzarelli_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/gints-gailis_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/johan-mouchet_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/luca-bravo_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/oskars-sylwan_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/steven-diaz_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker_b.jpg +0 -0
- data/lib/starter_web/index.html +9 -8
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/clear_button.adoc +121 -0
- data/lib/starter_web/pages/public/learn/examples/floating_ad.adoc +221 -0
- data/lib/starter_web/pages/public/learn/{floating_sidebar.adoc → examples/floating_div.adoc} +60 -50
- 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/000_includes/documents/419_advanced_modals_html.asciidoc +5 -5
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +35 -44
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +39 -39
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_table_3_column.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/whats_up.adoc +1 -0
- 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 +672 -863
- data/lib/starter_web/pages/public/previewer/iframer.adoc +15 -14
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +1 -1
- 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 +2 -2
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +148 -105
- data/assets/data/colors.json +0 -42
- data/assets/data/font_sizes.json +0 -42
- data/assets/data/messages.yml +0 -131
- data/assets/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -86
- data/assets/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -58
- data/assets/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -51
- data/assets/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -68
- data/assets/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -46
- data/assets/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -79
- data/assets/themes/j1/extensions/iframe_resizer/examples/index.html +0 -70
- data/assets/themes/j1/extensions/iframe_resizer/examples/two.html +0 -71
- data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -1104
- data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -1
- data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -10
- data/assets/themes/j1/extensions/log4javascript/log4javascript.js +0 -5826
- data/assets/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -266
- data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mu-Vf9gbsLZyf0-unsplash.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -43,7 +43,6 @@ regenerate: true
|
|
43
43
|
{% comment %} Set config files
|
44
44
|
{% assign auth_manager_config = site.j1_auth %}
|
45
45
|
-------------------------------------------------------------------------------- {% endcomment %}
|
46
|
-
{% assign site_config = site %}
|
47
46
|
{% assign template_config = site.data.template_settings %}
|
48
47
|
{% assign blocks = site.data.blocks %}
|
49
48
|
{% assign modules = site.data.modules %}
|
@@ -59,9 +58,16 @@ regenerate: true
|
|
59
58
|
|
60
59
|
{% comment %} Set config options
|
61
60
|
-------------------------------------------------------------------------------- {% endcomment %}
|
61
|
+
{% assign navigator_options = navigator_defaults | merge: navigator_settings %}
|
62
62
|
{% assign nav_mmenu_options = nav_mmenu_defaults | merge: nav_mmenu_settings %}
|
63
63
|
{% assign nav_mmenu_id = navigator_defaults.nav_mmenu.xhr_container_id %}
|
64
64
|
{% assign nav_navbar_media_breakpoint = navigator_defaults.nav_bar.media_breakpoint %}
|
65
|
+
{% assign nav_mmenu_id = navigator_options.nav_mmenu.id %}
|
66
|
+
|
67
|
+
{% assign production = false %}
|
68
|
+
{% if environment == 'prod' or environment == 'production' %}
|
69
|
+
{% assign production = true %}
|
70
|
+
{% endif %}
|
65
71
|
|
66
72
|
/*
|
67
73
|
# -----------------------------------------------------------------------------
|
@@ -85,6 +91,12 @@ regenerate: true
|
|
85
91
|
# Adapter generated: {{site.time}}
|
86
92
|
# -----------------------------------------------------------------------------
|
87
93
|
*/
|
94
|
+
|
95
|
+
// -----------------------------------------------------------------------------
|
96
|
+
// ESLint shimming
|
97
|
+
// -----------------------------------------------------------------------------
|
98
|
+
/* eslint indent: "off" */
|
99
|
+
// -----------------------------------------------------------------------------
|
88
100
|
'use strict';
|
89
101
|
|
90
102
|
j1.adapter['mmenu'] = (function (j1, window) {
|
@@ -107,7 +119,6 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
107
119
|
// helper functions
|
108
120
|
// ---------------------------------------------------------------------------
|
109
121
|
|
110
|
-
|
111
122
|
// ---------------------------------------------------------------------------
|
112
123
|
// main object
|
113
124
|
// ---------------------------------------------------------------------------
|
@@ -137,7 +148,9 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
137
148
|
// -----------------------------------------------------------------------
|
138
149
|
// options loader
|
139
150
|
// -----------------------------------------------------------------------
|
151
|
+
/* eslint-disable */
|
140
152
|
var navMenuOptions = $.extend({}, {{nav_mmenu_options | replace: '=>', ':' }});
|
153
|
+
/* eslint-enable */
|
141
154
|
var xhr_data_path;
|
142
155
|
var menu_id;
|
143
156
|
|
@@ -147,31 +160,17 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
147
160
|
|
148
161
|
// Load (individual) frontmatter options (currently NOT used)
|
149
162
|
//
|
150
|
-
if (options != null) { var frontmatterOptions = $.extend({}, options) }
|
163
|
+
if (options != null) { var frontmatterOptions = $.extend({}, options); }
|
151
164
|
|
152
165
|
_this.setState('started');
|
153
166
|
logger.info('state: ' + _this.getState());
|
154
167
|
logger.info('module is being initialized');
|
155
168
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
var interval_count = 0;
|
160
|
-
var max_count = 100;
|
161
|
-
|
162
|
-
var dependencies_met_navigator = setInterval(function() {
|
163
|
-
interval_count += 1;
|
164
|
-
if ( j1.adapter.navigator.getState() == 'finished' ) {
|
165
|
-
logger.info('dependencies of module navigator met for: mmenu');
|
166
|
-
logger.info('dependencies of module navigator met after: ' + interval_count * 25 + ' ms');
|
167
|
-
j1.adapter.mmenu.mmenuLoader(navMenuOptions);
|
168
|
-
clearInterval(dependencies_met_navigator);
|
169
|
-
}
|
170
|
-
if (interval_count > max_count) {
|
171
|
-
logger.warn('dependency check failed for module: navigator');
|
172
|
-
logger.warn('dependencies of module navigator met after: ' + interval_count * 25 + ' ms');
|
173
|
-
clearInterval(dependencies_met_navigator);
|
169
|
+
var dependencies_met_page_loaded = setInterval(function() {
|
170
|
+
if ( j1.getState() == 'finished' ) {
|
171
|
+
logger.info('dependencies of module met');
|
174
172
|
j1.adapter.mmenu.mmenuLoader(navMenuOptions);
|
173
|
+
clearInterval(dependencies_met_page_loaded);
|
175
174
|
}
|
176
175
|
}, 25);
|
177
176
|
}, // END init
|
@@ -214,8 +213,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
214
213
|
|
215
214
|
j1.xhrData (
|
216
215
|
'j1.adapter.mmenu', {
|
217
|
-
xhr_container_id:
|
218
|
-
xhr_data_path:
|
216
|
+
xhr_container_id: '{{menu_id}}',
|
217
|
+
xhr_data_path: '{{xhr_data_path}}' },
|
219
218
|
{% if forloop.last %}'null'{% else %}'null'{% endif %}){% if forloop.last %}{% else %},{% endif %}
|
220
219
|
|
221
220
|
{% endif %}
|
@@ -261,8 +260,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
261
260
|
{% for item in nav_mmenu_options.menus %} {% if item.menu.enabled %}
|
262
261
|
|
263
262
|
{% assign menu_id = item.menu.xhr_container_id %}
|
264
|
-
menu_id =
|
265
|
-
xhr_data_path =
|
263
|
+
menu_id = '{{menu_id}}';
|
264
|
+
xhr_data_path = '{{item.menu.xhr_data_path}}';
|
266
265
|
|
267
266
|
// Create an mmenu instance if id exists: {{menu_id}}
|
268
267
|
if ($('#{{menu_id}}').length) {
|
@@ -322,7 +321,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
322
321
|
// ? drawer_{{menu_id}}.open()
|
323
322
|
// : drawer_{{menu_id}}.close();
|
324
323
|
|
325
|
-
drawer_{{menu_id}}.open()
|
324
|
+
drawer_{{menu_id}}.open();
|
326
325
|
});
|
327
326
|
});
|
328
327
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
@@ -353,7 +352,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
353
352
|
|
354
353
|
const drawer_{{menu_id}} = mmenu_{{menu_id}}.offcanvas ({
|
355
354
|
// drawer options
|
356
|
-
position:
|
355
|
+
position: '{{item.menu.drawer.position}}'
|
357
356
|
});
|
358
357
|
|
359
358
|
// button for the MMenu tocbar to open|close the toc drawer
|
@@ -382,7 +381,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
382
381
|
// ? drawer_{{menu_id}}.open()
|
383
382
|
// : drawer_{{menu_id}}.close();
|
384
383
|
|
385
|
-
drawer_{{menu_id}}.open()
|
384
|
+
drawer_{{menu_id}}.open();
|
386
385
|
} // END if hasclass
|
387
386
|
});
|
388
387
|
});
|
@@ -448,5 +447,9 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
448
447
|
})(j1, window);
|
449
448
|
|
450
449
|
{% endcapture %}
|
451
|
-
{
|
450
|
+
{% if production %}
|
451
|
+
{{ cache | minifyJS }}
|
452
|
+
{% else %}
|
453
|
+
{{ cache | strip_empty_lines }}
|
454
|
+
{% endif %}
|
452
455
|
{% assign cache = nil %}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -31,6 +31,14 @@ regenerate: true
|
|
31
31
|
# J1 Navigator needs a general revision on BS4 code and functionalities
|
32
32
|
# Current, only base function are tested with BS4 (was coded for BS3)
|
33
33
|
# -----------------------------------------------------------------------------
|
34
|
+
# NOTE:
|
35
|
+
# jadams, 2020-07-17:
|
36
|
+
# J1 Navigator can't be minfied for now. Uglifier fails on an ES6
|
37
|
+
# (most probably) structure that couldn't fixed by 'harmony' setting.
|
38
|
+
# Minifier fails by:
|
39
|
+
# Unexpected token: punc ())
|
40
|
+
# Current, minifying has been disabled
|
41
|
+
# -----------------------------------------------------------------------------
|
34
42
|
{% endcomment %}
|
35
43
|
|
36
44
|
{% comment %} Liquid procedures
|
@@ -49,11 +57,13 @@ regenerate: true
|
|
49
57
|
{% comment %} Set config files
|
50
58
|
{% assign auth_manager_config = site.j1_auth %}
|
51
59
|
-------------------------------------------------------------------------------- {% endcomment %}
|
52
|
-
{% assign site_config = site %}
|
53
60
|
{% assign template_config = site.data.template_settings %}
|
54
61
|
{% assign blocks = site.data.blocks %}
|
55
62
|
{% assign modules = site.data.modules %}
|
56
63
|
|
64
|
+
{% assign themer_defaults = modules.defaults.themer.defaults %}
|
65
|
+
{% assign themer_settings = modules.themer.settings %}
|
66
|
+
|
57
67
|
{% assign authentication_defaults = modules.defaults.authentication.defaults %}
|
58
68
|
{% assign authentication_settings = modules.authentication.settings %}
|
59
69
|
|
@@ -78,6 +88,7 @@ regenerate: true
|
|
78
88
|
{% comment %} Set config options
|
79
89
|
-------------------------------------------------------------------------------- {% endcomment %}
|
80
90
|
{% assign authentication_options = authentication_defaults | merge: authentication_settings %}
|
91
|
+
{% assign themer_options = themer_defaults | merge: themer_settings %}
|
81
92
|
{% assign nav_bar_options = nav_bar_defaults | merge: nav_bar_settings %}
|
82
93
|
{% assign nav_menu_options = nav_menu_defaults | merge: nav_menu_settings %}
|
83
94
|
{% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %}
|
@@ -96,6 +107,11 @@ regenerate: true
|
|
96
107
|
{% assign animate_duration = 1 %}
|
97
108
|
{% endif %}
|
98
109
|
|
110
|
+
{% assign production = false %}
|
111
|
+
{% if environment == 'prod' or environment == 'production' %}
|
112
|
+
{% assign production = true %}
|
113
|
+
{% endif %}
|
114
|
+
|
99
115
|
{% comment %}
|
100
116
|
--------------------------------------------------------------------------------
|
101
117
|
Set|Overload Liquid vars hardwired to NOT break the (MD) style
|
@@ -125,6 +141,12 @@ ToDo: Remove configuration from j1_navigator.yml
|
|
125
141
|
# Adapter generated: {{site.time}}
|
126
142
|
# -----------------------------------------------------------------------------
|
127
143
|
*/
|
144
|
+
|
145
|
+
// -----------------------------------------------------------------------------
|
146
|
+
// ESLint shimming
|
147
|
+
// -----------------------------------------------------------------------------
|
148
|
+
/* eslint indent: "off" */
|
149
|
+
// -----------------------------------------------------------------------------
|
128
150
|
'use strict';
|
129
151
|
|
130
152
|
j1.adapter['navigator'] = (function (j1, window) {
|
@@ -153,9 +175,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
153
175
|
var user_session_merged = {};
|
154
176
|
var session_state = {};
|
155
177
|
|
156
|
-
var
|
157
|
-
var j1_font_sizes = {};
|
158
|
-
|
178
|
+
var themerEnabled = false;
|
159
179
|
var authClientEnabled;
|
160
180
|
var appDetected;
|
161
181
|
var json_data;
|
@@ -168,7 +188,6 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
168
188
|
// helper functions
|
169
189
|
// ---------------------------------------------------------------------------
|
170
190
|
|
171
|
-
|
172
191
|
// ---------------------------------------------------------------------------
|
173
192
|
// main object
|
174
193
|
// ---------------------------------------------------------------------------
|
@@ -194,6 +213,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
194
213
|
// -----------------------------------------------------------------------
|
195
214
|
// options loader
|
196
215
|
// -----------------------------------------------------------------------
|
216
|
+
/* eslint-disable */
|
197
217
|
var authConfig = {};
|
198
218
|
var navDefaults = {};
|
199
219
|
var navBarConfig = {};
|
@@ -239,6 +259,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
239
259
|
|
240
260
|
// Load (individual) frontmatter options (currently NOT used)
|
241
261
|
if (options != null) { var frontmatterOptions = $.extend({}, options) }
|
262
|
+
/* eslint-enable */
|
242
263
|
|
243
264
|
_this.setState('started');
|
244
265
|
logger.info('state: ' + _this.getState());
|
@@ -281,11 +302,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
281
302
|
// core initializer
|
282
303
|
// ---------------------------------------------------------------------
|
283
304
|
|
284
|
-
//
|
285
|
-
// setTimeout (function() {
|
286
|
-
// _this.setState('data_loaded');
|
287
|
-
// }, 150);
|
288
|
-
|
305
|
+
// continue if all AJAX loads (xhrData) has finished
|
289
306
|
var dependencies_met_navigator_core = setInterval (function () {
|
290
307
|
if (_this.getState() === 'data_loaded') {
|
291
308
|
_this.setState('processing');
|
@@ -298,38 +315,41 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
298
315
|
authClientEnabled = j1.authEnabled();
|
299
316
|
logger.info('application status detected: ' + appDetected);
|
300
317
|
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
318
|
+
j1.core.navigator.init (
|
319
|
+
_this.navDefaults,
|
320
|
+
_this.navMenuOptions
|
321
|
+
);
|
322
|
+
|
323
|
+
// cast text-based booleans
|
324
|
+
themerEnabled = ({{themer_options.enabled }} === 'true');
|
325
|
+
|
326
|
+
if ({{themer_options.enabled }}) {
|
327
|
+
logText = 'theme switcher detect: enabled';
|
328
|
+
logger.info(logText);
|
329
|
+
// initialize theme switcher menu
|
330
|
+
$('#ThemeList').bootstrapThemeSwitcher({localFeed: ''}); // load themes from Bootswatch API
|
331
|
+
$('#ThemeSelect').bootstrapThemeSwitcher(); // Load (local) J1 themes
|
332
|
+
logText = 'theme switcher menu loaded successfully';
|
333
|
+
logger.info(logText);
|
334
|
+
} else {
|
335
|
+
logText = 'theme switcher detect: disabled';
|
336
|
+
logger.info(logText);
|
337
|
+
}
|
338
|
+
_this.setState('initialized');
|
317
339
|
|
318
340
|
// -----------------------------------------------------------------
|
319
|
-
// event handler
|
320
|
-
// NOTE: jadams, 2019-08-22:
|
321
|
-
// Add to dependcy to themer to fix
|
322
|
-
// missing color setting for menu bar background
|
341
|
+
// event handler|css styles
|
323
342
|
// -----------------------------------------------------------------
|
324
|
-
|
325
|
-
|
343
|
+
// continue if Theme CSS is applied
|
344
|
+
var dependencies_met_adapter_finished = setInterval(function() {
|
345
|
+
if (j1.adapter.themer.getState() === 'finished') {
|
326
346
|
_this.setState('processing');
|
327
347
|
|
328
|
-
logger.info('initialize
|
348
|
+
logger.info('initialize eventHandler');
|
329
349
|
j1.core.navigator.eventHandler();
|
330
350
|
|
331
|
-
// set general|global
|
332
|
-
logger.info('apply styles');
|
351
|
+
// set general|global theme colors
|
352
|
+
logger.info('apply dynamic CSS styles');
|
333
353
|
_this.setCSS (
|
334
354
|
navBarOptions, navMenuOptions,
|
335
355
|
navQuicklinksOptions, navTopsearchOptions
|
@@ -339,9 +359,9 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
339
359
|
j1.adapter.navigator.initAuthClient(j1.adapter.navigator.navAuthManagerConfig);
|
340
360
|
_this.setState('finished');
|
341
361
|
logger.info('state: ' + _this.getState());
|
342
|
-
clearInterval(
|
362
|
+
clearInterval(dependencies_met_adapter_finished);
|
343
363
|
}
|
344
|
-
}, 25); // END '
|
364
|
+
}, 25); // END 'dependencies_met_adapter_finished'
|
345
365
|
clearInterval(dependencies_met_navigator_core);
|
346
366
|
}
|
347
367
|
}, 25); // END 'dependencies_met_navigator_core'
|
@@ -354,14 +374,23 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
354
374
|
$(window).on('resize', function() {
|
355
375
|
j1.core.navigator.manageDropdownMenu(navDefaults, navMenuOptions);
|
356
376
|
|
377
|
+
// jadams, 2020-07-10: cause severe trouble on mobile devices if
|
378
|
+
// OnScreen Kbd comes up and reduces the window size (resize event)
|
379
|
+
// DISABLED
|
380
|
+
// -------------------------------------------------------------------
|
357
381
|
// Hide|Close topSearch on resize event
|
358
|
-
$('.top-search').slideUp();
|
382
|
+
// $('.top-search').slideUp();
|
359
383
|
|
360
384
|
// Manage sticky NAV bars
|
361
385
|
setTimeout (function(){
|
362
386
|
j1.core.navigator.navbarSticky();
|
363
387
|
}, 500);
|
364
388
|
|
389
|
+
// Scroll the page one pixel back and forth to get
|
390
|
+
// the right position for Toccer (trigger) and SSM
|
391
|
+
$(window).scrollTop($(window).scrollTop()+1);
|
392
|
+
$(window).scrollTop($(window).scrollTop()-1);
|
393
|
+
|
365
394
|
// jadams, 2020-06-21: unclear|forgotten what I'm doing here!
|
366
395
|
// Looks like the old BS3 implementation
|
367
396
|
//
|
@@ -375,7 +404,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
375
404
|
}, // END init
|
376
405
|
|
377
406
|
// -------------------------------------------------------------------------
|
378
|
-
//
|
407
|
+
// initialize JS portion for the dialogs (modals) used by J1AuthClient
|
379
408
|
// NOTE: Currently cookie updates NOT processed at the NAV module
|
380
409
|
// All updates on Cookies are managed by Cookie Consent.
|
381
410
|
// To be considered to re-add cookie updates for the auth state
|
@@ -409,7 +438,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
409
438
|
// See: https://www.nickang.com/add-event-listener-for-loop-problem-in-javascript/
|
410
439
|
// -------------------------------------------------------------------------
|
411
440
|
modalEventHandler: function (options) {
|
412
|
-
// var logger = log4javascript.getLogger(
|
441
|
+
// var logger = log4javascript.getLogger('j1.adapter.navigator.EventHandler');
|
413
442
|
var authConfig = options.j1_auth;
|
414
443
|
var route;
|
415
444
|
var provider;
|
@@ -419,17 +448,17 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
419
448
|
|
420
449
|
var signIn = {
|
421
450
|
provider: authConfig.providers.activated[0],
|
422
|
-
users: authConfig.providers[authConfig.providers[
|
451
|
+
users: authConfig.providers[authConfig.providers['activated'][0]]['users'],
|
423
452
|
do: false
|
424
|
-
}
|
453
|
+
};
|
425
454
|
|
426
455
|
var signOut = {
|
427
456
|
provider: authConfig.providers.activated[0],
|
428
457
|
providerSignOut: false,
|
429
458
|
do: false
|
430
|
-
}
|
459
|
+
};
|
431
460
|
|
432
|
-
logText =
|
461
|
+
logText = 'initialize button click events';
|
433
462
|
logger.info(logText);
|
434
463
|
|
435
464
|
// Manage button click events for modal "signInOutButton"
|
@@ -442,13 +471,13 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
442
471
|
signIn.allowed_users = signIn.users.toString();
|
443
472
|
});
|
444
473
|
|
445
|
-
$(
|
446
|
-
if (this.id ===
|
474
|
+
$('a.btn').click(function() {
|
475
|
+
if (this.id === 'signInButton') {
|
447
476
|
signIn.do = true;
|
448
477
|
} else {
|
449
478
|
signIn.do = false;
|
450
479
|
}
|
451
|
-
if (this.id ===
|
480
|
+
if (this.id === 'signOutButton') {
|
452
481
|
signOut.do = true;
|
453
482
|
} else {
|
454
483
|
signOut.do = false;
|
@@ -457,16 +486,16 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
457
486
|
|
458
487
|
$('input:checkbox[name="providerSignOut"]').on('click', function (e) {
|
459
488
|
e.stopPropagation();
|
460
|
-
signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(
|
461
|
-
if(environment
|
462
|
-
logText =
|
489
|
+
signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(':checked');
|
490
|
+
if(environment === 'development') {
|
491
|
+
logText = 'provider signout set to: ' + signOut.providerSignOut;
|
463
492
|
logger.info(logText);
|
464
493
|
}
|
465
494
|
});
|
466
495
|
|
467
496
|
// Manage pre events on modal "modalOmniSignIn"
|
468
497
|
// -----------------------------------------------------------------------
|
469
|
-
$(
|
498
|
+
$('#modalOmniSignOut').on('show.bs.modal', function() {
|
470
499
|
var modal = $(this);
|
471
500
|
logger.info('place current user data');
|
472
501
|
user_session = j1.readCookie(cookie_user_session_name);
|
@@ -475,7 +504,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
475
504
|
|
476
505
|
// Manage post events on modal "modalOmniSignIn"
|
477
506
|
// -----------------------------------------------------------------------
|
478
|
-
$(
|
507
|
+
$('#modalOmniSignIn').on('hidden.bs.modal', function() {
|
479
508
|
if (signIn.do == true) {
|
480
509
|
provider = signIn.provider.toLowerCase();
|
481
510
|
allowed_users = signIn.users.toString();
|
@@ -497,11 +526,11 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
497
526
|
|
498
527
|
// Manage post events on modal "modalOmniSignOut"
|
499
528
|
// -----------------------------------------------------------------------
|
500
|
-
$(
|
529
|
+
$('#modalOmniSignOut').on('hidden.bs.modal', function() {
|
501
530
|
if (signOut.do == true) {
|
502
531
|
logger.info('load active provider from cookie: ' + cookie_user_session_name);
|
503
532
|
|
504
|
-
user_session
|
533
|
+
user_session = j1.readCookie(cookie_user_session_name);
|
505
534
|
provider = user_session.provider;
|
506
535
|
provider_url = user_session.provider_site_url;
|
507
536
|
|
@@ -523,7 +552,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
523
552
|
}
|
524
553
|
}); // END post events "modalSignOut"
|
525
554
|
|
526
|
-
logText =
|
555
|
+
logText = 'initialize button click events completed';
|
527
556
|
logger.info(logText);
|
528
557
|
|
529
558
|
return true;
|
@@ -534,50 +563,40 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
534
563
|
// Set dynamic CSS styles
|
535
564
|
// -------------------------------------------------------------------------
|
536
565
|
setCSS: function (navBarOptions, navMenuOptions, navQuicklinksOptions, navTopsearchOptions) {
|
537
|
-
var logger = log4javascript.getLogger(
|
566
|
+
var logger = log4javascript.getLogger('j1.adapter.navigator.setCSS');
|
538
567
|
var gridBreakpoint_lg = '992px';
|
539
568
|
var gridBreakpoint_md = '768px';
|
540
569
|
var gridBreakpoint_sm = '576px';
|
541
570
|
|
542
|
-
{% comment %} Resolve symbolic font sizes
|
543
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
544
|
-
|
545
571
|
{% comment %} Set|Resolve navMenuOptions
|
546
572
|
-------------------------------------------------------------------------- {% endcomment %}
|
547
|
-
navMenuOptions.dropdown_font_size =
|
548
|
-
navMenuOptions.megamenu_font_size =
|
549
|
-
|
550
|
-
|
551
|
-
{% comment %} Resolve symbolic color names
|
552
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
573
|
+
navMenuOptions.dropdown_font_size = navMenuOptions.dropdown_font_size;
|
574
|
+
navMenuOptions.megamenu_font_size = navMenuOptions.megamenu_font_size;
|
553
575
|
|
554
576
|
{% comment %} Set|Resolve navBarOptions
|
555
577
|
-------------------------------------------------------------------------- {% endcomment %}
|
556
|
-
navBarOptions.background_color_full =
|
557
|
-
// navBarOptions.background_color_collapsed = j1.setColorData(navBarOptions.background_color_collapsed);
|
558
|
-
// navBarOptions.background_color_scrolled = j1.setColorData(navBarOptions.background_color_scrolled);
|
578
|
+
navBarOptions.background_color_full = navBarOptions.background_color_full;
|
559
579
|
|
560
580
|
{% comment %} Set|Resolve navMenuOptions
|
561
581
|
-------------------------------------------------------------------------- {% endcomment %}
|
562
|
-
navMenuOptions.menu_item_color =
|
563
|
-
navMenuOptions.menu_item_color_hover =
|
564
|
-
navMenuOptions.menu_item_dropdown_color =
|
565
|
-
navMenuOptions.dropdown_item_color =
|
566
|
-
navMenuOptions.dropdown_background_color_hover =
|
567
|
-
navMenuOptions.dropdown_background_color_active =
|
568
|
-
navMenuOptions.dropdown_border_color =
|
582
|
+
navMenuOptions.menu_item_color = navMenuOptions.menu_item_color;
|
583
|
+
navMenuOptions.menu_item_color_hover = navMenuOptions.menu_item_color_hover;
|
584
|
+
navMenuOptions.menu_item_dropdown_color = navMenuOptions.menu_item_dropdown_color;
|
585
|
+
navMenuOptions.dropdown_item_color = navMenuOptions.dropdown_item_color;
|
586
|
+
navMenuOptions.dropdown_background_color_hover = navMenuOptions.dropdown_background_color_hover;
|
587
|
+
navMenuOptions.dropdown_background_color_active = navMenuOptions.dropdown_background_color_active;
|
588
|
+
navMenuOptions.dropdown_border_color = navMenuOptions.dropdown_border_color;
|
569
589
|
|
570
590
|
{% comment %} Set|Resolve navQuicklinksOptions
|
571
591
|
-------------------------------------------------------------------------- {% endcomment %}
|
572
|
-
navQuicklinksOptions.icon_color =
|
573
|
-
navQuicklinksOptions.icon_color_hover =
|
574
|
-
navQuicklinksOptions.background_color =
|
592
|
+
navQuicklinksOptions.icon_color = navQuicklinksOptions.icon_color;
|
593
|
+
navQuicklinksOptions.icon_color_hover = navQuicklinksOptions.icon_color_hover;
|
594
|
+
navQuicklinksOptions.background_color = navQuicklinksOptions.background_color;
|
575
595
|
|
576
596
|
{% comment %} Set|Resolve navTopsearchOptions
|
577
597
|
-------------------------------------------------------------------------- {% endcomment %}
|
578
|
-
navTopsearchOptions.input_color =
|
579
|
-
navTopsearchOptions.background_color =
|
580
|
-
|
598
|
+
navTopsearchOptions.input_color = navTopsearchOptions.input_color;
|
599
|
+
navTopsearchOptions.background_color = navTopsearchOptions.background_color;
|
581
600
|
|
582
601
|
{% comment %} Set dymanic styles
|
583
602
|
-------------------------------------------------------------------------- {% endcomment %}
|
@@ -585,94 +604,61 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
585
604
|
{% comment %} navBar styles
|
586
605
|
-------------------------------------------------------------------------- {% endcomment %}
|
587
606
|
var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
|
588
|
-
var bg_scrolled = bg_primary
|
607
|
+
var bg_scrolled = bg_primary;
|
589
608
|
var bg_collapsed = bg_primary;
|
590
609
|
|
591
610
|
$('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
|
592
611
|
|
593
612
|
// 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>");
|
613
|
+
$('head').append('<style>.navbar-brand > img { height: {{brand_image_height}}px !important; }</style>');
|
600
614
|
|
601
|
-
//
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
/* Navbar media-queries, LARGE Window|Desktop (>= 1024) */
|
606
|
-
/* jadams: Oversized menu bar fixed by: overflow: hidden */
|
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>");
|
615
|
+
// Navbar transparent-light (light)
|
616
|
+
$('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>');
|
617
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
610
618
|
|
611
619
|
{% comment %} navQuicklinks styles
|
612
620
|
-------------------------------------------------------------------------- {% endcomment %}
|
613
|
-
$('head').append(
|
614
|
-
$('head').append(
|
621
|
+
$('head').append('<style>.attr-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
|
622
|
+
$('head').append('<style>.attr-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
|
615
623
|
|
616
624
|
{% comment %} navMenu styles
|
617
625
|
-------------------------------------------------------------------------- {% 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
626
|
// Remove background for anchor
|
624
|
-
$('head').append(
|
627
|
+
$('head').append('<style>.dropdown-menu > .active > a { background-color: transparent !important; }</style>');
|
625
628
|
// 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>");
|
629
|
+
$('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
630
|
|
633
|
-
//
|
634
|
-
$('head').append(
|
631
|
+
// Limit 1st dropdown item width
|
632
|
+
$('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
633
|
|
636
634
|
// Limit last (2nd) dropdown in height (nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu)
|
637
|
-
$('head').append(
|
635
|
+
$('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
636
|
|
639
637
|
// Set dropdown item colors
|
640
|
-
$('head').append(
|
641
|
-
$('head').append(
|
638
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a { color: ' +navMenuOptions.menu_item_color+ ' !important; } }</style>');
|
639
|
+
$('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
640
|
|
643
641
|
// 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
642
|
// jadams, 2017-11-30: removed left padding from dropdown mwenu (for new j1nav style based on Navigator|Slate)
|
647
|
-
$('head').append(
|
643
|
+
$('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
644
|
|
649
645
|
{% if dropdown_style == 'raised' %}
|
650
|
-
$('head').append(
|
646
|
+
$('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
647
|
{% endif %}
|
652
648
|
|
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 %}
|
649
|
+
// jadams, 2017-11-22: configure dropdown_font_size|color
|
650
|
+
$('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>');
|
651
|
+
$('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
652
|
|
668
653
|
{% comment %} navQuicklinks styles
|
669
654
|
-------------------------------------------------------------------------- {% endcomment %}
|
670
655
|
|
671
656
|
{% comment %} navTopSearch Styles
|
672
657
|
-------------------------------------------------------------------------- {% endcomment %}
|
673
|
-
|
674
|
-
|
675
|
-
$('head').append(
|
658
|
+
// jadams, 2020-07-08: disabled because colors for icons set by the icon font settings
|
659
|
+
// $('head').append('<style>.top-search .input-group-addon { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
|
660
|
+
$('head').append('<style>.top-search { background-color: ' +navTopsearchOptions.background_color+ ' !important; }</style>');
|
661
|
+
$('head').append('<style>.top-search input.form-control { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
|
676
662
|
|
677
663
|
return true;
|
678
664
|
}, // END setCSS
|
@@ -683,11 +669,11 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
683
669
|
// See: http://jsfiddle.net/AndreasPizsa/NzvKC/
|
684
670
|
// -------------------------------------------------------------------------
|
685
671
|
delayShowMenu: function () {
|
686
|
-
var logger = log4javascript.getLogger(
|
672
|
+
var logger = log4javascript.getLogger('j1.adapter.navigator.delayShowMenu');
|
687
673
|
var theTimer = 0;
|
688
674
|
var theElement = null;
|
689
675
|
|
690
|
-
logText =
|
676
|
+
logText ='entered delayShowMenu';
|
691
677
|
logger.info(logText);
|
692
678
|
|
693
679
|
$('#navigator_nav_menu')
|