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 %}
|
@@ -44,6 +44,11 @@ regenerate: true
|
|
44
44
|
-------------------------------------------------------------------------------- {% endcomment %}
|
45
45
|
{% assign jf_gallery_options = jf_gallery_defaults | merge: jf_gallery_settings %}
|
46
46
|
|
47
|
+
{% assign production = false %}
|
48
|
+
{% if environment == 'prod' or environment == 'production' %}
|
49
|
+
{% assign production = true %}
|
50
|
+
{% endif %}
|
51
|
+
|
47
52
|
/*
|
48
53
|
# -----------------------------------------------------------------------------
|
49
54
|
# ~/assets/themes/j1/adapter/js/justified_gallery.js
|
@@ -64,11 +69,16 @@ regenerate: true
|
|
64
69
|
# Adapter generated: {{site.time}}
|
65
70
|
# -----------------------------------------------------------------------------
|
66
71
|
*/
|
72
|
+
|
73
|
+
// -----------------------------------------------------------------------------
|
74
|
+
// ESLint shimming
|
75
|
+
// -----------------------------------------------------------------------------
|
76
|
+
/* eslint indent: "off" */
|
77
|
+
// -----------------------------------------------------------------------------
|
67
78
|
'use strict';
|
68
79
|
|
69
80
|
{% comment %} Main
|
70
81
|
-------------------------------------------------------------------------------- {% endcomment %}
|
71
|
-
// j1.JustifiedGallery = (function (j1, window) {
|
72
82
|
j1.adapter['jf_gallery'] = (function (j1, window) {
|
73
83
|
|
74
84
|
{% comment %} Global variables
|
@@ -95,7 +105,6 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
95
105
|
// initialize state flag
|
96
106
|
j1.adapter.jf_gallery.state = 'pending';
|
97
107
|
|
98
|
-
|
99
108
|
// -----------------------------------------------------------------------
|
100
109
|
// Default module settings
|
101
110
|
// -----------------------------------------------------------------------
|
@@ -108,7 +117,9 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
108
117
|
-------------------------------------------------------------------------- {% endcomment %}
|
109
118
|
// Load module DEFAULTS|CONFIG
|
110
119
|
//
|
120
|
+
/* eslint-disable */
|
111
121
|
moduleOptions = $.extend({}, {{jf_gallery_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
122
|
+
/* eslint-enable */
|
112
123
|
|
113
124
|
if (typeof settings !== 'undefined') {
|
114
125
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -196,23 +207,23 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
196
207
|
$('#{{gallery_id}}').before(gallery_title);
|
197
208
|
{% endif %}
|
198
209
|
|
199
|
-
$('#{{gallery_id}}').addClass(
|
210
|
+
$('#{{gallery_id}}').addClass('justified-gallery {{css_classes}}');
|
200
211
|
|
201
212
|
{% if gallery_type == "image" %}
|
202
213
|
// Collect image gallery data from data file (xhr_data_path)
|
203
214
|
$.getJSON('{{jf_gallery_options.xhr_data_path}}', function (data) {
|
204
215
|
var content = '';
|
205
|
-
var gallery_class = 'justified-gallery'
|
216
|
+
var gallery_class = 'justified-gallery';
|
206
217
|
{% if lightbox == "lg" %}
|
207
218
|
gallery_class += ' light-gallery ';
|
208
219
|
{% endif %}
|
209
220
|
|
210
|
-
for (var i in data[
|
211
|
-
var img = data[
|
212
|
-
|
213
|
-
var captions_gallery = data[
|
214
|
-
var captions_lightbox = data[
|
215
|
-
var lightbox =
|
221
|
+
for (var i in data['{{item.gallery.id}}']) {
|
222
|
+
var img = data['{{item.gallery.id}}'][i].img;
|
223
|
+
// var img = data['{{item.gallery.id}}'][i].image_path + '/' + data['{{item.gallery.id}}'][i].poster;
|
224
|
+
var captions_gallery = data['{{item.gallery.id}}'][i].captions_gallery;
|
225
|
+
var captions_lightbox = data['{{item.gallery.id}}'][i].captions_lightbox;
|
226
|
+
var lightbox = '{{lightbox}}';
|
216
227
|
|
217
228
|
if (captions_lightbox != null && lightbox == 'lg') {
|
218
229
|
content += '<a data-sub-html="' +captions_lightbox+ '" ';
|
@@ -227,25 +238,25 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
227
238
|
|
228
239
|
} // END for
|
229
240
|
|
230
|
-
{% elsif gallery_type == "video-html5" or gallery_type == "video-online" %}
|
241
|
+
{% elsif gallery_type == "video-html5" or gallery_type == "video-online" %}
|
231
242
|
|
232
243
|
// Collect html5 video gallery data from data file (xhr_data_path)
|
233
244
|
$.getJSON('{{jf_gallery_options.xhr_data_path}}', function (data) {
|
234
|
-
var play_button = '/assets/themes/j1/extensions/
|
245
|
+
var play_button = '/assets/themes/j1/extensions/lightGallery/css/themes/icons/play-button.png';
|
235
246
|
var content = '';
|
236
|
-
var gallery_class = 'justified-gallery'
|
247
|
+
var gallery_class = 'justified-gallery';
|
237
248
|
{% if lightbox == "lg" %}
|
238
249
|
gallery_class += ' light-gallery ';
|
239
250
|
{% endif %}
|
240
251
|
|
241
|
-
for (var i in data[
|
242
|
-
|
243
|
-
var img = data[
|
244
|
-
var captions_gallery = data[
|
245
|
-
var captions_lightbox = data[
|
246
|
-
var video_id = data[
|
247
|
-
var video = data[
|
248
|
-
var lightbox =
|
252
|
+
for (var i in data['{{item.gallery.id}}']) {
|
253
|
+
// var img = data['{{item.gallery.id}}'][i].img;
|
254
|
+
var img = data['{{item.gallery.id}}'][i].image_path + '/' + data['{{item.gallery.id}}'][i].poster;
|
255
|
+
var captions_gallery = data['{{item.gallery.id}}'][i].captions_gallery;
|
256
|
+
var captions_lightbox = data['{{item.gallery.id}}'][i].captions_lightbox;
|
257
|
+
var video_id = data['{{item.gallery.id}}'][i].video_id;
|
258
|
+
var video = data['{{item.gallery.id}}'][i].video;
|
259
|
+
var lightbox = '{{lightbox}}';
|
249
260
|
|
250
261
|
if (captions_lightbox != null && lightbox == 'lg') {
|
251
262
|
content += '<a data-sub-html="' +captions_lightbox+ '" ';
|
@@ -257,23 +268,23 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
257
268
|
{% endif %}
|
258
269
|
content += 'href="' +img+ '">' + '\n';
|
259
270
|
content += '<img src="' +img+ '" img alt="' +captions_lightbox+ '">' + '\n';
|
260
|
-
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/extensions/
|
271
|
+
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/extensions/lightGallery/css/themes/icons/play-button.png"></span>' + '\n';
|
261
272
|
} else {
|
262
273
|
content += '<a data-sub-html="' +captions_gallery+ '" ';
|
263
274
|
content += 'href="' +img+ '">' + '\n';
|
264
275
|
content += '<img src="' +img+ '" img alt="' +captions_gallery+ '">' + '\n';
|
265
|
-
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/extensions/
|
276
|
+
content += '<span><img class="justified-gallery img-overlay" src="/assets/themes/j1/extensions/lightGallery/css/themes/icons/play-button.png"></span>' + '\n';
|
266
277
|
}
|
267
278
|
content += '</a>' + '\n';
|
268
279
|
|
269
280
|
} // END for
|
270
281
|
|
271
282
|
var hidden_video_div = '';
|
272
|
-
for (var i in data[
|
273
|
-
var video = data[
|
274
|
-
var poster = data[
|
275
|
-
var caption = data[
|
276
|
-
var video_id = data[
|
283
|
+
for (var i in data['{{item.gallery.id}}']) {
|
284
|
+
var video = data['{{item.gallery.id}}'][i].video_path + '/' + data['{{item.gallery.id}}'][i].video;
|
285
|
+
var poster = data['{{item.gallery.id}}'][i].image_path + '/' + data['{{item.gallery.id}}'][i].poster;
|
286
|
+
var caption = data['{{item.gallery.id}}'][i].captions_lightbox;
|
287
|
+
var video_id = data['{{item.gallery.id}}'][i].video_id;
|
277
288
|
var video_type = video.substr(video.lastIndexOf('.') + 1);
|
278
289
|
hidden_video_div += '<div style="display:none;" id="' +video_id+ '">' + '\n';
|
279
290
|
hidden_video_div += ' <video class="lg-video-object lg-html5 video-js vjs-default-skin"' + '\n';
|
@@ -284,59 +295,70 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
284
295
|
hidden_video_div += '</div>' + '\n';
|
285
296
|
}
|
286
297
|
$('#{{ gallery_id }}').before(hidden_video_div);
|
287
|
-
|
298
|
+
|
288
299
|
{% endif %}
|
289
300
|
|
290
301
|
// Hide gallery container (until lightGallery is NOT initialized)
|
291
302
|
// and place HTML markup
|
292
|
-
$(
|
303
|
+
$('#{{gallery_id}}').hide().html(content);
|
293
304
|
// Initialize and run the gallery using individual gallery|lightbox options
|
294
305
|
{% if lightbox == "lg" %}
|
295
|
-
var gallery_selector = $(
|
306
|
+
var gallery_selector = $('#{{gallery_id}}');
|
296
307
|
if (options !== undefined) {
|
297
308
|
// lightbox initialized on COMPLETE event of justifiedGallery
|
309
|
+
/* eslint-disable */
|
298
310
|
gallery_selector.justifiedGallery({
|
299
311
|
{% for option in item.gallery.gallery_options %}
|
300
312
|
{{option[0] | json}}: {{option[1] | json}},
|
301
313
|
{% endfor %}
|
302
314
|
})
|
315
|
+
/* eslint-enable */
|
303
316
|
.on('jg.complete', function (e) {
|
304
317
|
e.stopPropagation();
|
318
|
+
|
305
319
|
// options enabled
|
320
|
+
/* eslint-disable */
|
306
321
|
gallery_selector.lightGallery({
|
307
322
|
{% for option in item.gallery.lightbox_options %}
|
308
323
|
{{option[0] | json}}: {{option[1] | json}},
|
309
324
|
{% endfor %}
|
310
325
|
});
|
326
|
+
/* eslint-enable */
|
327
|
+
|
311
328
|
// Initialize instance variable of lightGallery (for later access)
|
312
329
|
j1['{{gallery_id}}'] = gallery_selector.data('lightGallery');
|
313
330
|
// Show gallery DIV element if jg has completed *and* the
|
314
331
|
// lightbox is initialized (delayed)
|
315
|
-
setTimeout(function() {
|
316
|
-
$(
|
332
|
+
setTimeout(function() {
|
333
|
+
$('#{{gallery_id}}').show();
|
317
334
|
logText = 'initializing gallery finished on id: #{{gallery_id}}';
|
318
335
|
logger.info(logText);
|
319
336
|
}, {{show_delay}});
|
320
337
|
});
|
321
338
|
} else {
|
339
|
+
/* eslint-disable */
|
322
340
|
gallery_selector.justifiedGallery({
|
323
341
|
{% for option in item.gallery.gallery_options %}
|
324
342
|
{{option[0] | json}}: {{option[1] | json}},
|
325
343
|
{% endfor %}
|
344
|
+
/* eslint-enable */
|
326
345
|
}).on('jg.complete', function (e) {
|
327
346
|
e.stopPropagation();
|
328
347
|
// lightbox initialized on COMPLETE event of justifiedGallery
|
348
|
+
/* eslint-disable */
|
329
349
|
gallery_selector.lightGallery({
|
330
350
|
{% for option in item.gallery.lightbox_options %}
|
331
351
|
{{option[0] | json}}: {{option[1] | json}},
|
332
352
|
{% endfor %}
|
333
353
|
});
|
354
|
+
/* eslint-enable */
|
355
|
+
|
334
356
|
// Initialize instance variable of lightGallery (for later access)
|
335
357
|
j1['{{gallery_id}}'] = gallery_selector.data('lightGallery');
|
336
358
|
// Show gallery DIV element if jg has completed *and* the
|
337
359
|
// lightbox is initialized (delayed)
|
338
|
-
setTimeout(function() {
|
339
|
-
$(
|
360
|
+
setTimeout(function() {
|
361
|
+
$('#{{gallery_id}}').show();
|
340
362
|
logText = 'initializing gallery finished on id: #{{gallery_id}}';
|
341
363
|
logger.info(logText);
|
342
364
|
}, {{show_delay}});
|
@@ -399,5 +421,9 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
399
421
|
})(j1, window);
|
400
422
|
|
401
423
|
{% endcapture %}
|
402
|
-
{
|
403
|
-
{
|
424
|
+
{% if production %}
|
425
|
+
{{ cache | minifyJS }}
|
426
|
+
{% else %}
|
427
|
+
{{ cache | strip_empty_lines }}
|
428
|
+
{% endif %}
|
429
|
+
{% assign cache = nil %}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -47,6 +47,11 @@ regenerate: false
|
|
47
47
|
-------------------------------------------------------------------------------- {% endcomment %}
|
48
48
|
{% assign lightbox_options = lightbox_defaults | merge: lightbox_settings %}
|
49
49
|
|
50
|
+
{% assign production = false %}
|
51
|
+
{% if environment == 'prod' or environment == 'production' %}
|
52
|
+
{% assign production = true %}
|
53
|
+
{% endif %}
|
54
|
+
|
50
55
|
/*
|
51
56
|
# -----------------------------------------------------------------------------
|
52
57
|
# ~/assets/themes/j1/adapter/js/lightbox.js
|
@@ -68,6 +73,12 @@ regenerate: false
|
|
68
73
|
# Adapter generated: {{site.time}}
|
69
74
|
# -----------------------------------------------------------------------------
|
70
75
|
*/
|
76
|
+
|
77
|
+
// -----------------------------------------------------------------------------
|
78
|
+
// ESLint shimming
|
79
|
+
// -----------------------------------------------------------------------------
|
80
|
+
/* eslint indent: "off" */
|
81
|
+
// -----------------------------------------------------------------------------
|
71
82
|
'use strict';
|
72
83
|
|
73
84
|
{% comment %} Main
|
@@ -108,6 +119,7 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
108
119
|
logger.info('state: ' + _this.getState());
|
109
120
|
logger.info('module is being initialized');
|
110
121
|
|
122
|
+
/* eslint-disable */
|
111
123
|
lightbox.option({
|
112
124
|
alwaysShowNavOnTouchDevices: {{ lightbox_options.alwaysShowNavOnTouchDevices | json }},
|
113
125
|
albumLabel: {{ lightbox_options.albumLabel | json }},
|
@@ -122,6 +134,7 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
122
134
|
showImageNumberLabel: {{ lightbox_options.showImageNumberLabel | json }},
|
123
135
|
wrapAround: {{ lightbox_options.wrapAround | json }}
|
124
136
|
});
|
137
|
+
/* eslint-enable */
|
125
138
|
|
126
139
|
_this.setState('finished');
|
127
140
|
logger.info('state: ' + _this.getState());
|
@@ -177,5 +190,9 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
177
190
|
})(j1, window);
|
178
191
|
|
179
192
|
{% endcapture %}
|
180
|
-
{
|
181
|
-
{
|
193
|
+
{% if production %}
|
194
|
+
{{ cache | minifyJS }}
|
195
|
+
{% else %}
|
196
|
+
{{ cache | strip_empty_lines }}
|
197
|
+
{% endif %}
|
198
|
+
{% assign cache = nil %}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -48,6 +48,11 @@ regenerate: false
|
|
48
48
|
-------------------------------------------------------------------------------- {% endcomment %}
|
49
49
|
{% assign logger_options = logger_defaults | merge: logger_settings %}
|
50
50
|
|
51
|
+
{% assign production = false %}
|
52
|
+
{% if environment == 'prod' or environment == 'production' %}
|
53
|
+
{% assign production = true %}
|
54
|
+
{% endif %}
|
55
|
+
|
51
56
|
/*
|
52
57
|
# -----------------------------------------------------------------------------
|
53
58
|
# ~/assets/themes/j1/adapter/js/logger.js
|
@@ -64,6 +69,12 @@ regenerate: false
|
|
64
69
|
# Adapter generated: {{site.time}}
|
65
70
|
# -----------------------------------------------------------------------------
|
66
71
|
*/
|
72
|
+
|
73
|
+
// -----------------------------------------------------------------------------
|
74
|
+
// ESLint shimming
|
75
|
+
// -----------------------------------------------------------------------------
|
76
|
+
/* eslint indent: "off" */
|
77
|
+
// -----------------------------------------------------------------------------
|
67
78
|
'use strict';
|
68
79
|
|
69
80
|
j1.adapter['logger'] = (function (j1, window) {
|
@@ -106,7 +117,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
106
117
|
var getCustomData = function(layout, loggingReference) {
|
107
118
|
var customData = [];
|
108
119
|
|
109
|
-
try {(0)()} catch (e) {
|
120
|
+
try { (0)(); } catch (e) {
|
110
121
|
var pattern = /^(.+?) ?\(?((?:file|https?|chrome-extension):.*?):(\d+)(?::(\d+))?\)?\s*$/ig;
|
111
122
|
// Split the stack trace
|
112
123
|
var output = e.stack.replace(/^.*?\n/,'').replace(/(?:\n@:0)?\s+$/m,'').replace(/^\(/gm,'{anon}(').split('\n');
|
@@ -138,8 +149,8 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
138
149
|
}
|
139
150
|
|
140
151
|
// return custom field %f{1}
|
141
|
-
return customData[0].value
|
142
|
-
}
|
152
|
+
return customData[0].value;
|
153
|
+
};
|
143
154
|
|
144
155
|
var requestCallback = function(data) {
|
145
156
|
var xhrData = data;
|
@@ -147,7 +158,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
147
158
|
// place handling of command|action here
|
148
159
|
//
|
149
160
|
return;
|
150
|
-
}
|
161
|
+
};
|
151
162
|
|
152
163
|
// ---------------------------------------------------------------------------
|
153
164
|
// main object
|
@@ -162,7 +173,9 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
162
173
|
j1.adapter.logger.state = 'started';
|
163
174
|
|
164
175
|
// load module DEFAULTS|CONFIG to js object
|
176
|
+
/* eslint-disable */
|
165
177
|
loggerOptions = $.extend({}, {{logger_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
178
|
+
/* eslint-enable */
|
166
179
|
ajaxAppenderOptions = loggerOptions.appenders[1].appender;
|
167
180
|
|
168
181
|
// -----------------------------------------------------------------------
|
@@ -312,5 +325,9 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
312
325
|
})(j1, window);
|
313
326
|
|
314
327
|
{% endcapture %}
|
315
|
-
{
|
328
|
+
{% if production %}
|
329
|
+
{{ cache | minifyJS }}
|
330
|
+
{% else %}
|
331
|
+
{{ cache | strip_empty_lines }}
|
332
|
+
{% endif %}
|
316
333
|
{% assign cache = nil %}
|
@@ -0,0 +1,167 @@
|
|
1
|
+
---
|
2
|
+
regenerate: true
|
3
|
+
---
|
4
|
+
|
5
|
+
{% capture cache %}
|
6
|
+
|
7
|
+
{% comment %}
|
8
|
+
# -----------------------------------------------------------------------------
|
9
|
+
# ~/assets/themes/j1/adapter/js/mdb.js
|
10
|
+
# Liquid template to adapt Material Design Bootrap
|
11
|
+
#
|
12
|
+
# Product/Info:
|
13
|
+
# https://jekyll.one
|
14
|
+
# Copyright (C) 2020 Juergen Adams
|
15
|
+
#
|
16
|
+
# J1 Template is licensed under the MIT License.
|
17
|
+
# For details, see https://jekyll.one
|
18
|
+
# -----------------------------------------------------------------------------
|
19
|
+
# Test data:
|
20
|
+
# {{ liquid_var | debug }}
|
21
|
+
# -----------------------------------------------------------------------------
|
22
|
+
{% endcomment %}
|
23
|
+
|
24
|
+
/*
|
25
|
+
# -----------------------------------------------------------------------------
|
26
|
+
# ~/assets/themes/j1/adapter/js/mdb.js
|
27
|
+
# J1 Adapter for MDB
|
28
|
+
#
|
29
|
+
# Product/Info:
|
30
|
+
# https://jekyll.one
|
31
|
+
#
|
32
|
+
# Copyright (C) 2020 Juergen Adams
|
33
|
+
#
|
34
|
+
# J1 Template is licensed under the MIT License.
|
35
|
+
# For details, see https://jekyll.one
|
36
|
+
# -----------------------------------------------------------------------------
|
37
|
+
# Adapter generated: {{site.time}}
|
38
|
+
# -----------------------------------------------------------------------------
|
39
|
+
*/
|
40
|
+
|
41
|
+
// -----------------------------------------------------------------------------
|
42
|
+
// ESLint shimming
|
43
|
+
// -----------------------------------------------------------------------------
|
44
|
+
/* eslint indent: "off" */
|
45
|
+
// -----------------------------------------------------------------------------
|
46
|
+
'use strict';
|
47
|
+
|
48
|
+
{% comment %} Main
|
49
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
50
|
+
j1.adapter['mdb'] = (function (j1, window) {
|
51
|
+
|
52
|
+
{% comment %} Set global variables
|
53
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
54
|
+
var environment = '{{environment}}';
|
55
|
+
var moduleOptions = {};
|
56
|
+
var _this;
|
57
|
+
var logger;
|
58
|
+
var logText;
|
59
|
+
|
60
|
+
// ---------------------------------------------------------------------------
|
61
|
+
// Helper functions
|
62
|
+
// ---------------------------------------------------------------------------
|
63
|
+
|
64
|
+
// ---------------------------------------------------------------------------
|
65
|
+
// Main object
|
66
|
+
// ---------------------------------------------------------------------------
|
67
|
+
return {
|
68
|
+
|
69
|
+
// -------------------------------------------------------------------------
|
70
|
+
// Initializer
|
71
|
+
// -------------------------------------------------------------------------
|
72
|
+
init: function (options) {
|
73
|
+
// initialize state flag
|
74
|
+
j1.adapter.mdb.state = 'pending';
|
75
|
+
|
76
|
+
// -----------------------------------------------------------------------
|
77
|
+
// Default module settings
|
78
|
+
// -----------------------------------------------------------------------
|
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
|
+
_this = j1.adapter.mdb;
|
87
|
+
logger = log4javascript.getLogger('j1.adapter.mdb');
|
88
|
+
|
89
|
+
_this.setState('started');
|
90
|
+
logger.info('state: ' + _this.getState());
|
91
|
+
logger.info('module is being initialized');
|
92
|
+
|
93
|
+
// -----------------------------------------------------------------------
|
94
|
+
// MDB initializer
|
95
|
+
// -----------------------------------------------------------------------
|
96
|
+
var log_text = 'MDB is being initialized';
|
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
|
+
|
112
|
+
return true;
|
113
|
+
}, // END init
|
114
|
+
|
115
|
+
// -------------------------------------------------------------------------
|
116
|
+
// messageHandler: MessageHandler for J1 CookieConsent module
|
117
|
+
// Manage messages send from other J1 modules
|
118
|
+
// -------------------------------------------------------------------------
|
119
|
+
messageHandler: function (sender, message) {
|
120
|
+
var json_message = JSON.stringify(message, undefined, 2);
|
121
|
+
|
122
|
+
logText = 'received message from ' + sender + ': ' + json_message;
|
123
|
+
logger.debug(logText);
|
124
|
+
|
125
|
+
// -----------------------------------------------------------------------
|
126
|
+
// Process commands|actions
|
127
|
+
// -----------------------------------------------------------------------
|
128
|
+
if (message.type === 'command' && message.action === 'module_initialized') {
|
129
|
+
//
|
130
|
+
// Place handling of command|action here
|
131
|
+
//
|
132
|
+
logger.info(message.text);
|
133
|
+
}
|
134
|
+
|
135
|
+
//
|
136
|
+
// Place handling of other command|action here
|
137
|
+
//
|
138
|
+
|
139
|
+
return true;
|
140
|
+
}, // END messageHandler
|
141
|
+
|
142
|
+
// -------------------------------------------------------------------------
|
143
|
+
// setState
|
144
|
+
// Set the current (processing) state of the module
|
145
|
+
// -------------------------------------------------------------------------
|
146
|
+
setState: function (stat) {
|
147
|
+
j1.adapter.mdb.state = stat;
|
148
|
+
}, // END setState
|
149
|
+
|
150
|
+
// -------------------------------------------------------------------------
|
151
|
+
// getState
|
152
|
+
// Returns the current (processing) state of the module
|
153
|
+
// -------------------------------------------------------------------------
|
154
|
+
getState: function () {
|
155
|
+
return j1.adapter.mdb.state;
|
156
|
+
} // END state
|
157
|
+
|
158
|
+
}; // END return
|
159
|
+
})(j1, window);
|
160
|
+
|
161
|
+
{% endcapture %}
|
162
|
+
{% if production %}
|
163
|
+
{{ cache | minifyJS }}
|
164
|
+
{% else %}
|
165
|
+
{{ cache | strip_empty_lines }}
|
166
|
+
{% endif %}
|
167
|
+
{% assign cache = nil %}
|