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 %}
|
@@ -35,18 +35,23 @@ regenerate: false
|
|
35
35
|
|
36
36
|
{% comment %} Set config files
|
37
37
|
-------------------------------------------------------------------------------- {% endcomment %}
|
38
|
-
{% assign site_config = site %}
|
39
38
|
{% assign template_config = site.data.template_settings %}
|
40
39
|
{% assign blocks = site.data.blocks %}
|
41
40
|
{% assign modules = site.data.modules %}
|
42
41
|
|
43
42
|
{% comment %} Set config data
|
44
43
|
-------------------------------------------------------------------------------- {% endcomment %}
|
45
|
-
{% assign algolia_config =
|
44
|
+
{% assign algolia_config = site.algolia %}
|
46
45
|
|
47
46
|
{% comment %} Set config options
|
48
47
|
-------------------------------------------------------------------------------- {% endcomment %}
|
49
48
|
|
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/algolia.js
|
@@ -63,6 +68,12 @@ regenerate: false
|
|
63
68
|
# Adapter generated: {{site.time}}
|
64
69
|
# -----------------------------------------------------------------------------
|
65
70
|
*/
|
71
|
+
|
72
|
+
// -----------------------------------------------------------------------------
|
73
|
+
// ESLint shimming
|
74
|
+
// -----------------------------------------------------------------------------
|
75
|
+
/* eslint indent: "off" */
|
76
|
+
// -----------------------------------------------------------------------------
|
66
77
|
'use strict';
|
67
78
|
|
68
79
|
{% comment %} Main
|
@@ -113,7 +124,9 @@ j1.adapter['algolia'] = (function (j1, window) {
|
|
113
124
|
{% comment %} Load module config from yml data
|
114
125
|
-------------------------------------------------------------------------- {% endcomment %}
|
115
126
|
// Load module DEFAULTS|CONFIG
|
127
|
+
/* eslint-disable */
|
116
128
|
moduleOptions = $.extend({}, {{algolia_config | replace: '=>', ':' | replace: 'nil', '""'}});
|
129
|
+
/* eslint-enable */
|
117
130
|
|
118
131
|
if (typeof settings !== 'undefined') {
|
119
132
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -129,24 +142,24 @@ j1.adapter['algolia'] = (function (j1, window) {
|
|
129
142
|
var hitTemplate = function(hit) {
|
130
143
|
// state = 'start search';
|
131
144
|
// logger.info('state: ' + state);
|
132
|
-
// var re = new RegExp(
|
133
|
-
// var re = new RegExp(
|
134
|
-
var re = new RegExp(
|
145
|
+
// var re = new RegExp('^\/posts');
|
146
|
+
// var re = new RegExp('^\/pages');
|
147
|
+
var re = new RegExp('^\/pages|^\/posts|^\/collections');
|
135
148
|
if (re.test(hit.url)) {
|
136
|
-
|
149
|
+
var date = '';
|
137
150
|
if (hit.date) {
|
138
151
|
date = moment.unix(hit.date).format('MMM D, YYYY');
|
139
152
|
}
|
140
|
-
//
|
141
|
-
|
153
|
+
// var url = `/jekyll-algolia-example${hit.url}#${hit.anchor}`;
|
154
|
+
var url = hit.url;
|
142
155
|
|
143
156
|
const title = hit._highlightResult.title.value;
|
144
|
-
|
157
|
+
var breadcrumbs = '';
|
145
158
|
|
146
159
|
if (hit._highlightResult.headings) {
|
147
160
|
breadcrumbs = hit._highlightResult.headings.map(match => {
|
148
|
-
return `<span class="post-breadcrumb">${match.value}</span
|
149
|
-
}).join(' > ')
|
161
|
+
return `<span class="post-breadcrumb">${match.value}</span>`;
|
162
|
+
}).join(' > ');
|
150
163
|
}
|
151
164
|
|
152
165
|
var content = hit._highlightResult.html.value;
|
@@ -169,7 +182,7 @@ j1.adapter['algolia'] = (function (j1, window) {
|
|
169
182
|
}
|
170
183
|
// state = 'finished search';
|
171
184
|
// logger.info('state: ' + state);
|
172
|
-
}
|
185
|
+
};
|
173
186
|
|
174
187
|
if (moduleOptions.enabled == true) {
|
175
188
|
// initialize currentRefinedValues
|
@@ -230,9 +243,9 @@ j1.adapter['algolia'] = (function (j1, window) {
|
|
230
243
|
container: '#refinement-list',
|
231
244
|
attributeName: 'tags',
|
232
245
|
collapsible: true,
|
233
|
-
operator:
|
246
|
+
operator: 'and',
|
234
247
|
limit: 5,
|
235
|
-
sortBy: [
|
248
|
+
sortBy: ['isRefined','count:desc','name:asc'],
|
236
249
|
templates: {
|
237
250
|
header: 'Tags'
|
238
251
|
},
|
@@ -264,7 +277,7 @@ j1.adapter['algolia'] = (function (j1, window) {
|
|
264
277
|
$('#algolia-site-search').append('<p class="ml-5 mt-5 mb-5 "> <strong>Algolia Search DISABLED</strong> </p>');
|
265
278
|
_this.setState('finished');
|
266
279
|
logger.info('state: ' + _this.getState());
|
267
|
-
logger.warn(
|
280
|
+
logger.warn('module disabled');
|
268
281
|
}
|
269
282
|
|
270
283
|
return true;
|
@@ -317,5 +330,9 @@ j1.adapter['algolia'] = (function (j1, window) {
|
|
317
330
|
})(j1, window);
|
318
331
|
|
319
332
|
{% endcapture %}
|
320
|
-
{
|
333
|
+
{% if production %}
|
334
|
+
{{ cache | minifyJS }}
|
335
|
+
{% else %}
|
336
|
+
{{ cache | strip_empty_lines }}
|
337
|
+
{% endif %}
|
321
338
|
{% assign cache = nil %}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -36,7 +36,6 @@ regenerate: true
|
|
36
36
|
|
37
37
|
{% comment %} Set config files
|
38
38
|
-------------------------------------------------------------------------------- {% endcomment %}
|
39
|
-
{% assign site_config = site %}
|
40
39
|
{% assign template_config = site.data.template_settings %}
|
41
40
|
{% assign blocks = site.data.blocks %}
|
42
41
|
{% assign modules = site.data.modules %}
|
@@ -50,6 +49,11 @@ regenerate: true
|
|
50
49
|
-------------------------------------------------------------------------------- {% endcomment %}
|
51
50
|
{% assign attic_options = attic_defaults | merge: attic_settings %}
|
52
51
|
|
52
|
+
{% assign production = false %}
|
53
|
+
{% if environment == 'prod' or environment == 'production' %}
|
54
|
+
{% assign production = true %}
|
55
|
+
{% endif %}
|
56
|
+
|
53
57
|
/*
|
54
58
|
# -----------------------------------------------------------------------------
|
55
59
|
# ~/assets/themes/j1/adapter/js/attic.js
|
@@ -70,6 +74,12 @@ regenerate: true
|
|
70
74
|
# Adapter generated: {{site.time}}
|
71
75
|
# -----------------------------------------------------------------------------
|
72
76
|
*/
|
77
|
+
|
78
|
+
// -----------------------------------------------------------------------------
|
79
|
+
// ESLint shimming
|
80
|
+
// -----------------------------------------------------------------------------
|
81
|
+
/* eslint indent: "off" */
|
82
|
+
// -----------------------------------------------------------------------------
|
73
83
|
'use strict';
|
74
84
|
|
75
85
|
{% comment %} Main
|
@@ -113,14 +123,17 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
113
123
|
logger.info('module is being initialized');
|
114
124
|
|
115
125
|
{% comment %} Loading headers if j1.template.init() loaded all data objects
|
126
|
+
DISABLED all DEPENDENCIES to NOT delay the render of a page (SEO)
|
116
127
|
-------------------------------------------------------------------------- {% endcomment %}
|
117
|
-
var dependencies_met_attic_adapter = setInterval(function() {
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
}, 25); // END 'dataLoaded'
|
128
|
+
// var dependencies_met_attic_adapter = setInterval(function() {
|
129
|
+
// if (typeof j1.colors !== 'undefined' && typeof j1.fonts !== 'undefined') {
|
130
|
+
// _this.loadHeader(frontmatterOptions);
|
131
|
+
// // clear interval checking
|
132
|
+
// clearInterval(dependencies_met_attic_adapter);
|
133
|
+
// }
|
134
|
+
// }, 25); // END 'dataLoaded'
|
135
|
+
|
136
|
+
_this.loadHeader(frontmatterOptions);
|
124
137
|
|
125
138
|
return true;
|
126
139
|
}, // END init
|
@@ -143,7 +156,7 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
143
156
|
function {{attic_id}} (atticOptions) {
|
144
157
|
// Fire backstretch for all slides of the header on attic_id
|
145
158
|
if ($('#{{attic_id}}').length) {
|
146
|
-
$(
|
159
|
+
$('#{{attic_id}}').backstretch(
|
147
160
|
atticOptions.slides, {
|
148
161
|
debug: atticOptions.debug,
|
149
162
|
spinner: atticOptions.spinner,
|
@@ -188,7 +201,7 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
188
201
|
See: https://github.com/jquery-backstretch/jquery-backstretch/issues/194
|
189
202
|
-------------------------------------------------------------------- {% endcomment %}
|
190
203
|
$(window).on('backstretch.after', function (e, instance, index) {
|
191
|
-
logText ='add caption text'
|
204
|
+
logText ='add caption text';
|
192
205
|
_this.setState('backstretch_after');
|
193
206
|
logger.debug('state: ' + status);
|
194
207
|
logger.debug(logText);
|
@@ -235,7 +248,7 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
235
248
|
{% comment %} Detect how show should run (only once|infinite loop)
|
236
249
|
-------------------------------------------------------------------- {% endcomment %}
|
237
250
|
{% if image_loop %}
|
238
|
-
$(window).on(
|
251
|
+
$(window).on('backstretch.before', function (e, instance, index) {
|
239
252
|
_this.setState('backstretch_before_image_loop');
|
240
253
|
logger.debug('state: ' + _this.getState());
|
241
254
|
// remove class for the backstretch_intro background
|
@@ -244,12 +257,12 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
244
257
|
}
|
245
258
|
});
|
246
259
|
{% else %}
|
247
|
-
$(window).on(
|
260
|
+
$(window).on('backstretch.before', function (e, instance, index) {
|
248
261
|
_this.setState('backstretch_before_image_once');
|
249
262
|
logger.debug('state: ' + _this.getState());
|
250
263
|
// Stop the slideshow after reached the last image
|
251
264
|
if (index === backstretch_instance_data.images.length -1) {
|
252
|
-
$(
|
265
|
+
$('#{{attic_id}}').backstretch('pause');
|
253
266
|
// remove class for the backstretch_intro background
|
254
267
|
$('.backstretch').removeClass(atticOptions.spinner);
|
255
268
|
}
|
@@ -316,6 +329,7 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
316
329
|
|
317
330
|
// Create and json object for HEADER options taken from
|
318
331
|
// header config (YAML data file)
|
332
|
+
/* eslint-disable */
|
319
333
|
var atticOptions = {
|
320
334
|
{% if raised_level %} "raised_level": {{ raised_level | json }}, {% endif %}
|
321
335
|
{% if r_text %} "r_text": {{ r_text | json }}, {% endif %}
|
@@ -334,10 +348,10 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
334
348
|
{% if background_color_1 %} "background_color_1": {{ background_color_1 | json }}, {% endif %}
|
335
349
|
{% if background_color_2 %} "background_color_2": {{ background_color_2 | json }}, {% endif %}
|
336
350
|
}
|
337
|
-
|
351
|
+
/* eslint-enable */
|
338
352
|
{% comment %} trans-script header|backstretch options
|
339
353
|
---------------------------------------------------------------- {% endcomment %}
|
340
|
-
{% if type ==
|
354
|
+
{% if type == 'video' %}
|
341
355
|
{% assign isVideo = true %}
|
342
356
|
{% if sound %} {% assign mute = false %} {% else %} {% assign mute = true %} {% endif %}
|
343
357
|
{% if loop %} {% assign loop = true %} {% else %} {% assign loop = true %} {% endif %}
|
@@ -345,6 +359,7 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
345
359
|
|
346
360
|
// Create an json object for BACKSTRETCH options taken from
|
347
361
|
// header config (yaml data file)
|
362
|
+
/* eslint-disable */
|
348
363
|
var atticOptions = {
|
349
364
|
{% if spinner %} "spinner": {{ spinner | json }}, {% endif %}
|
350
365
|
{% if opacity %} "opacity": {{ opacity | json }}, {% endif %}
|
@@ -366,20 +381,13 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
366
381
|
{% if duration %} "duration": {{ duration | json }}, {% endif %}
|
367
382
|
}
|
368
383
|
|
369
|
-
// Load
|
384
|
+
// Load Attic DEFAULTS
|
370
385
|
var attic_options = $.extend({}, {{attic_options | replace:'=>',':' }});
|
371
386
|
|
372
|
-
// Merge|Overload
|
387
|
+
// Merge|Overload Attic DEFAULTS by individual settings
|
373
388
|
// var atticOptions = j1.mergeData(attic_options, atticOptions);
|
374
389
|
var atticOptions = j1.mergeData(atticOptions, attic_options);
|
375
|
-
|
376
|
-
// Load Backstretch DEFAULTS
|
377
|
-
//var image_attic_defaults = $.extend({}, {{image_attic_defaults | replace:'=>',':' }});
|
378
|
-
|
379
|
-
// Merge|Overload Backstretch DEFAULTS by (header) OPTIONS
|
380
|
-
//var atticOptions = j1.mergeData(image_attic_defaults, atticOptions);
|
381
|
-
|
382
|
-
|
390
|
+
/* eslint-enable */
|
383
391
|
{% else %}
|
384
392
|
{% continue %}
|
385
393
|
{% endif %} // ENDIF attic_id
|
@@ -433,26 +441,34 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
433
441
|
|
434
442
|
{% comment %} Resolve symbolic color names
|
435
443
|
-------------------------------------------------------------------- {% endcomment %}
|
436
|
-
atticOptions.title_color = j1.setColorData(atticOptions.title_color);
|
437
|
-
atticOptions.tagline_color = j1.setColorData(atticOptions.tagline_color);
|
438
|
-
atticOptions.background_color_1 = j1.setColorData(atticOptions.background_color_1);
|
439
|
-
atticOptions.background_color_2 = j1.setColorData(atticOptions.background_color_2);
|
444
|
+
// atticOptions.title_color = j1.setColorData(atticOptions.title_color);
|
445
|
+
// atticOptions.tagline_color = j1.setColorData(atticOptions.tagline_color);
|
446
|
+
// atticOptions.background_color_1 = j1.setColorData(atticOptions.background_color_1);
|
447
|
+
// atticOptions.background_color_2 = j1.setColorData(atticOptions.background_color_2);
|
448
|
+
|
449
|
+
atticOptions.title_color = atticOptions.title_color;
|
450
|
+
atticOptions.tagline_color = atticOptions.tagline_color;
|
451
|
+
atticOptions.background_color_1 = atticOptions.background_color_1;
|
452
|
+
atticOptions.background_color_2 = atticOptions.background_color_2;
|
440
453
|
|
441
454
|
{% comment %} Resolve symbolic font sizes names
|
442
455
|
-------------------------------------------------------------------- {% endcomment %}
|
443
|
-
atticOptions.title_size = j1.setFontSize(atticOptions.title_size);
|
444
|
-
atticOptions.tagline_size = j1.setFontSize(atticOptions.tagline_size);
|
456
|
+
// atticOptions.title_size = j1.setFontSize(atticOptions.title_size);
|
457
|
+
// atticOptions.tagline_size = j1.setFontSize(atticOptions.tagline_size);
|
458
|
+
|
459
|
+
atticOptions.title_size = atticOptions.title_size;
|
460
|
+
atticOptions.tagline_size = atticOptions.tagline_size;
|
445
461
|
|
446
462
|
{% comment %} Add header CSS classes
|
447
463
|
-------------------------------------------------------------------- {% endcomment %}
|
448
464
|
if (atticOptions.r_text == 'enabled') { $('#{{attic_id}}').addClass('r-text'); }
|
449
465
|
|
450
|
-
var raised_level =
|
466
|
+
var raised_level = 'raised-z' +atticOptions.raised_level;
|
451
467
|
$('#{{attic_id}}').addClass(raised_level);
|
452
468
|
$('#head-title').addClass(atticOptions.title_animate);
|
453
469
|
$('#head-tagline').addClass(atticOptions.tagline_animate);
|
454
470
|
|
455
|
-
var text_emphasis =
|
471
|
+
var text_emphasis = 'text-emphasis-' +atticOptions.text_emphasis;
|
456
472
|
$('#head-title-text').addClass(text_emphasis);
|
457
473
|
$('#head-tagline-text').addClass(text_emphasis);
|
458
474
|
|
@@ -461,22 +477,22 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
461
477
|
var attic_style = '';
|
462
478
|
|
463
479
|
// Initialze header background gradient
|
464
|
-
attic_style +=
|
465
|
-
attic_style +=
|
466
|
-
attic_style +=
|
467
|
-
attic_style +=
|
468
|
-
attic_style +=
|
469
|
-
attic_style += 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' +atticOptions.background_color_1+ '", endColorstr="' +atticOptions.background_color_2+ '", GradientType=0);
|
470
|
-
attic_style +=
|
480
|
+
attic_style += '<style> .attic { ';
|
481
|
+
attic_style += 'background-image: -webkit-gradient(linear, left top, left bottom, from(' +atticOptions.background_color_1+ '), to(' +atticOptions.background_color_2+ '));';
|
482
|
+
attic_style += 'background-image: -webkit-linear-gradient(top, ' +atticOptions.background_color_1+ ' 0%, ' +atticOptions.background_color_2+ ' 100%);';
|
483
|
+
attic_style += 'background-image: -o-linear-gradient(top, ' +atticOptions.background_color_1+ ' 0%, ' +atticOptions.background_color_2+ ' 100%);';
|
484
|
+
attic_style += 'background-image: linear-gradient(to bottom, ' +atticOptions.background_color_1+ ' 0%, ' +atticOptions.background_color_2+ ' 100%);';
|
485
|
+
attic_style += 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' +atticOptions.background_color_1+ '", endColorstr="' +atticOptions.background_color_2+ '", GradientType=0);';
|
486
|
+
attic_style += '} </style>';
|
471
487
|
$('head').append(attic_style);
|
472
488
|
|
473
489
|
// Initialze header sizes
|
474
490
|
attic_style = '';
|
491
|
+
attic_style = '<style> .attic { padding-top: ' +atticOptions.padding_top+ 'px; padding-bottom: ' +atticOptions.padding_bottom+ 'px; margin-bottom: ' +atticOptions.margin_bottom+ 'px; text-shadow: 0 1px 0 rgba(0,0,0,.1); </style>';
|
475
492
|
|
476
|
-
attic_style = "<style> .attic { padding-top:" +atticOptions.padding_top+ "px; padding-bottom: " +atticOptions.padding_bottom+ "px; margin-bottom: " +atticOptions.margin_bottom+ "px; text-shadow: 0 1px 0 rgba(0,0,0,.1); </style>"
|
477
493
|
$('head').append(attic_style);
|
478
|
-
$('head').append(
|
479
|
-
$('head').append(
|
494
|
+
$('head').append('<style> .attic .head-title h2 { color: ' +atticOptions.title_color+ ';font-size: ' +atticOptions.title_size+ ' !important; text-align: ' +atticOptions.title_align+ ';} </style>');
|
495
|
+
$('head').append('<style> .attic .head-tagline h3 { color: ' +atticOptions.tagline_color+ ';font-size: ' +atticOptions.tagline_size+ ' !important; text-align: ' +atticOptions.tagline_align+ '; } </style>');
|
480
496
|
|
481
497
|
// Add opacity to all header images
|
482
498
|
// See: https://tympanus.net/codrops/2013/11/07/css-overlay-techniques/
|
@@ -495,7 +511,7 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
495
511
|
$(function() {
|
496
512
|
// logger.debug('Load image header on: ' + {{attic_id}});
|
497
513
|
logger.debug('Load image header');
|
498
|
-
{{attic_id}}(atticOptions)
|
514
|
+
{{attic_id}}(atticOptions);
|
499
515
|
_this.setState('completed');
|
500
516
|
logger.info('state: ' + _this.getState());
|
501
517
|
});
|
@@ -559,5 +575,9 @@ j1.adapter['attic'] = (function (j1, window) {
|
|
559
575
|
})(j1, window);
|
560
576
|
|
561
577
|
{% endcapture %}
|
562
|
-
{
|
578
|
+
{% if production %}
|
579
|
+
{{ cache | minifyJS }}
|
580
|
+
{% else %}
|
581
|
+
{{ cache | strip_empty_lines }}
|
582
|
+
{% endif %}
|
563
583
|
{% assign cache = nil %}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -31,6 +31,12 @@ regenerate: true
|
|
31
31
|
{% assign template_version = site.version %}
|
32
32
|
{% assign slider_id = '' %}
|
33
33
|
|
34
|
+
{% assign production = false %}
|
35
|
+
{% if environment == 'prod' or environment == 'production' %}
|
36
|
+
{% assign production = true %}
|
37
|
+
{% endif %}
|
38
|
+
|
39
|
+
|
34
40
|
{% comment %} Process YML config data
|
35
41
|
================================================================================ {% endcomment %}
|
36
42
|
|
@@ -64,6 +70,12 @@ regenerate: true
|
|
64
70
|
# Adapter generated: {{site.time}}
|
65
71
|
# -----------------------------------------------------------------------------
|
66
72
|
*/
|
73
|
+
|
74
|
+
// -----------------------------------------------------------------------------
|
75
|
+
// ESLint shimming
|
76
|
+
// -----------------------------------------------------------------------------
|
77
|
+
/* eslint indent: "off" */
|
78
|
+
// -----------------------------------------------------------------------------
|
67
79
|
'use strict';
|
68
80
|
|
69
81
|
{% comment %} Main
|
@@ -102,7 +114,9 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
102
114
|
{% comment %} Load module config from yml data
|
103
115
|
-------------------------------------------------------------------------- {% endcomment %}
|
104
116
|
// Load module DEFAULTS|CONFIG
|
117
|
+
/* eslint-disable */
|
105
118
|
moduleOptions = $.extend({}, {{carousel_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
119
|
+
/* eslint-enable */
|
106
120
|
|
107
121
|
if (typeof settings !== 'undefined') {
|
108
122
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -141,7 +155,7 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
141
155
|
{% if item.show.slide_height != null %}
|
142
156
|
// Set slide_height: {{item.show.slide_height}}vh
|
143
157
|
{% assign slide_height = item.show.slide_height %}
|
144
|
-
$('head').append(
|
158
|
+
$('head').append('<style>.owl-carousel .item{height: {{slide_height}}vh;}</style>');
|
145
159
|
{% endif %}
|
146
160
|
|
147
161
|
{% if item.show.slide_space_between %}
|
@@ -173,12 +187,13 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
173
187
|
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax:after{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:rgba(0,0,0,0.3)}</style>');
|
174
188
|
{% endif %}
|
175
189
|
|
176
|
-
$('head').append(
|
190
|
+
$('head').append('<style>.{{slider_id}}-item{margin: {{slide_space}}px;}</style>');
|
177
191
|
//$('.{{slider_id}}-item').parent().addClass('owl-carousel');
|
178
192
|
//$('.owl-carousel .item').css('margin','{{slide_space}}px');
|
179
193
|
|
180
194
|
// Initialize individual show parameters
|
181
|
-
|
195
|
+
/* eslint-disable */
|
196
|
+
$('#{{slider_id}}').owlCarousel({
|
182
197
|
{% for option in item.show.options %}
|
183
198
|
{{option[0] | json}}: {{option[1] | json}},
|
184
199
|
{% endfor %}
|
@@ -189,29 +204,31 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
189
204
|
"jsonPath": {{carousel_options.xhr_data_path | json}},
|
190
205
|
"jsonSuccess": customDataSuccess_{{forloop.index}}
|
191
206
|
});
|
207
|
+
/* eslint-enable */
|
208
|
+
|
192
209
|
// Initialize instance variable (for later access)
|
193
210
|
//{{slider_id}} = $('#{{slider_id}}').data('owlCarousel');
|
194
211
|
|
195
|
-
j1[
|
212
|
+
j1['{{slider_id}}'] = $('#{{slider_id}}').data('owlCarousel');
|
196
213
|
|
197
214
|
// jQuery show data functions
|
198
215
|
function customDataSuccess_{{forloop.index}}(data){
|
199
|
-
var content =
|
200
|
-
for (var i in data[
|
216
|
+
var content = '';
|
217
|
+
for (var i in data['{{slider_id}}']) {
|
201
218
|
{% if slider_type == 'image' %}
|
202
|
-
var lb = data[
|
203
|
-
var lb_caption = data[
|
204
|
-
var img = data[
|
205
|
-
var alt = data[
|
219
|
+
var lb = data['{{slider_id}}'][i].lb;
|
220
|
+
var lb_caption = data['{{slider_id}}'][i].lb_caption;
|
221
|
+
var img = data['{{slider_id}}'][i].img;
|
222
|
+
var alt = data['{{slider_id}}'][i].alt;
|
206
223
|
{% endif %}
|
207
224
|
{% if slider_type == 'text' %}
|
208
|
-
var text = data[
|
225
|
+
var text = data['{{slider_id}}'][i].text;
|
209
226
|
{% endif %}
|
210
|
-
var href = data[
|
227
|
+
var href = data['{{slider_id}}'][i].href;
|
211
228
|
{% if css_classes %}
|
212
|
-
var css_classes = 'class="{{css_classes}}";'
|
229
|
+
var css_classes = 'class="{{css_classes}}";';
|
213
230
|
{% else %}
|
214
|
-
var css_classes = ''
|
231
|
+
var css_classes = '';
|
215
232
|
{% endif %}
|
216
233
|
|
217
234
|
{% if slider_type == 'image' %}
|
@@ -229,24 +246,24 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
229
246
|
}
|
230
247
|
content += '\t\t' + '</div>' + '\n';
|
231
248
|
} else {
|
232
|
-
content += '<a class="item" href="' +img+ '" ' + 'data-lightbox="{{slider_id}}"> <img class="lazyOwl" data-src="' +img+ '" alt="' +alt+ '">' + '</a>'
|
249
|
+
content += '<a class="item" href="' +img+ '" ' + 'data-lightbox="{{slider_id}}"> <img class="lazyOwl" data-src="' +img+ '" alt="' +alt+ '">' + '</a>';
|
233
250
|
}
|
234
251
|
} else if (href) {
|
235
|
-
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>'
|
252
|
+
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>';
|
236
253
|
} else {
|
237
|
-
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>'
|
254
|
+
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>';
|
238
255
|
}
|
239
256
|
{% endif %}
|
240
257
|
|
241
258
|
{% if slider_type == 'text' %}
|
242
259
|
if (href) {
|
243
|
-
content += '<div class="item">' + '<p href=' +href+ '">' +text+ '</p>' + '</div>'
|
260
|
+
content += '<div class="item">' + '<p href=' +href+ '">' +text+ '</p>' + '</div>';
|
244
261
|
} else {
|
245
|
-
content += '<div class="item">' + '<p>' +text+ '</p>' + '</div>'
|
262
|
+
content += '<div class="item">' + '<p>' +text+ '</p>' + '</div>';
|
246
263
|
}
|
247
264
|
{% endif %}
|
248
265
|
}
|
249
|
-
$(
|
266
|
+
$('#{{slider_id}}').html(content);
|
250
267
|
logText = 'initializing slider finished on id: {{slider_id}}';
|
251
268
|
logger.info(logText);
|
252
269
|
} // END customDataSuccess_{{forloop.index}}
|
@@ -309,5 +326,9 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
309
326
|
})(j1, window);
|
310
327
|
|
311
328
|
{% endcapture %}
|
312
|
-
{
|
329
|
+
{% if production %}
|
330
|
+
{{ cache | minifyJS }}
|
331
|
+
{% else %}
|
332
|
+
{{ cache | strip_empty_lines }}
|
333
|
+
{% endif %}
|
313
334
|
{% assign cache = nil %}
|