j1-template 2022.5.2 → 2022.6.0
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/layouts/content_generator_news_panel_posts.html +61 -40
- data/_includes/themes/j1/layouts/content_generator_page.html +22 -22
- data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +13 -79
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/about_box.proc +0 -0
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/contacts_box.proc +0 -0
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/issue.proc +0 -0
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/legal_statements.proc +0 -0
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/links_box.proc +0 -0
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/news_box.proc +0 -0
- data/_includes/themes/j1/{blocks → procedures/blocks}/footer/boxes/social_media_icons.proc +0 -0
- data/_includes/themes/j1/procedures/blocks/get_wave.proc +211 -0
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +2 -2
- data/_includes/themes/j1/procedures/posts/pager.proc +9 -10
- data/_layouts/default.html +5 -1
- data/apps/private/README.txt +1 -0
- data/apps/protected/README.txt +1 -0
- data/apps/public/README.txt +1 -0
- data/assets/data/banner.html +38 -8
- data/assets/data/footer.html +31 -11
- data/assets/data/panel.html +118 -27
- data/assets/themes/j1/adapter/js/attic.js +4 -4
- data/assets/themes/j1/adapter/js/comments.js +18 -7
- data/assets/themes/j1/adapter/js/waves.js +227 -0
- data/assets/themes/j1/core/css/icon-fonts/fontawesome.min.css +1 -1
- data/assets/themes/j1/core/css/icon-fonts/mdi.min.css +1 -1
- data/assets/themes/j1/core/css/icon-fonts/mdil.min.css +1 -1
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +92 -74
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +5 -3
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.css +92 -74
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.min.css +5 -3
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +105 -138
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +5 -3
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +457 -262
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +26 -15
- data/assets/themes/j1/core/css/vendor.css +11 -8
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/fonts/fontawesome_5/LICENSE.txt +34 -0
- data/assets/themes/j1/core/fonts/material_design_icons/LICENSE.txt +97 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/LICENSE.txt +92 -0
- data/assets/themes/j1/core/fonts/roboto/LICENSE.txt +11 -0
- data/assets/themes/j1/core/js/template.js +419 -746
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
- data/assets/themes/j1/modules/bokeh/LICENSE.txt +28 -0
- data/assets/themes/j1/modules/jquery/js/extensions/hasClass.js +17 -0
- data/assets/themes/j1/modules/jquery/js/extensions/hasClass.min.js +17 -0
- data/assets/themes/j1/modules/jquery/js/extensions/removeClass.js +18 -0
- data/assets/themes/j1/modules/jquery/js/extensions/removeClass.min.js +17 -0
- data/assets/themes/j1/modules/later/LICENSE.txt +21 -0
- data/assets/themes/j1/modules/log4javascript/license.txt +201 -0
- data/assets/themes/j1/modules/lunr/stopwords/de.txt +229 -0
- data/assets/themes/j1/modules/lunr/stopwords/en.txt +119 -0
- data/assets/themes/j1/modules/masterslider/LICENSE.txt +621 -0
- data/assets/themes/j1/modules/masterslider/README.txt +531 -0
- data/assets/themes/j1/modules/msDropdown/LICENSE.txt +20 -0
- data/assets/themes/j1/modules/nbinteract-core/LICENSE.txt +60 -0
- data/assets/themes/j1/modules/rouge/css/themes.txt +46 -0
- data/assets/themes/j1/modules/vega/LICENSE.txt +27 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +11 -7
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +199 -135
- data/lib/starter_web/_data/blocks/banner.yml +18 -2
- data/lib/starter_web/_data/blocks/defaults/footer.yml +3 -1
- data/lib/starter_web/_data/blocks/defaults/panel.yml +4 -0
- data/lib/starter_web/_data/blocks/footer.yml +12 -1
- data/lib/starter_web/_data/blocks/panel.yml +88 -19
- data/lib/starter_web/_data/j1_config.yml +2 -2
- data/lib/starter_web/_data/layouts/collection.yml +0 -9
- data/lib/starter_web/_data/layouts/home.yml +21 -30
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +0 -9
- data/lib/starter_web/_data/layouts/page.yml +0 -9
- data/lib/starter_web/_data/layouts/post.yml +0 -9
- data/lib/starter_web/_data/modules/blog_navigator.yml +6 -0
- data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +15 -8
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +5 -4
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/waves.yml +32 -0
- data/lib/starter_web/_data/modules/navigator_menu.yml +48 -120
- data/lib/starter_web/_data/modules/waves.yml +32 -0
- data/lib/starter_web/_data/plugins/defaults/feed.yml +82 -0
- data/lib/starter_web/_data/plugins/defaults/seo-tags.yml +65 -0
- data/lib/starter_web/_data/plugins/defaults/sitemap.yml +66 -0
- data/lib/starter_web/_data/plugins/feed.yml +35 -0
- data/lib/starter_web/_data/plugins/seo-tags.yml +30 -0
- data/lib/starter_web/_data/plugins/sitemap.yml +30 -0
- data/lib/starter_web/_data/resources.yml +22 -0
- data/lib/starter_web/_data/templates/feed.xml +191 -0
- data/lib/starter_web/_data/templates/robots.txt +1 -0
- data/lib/starter_web/_data/templates/seo-tags.html +140 -0
- data/lib/starter_web/_data/templates/sitemap.xml +36 -0
- data/lib/starter_web/_includes/attributes.asciidoc +49 -47
- data/lib/starter_web/_includes/custom/static/bs5_accordion.html +84 -0
- data/lib/starter_web/_includes/custom/templates/bs5_accordion.html +103 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/admonition-block-answer.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/admonition-block-question.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/banner.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/callout.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/carousel-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/conum.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/fab-icon-inline.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/fas-icon-inline.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/flag-icon-inline.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/gallery-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/gist-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/iconify-icon-inline.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/lightbox-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/lorem_inline.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/masterslider-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/mdi-icon-inline.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/panel.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/range-slider-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/shout-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/textbook-block.rb +0 -0
- data/lib/starter_web/_plugins/{asciidoctor-extensions → asciidoctor}/twitter-emoji-inline.rb +0 -0
- data/lib/starter_web/_plugins/{debug.rb → filter/debug.rb} +0 -0
- data/lib/starter_web/_plugins/{encodeBase64.rb → filter/encodeBase64.rb} +0 -0
- data/lib/starter_web/_plugins/{encryptAES.rb → filter/encryptAES.rb} +0 -0
- data/lib/starter_web/_plugins/{filters.rb → filter/filters.rb} +11 -0
- data/lib/starter_web/_plugins/{minifyJS.rb → filter/minifyJS.rb} +0 -0
- data/lib/starter_web/_plugins/{minifyJSON.rb → filter/minifyJSON.rb} +0 -0
- data/lib/starter_web/_plugins/{prettify.rb → filter/prettify.rb} +0 -0
- data/lib/starter_web/_plugins/filter/xml_prettify.rb +36 -0
- data/lib/starter_web/_plugins/{symlink_watcher.rb → helper/symlink_watcher.rb} +0 -0
- data/lib/starter_web/_plugins/{date-i18n.rb → i18n/date.rb} +1 -1
- data/lib/starter_web/_plugins/{lunr_index.rb → index/lunr.rb} +38 -35
- data/lib/starter_web/_plugins/seo/j1-feed.rb +268 -0
- data/lib/starter_web/_plugins/seo/j1-seo-tags.rb +717 -0
- data/lib/starter_web/_plugins/seo/j1-sitemap.rb +140 -0
- data/lib/starter_web/assets/images/banner/scalable/wave.svg +13 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1280x100/wave-1.svg +63 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1280x100/wave-2.svg +60 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1280x100/wave-3.svg +64 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1280x100/wave-4.svg +62 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1920x100/wave-1.svg +64 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1920x100/wave-2.svg +60 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1920x100/wave-3.svg +65 -0
- data/lib/starter_web/assets/images/blocks/waves/scalable/1920x100/wave-4.svg +62 -0
- data/lib/starter_web/assets/images/collections/blog/featured/dynamic-web-access.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/static-web-access.png +0 -0
- data/lib/starter_web/assets/images/icons/jekyll/logo-2x.png +0 -0
- data/lib/starter_web/assets/images/icons/jekyll/octojekyll.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/1280x800/j1-template.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/1280x800/jekyll-generator.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/1280x800jekyll-generator.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/_ben-kolde.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/_moritz-kindler.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/alina-grubnyak.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/andrea-badino.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/brad-neathery.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/bruno-figueiredo.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/fly-d.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/guillaume-bolduc.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/melanie-deziel.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/milad-fakurian.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/quino-al-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lunr-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/no-time-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/author.txt +75 -0
- data/lib/starter_web/assets/images/pages/egrid/bg.png +0 -0
- data/lib/starter_web/assets/images/pages/egrid/black_denim.png +0 -0
- data/lib/starter_web/assets/images/pages/egrid/explanation.png +0 -0
- data/lib/starter_web/assets/images/pages/egrid/html_markup.png +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/10.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/11.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/12.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/13.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/14.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/15.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/16.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/17.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/18.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/19.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/2.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/20.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/4.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/5.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/6.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/7.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/8.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/large/9.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/loading.gif +0 -0
- data/lib/starter_web/assets/images/pages/egrid/loading_dark.gif +0 -0
- data/lib/starter_web/assets/images/pages/egrid/nav-icon.png +0 -0
- data/lib/starter_web/assets/images/pages/egrid/nav.png +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/10.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/11.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/12.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/13.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/14.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/15.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/16.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/17.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/18.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/19.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/1a.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/2.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/20.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/4.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/5.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/6.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/7.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/8.jpg +0 -0
- data/lib/starter_web/assets/images/pages/egrid/small/9.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/promo/home/screenshot.jpg +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/jekyll-generator.png +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/jekyll-og.png +0 -0
- data/lib/starter_web/collections/asciidoc_skeletons/simple-post/_posts/yyyy-mm-dd-your-post-name.asciidoc +13 -10
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +8 -3
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +11 -6
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +13 -10
- data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +12 -9
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +13 -5
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +13 -6
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +13 -6
- data/lib/starter_web/index.html +85 -60
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/about/features.adoc +15 -7
- data/lib/starter_web/pages/public/about/reporting_issues.adoc +13 -5
- data/lib/starter_web/pages/public/about/site.adoc +2 -6
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +14 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +15 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +14 -6
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +15 -10
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +9 -8
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +9 -8
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +9 -8
- data/lib/starter_web/pages/public/blog/navigator/{archive.html → archive/allview.html} +53 -26
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +45 -20
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +49 -19
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +57 -53
- data/lib/starter_web/pages/public/blog/navigator/index.html +212 -35
- data/lib/starter_web/pages/public/features/general.adoc +12 -30
- data/lib/starter_web/pages/public/features/template.adoc +9 -33
- data/lib/starter_web/pages/public/learn/quickstart.adoc +10 -8
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +0 -7
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_table_bs_modal_examples.asciidoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_bootstrap.asciidoc +51 -0
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +110 -0
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +11 -9
- data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +80 -0
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +9 -7
- data/lib/starter_web/pages/public/learn/roundtrip/{quicksearch.adoc → lunr_search.adoc} +23 -18
- data/lib/starter_web/pages/public/learn/roundtrip/{bs_modals_extentions.adoc → modal_extentions.adoc} +23 -24
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +12 -11
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +14 -10
- data/lib/starter_web/pages/public/learn/roundtrip/{responsive_tables_extensions.adoc → responsive_tables.adoc} +16 -13
- data/lib/starter_web/pages/public/learn/roundtrip/{typography.adoc → template_typography.adoc} +8 -7
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +12 -29
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +7 -5
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +7 -5
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +7 -5
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +9 -5
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +11 -10
- data/lib/starter_web/pages/public/plans/plans.adoc +8 -5
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +15 -38
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +170 -128
- data/_includes/themes/j1/blocks/footer/generator.html +0 -151
- data/_includes/themes/j1/layouts/content_generator_app.html +0 -32
- data/_includes/themes/j1/layouts/content_generator_article_navigator.html +0 -176
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +0 -251
- data/_layouts/app.html +0 -65
- data/_layouts/article_navigator.html +0 -66
- data/_layouts/blog_archive.html +0 -64
- data/assets/data/article_navigator/index.html +0 -51
- data/lib/starter_web/_data/layouts/app.yml +0 -172
- data/lib/starter_web/_data/layouts/article_navigator.yml +0 -173
- data/lib/starter_web/_data/layouts/blog_archive.yml +0 -191
- data/lib/starter_web/_includes/custom/static/custom_teaser.html +0 -64
- data/lib/starter_web/assets/images/banner/scalable/readme +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/dynamic-web-access.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators-2.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/markus-spiske-2.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/static-web-access.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/welcome-to-j1-template.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/what-is-a-baseurl.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/j1_docker_banner.1280x500.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/kinematic_alpha.1280x600.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/kinematic_j1.1280x300.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/windows_docker_banner.1280x500.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/moritz-kindler.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/dailymotion/meditation.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/dailymotion/pilates.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1.mp4 +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video2.mp4 +0 -0
- data/lib/starter_web/assets/videos/gallery/kick-it-old-school-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/nye-party-shop-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/stay-colorful-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video1-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video1-thumb.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video2-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video2-thumb.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_gwen-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_michelle-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/battle.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/ben.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/constance.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/elisa.jpg +0 -0
- data/lib/starter_web/assets/videos/headers/present_videos/still/underground-broadway.jpg +0 -0
- data/lib/starter_web/assets/videos/headers/present_videos/underground-broadway.mp4 +0 -0
- data/lib/starter_web/assets/videos/tiktok/einhorn.jpg +0 -0
- data/lib/starter_web/assets/videos/tiktok/waluschka.jpg +0 -0
- data/lib/starter_web/pages/public/jupyter/examples/distributed/j1-circular-times-table.adoc +0 -142
- data/lib/starter_web/pages/public/jupyter/examples/distributed/j1-common-used-widgets.adoc +0 -232
- data/lib/starter_web/pages/public/jupyter/examples/distributed/j1-odes-in-python.adoc +0 -115
- data/lib/starter_web/pages/public/jupyter/examples/localized/j1_climate-change-forecast.adoc +0 -109
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_circular_times_table.ipynb +0 -12382
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_climate_change_forecast.ipynb +0 -1058
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_docs_example_dynamic.ipynb +0 -14478
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_interactive_widgets.ipynb +0 -442
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets.ipynb +0 -523
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_bar_chart.ipynb +0 -89
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_hist_chart.ipynb +0 -87
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_line_chart.ipynb +0 -90
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_question_multiple_choice.ipynb +0 -64
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_question_short_answer.ipynb +0 -122
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_scatter_chart.ipynb +0 -89
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_nbi_widgets_scatter_drag_chart.ipynb +0 -87
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_odes_in_python.ipynb +0 -15227
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_circular_times_table.html +0 -747
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_climate_change_forecast.html +0 -1250
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_docs_example_dynamic.html +0 -186
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +0 -512
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets.html +0 -629
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +0 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +0 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +0 -96
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +0 -70
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +0 -156
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +0 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +0 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +0 -955
- data/lib/starter_web/pages/public/jupyter/where_to_go.adoc +0 -232
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/google-ad.js +0 -130
- data/lib/starter_web/pages/public/learn/roundtrip/themes.adoc +0 -253
- data/lib/starter_web/pages/public/se/se-fake.adoc +0 -48
@@ -1,442 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"cells": [
|
3
|
-
{
|
4
|
-
"cell_type": "code",
|
5
|
-
"execution_count": 1,
|
6
|
-
"metadata": {},
|
7
|
-
"outputs": [],
|
8
|
-
"source": [
|
9
|
-
"import matplotlib.pyplot as plt\n",
|
10
|
-
"import matplotlib.gridspec as gridspec\n",
|
11
|
-
"import ipywidgets as widgets\n",
|
12
|
-
"from ipywidgets import interact, Layout, IntSlider, FloatSlider\n",
|
13
|
-
"import numpy as np\n",
|
14
|
-
"from numpy import arange,sin,pi"
|
15
|
-
]
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"cell_type": "markdown",
|
19
|
-
"metadata": {},
|
20
|
-
"source": [
|
21
|
-
"### IntSlider for interactive calculation"
|
22
|
-
]
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"cell_type": "code",
|
26
|
-
"execution_count": 2,
|
27
|
-
"metadata": {},
|
28
|
-
"outputs": [
|
29
|
-
{
|
30
|
-
"data": {
|
31
|
-
"application/vnd.jupyter.widget-view+json": {
|
32
|
-
"model_id": "352fc7185b5c4b7ca97babd9dc9ba537",
|
33
|
-
"version_major": 2,
|
34
|
-
"version_minor": 0
|
35
|
-
},
|
36
|
-
"text/plain": [
|
37
|
-
"interactive(children=(IntSlider(value=5, description='Slider value:', layout=Layout(width='99%'), max=10), Out…"
|
38
|
-
]
|
39
|
-
},
|
40
|
-
"metadata": {},
|
41
|
-
"output_type": "display_data"
|
42
|
-
}
|
43
|
-
],
|
44
|
-
"source": [
|
45
|
-
"def printf(str, *args):\n",
|
46
|
-
" print(str % args, end='')\n",
|
47
|
-
"\n",
|
48
|
-
"# Define the square function\n",
|
49
|
-
"#\n",
|
50
|
-
"def square(x):\n",
|
51
|
-
" result = x * x\n",
|
52
|
-
"\n",
|
53
|
-
" # print short notice above the result value\n",
|
54
|
-
" print(f'Result of square({x}) is:', end='')\n",
|
55
|
-
"\n",
|
56
|
-
" return result\n",
|
57
|
-
"\n",
|
58
|
-
"# Simple interact widget from ipywidgets\n",
|
59
|
-
"#\n",
|
60
|
-
"interact = interact(\n",
|
61
|
-
" square,\n",
|
62
|
-
" x=IntSlider(\n",
|
63
|
-
" value=5,\n",
|
64
|
-
" min=0,\n",
|
65
|
-
" max=10,\n",
|
66
|
-
" step=1,\n",
|
67
|
-
" description='Slider value:',\n",
|
68
|
-
" layout=Layout(width='99%')\n",
|
69
|
-
" )\n",
|
70
|
-
");\n",
|
71
|
-
"\n",
|
72
|
-
"# the semicolon ';' suppress the output\n",
|
73
|
-
"# of the code execution\n",
|
74
|
-
"#\n",
|
75
|
-
"interact;"
|
76
|
-
]
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"cell_type": "markdown",
|
80
|
-
"metadata": {},
|
81
|
-
"source": [
|
82
|
-
"### FloatSlider for interactive plotting"
|
83
|
-
]
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"cell_type": "code",
|
87
|
-
"execution_count": 3,
|
88
|
-
"metadata": {},
|
89
|
-
"outputs": [
|
90
|
-
{
|
91
|
-
"data": {
|
92
|
-
"application/vnd.jupyter.widget-view+json": {
|
93
|
-
"model_id": "21e7e5bf89904f37aac36cffe9ae5acd",
|
94
|
-
"version_major": 2,
|
95
|
-
"version_minor": 0
|
96
|
-
},
|
97
|
-
"text/plain": [
|
98
|
-
"interactive(children=(FloatSlider(value=3.141592653589793, description='Value (x):', layout=Layout(width='99%'…"
|
99
|
-
]
|
100
|
-
},
|
101
|
-
"metadata": {},
|
102
|
-
"output_type": "display_data"
|
103
|
-
}
|
104
|
-
],
|
105
|
-
"source": [
|
106
|
-
"# Define the plot function \n",
|
107
|
-
"#\n",
|
108
|
-
"def myplot(xv):\n",
|
109
|
-
" # calculate x as evenly spaced values within a interval 0 .. xv\n",
|
110
|
-
" x = arange(0, xv, 0.01)\n",
|
111
|
-
" # the plot function\n",
|
112
|
-
" y = sin(pi*x)\n",
|
113
|
-
"\n",
|
114
|
-
" # NOTE: Matplotlib doesn't work with pixels directly, but rather\n",
|
115
|
-
" # physical sizes (inch) and DPI. To use pixels for the figures\n",
|
116
|
-
" # figsize, the DPI of the monitor must be used for re-calculation\n",
|
117
|
-
" #\n",
|
118
|
-
" # See: https://www.infobyip.com/detectmonitordpi.php\n",
|
119
|
-
" \n",
|
120
|
-
" # DPI of common monitors\n",
|
121
|
-
" my_dpi=96\n",
|
122
|
-
" \n",
|
123
|
-
" # figsize: width|height recalculated from inch to pixels\n",
|
124
|
-
" plt.figure(figsize=(800/my_dpi, 400/my_dpi), dpi=my_dpi)\n",
|
125
|
-
" \n",
|
126
|
-
" # set the grid lines (light-gray)\n",
|
127
|
-
" plt.grid(axis='x', color='#E0E0E0', linestyle='--', linewidth=2),\n",
|
128
|
-
" plt.grid(axis='y', color='#E0E0E0', linestyle='-', linewidth=2),\n",
|
129
|
-
" \n",
|
130
|
-
" # set the axis labels\n",
|
131
|
-
" plt.xlabel('x-values'),\n",
|
132
|
-
" plt.ylabel('y-values'),\n",
|
133
|
-
" \n",
|
134
|
-
" # set the plot title\n",
|
135
|
-
" plt.title('Simple plot function based on sin(x)'),\n",
|
136
|
-
"\n",
|
137
|
-
" # define the plot\n",
|
138
|
-
" plt.plot(x, y)\n",
|
139
|
-
"\n",
|
140
|
-
"\n",
|
141
|
-
"# Create an interactive widget for the plot using interact\n",
|
142
|
-
"#\n",
|
143
|
-
"interact = widgets.interact(\n",
|
144
|
-
" myplot,\n",
|
145
|
-
" xv = widgets.FloatSlider(\n",
|
146
|
-
" value=pi,\n",
|
147
|
-
" min=(pi),\n",
|
148
|
-
" max=(4*pi),\n",
|
149
|
-
" step=0.01,\n",
|
150
|
-
" description='Value (x):',\n",
|
151
|
-
" layout=Layout(width='99%')\n",
|
152
|
-
" )\n",
|
153
|
-
")\n",
|
154
|
-
"\n",
|
155
|
-
"# the semicolon ';' suppress the output\n",
|
156
|
-
"# of the code execution\n",
|
157
|
-
"#\n",
|
158
|
-
"interact;"
|
159
|
-
]
|
160
|
-
},
|
161
|
-
{
|
162
|
-
"cell_type": "markdown",
|
163
|
-
"metadata": {},
|
164
|
-
"source": [
|
165
|
-
"### Select box"
|
166
|
-
]
|
167
|
-
},
|
168
|
-
{
|
169
|
-
"cell_type": "code",
|
170
|
-
"execution_count": 4,
|
171
|
-
"metadata": {},
|
172
|
-
"outputs": [
|
173
|
-
{
|
174
|
-
"data": {
|
175
|
-
"application/vnd.jupyter.widget-view+json": {
|
176
|
-
"model_id": "4c5d6ce972e845f6a226b8e15a659886",
|
177
|
-
"version_major": 2,
|
178
|
-
"version_minor": 0
|
179
|
-
},
|
180
|
-
"text/plain": [
|
181
|
-
"interactive(children=(Dropdown(description='name', options=('Jim', 'Emma', 'Bond'), value='Jim'), Output()), _…"
|
182
|
-
]
|
183
|
-
},
|
184
|
-
"metadata": {},
|
185
|
-
"output_type": "display_data"
|
186
|
-
}
|
187
|
-
],
|
188
|
-
"source": [
|
189
|
-
"def say_my_name(name):\n",
|
190
|
-
" \"\"\"\n",
|
191
|
-
" Print the current widget value in short sentence\n",
|
192
|
-
" \"\"\"\n",
|
193
|
-
" print(f'My name is {name}')\n",
|
194
|
-
"\n",
|
195
|
-
"\n",
|
196
|
-
"widgets.interact(\n",
|
197
|
-
" say_my_name,\n",
|
198
|
-
" name=[\"Jim\", \"Emma\", \"Bond\"]\n",
|
199
|
-
");"
|
200
|
-
]
|
201
|
-
},
|
202
|
-
{
|
203
|
-
"cell_type": "markdown",
|
204
|
-
"metadata": {},
|
205
|
-
"source": [
|
206
|
-
"### Combined widgets"
|
207
|
-
]
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"cell_type": "code",
|
211
|
-
"execution_count": 5,
|
212
|
-
"metadata": {},
|
213
|
-
"outputs": [
|
214
|
-
{
|
215
|
-
"data": {
|
216
|
-
"application/vnd.jupyter.widget-view+json": {
|
217
|
-
"model_id": "f60f273b2d654b83a4233a6c1ced4bda",
|
218
|
-
"version_major": 2,
|
219
|
-
"version_minor": 0
|
220
|
-
},
|
221
|
-
"text/plain": [
|
222
|
-
"interactive(children=(Dropdown(description='x', options=(0, 1, 2, 3), value=0), Output()), _dom_classes=('widg…"
|
223
|
-
]
|
224
|
-
},
|
225
|
-
"metadata": {},
|
226
|
-
"output_type": "display_data"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"data": {
|
230
|
-
"application/vnd.jupyter.widget-view+json": {
|
231
|
-
"model_id": "a721bdf7f9874a9b89f024894baeede8",
|
232
|
-
"version_major": 2,
|
233
|
-
"version_minor": 0
|
234
|
-
},
|
235
|
-
"text/plain": [
|
236
|
-
"interactive(children=(IntSlider(value=5, description='x', max=10), Output()), _dom_classes=('widget-interact',…"
|
237
|
-
]
|
238
|
-
},
|
239
|
-
"metadata": {},
|
240
|
-
"output_type": "display_data"
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"data": {
|
244
|
-
"application/vnd.jupyter.widget-view+json": {
|
245
|
-
"model_id": "cf1fa3684e5e4b879168910041c0c750",
|
246
|
-
"version_major": 2,
|
247
|
-
"version_minor": 0
|
248
|
-
},
|
249
|
-
"text/plain": [
|
250
|
-
"interactive(children=(FloatSlider(value=5.0, description='x', max=10.0, step=0.5), Output()), _dom_classes=('w…"
|
251
|
-
]
|
252
|
-
},
|
253
|
-
"metadata": {},
|
254
|
-
"output_type": "display_data"
|
255
|
-
},
|
256
|
-
{
|
257
|
-
"data": {
|
258
|
-
"application/vnd.jupyter.widget-view+json": {
|
259
|
-
"model_id": "91b7e346be3f4ac3baf878bb585b65f4",
|
260
|
-
"version_major": 2,
|
261
|
-
"version_minor": 0
|
262
|
-
},
|
263
|
-
"text/plain": [
|
264
|
-
"interactive(children=(Checkbox(value=True, description='x'), Output()), _dom_classes=('widget-interact',))"
|
265
|
-
]
|
266
|
-
},
|
267
|
-
"metadata": {},
|
268
|
-
"output_type": "display_data"
|
269
|
-
}
|
270
|
-
],
|
271
|
-
"source": [
|
272
|
-
"def widget_says(x):\n",
|
273
|
-
" \"\"\"\n",
|
274
|
-
" Print the current widget value in short sentence\n",
|
275
|
-
" \"\"\"\n",
|
276
|
-
" print(f'Widget says: {x}')\n",
|
277
|
-
"\n",
|
278
|
-
"\n",
|
279
|
-
"widgets.interact(widget_says, x=[0, 1, 2, 3])\n",
|
280
|
-
"widgets.interact(widget_says, x=(0, 10, 1))\n",
|
281
|
-
"widgets.interact(widget_says, x=(0, 10, .5))\n",
|
282
|
-
"\n",
|
283
|
-
"# the variable underscore ('_')) returns the output\n",
|
284
|
-
"# of the latest code execution\n",
|
285
|
-
"#\n",
|
286
|
-
"_ = widgets.interact(widget_says, x=True)"
|
287
|
-
]
|
288
|
-
},
|
289
|
-
{
|
290
|
-
"cell_type": "markdown",
|
291
|
-
"metadata": {},
|
292
|
-
"source": [
|
293
|
-
"### Complex widget configs"
|
294
|
-
]
|
295
|
-
},
|
296
|
-
{
|
297
|
-
"cell_type": "code",
|
298
|
-
"execution_count": 6,
|
299
|
-
"metadata": {},
|
300
|
-
"outputs": [
|
301
|
-
{
|
302
|
-
"data": {
|
303
|
-
"application/vnd.jupyter.widget-view+json": {
|
304
|
-
"model_id": "3015a3f9d9c6473893d4ea7d1a35bab6",
|
305
|
-
"version_major": 2,
|
306
|
-
"version_minor": 0
|
307
|
-
},
|
308
|
-
"text/plain": [
|
309
|
-
"VBox(children=(IntSlider(value=5, description='Slider', layout=Layout(width='99%'), max=10), IntRangeSlider(va…"
|
310
|
-
]
|
311
|
-
},
|
312
|
-
"metadata": {},
|
313
|
-
"output_type": "display_data"
|
314
|
-
}
|
315
|
-
],
|
316
|
-
"source": [
|
317
|
-
"int_slider = widgets.IntSlider(\n",
|
318
|
-
" value=5, \n",
|
319
|
-
" min=0, max=10, step=1, \n",
|
320
|
-
" description='Slider',\n",
|
321
|
-
" layout=Layout(width='99%')\n",
|
322
|
-
")\n",
|
323
|
-
"\n",
|
324
|
-
"int_range_slider = widgets.IntRangeSlider(\n",
|
325
|
-
" value=(20, 40), \n",
|
326
|
-
" min=0,\n",
|
327
|
-
" max=100,\n",
|
328
|
-
" step=2, \n",
|
329
|
-
" description='Range Slider',\n",
|
330
|
-
" layout=Layout(width='99%')\n",
|
331
|
-
")\n",
|
332
|
-
"\n",
|
333
|
-
"dropdown = widgets.Dropdown(\n",
|
334
|
-
" value='Feb', \n",
|
335
|
-
" options=['Jan', 'Feb', 'Mar', 'Apr'], \n",
|
336
|
-
" description='Dropdown'\n",
|
337
|
-
")\n",
|
338
|
-
"\n",
|
339
|
-
"radiobuttons = widgets.RadioButtons(\n",
|
340
|
-
" value='Feb', \n",
|
341
|
-
" options=['Jan', 'Feb', 'Mar', 'Apr'], \n",
|
342
|
-
" description='Radio Buttons'\n",
|
343
|
-
")\n",
|
344
|
-
"\n",
|
345
|
-
"combobox = widgets.Combobox(\n",
|
346
|
-
" placeholder='start typing... (e.g. L or o)',\n",
|
347
|
-
" options=['Amsterdam', 'Athens', 'Lisbon', 'London', 'Ljubljana'], \n",
|
348
|
-
" description='Combo Box'\n",
|
349
|
-
")\n",
|
350
|
-
"\n",
|
351
|
-
"checkbox = widgets.Checkbox(\n",
|
352
|
-
" description='Checkbox',\n",
|
353
|
-
" value=True\n",
|
354
|
-
")\n",
|
355
|
-
" \n",
|
356
|
-
" \n",
|
357
|
-
"# VBox container to pack all widgets vertically\n",
|
358
|
-
"#\n",
|
359
|
-
"widgets.VBox([\n",
|
360
|
-
" int_slider, \n",
|
361
|
-
" int_range_slider, \n",
|
362
|
-
" dropdown, \n",
|
363
|
-
" radiobuttons,\n",
|
364
|
-
" checkbox,\n",
|
365
|
-
" combobox,\n",
|
366
|
-
"])"
|
367
|
-
]
|
368
|
-
},
|
369
|
-
{
|
370
|
-
"cell_type": "markdown",
|
371
|
-
"metadata": {},
|
372
|
-
"source": [
|
373
|
-
"### Connected sliders"
|
374
|
-
]
|
375
|
-
},
|
376
|
-
{
|
377
|
-
"cell_type": "code",
|
378
|
-
"execution_count": 7,
|
379
|
-
"metadata": {},
|
380
|
-
"outputs": [
|
381
|
-
{
|
382
|
-
"data": {
|
383
|
-
"application/vnd.jupyter.widget-view+json": {
|
384
|
-
"model_id": "60de43ae44ba49bc93e188eb9f668ca7",
|
385
|
-
"version_major": 2,
|
386
|
-
"version_minor": 0
|
387
|
-
},
|
388
|
-
"text/plain": [
|
389
|
-
"VBox(children=(IntSlider(value=5, description='Slider 1', layout=Layout(width='99%'), max=10), IntSlider(value…"
|
390
|
-
]
|
391
|
-
},
|
392
|
-
"metadata": {},
|
393
|
-
"output_type": "display_data"
|
394
|
-
}
|
395
|
-
],
|
396
|
-
"source": [
|
397
|
-
"sl1 = widgets.IntSlider(\n",
|
398
|
-
" description='Slider 1',\n",
|
399
|
-
" min=0,\n",
|
400
|
-
" max=10,\n",
|
401
|
-
" layout=Layout(width='99%')\n",
|
402
|
-
")\n",
|
403
|
-
"sl2 = widgets.IntSlider(\n",
|
404
|
-
" description='Slider 2',\n",
|
405
|
-
" min=0,\n",
|
406
|
-
" max=10,\n",
|
407
|
-
" layout=Layout(width='99%')\n",
|
408
|
-
")\n",
|
409
|
-
"link = widgets.link(\n",
|
410
|
-
" (sl1, 'value'), \n",
|
411
|
-
" (sl2, 'min')\n",
|
412
|
-
")\n",
|
413
|
-
"\n",
|
414
|
-
"sl1.value = 5\n",
|
415
|
-
"widgets.VBox([\n",
|
416
|
-
" sl1, sl2\n",
|
417
|
-
"])"
|
418
|
-
]
|
419
|
-
}
|
420
|
-
],
|
421
|
-
"metadata": {
|
422
|
-
"kernelspec": {
|
423
|
-
"display_name": "Python 3 (ipykernel)",
|
424
|
-
"language": "python",
|
425
|
-
"name": "python3"
|
426
|
-
},
|
427
|
-
"language_info": {
|
428
|
-
"codemirror_mode": {
|
429
|
-
"name": "ipython",
|
430
|
-
"version": 3
|
431
|
-
},
|
432
|
-
"file_extension": ".py",
|
433
|
-
"mimetype": "text/x-python",
|
434
|
-
"name": "python",
|
435
|
-
"nbconvert_exporter": "python",
|
436
|
-
"pygments_lexer": "ipython3",
|
437
|
-
"version": "3.7.9"
|
438
|
-
}
|
439
|
-
},
|
440
|
-
"nbformat": 4,
|
441
|
-
"nbformat_minor": 4
|
442
|
-
}
|