j1-template 2020.0.13 → 2020.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/blocks/footer/boxes/about_box.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +2 -2
- data/_includes/themes/j1/layouts/content_generator_page.html +23 -23
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +1 -1
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +5 -2
- data/_includes/themes/j1/procedures/layouts/content_writer.proc +8 -9
- data/_includes/themes/j1/procedures/layouts/module_writer.1.proc +270 -0
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +3 -13
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +10 -10
- data/_layouts/default.html +60 -54
- data/apps/public/cc/index.adoc +2 -6
- data/assets/data/authclient.html +5 -5
- data/assets/data/banner.html +2 -2
- data/assets/data/{cookie_consent.html → cookiebar.html} +76 -50
- data/assets/data/footer.html +1 -3
- data/assets/data/gallery_customizer.html +3 -3
- data/assets/data/jupyter/notebooks/_html/template.full.head.html +10 -10
- data/assets/data/jupyter/notebooks/_html/visualisation.html +11 -11
- data/assets/data/jupyter/notebooks/html/template.html +7 -7
- data/assets/data/jupyter/notebooks/html/visualisation.ok.html +12 -12
- data/assets/data/menu.html +3 -3
- data/assets/data/mmenu.html +3 -3
- data/assets/data/mmenu_sidebar.html +2 -2
- data/assets/data/mmenu_toc.html +2 -2
- data/assets/data/panel.html +18 -17
- data/assets/data/quicklinks.html +17 -17
- data/assets/data/search.json +81 -80
- data/assets/data/ssm.html +2 -2
- data/assets/data/twa_v1.json +6978 -6980
- data/assets/themes/j1/adapter/js/algolia.js +16 -14
- data/assets/themes/j1/adapter/js/attic.js +25 -33
- data/assets/themes/j1/adapter/js/carousel.js +15 -11
- data/assets/themes/j1/adapter/js/clipboard.js +19 -17
- data/assets/themes/j1/adapter/js/cookiebar.js +204 -0
- data/assets/themes/j1/adapter/js/framer.js +27 -19
- data/assets/themes/j1/adapter/js/gallery_customizer.js +219 -248
- data/assets/themes/j1/adapter/js/j1.js +273 -153
- data/assets/themes/j1/adapter/js/jf_gallery.js +21 -20
- data/assets/themes/j1/adapter/js/lightbox.js +9 -8
- data/assets/themes/j1/adapter/js/logger.js +2 -4
- data/assets/themes/j1/adapter/js/mdb.js +27 -30
- data/assets/themes/j1/adapter/js/mmenu.js +47 -51
- data/assets/themes/j1/adapter/js/navigator.js +153 -123
- data/assets/themes/j1/adapter/js/searcher.js +18 -12
- data/assets/themes/j1/adapter/js/ssm.js +82 -82
- data/assets/themes/j1/adapter/js/themer.js +72 -78
- data/assets/themes/j1/adapter/js/toccer.js +11 -9
- data/assets/themes/j1/core/css/animate.css +2382 -0
- data/assets/themes/j1/core/css/animate.min.css +7 -0
- data/assets/themes/j1/core/css/fontawesome.css +4415 -0
- data/assets/themes/j1/core/css/fontawesome.min.css +1 -0
- data/assets/themes/j1/core/css/iconify-icons.css +4106 -0
- data/assets/themes/j1/core/css/iconify-icons.min.css +1 -0
- data/assets/themes/j1/core/css/material-design-icons.css +14532 -0
- data/assets/themes/j1/core/css/material-design-icons.min.css +1 -0
- data/assets/themes/j1/core/css/theme_extensions.css +99 -1697
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/twemoji.css +9485 -0
- data/assets/themes/j1/core/css/twemoji.min.css +1 -0
- data/assets/themes/j1/core/css/uno.css +128 -1680
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +767 -33164
- data/assets/themes/j1/core/css/vendor.min.css +2 -9
- data/assets/themes/j1/core/js/template.js +26 -347
- 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/modules/backstretch/js/backstretch.js +1695 -0
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +21 -0
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js.org +1 -0
- data/assets/themes/j1/modules/bmd/css/bootstrap-material-design.css +12177 -0
- data/assets/themes/j1/modules/bmd/css/bootstrap-material-design.min.css +8 -0
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.js +6930 -0
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.js.map +1 -0
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.min.js +1 -0
- data/assets/themes/j1/modules/bootstrap/css/bootstrap.css +10278 -0
- data/assets/themes/j1/modules/bootstrap/css/bootstrap.css.map +1 -0
- data/assets/themes/j1/modules/bootstrap/css/bootstrap.min.css +7 -0
- data/assets/themes/j1/modules/bootstrap/css/bootstrap.min.css.map +1 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +4420 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.js.map +1 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +7 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -0
- data/assets/themes/j1/{extensions → modules}/bsDatepicker/css/datepicker.css +1 -1
- data/assets/themes/j1/{extensions → modules}/bsDatepicker/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/bsDatepicker/js/datepicker.js +1 -1
- data/assets/themes/j1/{extensions → modules}/bsDatepicker/less/datepicker.less +0 -0
- data/assets/themes/j1/{extensions → modules}/bsThemeSwitcher/js/switcher.js +19 -10
- data/assets/themes/j1/{extensions → modules}/bsThemeSwitcher/js/switcher.min.js +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/css/carousel.css +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/css/carousel.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/css/carousel_transitions.css +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/css/carousel_transitions.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/carousel/images/ajax-loader.gif +0 -0
- data/assets/themes/j1/{extensions → modules}/carousel/images/grabbing.png +0 -0
- data/assets/themes/j1/{extensions → modules}/carousel/images/owl-logo.png +0 -0
- data/assets/themes/j1/{extensions → modules}/carousel/images/owl.video.play.png +0 -0
- data/assets/themes/j1/{extensions → modules}/carousel/js/carousel.js +0 -0
- data/assets/themes/j1/{extensions → modules}/carousel/js/carousel.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/clipboard/LICENSE +0 -0
- data/assets/themes/j1/{extensions → modules}/clipboard/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/clipboard/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/clipboard/js/clipboard.js +0 -0
- data/assets/themes/j1/{extensions → modules}/clipboard/js/clipboard.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/iconifyAPI/js/iconify.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/LICENSE +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/frame.absolute.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/frame.content.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/frame.hover.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/frame.nested.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/frame.textarea.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/frame.tolerance.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/index.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/examples/two.html +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/js/client/iframeResizer.contentWindow.js +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/js/client/iframeResizer.contentWindow.map +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/js/client/iframeResizer.contentWindow.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/js/iframeResizer.js +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/js/iframeResizer.map +0 -0
- data/assets/themes/j1/{extensions → modules}/iframeResizer/js/iframeResizer.min.js +0 -0
- data/assets/themes/j1/modules/jekyllSearch/js/simple-jekyll-search.js +624 -0
- data/assets/themes/j1/modules/jekyllSearch/js/simple-jekyll-search.min.js +6 -0
- data/assets/themes/j1/{extensions → modules}/jqMouseWheel/README.md +0 -0
- data/assets/themes/j1/{extensions → modules}/jqMouseWheel/js/jquery.mousewheel.js +0 -0
- data/assets/themes/j1/{extensions → modules}/jqMouseWheel/js/jquery.mousewheel.min.js +0 -0
- data/assets/themes/j1/modules/jquery/js/jquery.js +10869 -0
- data/assets/themes/j1/modules/jquery/js/jquery.min.js +2 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/LICENSE +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/README.md +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.css +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
- data/assets/themes/j1/{extensions/justifiedGallery/_versions/v4.0.0 → modules/justifiedGallery/_versions/v3.7.0}/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.js +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/less/.csslintrc +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v3.7.0/less/justifiedGallery.less +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v4.0.0/css/justifiedGallery.css +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
- data/assets/themes/j1/{extensions/justifiedGallery/_versions/v3.7.0 → modules/justifiedGallery/_versions/v4.0.0}/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/css/justifiedGallery.css +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/css/justifiedGallery.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/js/justifiedGallery.js +0 -0
- data/assets/themes/j1/{extensions → modules}/justifiedGallery/js/justifiedGallery.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/core/lg-fb-comment-box.css +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/core/lg-fb-comment-box.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/core/lg-transitions.css +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/core/lg-transitions.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/core/lightgallery.css +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/core/lightgallery.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/fonts/lg.eot +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/fonts/lg.svg +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/fonts/lg.ttf +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/fonts/lg.woff +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/img/loading.gif +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/img/video-play.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/img/vimeo-play.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/img/youtube-play.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/animation-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/customize-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/dynamic-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/facebook-icon.svg +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/googleplus-icon.svg +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/html5-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/linked-in.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/module-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/play-button.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/responsive-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/thumb-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/touch-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/twitter-icon.svg +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/twitter.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/video1-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/zoom-w.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/icons/zoom.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/lightGallery/css/themes/uno.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/core/lightgallery.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/core/lightgallery.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/j1/j1-video.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/j1/j1-video.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-autoplay.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-autoplay.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-fullscreen.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-fullscreen.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-hash.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-hash.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-pager.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-pager.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-share.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-share.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-thumbnail.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-thumbnail.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-video.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-video.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-zoom.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightGallery/js/modules/lg-zoom.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/LICENSE +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/css/lightbox.css +1 -1
- data/assets/themes/j1/{extensions → modules}/lightbox/css/lightbox.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/lightbox/css/theme/uno.css +1 -1
- data/assets/themes/j1/{extensions → modules}/lightbox/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/{extensions → modules}/lightbox/images/close.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/images/loading.gif +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/images/next.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/images/prev.png +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/js/lightbox.js +0 -0
- data/assets/themes/j1/{extensions → modules}/lightbox/js/lightbox.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/mmenuLight/css/mmenu.css +1 -1
- data/assets/themes/j1/{extensions → modules}/mmenuLight/css/mmenu.min.css +0 -0
- data/assets/themes/j1/{extensions/mmenuLight/css/theme/uno.min.css → modules/mmenuLight/css/theme/uno.css} +21 -12
- data/assets/themes/j1/{extensions/mmenuLight/css/theme/uno.css → modules/mmenuLight/css/theme/uno.min.css} +2 -2
- data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +563 -0
- data/assets/themes/j1/{extensions/mmenuLight/js/mmenu.js → modules/mmenuLight/js/mmenu.min.js} +1 -1
- data/assets/themes/j1/{extensions → modules}/noUISlider/LICENSE +0 -0
- data/assets/themes/j1/{extensions → modules}/noUISlider/css/nouislider.css +0 -0
- data/assets/themes/j1/{extensions → modules}/noUISlider/css/nouislider.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/noUISlider/js/nouislider.js +0 -0
- data/assets/themes/j1/{extensions → modules}/noUISlider/js/nouislider.min.js +0 -0
- data/assets/themes/j1/modules/polyfills/js/msie.js +140 -0
- data/assets/themes/j1/modules/popper/js/popper.js +2623 -0
- data/assets/themes/j1/modules/popper/js/popper.js.map +1 -0
- data/assets/themes/j1/modules/popper/js/popper.min.js +4 -0
- data/assets/themes/j1/modules/popper/js/popper.min.js.map +1 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.dark/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.light/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.monokai.dark/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.monokai.light/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.monokai/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.solarized.dark/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.solarized.light/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16.solarized/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/base16/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/colorful/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/github/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/gruvbox.dark/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/gruvbox.light/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/gruvbox/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/igorpro/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/molokai/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/monokai.sublime/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/monokai/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/pastie/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/thankful_eyes/theme.css +0 -0
- data/assets/themes/j1/{extensions → modules}/rouge/css/tulip/theme.css +0 -0
- data/assets/themes/j1/modules/tocbot/css/theme/uno.css +89 -0
- data/assets/themes/j1/modules/tocbot/css/theme/uno.min.css +89 -0
- data/assets/themes/j1/modules/tocbot/css/tocbot.css +75 -0
- data/assets/themes/j1/modules/tocbot/css/tocbot.min.css +19 -0
- data/assets/themes/j1/modules/tocbot/js/tocbot.js +19 -0
- data/assets/themes/j1/modules/tocbot/js/tocbot.min.js +19 -0
- data/assets/themes/j1/{extensions → modules}/twemoji/js/LICENSE +0 -0
- data/assets/themes/j1/{extensions → modules}/twemoji/js/picker/LICENSE +0 -0
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +275 -0
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +275 -0
- data/assets/themes/j1/{extensions → modules}/twemoji/js/twemoji.js +0 -1
- data/assets/themes/j1/modules/twemoji/js/twemoji.min.js +25 -0
- data/assets/themes/j1/modules/util/js/js.cookie.js +163 -0
- data/assets/themes/j1/modules/util/js/lite-url.js +203 -0
- data/assets/themes/j1/modules/util/js/lite-url.min.js +7 -0
- data/assets/themes/j1/modules/util/js/log4javascript.js +264 -0
- data/assets/themes/j1/modules/util/js/platform.js +1260 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/city.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/city.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/fantasy.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/fantasy.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/forest.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/forest.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/sea.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/themes/sea.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/video-js.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/css/video-js.min.css +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/js/video.js +0 -0
- data/assets/themes/j1/{extensions → modules}/videojs/js/video.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/vimeo/froogaloop/js/froogaloop2.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/vimeo/player/js/player.js +0 -0
- data/assets/themes/j1/{extensions → modules}/vimeo/player/js/player.js.map +0 -0
- data/assets/themes/j1/{extensions → modules}/vimeo/player/js/player.min.js +0 -0
- data/assets/themes/j1/{extensions → modules}/vimeo/player/js/player.min.js.map +0 -0
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +10 -10
- data/lib/starter_web/_config.yml +4 -4
- data/lib/starter_web/_data/blocks/banner.yml +2 -2
- data/lib/starter_web/_data/blocks/panel.yml +8 -8
- data/lib/starter_web/_data/modules/attics.yml +1 -1
- data/lib/starter_web/_data/modules/cookiebar.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +101 -50
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -4
- data/lib/starter_web/_data/modules/themer.yml +9 -9
- data/lib/starter_web/_data/resources.yml +247 -170
- data/lib/starter_web/_data/template_settings.yml +11 -10
- data/lib/starter_web/_plugins/asciidoctor-extensions/banner.rb +43 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/panel.rb +43 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions/lorem-inline.rb → lorem-inline.rb} +0 -0
- data/lib/starter_web/assets/images/modules/attics/aditya-joshi-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/admin-dashboard-bootstrap-1280x800-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/docker-1280x600-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/jekyll.1200x600-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/library-1920x800-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/runner-1920x1200-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/welcome-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/bootstrap-1920x1000-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/cards-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/emojies-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/icon-fonts-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/images-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/puzzle-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/tables-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/themes-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/typography-1920x1280-bw.webp +0 -0
- data/lib/starter_web/assets/videos/headers/still/underground-broadway.webp +0 -0
- data/lib/starter_web/assets/videos/headers/still/victoria-oskolovich-on-vimeo.webp +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb +5 -6
- data/lib/starter_web/collections/posts/public/featured/_posts/2018-05-01-confusion-about-base-url.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2019-05-01-top-open-source-static-site-generators.adoc +19 -19
- data/lib/starter_web/collections/posts/public/featured/_posts/2019-06-01-about-cookies.adoc +38 -42
- data/lib/starter_web/collections/posts/public/series/_posts/2018-11-01-docker-using-shared-folders.adoc +4 -7
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +1 -3
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +3 -3
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +4 -4
- data/lib/starter_web/index.html +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/about/about_site.adoc +1 -1
- data/lib/starter_web/pages/public/about/become_a_patron.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +24 -18
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +39 -34
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +43 -30
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +29 -29
- data/lib/starter_web/pages/public/blog/navigator/index.html +3 -3
- data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour.1.asciidoc +1 -2
- data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour.adoc +1 -2
- data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour_api.adoc +16 -18
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/419_advanced_modals_html.asciidoc +3 -3
- 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 +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +3 -3
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +10 -11
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +3 -3
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +20 -22
- data/lib/starter_web/pages/public/{previewer/mdb_preview → learn/roundtrip/510_mdb_preview}/000_includes/attributes.asciidoc +0 -0
- data/lib/starter_web/pages/public/{previewer/mdb_preview → learn/roundtrip/510_mdb_preview}/000_includes/documents/100_buttons.asciidoc +0 -0
- data/lib/starter_web/pages/public/{previewer/mdb_preview → learn/roundtrip/510_mdb_preview}/mdb_previewer.adoc +0 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/attributes.asciidoc +3 -3
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/419_advanced_modals_html.asciidoc +5 -5
- data/lib/starter_web/pages/public/learn/whats_up.adoc +2 -3
- data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/100_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +9 -9
- data/lib/starter_web/pages/public/previewer/iframer.adoc +4 -3
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +2 -2
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +1 -1
- data/lib/starter_web/pages/public/site_search.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +284 -241
- data/assets/themes/j1/adapter/js/cookie_consent.js +0 -286
- data/assets/themes/j1/core/css/custom.scss +0 -28
- data/assets/themes/j1/core/css/globals.css +0 -14523
- data/assets/themes/j1/core/css/globals.min.css +0 -1
- data/assets/themes/j1/core/css/uno.scss +0 -28
- data/assets/themes/j1/core/css/vendor.scss +0 -28
- data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.js +0 -21
- data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.min.js +0 -21
- data/assets/themes/j1/extensions/twemoji/js/twemoji.min.js +0 -25
- data/lib/starter_web/_data/modules/cookie_consent.yml +0 -36
- data/lib/starter_web/assets/images/modules/attics/aditya-joshi-1920x1280.jpg +0 -0
- 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/admin-dashboard-bootstrap-1280x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/docker-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/jekyll.1200x600-bw.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/pages/roundtrip/bootstrap-1920x1000-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/cards-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/emojies-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/icon-fonts-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/images-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/puzzle-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/tables-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/themes-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/typography-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/videos/headers/still/underground-broadway.png +0 -0
- data/lib/starter_web/assets/videos/headers/still/victoria-oskolovich-on-vimeo.png +0 -0
- data/lib/starter_web/pages/public/clear_button.adoc +0 -121
@@ -102,8 +102,16 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
102
102
|
// Initializer
|
103
103
|
// -------------------------------------------------------------------------
|
104
104
|
init: function (options) {
|
105
|
+
|
106
|
+
{% comment %} Set global variables
|
107
|
+
-------------------------------------------------------------------------- {% endcomment %}
|
108
|
+
_this = j1.adapter.jf_gallery;
|
109
|
+
logger = log4javascript.getLogger('j1.adapter.jf_gallery');
|
110
|
+
|
105
111
|
// initialize state flag
|
106
|
-
|
112
|
+
_this.setState('started');
|
113
|
+
logger.info('state: ' + _this.getState());
|
114
|
+
logger.info('module is being initialized');
|
107
115
|
|
108
116
|
// -----------------------------------------------------------------------
|
109
117
|
// Default module settings
|
@@ -125,18 +133,11 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
125
133
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
126
134
|
}
|
127
135
|
|
128
|
-
{% comment %} Set global variables
|
129
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
130
|
-
_this = j1.adapter.jf_gallery;
|
131
|
-
logger = log4javascript.getLogger('j1.adapter.jf_gallery');
|
132
|
-
|
133
|
-
_this.setState('started');
|
134
|
-
logger.info('state: ' + _this.getState());
|
135
|
-
logger.info('module is being initialized');
|
136
|
-
|
137
136
|
_this.initialize(moduleOptions);
|
138
137
|
|
139
|
-
|
138
|
+
_this.setState('finished');
|
139
|
+
logger.info('state: ' + _this.getState());
|
140
|
+
logger.info('module initialized successfully');
|
140
141
|
},
|
141
142
|
|
142
143
|
// -----------------------------------------------------------------------
|
@@ -242,7 +243,7 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
242
243
|
|
243
244
|
// Collect html5 video gallery data from data file (xhr_data_path)
|
244
245
|
$.getJSON('{{jf_gallery_options.xhr_data_path}}', function (data) {
|
245
|
-
var play_button = '/assets/themes/j1/
|
246
|
+
var play_button = '/assets/themes/j1/modules/lightGallery/css/themes/icons/play-button.png';
|
246
247
|
var content = '';
|
247
248
|
var gallery_class = 'justified-gallery';
|
248
249
|
{% if lightbox == "lg" %}
|
@@ -268,12 +269,12 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
268
269
|
{% endif %}
|
269
270
|
content += 'href="' +img+ '">' + '\n';
|
270
271
|
content += '<img src="' +img+ '" img alt="' +captions_lightbox+ '">' + '\n';
|
271
|
-
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/
|
272
|
+
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/modules/lightGallery/css/themes/icons/play-button.png"></span>' + '\n';
|
272
273
|
} else {
|
273
274
|
content += '<a data-sub-html="' +captions_gallery+ '" ';
|
274
275
|
content += 'href="' +img+ '">' + '\n';
|
275
276
|
content += '<img src="' +img+ '" img alt="' +captions_gallery+ '">' + '\n';
|
276
|
-
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/
|
277
|
+
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/modules/lightGallery/css/themes/icons/play-button.png"></span>' + '\n';
|
277
278
|
}
|
278
279
|
content += '</a>' + '\n';
|
279
280
|
|
@@ -402,20 +403,20 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
402
403
|
}, // END messageHandler
|
403
404
|
|
404
405
|
// -------------------------------------------------------------------------
|
405
|
-
// setState
|
406
|
-
//
|
406
|
+
// setState()
|
407
|
+
// Sets the current (processing) state of the module
|
407
408
|
// -------------------------------------------------------------------------
|
408
409
|
setState: function (stat) {
|
409
|
-
|
410
|
+
_this.state = stat;
|
410
411
|
}, // END setState
|
411
412
|
|
412
413
|
// -------------------------------------------------------------------------
|
413
|
-
// getState
|
414
|
+
// getState()
|
414
415
|
// Returns the current (processing) state of the module
|
415
416
|
// -------------------------------------------------------------------------
|
416
417
|
getState: function () {
|
417
|
-
return
|
418
|
-
} // END
|
418
|
+
return _this.state;
|
419
|
+
} // END getState
|
419
420
|
|
420
421
|
}; // END return
|
421
422
|
})(j1, window);
|
@@ -110,8 +110,9 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
110
110
|
// initialize state flag
|
111
111
|
j1.adapter.lightbox.state = 'pending';
|
112
112
|
|
113
|
-
|
114
|
-
|
113
|
+
// -----------------------------------------------------------------------
|
114
|
+
// globals
|
115
|
+
// -----------------------------------------------------------------------
|
115
116
|
_this = j1.adapter.lightbox;
|
116
117
|
logger = log4javascript.getLogger('j1.adapter.lightbox');
|
117
118
|
|
@@ -171,20 +172,20 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
171
172
|
}, // END messageHandler
|
172
173
|
|
173
174
|
// -------------------------------------------------------------------------
|
174
|
-
// setState
|
175
|
-
//
|
175
|
+
// setState()
|
176
|
+
// Sets the current (processing) state of the module
|
176
177
|
// -------------------------------------------------------------------------
|
177
178
|
setState: function (stat) {
|
178
|
-
|
179
|
+
_this.state = stat;
|
179
180
|
}, // END setState
|
180
181
|
|
181
182
|
// -------------------------------------------------------------------------
|
182
|
-
// getState
|
183
|
+
// getState()
|
183
184
|
// Returns the current (processing) state of the module
|
184
185
|
// -------------------------------------------------------------------------
|
185
186
|
getState: function () {
|
186
|
-
return
|
187
|
-
} // END
|
187
|
+
return _this.state;
|
188
|
+
} // END getState
|
188
189
|
|
189
190
|
}; // END return
|
190
191
|
})(j1, window);
|
@@ -83,7 +83,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
83
83
|
// globals
|
84
84
|
// ---------------------------------------------------------------------------
|
85
85
|
var environment = '{{environment}}';
|
86
|
-
var page_id =
|
86
|
+
var page_id = j1.generateId(12);
|
87
87
|
var cookie_names = j1.getCookieNames();
|
88
88
|
var loggerRequestCallback = false;
|
89
89
|
var loggerOptions = {};
|
@@ -266,11 +266,9 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
266
266
|
logger.info('ajax appender detected as: disabled');
|
267
267
|
}
|
268
268
|
|
269
|
-
_this.setState('started');
|
270
|
-
logger.info('state: ' + _this.getState());
|
271
|
-
|
272
269
|
_this.setState('finished');
|
273
270
|
logger.info('state: ' + _this.getState());
|
271
|
+
logger.info('module initialized successfully');
|
274
272
|
|
275
273
|
return true;
|
276
274
|
}
|
@@ -70,46 +70,43 @@ j1.adapter['mdb'] = (function (j1, window) {
|
|
70
70
|
// Initializer
|
71
71
|
// -------------------------------------------------------------------------
|
72
72
|
init: function (options) {
|
73
|
-
// initialize state flag
|
74
|
-
j1.adapter.mdb.state = 'pending';
|
75
73
|
|
76
74
|
// -----------------------------------------------------------------------
|
77
|
-
//
|
75
|
+
// globals
|
78
76
|
// -----------------------------------------------------------------------
|
79
|
-
var settings = $.extend({
|
80
|
-
module_name: 'j1.adapter.mdb',
|
81
|
-
generated: '{{site.time}}'
|
82
|
-
}, options);
|
83
|
-
|
84
|
-
{% comment %} Set global variables
|
85
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
86
77
|
_this = j1.adapter.mdb;
|
87
78
|
logger = log4javascript.getLogger('j1.adapter.mdb');
|
88
79
|
|
80
|
+
// initialize state flag
|
89
81
|
_this.setState('started');
|
90
82
|
logger.info('state: ' + _this.getState());
|
91
83
|
logger.info('module is being initialized');
|
92
84
|
|
85
|
+
// -----------------------------------------------------------------------
|
86
|
+
// Default module settings
|
87
|
+
// -----------------------------------------------------------------------
|
88
|
+
var settings = $.extend({
|
89
|
+
module_name: 'j1.adapter.mdb',
|
90
|
+
generated: '{{site.time}}'
|
91
|
+
}, options);
|
92
|
+
|
93
93
|
// -----------------------------------------------------------------------
|
94
94
|
// MDB initializer
|
95
95
|
// -----------------------------------------------------------------------
|
96
96
|
var log_text = 'MDB is being initialized';
|
97
97
|
logger.info(log_text);
|
98
|
-
$(document).ready(function() {
|
99
|
-
var dependencies_met_page_ready = setInterval(function() {
|
100
|
-
// delay initMDB until page is visible and
|
101
|
-
// fully available with the DOM
|
102
|
-
if (j1.getState() == 'finished') {
|
103
|
-
j1.initMDB(settings);
|
104
|
-
_this.setState('finished');
|
105
|
-
logger.info('state: ' + _this.getState());
|
106
|
-
logger.info('initializieng module is: finished');
|
107
|
-
clearInterval(dependencies_met_page_ready);
|
108
|
-
}
|
109
|
-
}, 25);
|
110
|
-
});
|
111
98
|
|
112
|
-
|
99
|
+
var dependencies_met_j1_finished = setInterval(function() {
|
100
|
+
if (j1.getState() == 'finished') {
|
101
|
+
$('body').bootstrapMaterialDesign();
|
102
|
+
|
103
|
+
_this.setState('finished');
|
104
|
+
logger.info('state: ' + _this.getState());
|
105
|
+
|
106
|
+
clearInterval(dependencies_met_j1_finished);
|
107
|
+
} // END dependencies_met_j1_finished
|
108
|
+
}, 25);
|
109
|
+
|
113
110
|
}, // END init
|
114
111
|
|
115
112
|
// -------------------------------------------------------------------------
|
@@ -140,20 +137,20 @@ j1.adapter['mdb'] = (function (j1, window) {
|
|
140
137
|
}, // END messageHandler
|
141
138
|
|
142
139
|
// -------------------------------------------------------------------------
|
143
|
-
// setState
|
144
|
-
//
|
140
|
+
// setState()
|
141
|
+
// Sets the current (processing) state of the module
|
145
142
|
// -------------------------------------------------------------------------
|
146
143
|
setState: function (stat) {
|
147
|
-
|
144
|
+
_this.state = stat;
|
148
145
|
}, // END setState
|
149
146
|
|
150
147
|
// -------------------------------------------------------------------------
|
151
|
-
// getState
|
148
|
+
// getState()
|
152
149
|
// Returns the current (processing) state of the module
|
153
150
|
// -------------------------------------------------------------------------
|
154
151
|
getState: function () {
|
155
|
-
return
|
156
|
-
} // END
|
152
|
+
return _this.state;
|
153
|
+
} // END getState
|
157
154
|
|
158
155
|
}; // END return
|
159
156
|
})(j1, window);
|
@@ -48,8 +48,10 @@ regenerate: true
|
|
48
48
|
{% assign modules = site.data.modules %}
|
49
49
|
|
50
50
|
{% assign template_config = site.data.template_settings %}
|
51
|
-
{% assign navigator_defaults =
|
52
|
-
{% assign navigator_settings =
|
51
|
+
{% assign navigator_defaults = modules.defaults.navigator.defaults %}
|
52
|
+
{% assign navigator_settings = modules.navigator.settings %}
|
53
|
+
{% assign themer_defaults = modules.defaults.themer.defaults %}
|
54
|
+
{% assign themer_settings = modules.themer.settings %}
|
53
55
|
|
54
56
|
{% comment %} Set config data
|
55
57
|
-------------------------------------------------------------------------------- {% endcomment %}
|
@@ -59,6 +61,7 @@ regenerate: true
|
|
59
61
|
{% comment %} Set config options
|
60
62
|
-------------------------------------------------------------------------------- {% endcomment %}
|
61
63
|
{% assign navigator_options = navigator_defaults | merge: navigator_settings %}
|
64
|
+
{% assign themer_options = themer_defaults | merge: themer_settings %}
|
62
65
|
{% assign nav_mmenu_options = nav_mmenu_defaults | merge: nav_mmenu_settings %}
|
63
66
|
{% assign nav_mmenu_id = navigator_defaults.nav_mmenu.xhr_container_id %}
|
64
67
|
{% assign nav_navbar_media_breakpoint = navigator_defaults.nav_bar.media_breakpoint %}
|
@@ -104,10 +107,10 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
104
107
|
// ---------------------------------------------------------------------------
|
105
108
|
// globals
|
106
109
|
// ---------------------------------------------------------------------------
|
107
|
-
var environment
|
108
|
-
var dclFinished
|
109
|
-
var moduleOptions
|
110
|
-
var cookie_names
|
110
|
+
var environment = '{{environment}}';
|
111
|
+
var dclFinished = false;
|
112
|
+
var moduleOptions = {};
|
113
|
+
var cookie_names = j1.getCookieNames();
|
111
114
|
var user_state;
|
112
115
|
var user_session;
|
113
116
|
var user_data;
|
@@ -128,8 +131,17 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
128
131
|
// module initializer
|
129
132
|
// -------------------------------------------------------------------------
|
130
133
|
init: function (options) {
|
134
|
+
|
135
|
+
// -----------------------------------------------------------------------
|
136
|
+
// globals
|
137
|
+
// -----------------------------------------------------------------------
|
138
|
+
_this = j1.adapter.mmenu;
|
139
|
+
logger = log4javascript.getLogger('j1.adapter.mmenu');
|
140
|
+
|
131
141
|
// initialize state flag
|
132
|
-
|
142
|
+
_this.setState('started');
|
143
|
+
logger.info('state: ' + _this.getState());
|
144
|
+
logger.info('module is being initialized');
|
133
145
|
|
134
146
|
// -----------------------------------------------------------------------
|
135
147
|
// defaults
|
@@ -139,12 +151,6 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
139
151
|
generated: '{{site.time}}'
|
140
152
|
}, options);
|
141
153
|
|
142
|
-
// -----------------------------------------------------------------------
|
143
|
-
// globals
|
144
|
-
// -----------------------------------------------------------------------
|
145
|
-
_this = j1.adapter.mmenu;
|
146
|
-
logger = log4javascript.getLogger('j1.adapter.mmenu');
|
147
|
-
|
148
154
|
// -----------------------------------------------------------------------
|
149
155
|
// options loader
|
150
156
|
// -----------------------------------------------------------------------
|
@@ -156,7 +162,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
156
162
|
|
157
163
|
// save config settings into the mmenu object for global access
|
158
164
|
//
|
159
|
-
|
165
|
+
_this['navMenuOptions'] = navMenuOptions;
|
160
166
|
|
161
167
|
// Load (individual) frontmatter options (currently NOT used)
|
162
168
|
//
|
@@ -165,14 +171,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
165
171
|
_this.setState('started');
|
166
172
|
logger.info('state: ' + _this.getState());
|
167
173
|
logger.info('module is being initialized');
|
168
|
-
|
169
|
-
var dependencies_met_page_loaded = setInterval(function() {
|
170
|
-
if ( j1.getState() == 'finished' ) {
|
171
|
-
logger.info('dependencies of module met');
|
172
|
-
j1.adapter.mmenu.mmenuLoader(navMenuOptions);
|
173
|
-
clearInterval(dependencies_met_page_loaded);
|
174
|
-
}
|
175
|
-
}, 25);
|
174
|
+
_this.mmenuLoader(navMenuOptions);
|
176
175
|
}, // END init
|
177
176
|
|
178
177
|
// -------------------------------------------------------------------------
|
@@ -206,48 +205,37 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
206
205
|
to
|
207
206
|
{% if forloop.last %}'data_loaded'{% else %}'data_loaded'{% endif %}){% if forloop.last %}{% else %},{% endif %}
|
208
207
|
-------------------------------------------------------------------------- {% endcomment %}
|
209
|
-
$.when (
|
210
208
|
{% for item in nav_mmenu_options.menus %} {% if item.menu.enabled %}
|
211
209
|
{% assign menu_id = item.menu.xhr_container_id %}
|
212
210
|
{% assign xhr_data_path = item.menu.xhr_data_path %}
|
213
211
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
212
|
+
j1.xhrData ({
|
213
|
+
xhr_container_id: '{{menu_id}}',
|
214
|
+
xhr_data_path: '{{xhr_data_path}}'},
|
215
|
+
'j1.adapter.mmenu',
|
216
|
+
{% if forloop.last %}'data_loaded'{% else %}'null'{% endif %}){% if forloop.last %};{% else %};{% endif %}
|
219
217
|
|
220
218
|
{% endif %}
|
221
219
|
{% capture id_list %}{{id_list}}{{menu_id}}{% if forloop.last %}{% else %},{% endif %} {% endcapture %}
|
222
220
|
{% endfor %} // ENDFOR menus
|
223
|
-
|
221
|
+
|
224
222
|
// ---------------------------------------------------------------------
|
225
223
|
// Initialize MMenu Navs and Drawers
|
226
224
|
// ---------------------------------------------------------------------
|
227
|
-
|
228
|
-
|
229
|
-
_this.setState('data_loaded');
|
230
|
-
}, 300);
|
231
|
-
|
232
|
-
var dependencies_met_mmenu_initialized = setInterval (function () {
|
233
|
-
if (_this.getState() === 'data_loaded') {
|
225
|
+
var dependencies_met_all_menu_loaded = setInterval (function () {
|
226
|
+
if (j1.xhrDataState['#navigator_nav_mmenu'] == 'success' && j1.xhrDataState['#navigator_sidebar_mmenu'] == 'success' && j1.xhrDataState['#navigator_toc_mmenu'] == 'success') {
|
234
227
|
logger.info('load HTML data (AJAX): finished');
|
235
228
|
_this.setState('processing');
|
236
229
|
logger.info('status: ' + _this.getState());
|
237
230
|
logger.info('initialize navs and drawers');
|
238
|
-
|
239
|
-
clearInterval(dependencies_met_mmenu_initialized);
|
240
|
-
}
|
241
|
-
}, 25); // END dependencies_met_mmenu_loaded
|
231
|
+
_this.mmenuInitializer(mmOptions);
|
242
232
|
|
243
|
-
var dependencies_met_all_menu_loaded = setInterval (function () {
|
244
|
-
if ( $('#menu_mmenu').length && $('#sidebar_mmenu').length && $('#toc_mmenu').length ) {
|
245
233
|
_this.setState('finished');
|
246
|
-
logger.info('
|
234
|
+
logger.info('state: ' + _this.getState());
|
235
|
+
logger.info('module initialized successfully');
|
247
236
|
clearInterval(dependencies_met_all_menu_loaded);
|
248
237
|
}
|
249
238
|
}, 25); // END dependencies_met_all_menu_loaded
|
250
|
-
}); // END done
|
251
239
|
}, // END dataLoader
|
252
240
|
|
253
241
|
// -------------------------------------------------------------------------
|
@@ -324,6 +312,14 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
324
312
|
drawer_{{menu_id}}.open();
|
325
313
|
});
|
326
314
|
});
|
315
|
+
|
316
|
+
// load themes from Bootswatch API (set localFeed EMPTY)
|
317
|
+
$('#ThemeList_MMenu').bootstrapThemeSwitcher({
|
318
|
+
localFeed: ''
|
319
|
+
});
|
320
|
+
// load (local) J1 themes (default settings)
|
321
|
+
$('#ThemeSelect_MMenu').bootstrapThemeSwitcher();
|
322
|
+
|
327
323
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
328
324
|
$('#{{item.menu.content.id}}').show();
|
329
325
|
logger.info('initializing mmenu finished on id: #{{menu_id}}');
|
@@ -339,7 +335,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
339
335
|
// -------------------------------------------------------------------
|
340
336
|
logger.info('initialize mmenu on id: #{{menu_id}}');
|
341
337
|
var dependencies_met_{{menu_id}}_loaded = setInterval (function () {
|
342
|
-
if ({{menu_id}}) {
|
338
|
+
if ({{menu_id}} && $('{{item.menu.content.button}}').length) {
|
343
339
|
const menu_selector = document.querySelector('#{{menu_id}}');
|
344
340
|
|
345
341
|
const mmenu_{{menu_id}} = new MmenuLight (
|
@@ -428,20 +424,20 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
428
424
|
}, // END messageHandler
|
429
425
|
|
430
426
|
// -------------------------------------------------------------------------
|
431
|
-
// setState
|
432
|
-
//
|
427
|
+
// setState()
|
428
|
+
// Sets the current (processing) state of the module
|
433
429
|
// -------------------------------------------------------------------------
|
434
430
|
setState: function (stat) {
|
435
|
-
|
431
|
+
_this.state = stat;
|
436
432
|
}, // END setState
|
437
433
|
|
438
434
|
// -------------------------------------------------------------------------
|
439
|
-
// getState
|
435
|
+
// getState()
|
440
436
|
// Returns the current (processing) state of the module
|
441
437
|
// -------------------------------------------------------------------------
|
442
438
|
getState: function () {
|
443
|
-
return
|
444
|
-
} // END
|
439
|
+
return _this.state;
|
440
|
+
} // END getState
|
445
441
|
|
446
442
|
}; // END return
|
447
443
|
})(j1, window);
|
@@ -50,7 +50,6 @@ regenerate: true
|
|
50
50
|
{% assign environment = site.environment %}
|
51
51
|
{% assign brand_image_height = site.brand.image_height %}
|
52
52
|
|
53
|
-
|
54
53
|
{% comment %} Process YML config data
|
55
54
|
================================================================================ {% endcomment %}
|
56
55
|
|
@@ -197,8 +196,17 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
197
196
|
// module initializer
|
198
197
|
// -------------------------------------------------------------------------
|
199
198
|
init: function (options) {
|
199
|
+
|
200
|
+
// -----------------------------------------------------------------------
|
201
|
+
// globals
|
202
|
+
// -----------------------------------------------------------------------
|
203
|
+
_this = j1.adapter.navigator;
|
204
|
+
logger = log4javascript.getLogger('j1.adapter.navigator');
|
205
|
+
|
200
206
|
// initialize state flag
|
201
|
-
|
207
|
+
_this.setState('started');
|
208
|
+
logger.info('state: ' + _this.getState());
|
209
|
+
logger.info('module is being initialized');
|
202
210
|
|
203
211
|
// -----------------------------------------------------------------------
|
204
212
|
// defaults
|
@@ -207,8 +215,6 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
207
215
|
module_name: 'j1.adapter.navigator',
|
208
216
|
generated: '{{site.time}}'
|
209
217
|
}, options);
|
210
|
-
_this = j1.adapter.navigator;
|
211
|
-
logger = log4javascript.getLogger('j1.adapter.navigator');
|
212
218
|
|
213
219
|
// -----------------------------------------------------------------------
|
214
220
|
// options loader
|
@@ -247,24 +253,20 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
247
253
|
navTopsearchOptions = j1.mergeData(navTopsearchConfig, navDefaults.nav_topsearch);
|
248
254
|
navAuthClientConfig = j1.mergeData(navAuthClientConfig, navDefaults.nav_authclient);
|
249
255
|
|
250
|
-
// save config settings into the
|
256
|
+
// save config settings into the adapter object for global access
|
251
257
|
//
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
258
|
+
_this['navDefaults'] = navDefaults;
|
259
|
+
_this['navBarOptions'] = navBarOptions;
|
260
|
+
_this['navMenuOptions'] = navMenuOptions;
|
261
|
+
_this['navQuicklinksOptions'] = navQuicklinksOptions;
|
262
|
+
_this['navTopsearchOptions'] = navTopsearchOptions;
|
263
|
+
_this['navAuthClientConfig'] = navAuthClientConfig;
|
264
|
+
_this['navAuthManagerConfig'] = navAuthMAnagerConfig;
|
259
265
|
|
260
266
|
// Load (individual) frontmatter options (currently NOT used)
|
261
267
|
if (options != null) { var frontmatterOptions = $.extend({}, options) }
|
262
268
|
/* eslint-enable */
|
263
269
|
|
264
|
-
_this.setState('started');
|
265
|
-
logger.info('state: ' + _this.getState());
|
266
|
-
logger.info('module is being initialized');
|
267
|
-
|
268
270
|
// -----------------------------------------------------------------------
|
269
271
|
// Load HTML data (AJAX)
|
270
272
|
// -----------------------------------------------------------------------
|
@@ -280,68 +282,78 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
280
282
|
// -----------------------------------------------------------------------
|
281
283
|
// data loader
|
282
284
|
// -----------------------------------------------------------------------
|
283
|
-
logger.info('run deferred data load');
|
284
|
-
$.when (
|
285
|
-
j1.xhrData ( // quicklinks
|
286
|
-
'j1.adapter.navigator', {
|
287
|
-
xhr_container_id: navQuicklinksOptions.xhr_container_id,
|
288
|
-
xhr_data_path: navQuicklinksOptions.xhr_data_path },
|
289
|
-
null),
|
290
|
-
j1.xhrData ( // authclient
|
291
|
-
'j1.adapter.navigator', {
|
292
|
-
xhr_container_id: navAuthClientConfig.xhr_container_id,
|
293
|
-
xhr_data_path: navAuthClientConfig.xhr_data_path },
|
294
|
-
null),
|
295
|
-
j1.xhrData ( // menubar
|
296
|
-
'j1.adapter.navigator', {
|
297
|
-
xhr_container_id: navMenuOptions.xhr_container_id,
|
298
|
-
xhr_data_path: navMenuOptions.xhr_data_path },
|
299
|
-
'data_loaded'))
|
300
|
-
.done (function (quickLinks, authclient, menuBar) {
|
301
|
-
// ---------------------------------------------------------------------
|
302
|
-
// core initializer
|
303
|
-
// ---------------------------------------------------------------------
|
304
285
|
|
286
|
+
j1.xhrData({
|
287
|
+
xhr_container_id: navQuicklinksOptions.xhr_container_id,
|
288
|
+
xhr_data_path: navQuicklinksOptions.xhr_data_path },
|
289
|
+
'j1.adapter.navigator',
|
290
|
+
null);
|
291
|
+
j1.xhrData({
|
292
|
+
xhr_container_id: navAuthClientConfig.xhr_container_id,
|
293
|
+
xhr_data_path: navAuthClientConfig.xhr_data_path },
|
294
|
+
'j1.adapter.navigator',
|
295
|
+
null);
|
296
|
+
j1.xhrData({
|
297
|
+
xhr_container_id: navMenuOptions.xhr_container_id,
|
298
|
+
xhr_data_path: navMenuOptions.xhr_data_path },
|
299
|
+
'j1.adapter.navigator',
|
300
|
+
'null');
|
301
|
+
|
302
|
+
var dependencies_met_load_menu_finished = setInterval (function () {
|
303
|
+
if (j1.xhrDOMState['#'+navQuicklinksOptions.xhr_container_id] == 'not loaded' ||
|
304
|
+
j1.xhrDOMState['#'+navAuthClientConfig.xhr_container_id] == 'not loaded' ||
|
305
|
+
j1.xhrDOMState['#'+navMenuOptions.xhr_container_id] == 'not loaded' ){
|
306
|
+
logger.error('load HTML data (AJAX): failed');
|
307
|
+
_this.setState('finished');
|
308
|
+
logger.info('state: ' + _this.getState());
|
309
|
+
logger.info('initializing module: failed');
|
310
|
+
clearInterval(dependencies_met_load_menu_finished);
|
311
|
+
}
|
305
312
|
// continue if all AJAX loads (xhrData) has finished
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
313
|
+
if (j1.xhrDOMState['#'+navQuicklinksOptions.xhr_container_id] == 'success' &&
|
314
|
+
j1.xhrDOMState['#'+navAuthClientConfig.xhr_container_id] == 'success' &&
|
315
|
+
j1.xhrDOMState['#'+navMenuOptions.xhr_container_id] == 'success' ){
|
316
|
+
_this.setState('processing');
|
317
|
+
logger.info('status: ' + _this.getState());
|
318
|
+
logger.info('initialize navigator core');
|
319
|
+
|
320
|
+
// Detect|Set J1 App status
|
321
|
+
appDetected = j1.appDetected();
|
322
|
+
authClientEnabled = j1.authEnabled();
|
323
|
+
logger.info('application status detected: ' + appDetected);
|
324
|
+
|
325
|
+
j1.core.navigator.init (
|
326
|
+
_this.navDefaults,
|
327
|
+
_this.navMenuOptions
|
328
|
+
);
|
329
|
+
|
330
|
+
// cast text-based booleans
|
331
|
+
// themerEnabled = ({{themer_options.enabled }} === 'true');
|
332
|
+
|
333
|
+
if ({{themer_options.enabled }}) {
|
334
|
+
logText = 'theme switcher detect: enabled';
|
335
|
+
logger.info(logText);
|
336
|
+
// initialize theme switcher menu
|
337
|
+
// load themes from Bootswatch API (set localFeed EMPTY)
|
338
|
+
$('#ThemeList').bootstrapThemeSwitcher({
|
339
|
+
localFeed: ''
|
340
|
+
});
|
341
|
+
// load (local) J1 themes (default settings)
|
342
|
+
$('#ThemeSelect').bootstrapThemeSwitcher();
|
343
|
+
logText = 'theme switcher menu loaded successfully';
|
344
|
+
logger.info(logText);
|
345
|
+
} else {
|
346
|
+
logText = 'theme switcher detect: disabled';
|
347
|
+
logger.info(logText);
|
348
|
+
}
|
349
|
+
_this.setState('initialized');
|
350
|
+
|
351
|
+
// -----------------------------------------------------------------
|
352
|
+
// event handler|css styles
|
353
|
+
// -----------------------------------------------------------------
|
354
|
+
// continue if Theme CSS is applied
|
355
|
+
var dependencies_met_adapter_finished = setInterval(function() {
|
356
|
+
if (themerEnabled) {
|
345
357
|
if (j1.adapter.themer.getState() === 'finished') {
|
346
358
|
_this.setState('processing');
|
347
359
|
|
@@ -356,51 +368,69 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
356
368
|
);
|
357
369
|
|
358
370
|
logger.info('init auth client');
|
359
|
-
|
371
|
+
_this.initAuthClient(_this.navAuthManagerConfig);
|
372
|
+
|
360
373
|
_this.setState('finished');
|
361
374
|
logger.info('state: ' + _this.getState());
|
375
|
+
logger.info('module initialized successfully');
|
362
376
|
clearInterval(dependencies_met_adapter_finished);
|
363
377
|
}
|
364
|
-
}
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
378
|
+
} else {
|
379
|
+
_this.setState('processing');
|
380
|
+
|
381
|
+
logger.info('initialize eventHandler');
|
382
|
+
j1.core.navigator.eventHandler();
|
383
|
+
|
384
|
+
// set general|global theme colors
|
385
|
+
logger.info('apply dynamic CSS styles');
|
386
|
+
_this.setCSS (
|
387
|
+
navBarOptions, navMenuOptions,
|
388
|
+
navQuicklinksOptions, navTopsearchOptions
|
389
|
+
);
|
390
|
+
|
391
|
+
logger.info('init auth client');
|
392
|
+
_this.initAuthClient(_this.navAuthManagerConfig);
|
393
|
+
_this.setState('finished');
|
394
|
+
logger.info('state: ' + _this.getState());
|
395
|
+
clearInterval(dependencies_met_adapter_finished);
|
396
|
+
}
|
397
|
+
}, 25); // END 'dependencies_met_adapter_finished'
|
398
|
+
clearInterval(dependencies_met_load_menu_finished);
|
399
|
+
}
|
400
|
+
}, 25); // END 'dependencies_met_load_menu_finished'
|
401
|
+
|
402
|
+
// --------------------------------------------------------------------
|
403
|
+
// Register event 'reset on resize' to call j1.core.navigator on
|
404
|
+
// manageDropdownMenu to manage the (current) NAV menu for
|
405
|
+
// desktop or mobile
|
406
|
+
// ---------------------------------------------------------------------
|
407
|
+
$(window).on('resize', function() {
|
408
|
+
j1.core.navigator.manageDropdownMenu(navDefaults, navMenuOptions);
|
409
|
+
|
410
|
+
// jadams, 2020-07-10: cause severe trouble on mobile devices if
|
411
|
+
// OnScreen Kbd comes up and reduces the window size (resize event)
|
412
|
+
// DISABLED
|
413
|
+
// -------------------------------------------------------------------
|
414
|
+
// Hide|Close topSearch on resize event
|
415
|
+
// $('.top-search').slideUp();
|
416
|
+
|
417
|
+
// Manage sticky NAV bars
|
418
|
+
setTimeout (function() {
|
419
|
+
j1.core.navigator.navbarSticky();
|
420
|
+
}, 500);
|
421
|
+
|
422
|
+
// Scroll the page one pixel back and forth to get
|
423
|
+
// the right position for Toccer (trigger) and SSM
|
424
|
+
$(window).scrollTop($(window).scrollTop()+1);
|
425
|
+
$(window).scrollTop($(window).scrollTop()-1);
|
426
|
+
|
427
|
+
// jadams, 2020-06-21: unclear|forgotten what I'm doing here!
|
428
|
+
// Looks like the old BS3 implementation
|
429
|
+
//
|
430
|
+
// $('.navbar-collapse').removeClass('in');
|
431
|
+
// $('.navbar-collapse').removeClass('on');
|
432
|
+
// $('.navbar-collapse').removeClass('bounceIn');
|
433
|
+
});
|
404
434
|
}, // END init
|
405
435
|
|
406
436
|
// -------------------------------------------------------------------------
|
@@ -745,20 +775,20 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
745
775
|
}, // END messageHandler
|
746
776
|
|
747
777
|
// -------------------------------------------------------------------------
|
748
|
-
// setState
|
749
|
-
//
|
778
|
+
// setState()
|
779
|
+
// Sets the current (processing) state of the module
|
750
780
|
// -------------------------------------------------------------------------
|
751
781
|
setState: function (stat) {
|
752
|
-
|
782
|
+
_this.state = stat;
|
753
783
|
}, // END setState
|
754
784
|
|
755
785
|
// -------------------------------------------------------------------------
|
756
|
-
// getState
|
786
|
+
// getState()
|
757
787
|
// Returns the current (processing) state of the module
|
758
788
|
// -------------------------------------------------------------------------
|
759
789
|
getState: function () {
|
760
|
-
return
|
761
|
-
} // END
|
790
|
+
return _this.state;
|
791
|
+
} // END getState
|
762
792
|
|
763
793
|
}; // END return
|
764
794
|
})(j1, window);
|