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
@@ -0,0 +1,122 @@
|
|
1
|
+
/*!
|
2
|
+
* Datepicker for Bootstrap
|
3
|
+
*
|
4
|
+
* Copyright 2012 Stefan Petre
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
.datepicker {
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
padding: 4px;
|
14
|
+
margin-top: 1px;
|
15
|
+
.border-radius(4px);
|
16
|
+
&:before {
|
17
|
+
content: '';
|
18
|
+
display: inline-block;
|
19
|
+
border-left: 7px solid transparent;
|
20
|
+
border-right: 7px solid transparent;
|
21
|
+
border-bottom: 7px solid #ccc;
|
22
|
+
border-bottom-color: rgba(0,0,0,.2);
|
23
|
+
position: absolute;
|
24
|
+
top: -7px;
|
25
|
+
left: 6px;
|
26
|
+
}
|
27
|
+
&:after {
|
28
|
+
content: '';
|
29
|
+
display: inline-block;
|
30
|
+
border-left: 6px solid transparent;
|
31
|
+
border-right: 6px solid transparent;
|
32
|
+
border-bottom: 6px solid @white;
|
33
|
+
position: absolute;
|
34
|
+
top: -6px;
|
35
|
+
left: 7px;
|
36
|
+
}
|
37
|
+
>div {
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
table{
|
41
|
+
width: 100%;
|
42
|
+
margin: 0;
|
43
|
+
}
|
44
|
+
td,
|
45
|
+
th{
|
46
|
+
text-align: center;
|
47
|
+
width: 20px;
|
48
|
+
height: 20px;
|
49
|
+
.border-radius(4px);
|
50
|
+
}
|
51
|
+
td {
|
52
|
+
&.day:hover {
|
53
|
+
background: @grayLighter;
|
54
|
+
cursor: pointer;
|
55
|
+
}
|
56
|
+
&.day.disabled {
|
57
|
+
color: @grayLighter;
|
58
|
+
}
|
59
|
+
&.old,
|
60
|
+
&.new {
|
61
|
+
color: @grayLight;
|
62
|
+
}
|
63
|
+
&.active,
|
64
|
+
&.active:hover {
|
65
|
+
.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
|
66
|
+
color: #fff;
|
67
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
68
|
+
}
|
69
|
+
span {
|
70
|
+
display: block;
|
71
|
+
width: 47px;
|
72
|
+
height: 54px;
|
73
|
+
line-height: 54px;
|
74
|
+
float: left;
|
75
|
+
margin: 2px;
|
76
|
+
cursor: pointer;
|
77
|
+
.border-radius(4px);
|
78
|
+
&:hover {
|
79
|
+
background: @grayLighter;
|
80
|
+
}
|
81
|
+
&.active {
|
82
|
+
.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
|
83
|
+
color: #fff;
|
84
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
85
|
+
}
|
86
|
+
&.old {
|
87
|
+
color: @grayLight;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
th {
|
93
|
+
&.switch {
|
94
|
+
width: 145px;
|
95
|
+
}
|
96
|
+
&.next,
|
97
|
+
&.prev {
|
98
|
+
font-size: @baseFontSize * 1.5;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
thead tr:first-child th {
|
103
|
+
cursor: pointer;
|
104
|
+
&:hover{
|
105
|
+
background: @grayLighter;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
/*.dow {
|
109
|
+
border-top: 1px solid #ddd !important;
|
110
|
+
}*/
|
111
|
+
}
|
112
|
+
.input-append,
|
113
|
+
.input-prepend {
|
114
|
+
&.date {
|
115
|
+
.add-on i {
|
116
|
+
display: block;
|
117
|
+
cursor: pointer;
|
118
|
+
width: 16px;
|
119
|
+
height: 16px;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
@@ -0,0 +1,425 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.js
|
4
|
+
# Provides Javascript functions for Bootstrap ThemeSwitcher
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://jekyll.one
|
8
|
+
# https://github.com/jguadagno/bootstrapThemeSwitcher
|
9
|
+
#
|
10
|
+
# Copyright (C) 2020 Juergen Adams
|
11
|
+
# Copyright (C) 2014 Joseph Guadagno
|
12
|
+
#
|
13
|
+
# J1 Template is licensed under the MIT License.
|
14
|
+
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
15
|
+
# Bootstrap Theme Switcher is licensed under the MIT License.
|
16
|
+
# See: https://github.com/jguadagno/bootstrapThemeSwitcher
|
17
|
+
#
|
18
|
+
# -----------------------------------------------------------------------------
|
19
|
+
*/
|
20
|
+
'use strict';
|
21
|
+
|
22
|
+
// -----------------------------------------------------------------------------
|
23
|
+
// ESLint shimming
|
24
|
+
// -----------------------------------------------------------------------------
|
25
|
+
/* eslint indent: "off" */
|
26
|
+
/* eslint no-console: ["error", { allow: ["log", "warn", "error"] }] */
|
27
|
+
/* eslint no-unused-vars: "off" */
|
28
|
+
/* eslint no-undef: "off" */
|
29
|
+
/* eslint no-useless-escape: "off" */
|
30
|
+
/* eslint no-prototype-builtins: "off" */
|
31
|
+
/* eslint no-shadow-restricted-names: "off" */
|
32
|
+
/* global jQuery */
|
33
|
+
/* global Cookies */
|
34
|
+
// -----------------------------------------------------------------------------
|
35
|
+
|
36
|
+
/**
|
37
|
+
* jQuery Twitter Bootstrap Theme Switcher v1.1.5
|
38
|
+
* https://github.com/jguadagno/bootstrapThemeSwitcher
|
39
|
+
*
|
40
|
+
* Copyright 2014, Joseph Guadagno
|
41
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
42
|
+
*/
|
43
|
+
|
44
|
+
(function ($, window, document, undefined) {
|
45
|
+
|
46
|
+
var old = $.fn.bootstrapThemeSwitcher;
|
47
|
+
|
48
|
+
var cookie_names = j1.getCookieNames();
|
49
|
+
const user_state_cookie_name = cookie_names.user_state;
|
50
|
+
|
51
|
+
var logger = log4javascript.getLogger('j1.core.switcher');
|
52
|
+
var logText;
|
53
|
+
|
54
|
+
var user_state_detected;
|
55
|
+
var j1_user_state = {};
|
56
|
+
var j1_user_state_json;
|
57
|
+
var j1_user_state_cookie;
|
58
|
+
|
59
|
+
// Constructor
|
60
|
+
// ---------------------------------------------------------------------------
|
61
|
+
var BootstrapThemeSwitcher = function (element, options) {
|
62
|
+
|
63
|
+
this.$element = $(element);
|
64
|
+
this.settings = $.extend({}, $.fn.bootstrapThemeSwitcher.defaults, options);
|
65
|
+
this.themesList = [];
|
66
|
+
this.getThemes();
|
67
|
+
|
68
|
+
return this;
|
69
|
+
};
|
70
|
+
|
71
|
+
// Prototype
|
72
|
+
// ---------------------------------------------------------------------------
|
73
|
+
BootstrapThemeSwitcher.prototype = {
|
74
|
+
clear: function () {
|
75
|
+
logger.debug('bootstrapThemeSwitcher.clear');
|
76
|
+
return this.$element.each(function () {
|
77
|
+
this.$element.empty();
|
78
|
+
});
|
79
|
+
},
|
80
|
+
update: function () {
|
81
|
+
logger.debug('bootstrapThemeSwitcher.update');
|
82
|
+
this.getThemes();
|
83
|
+
},
|
84
|
+
|
85
|
+
// -------------------------------------------------------------------------
|
86
|
+
// checkStyleSheetByName
|
87
|
+
// -------------------------------------------------------------------------
|
88
|
+
checkStyleSheetByName: function (name) {
|
89
|
+
var found = false;
|
90
|
+
var test = '\/' + name + '\/';
|
91
|
+
var re = new RegExp(test, 'i');
|
92
|
+
|
93
|
+
for(var i = 0; i < document.styleSheets.length; i++){
|
94
|
+
if(re.test(document.styleSheets[i].href)){
|
95
|
+
found=true;
|
96
|
+
break;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
return found;
|
100
|
+
},
|
101
|
+
|
102
|
+
// -------------------------------------------------------------------------
|
103
|
+
// switchTheme
|
104
|
+
// -------------------------------------------------------------------------
|
105
|
+
// NOTE:
|
106
|
+
// For J1 template, switchTheme set only the cookies contents. The theme
|
107
|
+
// switch is done by a page reload. The reload triggers the theme_generator
|
108
|
+
// to load theme CSS from cookies, finally.
|
109
|
+
// -------------------------------------------------------------------------
|
110
|
+
switchTheme: function (name, cssFile) {
|
111
|
+
|
112
|
+
var $this = $(this);
|
113
|
+
var settings = $.extend({}, $.fn.bootstrapThemeSwitcher.defaults, $this.data('bootstrapThemeSwitcher'));
|
114
|
+
var themeName;
|
115
|
+
var theme_css;
|
116
|
+
var theme_extension_css;
|
117
|
+
|
118
|
+
var id = settings.cssThemeLink;
|
119
|
+
var debug = settings.debug;
|
120
|
+
var includeCSS = this.settings.includeBootswatch;
|
121
|
+
|
122
|
+
// Detect|Set J1 UserState
|
123
|
+
user_state_detected = j1.existsCookie ( 'j1.user.state' );
|
124
|
+
if ( user_state_detected ) {
|
125
|
+
logger.debug('user state cookie found');
|
126
|
+
j1_user_state = j1.readCookie(user_state_cookie_name);
|
127
|
+
} else {
|
128
|
+
logger.error('user state NOT cookie found');
|
129
|
+
}
|
130
|
+
|
131
|
+
themeName = j1_user_state.theme_name;
|
132
|
+
theme_css = j1_user_state.theme_css;
|
133
|
+
theme_extension_css = j1_user_state.theme_extension_css;
|
134
|
+
|
135
|
+
if ( cssFile === undefined ) { cssFile = this.settings.defaultCssFile; }
|
136
|
+
if ( name === undefined ) { name = cssFile; }
|
137
|
+
// Clear 'includeCSS' if NO theme extension CSS is needed
|
138
|
+
if ( name === this.settings.skipIncludeBootswatch ) { includeCSS = ''; }
|
139
|
+
|
140
|
+
// check if theme is to be saved to cookie
|
141
|
+
if ( settings.saveToCookie ) {
|
142
|
+
if ( Cookies === undefined ) {
|
143
|
+
if ( debug === 'true' ) {
|
144
|
+
logger.error('saveToCookie is set to true but Cookies library is not present');
|
145
|
+
}
|
146
|
+
return false;
|
147
|
+
}
|
148
|
+
|
149
|
+
j1_user_state.theme_name = name;
|
150
|
+
j1_user_state.theme_css = cssFile;
|
151
|
+
|
152
|
+
if ( name != 'Uno' && name != 'Bootstrap' ) {
|
153
|
+
j1_user_state.theme_author = 'Bootswatch';
|
154
|
+
j1_user_state.theme_link = 'https://bootswatch.com/';
|
155
|
+
} else {
|
156
|
+
j1_user_state.theme_author = 'J1 Team';
|
157
|
+
j1_user_state.theme_link = 'https://jekyll.one/';
|
158
|
+
}
|
159
|
+
|
160
|
+
j1.writeCookie({
|
161
|
+
name: user_state_cookie_name,
|
162
|
+
data: j1_user_state
|
163
|
+
});
|
164
|
+
// force reload the page from the server (skip cache)
|
165
|
+
// and detect selected theme from cookie
|
166
|
+
location.reload(true);
|
167
|
+
} else {
|
168
|
+
logger.warn('write to cookie : disabled');
|
169
|
+
logger.warn('selected theme not activated: ' + name);
|
170
|
+
} // END if saveToCookie
|
171
|
+
|
172
|
+
}, // END switchTheme
|
173
|
+
|
174
|
+
// -------------------------------------------------------------------------
|
175
|
+
// loadThemeFromCookie
|
176
|
+
// -------------------------------------------------------------------------
|
177
|
+
loadThemeFromCookie: function (options) {
|
178
|
+
|
179
|
+
if ( Cookies === undefined ) {
|
180
|
+
logger.error('loadThemeFromCookie was called but Cookies library is not present');
|
181
|
+
return false;
|
182
|
+
}
|
183
|
+
|
184
|
+
var settings = $.extend({}, $.fn.bootstrapThemeSwitcher.defaults, options);
|
185
|
+
|
186
|
+
// Detect|Set J1 UserState
|
187
|
+
user_state_detected = j1.existsCookie ( 'j1.user.state' );
|
188
|
+
if ( user_state_detected ) {
|
189
|
+
logger.info('User state cookie found');
|
190
|
+
j1_user_state = j1.readCookie(user_state_cookie_name);
|
191
|
+
} else {
|
192
|
+
logger.error('User state NOT cookie found');
|
193
|
+
}
|
194
|
+
|
195
|
+
var themeName = j1_user_state.theme_name;
|
196
|
+
var themeCss = j1_user_state.theme_css;
|
197
|
+
this.switchTheme(themeName, themeCss);
|
198
|
+
|
199
|
+
}, // END loadThemeFromCookie
|
200
|
+
|
201
|
+
// -------------------------------------------------------------------------
|
202
|
+
// addTheme
|
203
|
+
// -------------------------------------------------------------------------
|
204
|
+
addTheme: function(name, cssFile, start, deleteCount) {
|
205
|
+
if (start === undefined) { start = 0; }
|
206
|
+
if (deleteCount === undefined) { deleteCount = 0; }
|
207
|
+
this.themesList.splice(start, deleteCount, {name: name, css: cssFile});
|
208
|
+
this.addThemesToControl();
|
209
|
+
}, // END addTheme
|
210
|
+
|
211
|
+
// -------------------------------------------------------------------------
|
212
|
+
// addThemesToControl
|
213
|
+
// -------------------------------------------------------------------------
|
214
|
+
addThemesToControl: function() {
|
215
|
+
if (this.$element === undefined) {
|
216
|
+
logger.error('bootstrapThemeSelector|addThemesToControl: Element is undefined');
|
217
|
+
return false;
|
218
|
+
}
|
219
|
+
if (this.themesList === undefined) {
|
220
|
+
logger.error('bootstrapThemeSelector|addThemesToControl: Themes is undefined');
|
221
|
+
return false;
|
222
|
+
}
|
223
|
+
|
224
|
+
//If BootSwatch exclusions are set
|
225
|
+
if(this.settings.excludeBootswatch){
|
226
|
+
var excludeBootswatchs;
|
227
|
+
//Split the string on ,
|
228
|
+
if(this.settings.excludeBootswatch.indexOf(',') !== -1){
|
229
|
+
excludeBootswatchs = this.settings.excludeBootswatch.split(',');
|
230
|
+
}else{
|
231
|
+
excludeBootswatchs = [];
|
232
|
+
excludeBootswatchs.push(this.settings.excludeBootswatch);
|
233
|
+
}
|
234
|
+
|
235
|
+
var tempThemeList = this.themesList;
|
236
|
+
$.each(tempThemeList, function (i, value) {
|
237
|
+
if(value && value.name){
|
238
|
+
if( jQuery.inArray( value.name, excludeBootswatchs ) !== -1 ){
|
239
|
+
tempThemeList.splice(i,1);
|
240
|
+
}
|
241
|
+
}
|
242
|
+
});
|
243
|
+
this.themesList = tempThemeList;
|
244
|
+
}
|
245
|
+
|
246
|
+
var base = this;
|
247
|
+
|
248
|
+
if (this.$element.is('ul')) {
|
249
|
+
var $this = $(this);
|
250
|
+
var settings = $.extend({}, $.fn.bootstrapThemeSwitcher.defaults, $this.data('bootstrapThemeSwitcher'));
|
251
|
+
var id = settings.cssThemeLink;
|
252
|
+
var themeName;
|
253
|
+
var debug = settings.debug;
|
254
|
+
|
255
|
+
// Detect|Set J1 UserState
|
256
|
+
user_state_detected = j1.existsCookie ( 'j1.user.state' );
|
257
|
+
if ( user_state_detected ) {
|
258
|
+
logger.debug('User state cookie found');
|
259
|
+
j1_user_state = j1.readCookie(user_state_cookie_name);
|
260
|
+
} else {
|
261
|
+
logger.error('User state NOT cookie found');
|
262
|
+
}
|
263
|
+
|
264
|
+
themeName = j1_user_state.theme_name;
|
265
|
+
|
266
|
+
if ( debug === 'true' ) {
|
267
|
+
logger.debug('bootstrapThemeSelector: UL element selected');
|
268
|
+
}
|
269
|
+
this.$element.empty();
|
270
|
+
|
271
|
+
var cssClass;
|
272
|
+
var iconColor = '#9E9E9E';
|
273
|
+
$.each(this.themesList, function (i, value) {
|
274
|
+
// Add a class of "active" to the current BootSwatch
|
275
|
+
// for BS4 (was: cssClass = null)
|
276
|
+
cssClass = 'dropdown-item';
|
277
|
+
if ( value.name === themeName ) {
|
278
|
+
cssClass = 'dropdown-item active';
|
279
|
+
}
|
280
|
+
var li = $('<li />')
|
281
|
+
.attr('class',cssClass)
|
282
|
+
.append('<a href="#"><i class="mdi mdi-view-quilt mdi-18px mr-2" style="color: ' +iconColor+ '"></i>' +value.name+ '</a>')
|
283
|
+
.on('click', function () {
|
284
|
+
if (settings.loadFromBootswatch) {
|
285
|
+
base.switchTheme(value.name, value.css);
|
286
|
+
} else {
|
287
|
+
base.switchTheme(value.name, value.cssCdn);
|
288
|
+
}
|
289
|
+
//Remove previous "active" class and apply to latest clicked element
|
290
|
+
$(this).parent().find('li').removeClass('active');
|
291
|
+
$(this).addClass('active');
|
292
|
+
});
|
293
|
+
base.$element.append(li);
|
294
|
+
});
|
295
|
+
|
296
|
+
} else if (this.$element.is('select')) {
|
297
|
+
logger.debug('bootstrapThemeSelector: SELECT element selected');
|
298
|
+
this.$element.empty();
|
299
|
+
|
300
|
+
var optionSelectedMarker;
|
301
|
+
$.each(this.themesList, function (i, value) {
|
302
|
+
optionSelectedMarker = null;
|
303
|
+
if ( value.name === themeName ) {
|
304
|
+
optionSelectedMarker = 'selected';
|
305
|
+
}
|
306
|
+
if (settings.loadFromBootswatch) {
|
307
|
+
base.$element.append('<option ' + optionSelectedMarker + ' value=\'' + value.css + '\'>' + value.name + '</option>');
|
308
|
+
} else {
|
309
|
+
base.$element.append('<option ' + optionSelectedMarker + ' value=\'' + value.cssCdn + '\'>' + value.name + '</option>');
|
310
|
+
}
|
311
|
+
});
|
312
|
+
this.$element.on('change', function () {
|
313
|
+
var optionSelected = $('option:selected', this);
|
314
|
+
base.switchTheme(optionSelected.text(), optionSelected.val());
|
315
|
+
});
|
316
|
+
|
317
|
+
} else {
|
318
|
+
// jadams: suppress senseless warning
|
319
|
+
// console.warn('bootstrapThemeSelector only works with ul or select elements');
|
320
|
+
}
|
321
|
+
}, // END addThemesToControl
|
322
|
+
|
323
|
+
// -------------------------------------------------------------------------
|
324
|
+
// getThemes
|
325
|
+
// -------------------------------------------------------------------------
|
326
|
+
getThemes: function() {
|
327
|
+
var base = this;
|
328
|
+
|
329
|
+
if (this.settings.localFeed !== null && this.settings.localFeed !== '') {
|
330
|
+
// Get the file
|
331
|
+
$.ajax({
|
332
|
+
url: this.settings.localFeed,
|
333
|
+
// jadams 2016-10-10: removed the setting for sychronous XMLHttpRequest
|
334
|
+
// because deprecated by jQuery on the MAIN thread. Because the Theme Manager
|
335
|
+
// is initialized very early, no blocking (sychronous) AJAX call is needed
|
336
|
+
// async: false,
|
337
|
+
dataType: 'json',
|
338
|
+
success: function (data) {
|
339
|
+
base.themesList = data.themes;
|
340
|
+
base.addThemesToControl();
|
341
|
+
},
|
342
|
+
error: function (jqXHR, textStatus, errorThrown) {
|
343
|
+
logger.error('Failed to retrieve the local feed from: \'' + base.settings.localFeed + '\'');
|
344
|
+
}
|
345
|
+
});
|
346
|
+
return true;
|
347
|
+
}
|
348
|
+
|
349
|
+
// Deferred loading the CSS file from 'bootswatchApiUrl'
|
350
|
+
// -----------------------------------------------------------------------
|
351
|
+
$.ajax({
|
352
|
+
url: this.settings.bootswatchApiUrl + '/' + this.settings.bootswatchApiVersion + '.json',
|
353
|
+
// jadams 2016-10-10: removed the setting for sychronous XMLHttpRequest
|
354
|
+
// because deprecated by jQuery on the main thread. Because the Theme Manager
|
355
|
+
// is initialized very early, no blocking|sychronous AJAX call is needed
|
356
|
+
// async: false,
|
357
|
+
dataType: 'json',
|
358
|
+
success: function (data) {
|
359
|
+
if (data.themes === undefined) {
|
360
|
+
return null;
|
361
|
+
}
|
362
|
+
base.themesList = data.themes;
|
363
|
+
base.themesList.splice(0,0, {name: 'default', css: base.settings.defaultCssFile});
|
364
|
+
base.addThemesToControl();
|
365
|
+
}
|
366
|
+
});
|
367
|
+
}, // END getThemes
|
368
|
+
|
369
|
+
// -------------------------------------------------------------------------
|
370
|
+
// themes
|
371
|
+
// -------------------------------------------------------------------------
|
372
|
+
themes : function (newThemeList) {
|
373
|
+
if (newThemeList === undefined) {
|
374
|
+
return this.themesList;
|
375
|
+
}
|
376
|
+
else {
|
377
|
+
// TODO: Set the associated control.
|
378
|
+
this.themesList = newThemeList;
|
379
|
+
}
|
380
|
+
} // END themes
|
381
|
+
|
382
|
+
}; // END prototype
|
383
|
+
|
384
|
+
// Plugin definition
|
385
|
+
// ---------------------------------------------------------------------------
|
386
|
+
$.fn.bootstrapThemeSwitcher = function (option) {
|
387
|
+
var methodReturn;
|
388
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
389
|
+
var $this = $(this);
|
390
|
+
var data = $this.data('bootstrapThemeSwitcher');
|
391
|
+
var options = typeof option === 'object' && option;
|
392
|
+
|
393
|
+
if (!data) {
|
394
|
+
$this.data('bootstrapThemeSwitcher', (data = new BootstrapThemeSwitcher(this, options) ));
|
395
|
+
}
|
396
|
+
if (typeof option === 'string') {
|
397
|
+
methodReturn = data[ option ].apply(data, args);
|
398
|
+
}
|
399
|
+
return ( methodReturn === undefined ) ? $this : methodReturn;
|
400
|
+
};
|
401
|
+
|
402
|
+
$.fn.bootstrapThemeSwitcher.defaults = {
|
403
|
+
debug: false,
|
404
|
+
saveToCookie: true,
|
405
|
+
cssThemeLink: 'bootstrapTheme',
|
406
|
+
cookieThemeName: 'bootstrapTheme.name',
|
407
|
+
cookieThemeCss: 'boostrapTheme.css',
|
408
|
+
cookieExpiration: 7,
|
409
|
+
cookiePath: '/',
|
410
|
+
defaultCssFile: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css',
|
411
|
+
bootswatchApiUrl: 'https://bootswatch.com/api/',
|
412
|
+
bootswatchApiVersion: '3',
|
413
|
+
loadFromBootswatch: true,
|
414
|
+
localFeed: '',
|
415
|
+
excludeBootswatch: ''
|
416
|
+
};
|
417
|
+
|
418
|
+
$.fn.bootstrapThemeSwitcher.Constructor = BootstrapThemeSwitcher;
|
419
|
+
|
420
|
+
$.fn.bootstrapThemeSwitcher.noConflict = function () {
|
421
|
+
$.fn.BootstrapThemeSwitcher = old;
|
422
|
+
return this;
|
423
|
+
};
|
424
|
+
|
425
|
+
})(jQuery, window, document);
|