j1-template 2023.2.7 → 2023.3.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 +2 -1
- data/_includes/themes/j1/layouts/content_generator_post.html +2 -2
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +41 -38
- data/_includes/themes/j1/procedures/blocks/footer/boxes/about_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/contacts_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/issue.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/links_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/news_box.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -3
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +7 -23
- data/_includes/themes/j1/procedures/layouts/resource_writer.proc +8 -8
- data/_layouts/compress.html +26 -21
- data/_layouts/default.html +36 -30
- data/assets/data/banner.html +5 -2
- data/assets/data/footer.html +15 -3
- data/assets/data/masterslider.html +1 -0
- data/assets/data/menu.html +4 -4
- data/assets/data/panel.html +6 -3
- data/assets/data/quicklinks.html +138 -149
- data/assets/error_pages/HTTP204.html +3 -3
- data/assets/error_pages/HTTP400.html +3 -3
- data/assets/error_pages/HTTP401.html +3 -3
- data/assets/error_pages/HTTP403.html +3 -3
- data/assets/error_pages/HTTP404.html +3 -3
- data/assets/error_pages/HTTP444.html +3 -3
- data/assets/error_pages/HTTP445.html +3 -3
- data/assets/error_pages/HTTP446.html +5 -5
- data/assets/error_pages/HTTP447.html +7 -7
- data/assets/error_pages/HTTP448.html +7 -7
- data/assets/error_pages/HTTP500.html +3 -3
- data/assets/error_pages/HTTP501.html +3 -3
- data/assets/error_pages/HTTP502.html +3 -3
- data/assets/error_pages/HTTP503.html +3 -3
- data/assets/themes/j1/adapter/js/advertising.js +109 -116
- data/assets/themes/j1/adapter/js/analytics.js +1 -1
- data/assets/themes/j1/adapter/js/asciidoctor.js +1 -1
- data/assets/themes/j1/adapter/js/attic.js +22 -14
- data/assets/themes/j1/adapter/js/bmd.js +1 -1
- data/assets/themes/j1/adapter/js/carousel.js +5 -4
- data/assets/themes/j1/adapter/js/clipboard.js +1 -1
- data/assets/themes/j1/adapter/js/comments.js +5 -5
- data/assets/themes/j1/adapter/js/cookieConsent.js +1 -1
- data/assets/themes/j1/adapter/js/customFunctions.js +1 -1
- data/assets/themes/j1/adapter/js/customModule.js +1 -1
- data/assets/themes/j1/adapter/js/dropdowns.js +4 -2
- data/assets/themes/j1/adapter/js/fab.js +9 -6
- data/assets/themes/j1/adapter/js/framer.js +1 -1
- data/assets/themes/j1/adapter/js/iconPicker.js +227 -0
- data/assets/themes/j1/adapter/js/j1.js +401 -76
- data/assets/themes/j1/adapter/js/justifiedGallery.js +9 -3
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +2 -2
- data/assets/themes/j1/adapter/js/lightbox.js +4 -3
- data/assets/themes/j1/adapter/js/logger.js +1 -1
- data/assets/themes/j1/adapter/js/lunr.js +1 -1
- data/assets/themes/j1/adapter/js/masonry.js +4 -3
- data/assets/themes/j1/adapter/js/masterslider.js +30 -57
- data/assets/themes/j1/adapter/js/mmenu.js +2 -2
- data/assets/themes/j1/adapter/js/navigator.js +7 -5
- data/assets/themes/j1/adapter/js/nbinteract.js +9 -9
- data/assets/themes/j1/adapter/js/particles.js +2 -2
- data/assets/themes/j1/adapter/js/rangeSlider.js +2 -2
- data/assets/themes/j1/adapter/js/rouge.js +2 -2
- data/assets/themes/j1/adapter/js/rtable.js +1 -1
- data/assets/themes/j1/adapter/js/rtextResizer.js +1 -1
- data/assets/themes/j1/adapter/js/scroller.js +97 -109
- data/assets/themes/j1/adapter/js/slick.js +28 -18
- data/assets/themes/j1/adapter/js/themeToggler.js +259 -0
- data/assets/themes/j1/adapter/js/themer.js +17 -8
- data/assets/themes/j1/adapter/js/toccer.js +9 -6
- data/assets/themes/j1/adapter/js/translator.js +4 -2
- data/assets/themes/j1/adapter/js/waves.js +6 -4
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1322 -417
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +3 -3
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +1983 -1266
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +3 -3
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +10268 -9401
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +10 -10
- data/assets/themes/j1/core/css/vendor.css +0 -14
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/modules/advertising/js/adInitializer.js +160 -0
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +6 -4
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
- data/assets/themes/j1/modules/iconPicker/README.md +266 -0
- data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.css +419 -0
- data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.min.css +17 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-brands.json +467 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-brands.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-regular.json +169 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-regular.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-solid.json +1136 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-solid.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome.json +1772 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.json +292 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.json +7312 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/images/magnifying-glass-solid.svg +1 -0
- data/assets/themes/j1/modules/iconPicker/images/star-of-life-solid.svg +3 -0
- data/assets/themes/j1/modules/iconPicker/images/xmark-solid.svg +3 -0
- data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.js +493 -0
- data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.min.js +17 -0
- data/assets/themes/j1/modules/jquery/AUTHORS.txt +372 -0
- data/assets/themes/j1/modules/jquery/LICENSE.txt +43 -0
- data/assets/themes/j1/modules/jquery/css/images/ui-icons_444444_256x240.png +0 -0
- data/assets/themes/j1/modules/jquery/css/images/ui-icons_555555_256x240.png +0 -0
- data/assets/themes/j1/modules/jquery/css/images/ui-icons_777620_256x240.png +0 -0
- data/assets/themes/j1/modules/jquery/css/images/ui-icons_777777_256x240.png +0 -0
- data/assets/themes/j1/modules/jquery/css/images/ui-icons_cc0000_256x240.png +0 -0
- data/assets/themes/j1/modules/jquery/css/images/ui-icons_ffffff_256x240.png +0 -0
- data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.css +92 -92
- data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.min.css +4 -4
- data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.structure.css +88 -88
- data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.structure.min.css +2 -2
- data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.theme.css +4 -4
- data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.theme.min.css +2 -2
- data/assets/themes/j1/modules/jquery/js/jquery-ui.js +13683 -13678
- data/assets/themes/j1/modules/jquery/js/jquery-ui.min.js +3 -3
- data/assets/themes/j1/modules/jquery/js/jquery.js +1029 -1203
- data/assets/themes/j1/modules/jquery/js/jquery.min.js +2 -2
- data/assets/themes/j1/modules/jquery/js/jquery.min.map +1 -1
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.css +1315 -0
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.min.css +7 -0
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.css +886 -0
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.min.css +5 -0
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.css +446 -0
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.min.css +5 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.js +37 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.min.js +17 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.js +42 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.min.js +17 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.js +19057 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.min.js +6 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.js +10872 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.js +2 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.map +1 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/require.js +2145 -0
- data/assets/themes/j1/modules/jquery-3.5.1/js/require.min.js +5 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-video.js +2 -2
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-video.min.js +1 -1
- data/assets/themes/j1/modules/masterslider/css/theme/uno.css +9 -9
- data/assets/themes/j1/modules/masterslider/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +2 -2
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/uno.dark/theme.css +136 -47
- data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +9 -9
- data/assets/themes/j1/modules/scroller/js/scroller.js +76 -69
- data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
- data/assets/themes/j1/modules/translator/js/translator.js +1 -1
- data/assets/themes/j1/modules/translator/js/translator.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +4 -1
- data/lib/starter_web/_data/blocks/banner.yml +8 -5
- data/lib/starter_web/_data/blocks/defaults/footer.yml +3 -3
- data/lib/starter_web/_data/blocks/footer.yml +9 -5
- data/lib/starter_web/_data/blocks/panel.yml +41 -38
- data/lib/starter_web/_data/j1_config.yml +68 -58
- data/lib/starter_web/_data/layouts/collection.yml +1 -0
- data/lib/starter_web/_data/layouts/default.yml +1 -1
- data/lib/starter_web/_data/layouts/home.yml +9 -9
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -0
- data/lib/starter_web/_data/layouts/page.yml +2 -1
- data/lib/starter_web/_data/layouts/post.yml +1 -0
- data/lib/starter_web/_data/layouts/raw.yml +1 -0
- data/lib/starter_web/_data/modules/advertising.yml +134 -61
- data/lib/starter_web/_data/modules/analytics.yml +2 -2
- data/lib/starter_web/_data/modules/attics.yml +4 -7
- data/lib/starter_web/_data/modules/defaults/advertising.yml +2 -1
- data/lib/starter_web/_data/modules/defaults/attics.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/iconPicker.yml +42 -0
- data/lib/starter_web/_data/modules/defaults/navigator.yml +15 -13
- data/lib/starter_web/_data/modules/defaults/theme_toggler.yml +42 -0
- data/lib/starter_web/_data/modules/iconPicker.yml +64 -0
- data/lib/starter_web/_data/modules/masonry.yml +1 -1
- data/lib/starter_web/_data/modules/masterslider.yml +5 -5
- data/lib/starter_web/_data/modules/navigator_menu.yml +150 -41
- data/lib/starter_web/_data/modules/scroller.yml +8 -8
- data/lib/starter_web/_data/modules/theme_toggler.yml +29 -0
- data/lib/starter_web/_data/modules/themer.yml +0 -6
- data/lib/starter_web/_data/resources.yml +53 -52
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +57 -50
- data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +47 -0
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/icons/mdi/mdi.svg +1 -0
- data/lib/starter_web/assets/images/icons/mdi/mdil.svg +1 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/alexander-redl.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/clem-onojeghuo.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/core_web_vitals_best.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/crawford-jolly.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/eleni-afiontzi.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/harpal-singh.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/hayden-mills-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/john-schnobrich-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/josep-martins.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/josh-liu.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kelly-sikkemal.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kira-auf-der-heide.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kristopher-roller.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kristopher-roller.webp +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/matthaeus.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/mohammad-rahmani.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/nasa.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/1920x1280/recha-oktaviani.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/christina-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/katie-moum-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best.jpg +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best.png +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best_full.png +0 -0
- data/lib/starter_web/assets/images/pages/html_validator/appdevtools-html-validator.jpg +0 -0
- data/lib/starter_web/assets/images/pages/html_validator/freeformatter-html-validator.jpg +0 -0
- data/lib/starter_web/assets/images/pages/html_validator/w3c-nu-checker.jpg +0 -0
- data/lib/starter_web/assets/images/pages/html_validator/w3c-validator.jpg +0 -0
- data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +8 -9
- data/lib/starter_web/collections/_biography/becoming.adoc +22 -9
- data/lib/starter_web/collections/_biography/born-to-run.adoc +27 -9
- data/lib/starter_web/collections/_biography/forty-autumns.adoc +19 -12
- data/lib/starter_web/collections/_biography/not-dead-yet.adoc +24 -14
- data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +23 -14
- data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +24 -11
- data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +14 -10
- data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +11 -8
- data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +7 -8
- data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +17 -14
- data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +12 -13
- data/lib/starter_web/collections/_fantasy/terry-pratchet-diary.adoc +15 -15
- data/lib/starter_web/collections/_people/diana-petersen.adoc +2 -0
- data/lib/starter_web/collections/_people/larry-parker.adoc +2 -0
- data/lib/starter_web/collections/_people/parveen-anand.adoc +2 -0
- data/lib/starter_web/collections/_portfolio/branding.adoc +5 -0
- data/lib/starter_web/collections/_portfolio/graphic_design.adoc +5 -0
- data/lib/starter_web/collections/_portfolio/identity.adoc +5 -0
- data/lib/starter_web/collections/_portfolio/illustration.adoc +5 -0
- data/lib/starter_web/collections/_portfolio/photography.adoc +5 -0
- data/lib/starter_web/collections/_portfolio/web_design.adoc +5 -0
- data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes-a.adoc +8 -5
- data/lib/starter_web/collections/_romance/dressmaker-the.adoc +14 -14
- data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +12 -9
- data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +14 -11
- data/lib/starter_web/collections/_romance/outlander-novel.adoc +48 -25
- data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +30 -15
- data/lib/starter_web/index.html +6 -14
- data/lib/starter_web/package.json +3 -3
- data/lib/starter_web/pages/public/about/features.adoc +1 -1
- data/lib/starter_web/pages/public/about/reporting_issues.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +2 -2
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +75 -65
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/attributes.asciidoc +58 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/accordion.asciidoc +34 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/alerts.asciidoc +15 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/badges.asciidoc +9 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/body.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/breadcrumbs.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/buttons.asciidoc +75 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/cards.asciidoc +22 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/carousel.asciidoc +37 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/close.asciidoc +15 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/code.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/color_system.asciidoc +353 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/components.asciidoc +69 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/dropdowns.asciidoc +53 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/figures.asciidoc +5 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/forms.asciidoc +270 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/grid.asciidoc +49 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/links.asciidoc +21 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/list_groups.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/modals.asciidoc +43 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/navbar.asciidoc +45 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/navs.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/offcanvas.asciidoc +16 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/options.asciidoc +30 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/pagination.asciidoc +40 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/paragraph.asciidoc +5 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/placeholders.asciidoc +5 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/popovers.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/position.asciidoc +8 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/progress_bars.asciidoc +12 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/spacing.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/spinners.asciidoc +12 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/tables.asciidoc +55 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/thumbnails.asciidoc +9 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/toasts.asciidoc +18 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/tooltips.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/typography.asciidoc +115 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/z_index.asciidoc +26 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/tables/_table.asciidoc +9 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/tables/accordion.asciidoc +87 -0
- data/lib/starter_web/pages/public/learn/bs_sass_variables/bs_sass_variables.adoc +262 -0
- data/lib/starter_web/pages/public/learn/cheatsheet/gem.adoc +255 -0
- data/lib/starter_web/pages/public/learn/cheatsheet/git.adoc +1458 -0
- data/lib/starter_web/pages/public/learn/cheatsheet/j1.adoc +63 -0
- data/lib/starter_web/pages/public/learn/cheatsheet/yaml.adoc +514 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/attributes.asciidoc +59 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/documents/100_chapter.asciidoc +541 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/documents/200_chapter.asciidoc +33 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/build_command_options.asciidoc +72 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/files_and_folders.asciidoc +66 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/global_configuration_options.asciidoc +63 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/global_variables.asciidoc +26 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/page_variables.asciidoc +54 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/serve_command_options.asciidoc +45 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/site_variables.asciidoc +59 -0
- data/lib/starter_web/pages/public/learn/core_web_vitals/core_web_vitals.adoc +442 -0
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc +3 -4
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +10 -10
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +8 -1
- data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +3 -3
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +39 -45
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +2 -2
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -2
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +93 -4
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +133 -24
- data/_includes/themes/j1/modules/ads/google_ad_content_home.html +0 -11
- data/_includes/themes/j1/modules/ads/google_ad_top_home.html +0 -11
- data/assets/themes/j1/core/css/nbinteract-tutorial/styles.css +0 -1711
- data/assets/themes/j1/core/css/nbinteract-tutorial/styles.min.css +0 -1
- data/assets/themes/j1/modules/advertising/js/google/adInitializer.js +0 -127
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +0 -460
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +0 -97
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +0 -15
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +0 -115
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +0 -15
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +0 -97
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +0 -15
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +0 -125
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +0 -15
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_content_home.html +0 -11
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_top_home.html +0 -11
- /data/lib/starter_web/assets/images/{promo → quotes/promo}/home/screenshot.jpg +0 -0
- /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-faq.jpg +0 -0
- /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-generator.jpg +0 -0
- /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-generator.png +0 -0
- /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-og.png +0 -0
- /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/scalable/jekyll-faq.psd +0 -0
@@ -17,4 +17,4 @@
|
|
17
17
|
# See: https://github.com/danielgindi/jquery-backstretch
|
18
18
|
# -----------------------------------------------------------------------------
|
19
19
|
*/
|
20
|
-
"use strict";!function(t,e,i){var r,o=/^.*(youtu\.be\/|youtube\.com\/v\/|youtube\.com\/embed\/|youtube\.com\/watch\?v=|youtube\.com\/watch\?.*\&v=)([^#\&\?]*).*/i;t.fn.backstretch=function(r,o){var a,n=arguments;return 0===t(e).scrollTop()&&e.scrollTo(0,0),this.each(function(e){var s=t(this),h=s.data("backstretch");if(h){if("string"==typeof n[0]&&"function"==typeof h[n[0]]){var c=h[n[0]].apply(h,Array.prototype.slice.call(n,1));c===h&&(c=i),c!==i&&((a=a||[])[e]=c);return}o=t.extend(h.options,o),h.hasOwnProperty("destroy")&&h.destroy(!0)}if(!r||r&&0===r.length){var d=s.css("background-image");d&&"none"!==d?r=[{url:s.css("backgroundImage").replace(/url\(|\)|"|'/g,"")}]:t.error("No images were supplied for Backstretch, or element must have a CSS-defined background image.")}h=new b(this,r,o||{}),s.data("backstretch",h)}),a?1===a.length?a[0]:a:this},t.backstretch=function(e,i){return t("body").backstretch(e,i).data("backstretch")},t.expr[":"].backstretch=function(e){return i!==t(e).data("backstretch")},t.fn.backstretch.defaults={debug:!1,duration:5e3,transition:"fade",transitionDuration:0,animateFirst:!0,alignX:.5,alignY:.5,paused:!1,start:0,preload:2,preloadSize:1,resolutionRefreshRate:2500,resolutionChangeRatioThreshold:.1};var a,n,s,h,c,d,l={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},itemWrapper:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"100%",height:"100%",zIndex:-999999},item:{position:"absolute",margin:0,padding:0,border:"none",width:"100%",height:"100%",maxWidth:"none"}},u=(a=function(t){for(var e=1;e<t.length;e++){for(var i=t[e],r=e;t[r-1]&&parseInt(t[r-1].width,10)>parseInt(i.width,10);)t[r]=t[r-1],--r;t[r]=i}return t},n=function(t,i,r){var o=e.devicePixelRatio||1,a=S();X();for(var n,s,h=i>t?"portrait":t>i?"landscape":"square",c=0,d=0;d<r.length&&("string"==typeof(s=r[d])&&(s=r[d]={url:s}),s.pixelRatio&&"auto"!==s.pixelRatio&&parseFloat(s.pixelRatio)!==o||s.deviceOrientation&&s.deviceOrientation!==a||s.windowOrientation&&s.windowOrientation!==a||s.orientation&&s.orientation!==h||(c=d,n=t,"auto"===s.pixelRatio&&(t*=o),!(s.width>=n)));d++);return r[Math.min(d,c)]},s=function(t,e){if("string"==typeof t)t=t.replace(/{{(width|height)}}/g,e);else if(t instanceof Array)for(var i=0;i<t.length;i++)t[i].src?t[i].src=s(t[i].src,e):t[i]=s(t[i],e);return t},function(e,i){for(var r=e.width(),o=e.height(),h=[],c=function(t,e){return"width"===e?r:"height"===e?o:t},d=0;d<i.length;d++)if(t.isArray(i[d])){i[d]=a(i[d]);var l=n(r,o,i[d]);h.push(l)}else{"string"==typeof i[d]&&(i[d]={url:i[d]});var u=t.extend({},i[d]);u.url=s(u.url,c),h.push(u)}return h}),p=function(t){return o.test(t.url)||t.isVideo},g=(h=[],c=function(t){for(var e=0;e<h.length;e++)if(h[e].src===t.src)return h[e];return h.push(t),t},d=function(t,e,i){"function"==typeof e&&e.call(t,i)},function e(i,r,o,a,n){if(void 0!==i){t.isArray(i)||(i=[i]),arguments.length<5&&"function"==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1]),r="function"!=typeof r&&r?r:0,o="function"==typeof o||!o||o<0?i.length:Math.min(o,i.length),a="function"!=typeof a&&a?a:1,r>=i.length&&(r=0,o=0),a<0&&(a=o),a=Math.min(a,o);var s,h=i.slice(r+a,o-a);if(!(o=(i=i.slice(r,a)).length)){d(i,n,!0);return}for(var l=0,u=function(){++l===o&&(d(i,n,!h),e(h,0,0,a,n))},g=0;g<i.length;g++)!p(i[g])&&((s=new Image).src=i[g].url,(s=c(s)).complete?u():t(s).on("load error",u))}}),f=function(e){for(var i=[],r=0;r<e.length;r++)"string"==typeof e[r]?i.push({url:e[r]}):t.isArray(e[r])?i.push(f(e[r])):i.push(y(e[r]));return i},y=function(t,r){return(t.centeredX||t.centeredY)&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`"),t.centeredX&&(t.alignX=.5),t.centeredY&&(t.alignY=.5)),i!==t.speed&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `speed` is deprecated, please use `transitionDuration`"),t.transitionDuration=t.speed,t.transition="fade"),i!==t.resolutionChangeRatioTreshold&&(e.console.log("jquery.backstretch: `treshold` is a typo!"),t.resolutionChangeRatioThreshold=t.resolutionChangeRatioTreshold),i!==t.fadeFirst&&(t.animateFirst=t.fadeFirst),i!==t.fade&&(t.transitionDuration=t.fade,t.transition="fade"),t.scale&&(t.scale=$(t.scale)),v(t)},v=function(t,e){return"left"===t.alignX?t.alignX=0:"center"===t.alignX?t.alignX=.5:"right"===t.alignX?t.alignX=1:(i!==t.alignX||e)&&(t.alignX=parseFloat(t.alignX),isNaN(t.alignX)&&(t.alignX=.5)),"top"===t.alignY?t.alignY=0:"center"===t.alignY?t.alignY=.5:"bottom"===t.alignY?t.alignY=1:(i!==t.alignX||e)&&(t.alignY=parseFloat(t.alignY),isNaN(t.alignY)&&(t.alignY=.5)),t},m={cover:"cover",fit:"fit","fit-smaller":"fit-smaller",fill:"fill"};function $(t){return m.hasOwnProperty(t)?t:"cover"}var b=function(i,r,o){this.options=t.extend({},t.fn.backstretch.defaults,o||{}),this.firstShow=!0,y(this.options,!0),this.images=f(t.isArray(r)?r:[r]),this.options.paused&&(this.paused=!0),this.options.start>=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=i===document.body;var a=t(e);this.$container=t(i),this.$root=this.isBody?H?a:t(document):this.$container,this.originalImages=this.images,this.images=u(this.options.alwaysTestWindowResolution?a:this.$root,this.originalImages),g(this.images,this.options.start||0,this.options.preload||1);var n=this.$container.children(".backstretch").first();if(this.$wrap=n.length?n:t('<div class="backstretch"></div>').css(this.options.bypassCss?{}:l.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var s=this.$container.css("position"),h=this.$container.css("zIndex");this.$container.css({position:"static"===s?"relative":s,zIndex:"auto"===h?0:h}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&H?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),a.on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())},this))},w=function(e){var r=e.transition||"fade";"string"==typeof r&&r.indexOf("|")>-1&&(r=r.split("|")),r instanceof Array&&(r=r[Math.round(Math.random()*(r.length-1))]);var o=e.new,a=e.old?e.old:t([]);switch(r.toString().toLowerCase()){default:case"fade":o.fadeIn({duration:e.duration,complete:e.complete,easing:e.easing||i});break;case"fadeinout":case"fade_in_out":var n=function(){o.fadeIn({duration:e.duration/2,complete:e.complete,easing:e.easing||i})};a.length?a.fadeOut({duration:e.duration/2,complete:n,easing:e.easing||i}):n();break;case"pushleft":case"push_left":case"pushright":case"push_right":case"pushup":case"push_up":case"pushdown":case"push_down":case"coverleft":case"cover_left":case"coverright":case"cover_right":case"coverup":case"cover_up":case"coverdown":case"cover_down":var s=r.match(/^(cover|push)_?(.*)$/),h="left"===s[2]?"right":"right"===s[2]?"left":"down"===s[2]?"top":"up"===s[2]?"bottom":"right",c={display:""},d={};if(c[h]="-100%",d[h]=0,o.css(c).animate(d,{duration:e.duration,complete:function(){o.css(h,""),e.complete.apply(this,arguments)},easing:e.easing||i}),"push"===s[1]&&a.length){var l={};l[h]="100%",a.animate(l,{duration:e.duration,complete:function(){a.css("display","none")},easing:e.easing||i})}}};b.prototype={resize:function(){try{var o,a,n=log4javascript.getLogger("j1.core.attic"),s=this.options.alwaysTestWindowResolution?t(e):this.$root,h=s.width(),c=s.height(),d=h/(this._lastResizeContainerWidth||0),l=c/(this._lastResizeContainerHeight||0),p=this.options.resolutionChangeRatioThreshold||0;if((h!==this._lastResizeContainerWidth||c!==this._lastResizeContainerHeight)&&(Math.abs(d-1)>=p||isNaN(d)||Math.abs(l-1)>=p||isNaN(l))&&(this._lastResizeContainerWidth=h,this._lastResizeContainerHeight=c,this.images=u(s,this.originalImages),this.options.preload&&g(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var f=this;clearTimeout(f._selectAnotherResolutionTimeout),f._selectAnotherResolutionTimeout=setTimeout(function(){f.show(0)},this.options.resolutionRefreshRate)}var y={left:0,top:0,right:"auto",bottom:"auto"},v=this.isBody?this.$root.width():this.$root.innerWidth(),m=this.isBody?e.innerHeight?e.innerHeight:this.$root.height():this.$root.innerHeight(),b=this.$itemWrapper.data("width"),w=this.$itemWrapper.data("height"),_=b/w||1,x=i===this._currentImage.alignX?this.options.alignX:this._currentImage.alignX,k=i===this._currentImage.alignY?this.options.alignY:this._currentImage.alignY,W=$(this._currentImage.scale||this.options.scale);if(this.options.debug&&(r="\nresize: boxHeight x boxWidth: "+m+" x "+v,n.debug(r)),"fit"===W||"fit-smaller"===W){if(o=b,a=w,o>v||a>m||"fit-smaller"===W){var T=v/m;T>_?(o=Math.floor(m*_),a=m):T<_?(o=v,a=Math.floor(v/_)):(o=v,a=m)}}else"fill"===W?(o=v,a=m):(o=Math.max(m*_,v),a=Math.max(o/_,m));y.top=-(a-m)*k,y.left=-(o-v)*x,y.width=o,y.height=a,this.options.bypassCss||this.$wrap.css({width:v,height:m}).find(">.backstretch-item").not(".deleteable").each(function(){t(this).find("img,video,iframe").css(y)});var R=t.Event("backstretch.resize",{relatedTarget:this.$container[0]});this.$container.trigger(R,this)}catch(Y){r="resize: jadams, IE7 hack to let it fail gracefully: "+Y,n.warn(r)}return this},show:function(e,r){var o=log4javascript.getLogger("j1.core.attic");if(!(Math.abs(e)>this.images.length-1)){var a=this,n=a.$wrap.find(">.backstretch-item").addClass("deleteable"),s=a.videoWrapper,h={relatedTarget:a.$container[0]};a.$container.trigger(t.Event("backstretch.before",h),[a,e]),this.index=e;var c=a.images[e];clearTimeout(a._cycleTimeout),delete a.videoWrapper;var d=p(c);return d?(a.videoWrapper=new _(c),a.$item=a.videoWrapper.$video.css("pointer-events","none")):a.$item=t("<img />"),a.$itemWrapper=t('<div class="backstretch-item">').append(a.$item),this.options.bypassCss?a.$itemWrapper.css({display:"none"}):(a.$itemWrapper.css(l.itemWrapper),a.$item.css(l.item)),a.$item.bind(d?"canplay":"load",function(c){var l=t(this).parent(),u=l.data("options");r&&(u=t.extend({},u,r));var p=this.naturalWidth||this.videoWidth||this.width,g=this.naturalHeight||this.videoHeight||this.height;l.data("width",p).data("height",g);var f=function(t){return i!==u[t]?u[t]:a.options[t]},y=f("transition"),v=f("transitionEasing"),m=f("transitionDuration"),$=function(){s&&(s.stop(),s.destroy()),n.remove(),!a.paused&&a.images.length>1&&a.cycle(),a.options.bypassCss||a.isBody,t(["before","after","show"]).each(function(){a.$container.trigger(t.Event("backstretch."+this,h),[a,e])}),d&&a.videoWrapper.play()};(!a.firstShow||a.options.animateFirst)&&m&&y?w({new:l,old:n,transition:y,duration:m,easing:v,complete:$}):(l.show(),$()),a.firstShow=!1;var b=this.naturalWidth||this.videoWidth||this.width,_=this.naturalHeight||this.videoHeight||this.height;a.options.debug&&o.debug("show: imageHeight x imageWidth: "+_+" x "+b);var x="#"+a.$container["0"].id,k=setInterval(function(){t(x).is(":visible")&&(clearInterval(k),o.debug("\ncontainer visible on id: "+x),a.resize())},50)}),a.$itemWrapper.appendTo(a.$wrap),a.$item.attr("alt",c.alt||""),a.$itemWrapper.data("options",c),d||a.$item.attr("src",c.url),a._currentImage=c,a}},current:function(){return this.index},next:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this.index<this.images.length-1?this.index+1:0),this.show.apply(this,t)},prev:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(0===this.index?this.images.length-1:this.index-1),this.show.apply(this,t)},pause:function(){return this.paused=!0,this.videoWrapper&&this.videoWrapper.pause(),this},resume:function(){return this.paused=!1,this.videoWrapper&&this.videoWrapper.play(),this.cycle(),this},cycle:function(){if(this.images.length>1){clearTimeout(this._cycleTimeout);var e=this._currentImage&&this._currentImage.duration||this.options.duration,i=p(this._currentImage),r=function(){this.$item.off(".cycle"),this.paused||this.next()};if(i){if(!this._currentImage.loop){var o=0;this.$item.on("playing.cycle",function(){var e=t(this).data("player");clearTimeout(o),void 0!==e&&(o=setTimeout(function(){e.pause(),e.$video.trigger("ended")},(e.getDuration()-e.getCurrentTime())*1e3))}).on("ended.cycle",function(){clearTimeout(o)})}this.$item.on("error.cycle initerror.cycle",t.proxy(r,this))}i&&!this._currentImage.duration?this.$item.on("ended.cycle",t.proxy(r,this)):this._cycleTimeout=setTimeout(t.proxy(r,this),e)}return this},destroy:function(i){t(e).off("resize.backstretch orientationchange.backstretch"),this.videoWrapper&&this.videoWrapper.destroy(),clearTimeout(this._cycleTimeout),i||this.$wrap.remove(),this.$container.removeData("backstretch")}};var _=function(){this.init.apply(this,arguments)};_.prototype.init=function(r){var a,n=this,s=function(){n.$video=a,n.video=a[0]},h="video";if(!(r.url instanceof Array)&&o.test(r.url)&&(h="youtube"),n.type=h,"youtube"===h){_.loadYoutubeAPI(),n.ytId=r.url.match(o)[2];var c="https://www.youtube.com/embed/"+n.ytId+"?rel=0&autoplay=0&showinfo=0&controls=0&modestbranding=1&cc_load_policy=0&disablekb=1&iv_load_policy=3&loop=0&enablejsapi=1&origin="+encodeURIComponent(e.location.origin);n.__ytStartMuted=!!r.mute||i===r.mute,a=t("<iframe />").attr({src_to_load:c}).css({border:0,margin:0,padding:0}).data("player",n),r.loop&&a.on("ended.loop",function(){n.__manuallyStopped||n.play()}),n.ytReady=!1,s(),e.YT?(n._initYoutube(),a.trigger("initsuccess")):t(e).one("youtube_api_load",function(){n._initYoutube(),a.trigger("initsuccess")})}else{a=t("<video>").prop("autoplay",!1).prop("controls",!1).prop("loop",!!r.loop).prop("muted",!!r.mute||i===r.mute).prop("preload","auto").prop("poster",r.poster||"");for(var d=r.url instanceof Array?r.url:[r.url],l=0;l<d.length;l++){var u=d[l];"string"==typeof u&&(u={src:u}),t("<source>").attr("src",u.src).attr("type",u.type||null).appendTo(a)}a[0].canPlayType&&d.length?a.trigger("initsuccess"):a.trigger("initerror"),s()}},_.prototype._initYoutube=function(){var i=this,r=e.YT;i.$video.attr("src",i.$video.attr("src_to_load")).removeAttr("src_to_load");var o=!!i.$video[0].parentNode;if(!o){var a=t("<div>").css("display","none !important").appendTo(document.body);i.$video.appendTo(a)}var n=new r.Player(i.video,{events:{onReady:function(){i.__ytStartMuted&&n.mute(),o||(i.$video[0].parentNode===a[0]&&i.$video.detach(),a.remove()),i.ytReady=!0,i._updateYoutubeSize(),i.$video.trigger("canplay")},onStateChange:function(t){switch(t.data){case r.PlayerState.PLAYING:i.$video.trigger("playing");break;case r.PlayerState.ENDED:i.$video.trigger("ended");break;case r.PlayerState.PAUSED:i.$video.trigger("pause");break;case r.PlayerState.BUFFERING:i.$video.trigger("waiting");break;case r.PlayerState.CUED:i.$video.trigger("canplay")}},onPlaybackQualityChange:function(){i._updateYoutubeSize(),i.$video.trigger("resize")},onError:function(t){i.hasError=!0,i.$video.trigger({type:"error",error:t})}}});return i.ytPlayer=n,i},_.prototype._updateYoutubeSize=function(){var t=this;switch(t.ytPlayer.getPlaybackQuality()||"medium"){case"small":t.video.videoWidth=426,t.video.videoHeight=240;break;case"medium":t.video.videoWidth=640,t.video.videoHeight=360;break;default:case"large":t.video.videoWidth=854,t.video.videoHeight=480;break;case"hd720":t.video.videoWidth=1280,t.video.videoHeight=720;break;case"hd1080":t.video.videoWidth=1920,t.video.videoHeight=1080;break;case"highres":t.video.videoWidth=2560,t.video.videoHeight=1440}return t},_.prototype.play=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&(t.$video.trigger("play"),t.ytPlayer.playVideo()):t.video.play(),t},_.prototype.pause=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&t.ytPlayer.pauseVideo():t.video.pause(),t},_.prototype.stop=function(){var t=this;return t.__manuallyStopped=!0,"youtube"===t.type?t.ytReady&&(t.ytPlayer.pauseVideo(),t.ytPlayer.seekTo(0)):(t.video.pause(),t.video.currentTime=0),t},_.prototype.destroy=function(){return this.ytPlayer&&this.ytPlayer.destroy(),this.$video.remove(),this},_.prototype.getCurrentTime=function(t){return"youtube"!==this.type?this.video.currentTime:this.ytReady?this.ytPlayer.getCurrentTime():0},_.prototype.setCurrentTime=function(t){var e=this;return"youtube"===e.type?e.ytReady&&e.ytPlayer.seekTo(t,!0):e.video.currentTime=t,e},_.prototype.getDuration=function(){return"youtube"!==this.type?this.video.duration:this.ytReady?this.ytPlayer.getDuration():0},_.loadYoutubeAPI=function(){if(!e.YT){t("script[src*=www\\.youtube\\.com\\/iframe_api]").length||t('<script type="text/javascript" src="https://www.youtube.com/iframe_api">').appendTo("body");var i=setInterval(function(){e.YT&&e.YT.loaded&&(t(e).trigger("youtube_api_load"),clearTimeout(i))},50)}};var x,k,W,T,R,Y,I,P,C,z,S=function(){if("matchMedia"in e){if(e.matchMedia("(orientation: portrait)").matches)return"portrait";if(e.matchMedia("(orientation: landscape)").matches)return"landscape"}return screen.height>screen.width?"portrait":"landscape"},X=function(){return e.innerHeight>e.innerWidth?"portrait":e.innerWidth>e.innerHeight?"landscape":"square"},H=(x=navigator.userAgent,k=navigator.platform,T=!!(W=x.match(/AppleWebKit\/([0-9]+)/))&&W[1],Y=!!(R=x.match(/Fennec\/([0-9]+)/))&&R[1],P=!!(I=x.match(/Opera Mobi\/([0-9]+)/))&&I[1],z=!!(C=x.match(/MSIE ([0-9]+)/))&&C[1],!((k.indexOf("iPhone")>-1||k.indexOf("iPad")>-1||k.indexOf("iPod")>-1)&&T&&T<534||e.operamini&&"[object OperaMini]"===({}).toString.call(e.operamini)||I&&P<7458||x.indexOf("Android")>-1&&T&&T<533||Y&&Y<6||"palmGetResource"in e&&T&&T<534||x.indexOf("MeeGo")>-1&&x.indexOf("NokiaBrowser/8.5.0")>-1||z&&z<=6))}(jQuery,window);
|
20
|
+
!function(t,e,i){var r,a=/^.*(youtu\.be\/|youtube\.com\/v\/|youtube\.com\/embed\/|youtube\.com\/watch\?v=|youtube\.com\/watch\?.*\&v=)([^#\&\?]*).*/i;t.fn.backstretch=function(r,a){var o,n=arguments;return 0===t(e).scrollTop()&&e.scrollTo(0,0),this.each((function(e){var s=t(this),h=s.data("backstretch");if(h){if("string"==typeof n[0]&&"function"==typeof h[n[0]]){var c=h[n[0]].apply(h,Array.prototype.slice.call(n,1));return c===h&&(c=i),void(c!==i&&((o=o||[])[e]=c))}a=t.extend(h.options,a),h.hasOwnProperty("destroy")&&h.destroy(!0)}if(!r||r&&0===r.length){var d=s.css("background-image");d&&"none"!==d?r=[{url:s.css("backgroundImage").replace(/url\(|\)|"|'/g,"")}]:t.error("No images were supplied for Backstretch, or element must have a CSS-defined background image.")}h=new w(this,r,a||{}),s.data("backstretch",h)})),o?1===o.length?o[0]:o:this},t.backstretch=function(e,i){return t("body").backstretch(e,i).data("backstretch")},t.expr[":"].backstretch=function(e){return t(e).data("backstretch")!==i},t.fn.backstretch.defaults={debug:!1,duration:5e3,transition:"fade",transitionDuration:0,animateFirst:!0,alignX:.5,alignY:.5,paused:!1,start:0,preload:2,preloadSize:1,resolutionRefreshRate:2500,resolutionChangeRatioThreshold:.1};var o,n,s,h,c,d,l={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},itemWrapper:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"100%",height:"100%",zIndex:-999999},item:{position:"absolute",margin:0,padding:0,border:"none",width:"100%",height:"100%",maxWidth:"none"}},u=(o=function(t){for(var e=1;e<t.length;e++){for(var i=t[e],r=e;t[r-1]&&parseInt(t[r-1].width,10)>parseInt(i.width,10);)t[r]=t[r-1],--r;t[r]=i}return t},n=function(t,i,r){for(var a,o,n=e.devicePixelRatio||1,s=z(),h=(S(),i>t?"portrait":t>i?"landscape":"square"),c=0,d=0;d<r.length&&("string"==typeof(o=r[d])&&(o=r[d]={url:o}),o.pixelRatio&&"auto"!==o.pixelRatio&&parseFloat(o.pixelRatio)!==n||o.deviceOrientation&&o.deviceOrientation!==s||o.windowOrientation&&o.windowOrientation!==s||o.orientation&&o.orientation!==h||(c=d,a=t,"auto"===o.pixelRatio&&(t*=n),!(o.width>=a)));d++);return r[Math.min(d,c)]},s=function(t,e){if("string"==typeof t)t=t.replace(/{{(width|height)}}/g,e);else if(t instanceof Array)for(var i=0;i<t.length;i++)t[i].src?t[i].src=s(t[i].src,e):t[i]=s(t[i],e);return t},function(e,i){for(var r=e.width(),a=e.height(),h=[],c=function(t,e){return"width"===e?r:"height"===e?a:t},d=0;d<i.length;d++)if(t.isArray(i[d])){i[d]=o(i[d]);var l=n(r,a,i[d]);h.push(l)}else{"string"==typeof i[d]&&(i[d]={url:i[d]});var u=t.extend({},i[d]);u.url=s(u.url,c),h.push(u)}return h}),p=function(t){return a.test(t.url)||t.isVideo},g=(h=[],c=function(t){for(var e=0;e<h.length;e++)if(h[e].src===t.src)return h[e];return h.push(t),t},d=function(t,e,i){"function"==typeof e&&e.call(t,i)},function e(i,r,a,o,n){if(void 0!==i){t.isArray(i)||(i=[i]),arguments.length<5&&"function"==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1]),r="function"!=typeof r&&r?r:0,a="function"==typeof a||!a||a<0?i.length:Math.min(a,i.length),o="function"!=typeof o&&o?o:1,r>=i.length&&(r=0,a=0),o<0&&(o=a),o=Math.min(o,a);var s=i.slice(r+o,a-o);if(i=i.slice(r,o),a=i.length)for(var h,l=0,u=function(){++l===a&&(d(i,n,!s),e(s,0,0,o,n))},g=0;g<i.length;g++)p(i[g])||((h=new Image).src=i[g].url,(h=c(h)).complete?u():t(h).on("load error",u));else d(i,n,!0)}}),y=function(e){for(var i=[],r=0;r<e.length;r++)"string"==typeof e[r]?i.push({url:e[r]}):t.isArray(e[r])?i.push(y(e[r])):i.push(f(e[r]));return i},f=function(t,r){return(t.centeredX||t.centeredY)&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`"),t.centeredX&&(t.alignX=.5),t.centeredY&&(t.alignY=.5)),t.speed!==i&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `speed` is deprecated, please use `transitionDuration`"),t.transitionDuration=t.speed,t.transition="fade"),t.resolutionChangeRatioTreshold!==i&&(e.console.log("jquery.backstretch: `treshold` is a typo!"),t.resolutionChangeRatioThreshold=t.resolutionChangeRatioTreshold),t.fadeFirst!==i&&(t.animateFirst=t.fadeFirst),t.fade!==i&&(t.transitionDuration=t.fade,t.transition="fade"),t.scale&&(t.scale=b(t.scale)),v(t)},v=function(t,e){return"left"===t.alignX?t.alignX=0:"center"===t.alignX?t.alignX=.5:"right"===t.alignX?t.alignX=1:(t.alignX!==i||e)&&(t.alignX=parseFloat(t.alignX),isNaN(t.alignX)&&(t.alignX=.5)),"top"===t.alignY?t.alignY=0:"center"===t.alignY?t.alignY=.5:"bottom"===t.alignY?t.alignY=1:(t.alignX!==i||e)&&(t.alignY=parseFloat(t.alignY),isNaN(t.alignY)&&(t.alignY=.5)),t},m={cover:"cover",fit:"fit","fit-smaller":"fit-smaller",fill:"fill"};function b(t){return m.hasOwnProperty(t)?t:"cover"}var w=function(i,r,a){this.options=t.extend({},t.fn.backstretch.defaults,a||{}),this.firstShow=!0,f(this.options,!0),this.images=y(t.isArray(r)?r:[r]),this.options.paused&&(this.paused=!0),this.options.start>=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=i===document.body;var o=t(e);this.$container=t(i),this.$root=this.isBody?A?o:t(document):this.$container,this.originalImages=this.images,this.images=u(this.options.alwaysTestWindowResolution?o:this.$root,this.originalImages),g(this.images,this.options.start||0,this.options.preload||1);var n=this.$container.children(".backstretch").first();if(this.$wrap=n.length?n:t('<div class="backstretch"></div>').css(this.options.bypassCss?{}:l.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var s=this.$container.css("position"),h=this.$container.css("zIndex");this.$container.css({position:"static"===s?"relative":s,zIndex:"auto"===h?0:h}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&A?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),o.on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy((function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())}),this))};w.prototype={resize:function(){try{var a=log4javascript.getLogger("j1.core.attic"),o=this.options.alwaysTestWindowResolution?t(e):this.$root,n=o.width(),s=o.height(),h=n/(this._lastResizeContainerWidth||0),c=s/(this._lastResizeContainerHeight||0),d=this.options.resolutionChangeRatioThreshold||0;if((n!==this._lastResizeContainerWidth||s!==this._lastResizeContainerHeight)&&(Math.abs(h-1)>=d||isNaN(h)||Math.abs(c-1)>=d||isNaN(c))&&(this._lastResizeContainerWidth=n,this._lastResizeContainerHeight=s,this.images=u(o,this.originalImages),this.options.preload&&g(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var l=this;clearTimeout(l._selectAnotherResolutionTimeout),l._selectAnotherResolutionTimeout=setTimeout((function(){l.show(0)}),this.options.resolutionRefreshRate)}var p,y,f={left:0,top:0,right:"auto",bottom:"auto"},v=this.isBody?this.$root.width():this.$root.innerWidth(),m=this.isBody?e.innerHeight?e.innerHeight:this.$root.height():this.$root.innerHeight(),w=this.$itemWrapper.data("width"),_=this.$itemWrapper.data("height"),$=w/_||1,x=this._currentImage.alignX===i?this.options.alignX:this._currentImage.alignX,T=this._currentImage.alignY===i?this.options.alignY:this._currentImage.alignY,k=b(this._currentImage.scale||this.options.scale);if(this.options.debug&&(r="\nresize: boxHeight x boxWidth: "+m+" x "+v,a.debug(r)),"fit"===k||"fit-smaller"===k){if(y=_,(p=w)>v||y>m||"fit-smaller"===k){var W=v/m;W>$?(p=Math.floor(m*$),y=m):W<$?(p=v,y=Math.floor(v/$)):(p=v,y=m)}}else"fill"===k?(p=v,y=m):(p=Math.max(m*$,v),y=Math.max(p/$,m));f.top=-(y-m)*T,f.left=-(p-v)*x,f.width=p,f.height=y,this.options.bypassCss||this.$wrap.css({width:v,height:m}).find(">.backstretch-item").not(".deleteable").each((function(){t(this).find("img,video,iframe").css(f)}));var I=t.Event("backstretch.resize",{relatedTarget:this.$container[0]});this.$container.trigger(I,this)}catch(t){r="resize: jadams, IE7 hack to let it fail gracefully: "+t,a.warn(r)}return this},show:function(e,r){var a=log4javascript.getLogger("j1.core.attic");if(!(Math.abs(e)>this.images.length-1)){var o=this,n=o.$wrap.find(">.backstretch-item").addClass("deleteable"),s=o.videoWrapper,h={relatedTarget:o.$container[0]};o.$container.trigger(t.Event("backstretch.before",h),[o,e]),this.index=e;var c=o.images[e];clearTimeout(o._cycleTimeout),delete o.videoWrapper;var d=p(c);return d?(o.videoWrapper=new _(c),o.$item=o.videoWrapper.$video.css("pointer-events","none")):o.$item=t("<img />"),o.$itemWrapper=t('<div class="backstretch-item">').append(o.$item),this.options.bypassCss?o.$itemWrapper.css({display:"none"}):(o.$itemWrapper.css(l.itemWrapper),o.$item.css(l.item)),o.$item.bind(d?"canplay":"load",(function(c){var l=t(this).parent(),u=l.data("options");r&&(u=t.extend({},u,r));var p=this.naturalWidth||this.videoWidth||this.width,g=this.naturalHeight||this.videoHeight||this.height;l.data("width",p).data("height",g);var y=function(t){return u[t]!==i?u[t]:o.options[t]},f=y("transition"),v=y("transitionEasing"),m=y("transitionDuration"),b=function(){s&&(s.stop(),s.destroy()),n.remove(),!o.paused&&o.images.length>1&&o.cycle(),!o.options.bypassCss&&o.isBody,t(["before","after","show"]).each((function(){o.$container.trigger(t.Event("backstretch."+this,h),[o,e])})),d&&o.videoWrapper.play()};o.firstShow&&!o.options.animateFirst||!m||!f?(l.show(),b()):function(e){var r=e.transition||"fade";"string"==typeof r&&r.indexOf("|")>-1&&(r=r.split("|")),r instanceof Array&&(r=r[Math.round(Math.random()*(r.length-1))]);var a=e.new,o=e.old?e.old:t([]);switch(r.toString().toLowerCase()){default:case"fade":a.fadeIn({duration:e.duration,complete:e.complete,easing:e.easing||i});break;case"fadeinout":case"fade_in_out":var n=function(){a.fadeIn({duration:e.duration/2,complete:e.complete,easing:e.easing||i})};o.length?o.fadeOut({duration:e.duration/2,complete:n,easing:e.easing||i}):n();break;case"pushleft":case"push_left":case"pushright":case"push_right":case"pushup":case"push_up":case"pushdown":case"push_down":case"coverleft":case"cover_left":case"coverright":case"cover_right":case"coverup":case"cover_up":case"coverdown":case"cover_down":var s=r.match(/^(cover|push)_?(.*)$/),h="left"===s[2]?"right":"right"===s[2]?"left":"down"===s[2]?"top":"up"===s[2]?"bottom":"right",c={display:""},d={};if(c[h]="-100%",d[h]=0,a.css(c).animate(d,{duration:e.duration,complete:function(){a.css(h,""),e.complete.apply(this,arguments)},easing:e.easing||i}),"push"===s[1]&&o.length){var l={};l[h]="100%",o.animate(l,{duration:e.duration,complete:function(){o.css("display","none")},easing:e.easing||i})}}}({new:l,old:n,transition:f,duration:m,easing:v,complete:b}),o.firstShow=!1;var w=this.naturalWidth||this.videoWidth||this.width,_="show: imageHeight x imageWidth: "+(this.naturalHeight||this.videoHeight||this.height)+" x "+w;o.options.debug&&a.debug(_);var $="#"+o.$container[0].id,x=setInterval((function(){t($).is(":visible")&&(a.debug("\ncontainer visible on id: "+$),o.resize(),clearInterval(x))}),10)})),o.$itemWrapper.appendTo(o.$wrap),o.$item.attr("alt",c.alt||""),o.$itemWrapper.data("options",c),d||o.$item.attr("src",c.url),o._currentImage=c,o}},current:function(){return this.index},next:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this.index<this.images.length-1?this.index+1:0),this.show.apply(this,t)},prev:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(0===this.index?this.images.length-1:this.index-1),this.show.apply(this,t)},pause:function(){return this.paused=!0,this.videoWrapper&&this.videoWrapper.pause(),this},resume:function(){return this.paused=!1,this.videoWrapper&&this.videoWrapper.play(),this.cycle(),this},cycle:function(){if(this.images.length>1){clearTimeout(this._cycleTimeout);var e=this._currentImage&&this._currentImage.duration||this.options.duration,i=p(this._currentImage),r=function(){this.$item.off(".cycle"),this.paused||this.next()};if(i){if(!this._currentImage.loop){var a=0;this.$item.on("playing.cycle",(function(){var e=t(this).data("player");clearTimeout(a),void 0!==e&&(a=setTimeout((function(){e.pause(),e.$video.trigger("ended")}),1e3*(e.getDuration()-e.getCurrentTime())))})).on("ended.cycle",(function(){clearTimeout(a)}))}this.$item.on("error.cycle initerror.cycle",t.proxy(r,this))}i&&!this._currentImage.duration?this.$item.on("ended.cycle",t.proxy(r,this)):this._cycleTimeout=setTimeout(t.proxy(r,this),e)}return this},destroy:function(i){t(e).off("resize.backstretch orientationchange.backstretch"),this.videoWrapper&&this.videoWrapper.destroy(),clearTimeout(this._cycleTimeout),i||this.$wrap.remove(),this.$container.removeData("backstretch")}};var _=function(){this.init.apply(this,arguments)};_.prototype.init=function(r){var o,n=this,s=function(){n.$video=o,n.video=o[0]},h="video";if(r.url instanceof Array||!a.test(r.url)||(h="youtube"),n.type=h,"youtube"===h){_.loadYoutubeAPI(),n.ytId=r.url.match(a)[2];var c="https://www.youtube.com/embed/"+n.ytId+"?rel=0&autoplay=0&showinfo=0&controls=0&modestbranding=1&cc_load_policy=0&disablekb=1&iv_load_policy=3&loop=0&enablejsapi=1&origin="+encodeURIComponent(e.location.origin);n.__ytStartMuted=!!r.mute||r.mute===i,o=t("<iframe />").attr({src_to_load:c}).css({border:0,margin:0,padding:0}).data("player",n),r.loop&&o.on("ended.loop",(function(){n.__manuallyStopped||n.play()})),n.ytReady=!1,s(),e.YT?(n._initYoutube(),o.trigger("initsuccess")):t(e).one("youtube_api_load",(function(){n._initYoutube(),o.trigger("initsuccess")}))}else{o=t("<video>").prop("autoplay",!1).prop("controls",!1).prop("loop",!!r.loop).prop("muted",!!r.mute||r.mute===i).prop("preload","auto").prop("poster",r.poster||"");for(var d=r.url instanceof Array?r.url:[r.url],l=0;l<d.length;l++){var u=d[l];"string"==typeof u&&(u={src:u}),t("<source>").attr("src",u.src).attr("type",u.type||null).appendTo(o)}o[0].canPlayType&&d.length?o.trigger("initsuccess"):o.trigger("initerror"),s()}},_.prototype._initYoutube=function(){var i=this,r=e.YT;i.$video.attr("src",i.$video.attr("src_to_load")).removeAttr("src_to_load");var a=!!i.$video[0].parentNode;if(!a){var o=t("<div>").css("display","none !important").appendTo(document.body);i.$video.appendTo(o)}var n=new r.Player(i.video,{events:{onReady:function(){i.__ytStartMuted&&n.mute(),a||(i.$video[0].parentNode===o[0]&&i.$video.detach(),o.remove()),i.ytReady=!0,i._updateYoutubeSize(),i.$video.trigger("canplay")},onStateChange:function(t){switch(t.data){case r.PlayerState.PLAYING:i.$video.trigger("playing");break;case r.PlayerState.ENDED:i.$video.trigger("ended");break;case r.PlayerState.PAUSED:i.$video.trigger("pause");break;case r.PlayerState.BUFFERING:i.$video.trigger("waiting");break;case r.PlayerState.CUED:i.$video.trigger("canplay")}},onPlaybackQualityChange:function(){i._updateYoutubeSize(),i.$video.trigger("resize")},onError:function(t){i.hasError=!0,i.$video.trigger({type:"error",error:t})}}});return i.ytPlayer=n,i},_.prototype._updateYoutubeSize=function(){var t=this;switch(t.ytPlayer.getPlaybackQuality()||"medium"){case"small":t.video.videoWidth=426,t.video.videoHeight=240;break;case"medium":t.video.videoWidth=640,t.video.videoHeight=360;break;default:case"large":t.video.videoWidth=854,t.video.videoHeight=480;break;case"hd720":t.video.videoWidth=1280,t.video.videoHeight=720;break;case"hd1080":t.video.videoWidth=1920,t.video.videoHeight=1080;break;case"highres":t.video.videoWidth=2560,t.video.videoHeight=1440}return t},_.prototype.play=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&(t.$video.trigger("play"),t.ytPlayer.playVideo()):t.video.play(),t},_.prototype.pause=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&t.ytPlayer.pauseVideo():t.video.pause(),t},_.prototype.stop=function(){var t=this;return t.__manuallyStopped=!0,"youtube"===t.type?t.ytReady&&(t.ytPlayer.pauseVideo(),t.ytPlayer.seekTo(0)):(t.video.pause(),t.video.currentTime=0),t},_.prototype.destroy=function(){var t=this;return t.ytPlayer&&t.ytPlayer.destroy(),t.$video.remove(),t},_.prototype.getCurrentTime=function(t){var e=this;return"youtube"!==e.type?e.video.currentTime:e.ytReady?e.ytPlayer.getCurrentTime():0},_.prototype.setCurrentTime=function(t){var e=this;return"youtube"===e.type?e.ytReady&&e.ytPlayer.seekTo(t,!0):e.video.currentTime=t,e},_.prototype.getDuration=function(){var t=this;return"youtube"!==t.type?t.video.duration:t.ytReady?t.ytPlayer.getDuration():0},_.loadYoutubeAPI=function(){if(!e.YT){t("script[src*=www\\.youtube\\.com\\/iframe_api]").length||t('<script type="text/javascript" src="https://www.youtube.com/iframe_api">').appendTo("body");var i=setInterval((function(){e.YT&&e.YT.loaded&&(t(e).trigger("youtube_api_load"),clearTimeout(i))}),10)}};var $,x,T,k,W,I,R,Y,P,C,z=function(){if("matchMedia"in e){if(e.matchMedia("(orientation: portrait)").matches)return"portrait";if(e.matchMedia("(orientation: landscape)").matches)return"landscape"}return screen.height>screen.width?"portrait":"landscape"},S=function(){return e.innerHeight>e.innerWidth?"portrait":e.innerWidth>e.innerHeight?"landscape":"square"},A=($=navigator.userAgent,x=navigator.platform,T=$.match(/AppleWebKit\/([0-9]+)/),k=!!T&&T[1],W=$.match(/Fennec\/([0-9]+)/),I=!!W&&W[1],R=$.match(/Opera Mobi\/([0-9]+)/),Y=!!R&&R[1],P=$.match(/MSIE ([0-9]+)/),C=!!P&&P[1],!((x.indexOf("iPhone")>-1||x.indexOf("iPad")>-1||x.indexOf("iPod")>-1)&&k&&k<534||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||R&&Y<7458||$.indexOf("Android")>-1&&k&&k<533||I&&I<6||"palmGetResource"in e&&k&&k<534||$.indexOf("MeeGo")>-1&&$.indexOf("NokiaBrowser/8.5.0")>-1||C&&C<=6))}(jQuery,window);
|
@@ -15,4 +15,4 @@
|
|
15
15
|
# See: https://www.dotnetcurry.com/jquery/1069/authoring-jquery-plugins
|
16
16
|
# -----------------------------------------------------------------------------
|
17
17
|
*/
|
18
|
-
|
18
|
+
!function(t,s,n,e){"use strict";var i="deeplAPI",a={api:"free",auth_key:"",source_lang:"auto",target_lang:"DE",max_chars:!1,split_sentences:"1",preserve_formatting:"0",formality:"default",tag_handling:!1,outline_detection:!0,non_splitting_tags:!1,splitting_tags:!1,ignore_tags:!1,onInit:function(){},onBeforeTranslation:function(){},onAfterTranslation:function(){}};function g(s,n){this.element=s,this.settings=t.extend({},a,n),this.settings.elementID="#"+this.element.id,this.xhr=new XMLHttpRequest,this.init(this.settings)}t.extend(g.prototype,{init:function(s){var n,e,i,a=this,g=log4javascript.getLogger("deeplAPI.init"),r="/assets/data/private.json",o=s;g.info("\ninitialize: started"),t.ajax({url:r,dataType:"text",success:function(t){n=(i=JSON.parse(e=atob(t))).translators.deepl.auth_key},error:function(t,s,n){g.error("\nfailed to retrieve JSON data from: "+r)}});var l=setInterval(function(){void 0!==n&&(o.auth_key=n,a.translate(o),g.info("\ninitialize: finished"),g.info("\ntranslate: started"),clearInterval(l))},10)},prepareXHR:function(t){"free"===t.api?this.xhr.open("POST","https://api-free.deepl.com/v2/translate",!0):"pro"===t.api?this.xhr.open("POST","https://api.deepl.com/v2/translate",!0):this.xhr.open("POST","https://api-free.deepl.com/v2/translate",!0),this.xhr.setRequestHeader("Accept","*/*"),this.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")},prepareText:function(t){return t.split("\n")},translate:function(s){let n=log4javascript.getLogger("deeplAPI.translate"),e=["BG","CS","DA","DE","EL","EN-GB","EN-US","EN","ES","ET","FI","FR","HU","IT","JA","LT","LV","NL","PL","PT-PT","PT-BR","PT","RO","RU","SK","SL","SV","ZH"],i=["DE","FR","IT","ES","NL","PL","PT","PT-BR","RU"],a=s.targetElement,g=t(a).length,r="Translation failed.\nReason: ",o="Translation skipped.\nReason: ";var l,h,d,u,p,f,c={};c["400"]="Bad request. Please check error message and your parameters.",c["401"]="Authorization failed. Please supply a valid DeepL-Auth-Key.",c["403"]="Forbidden. The access to the requested resource is denied, because of insufficient access rights.",c["404"]="The requested resource could not be found.",c["413"]="The request size exceeds the limit.",c["415"]="The requested entries format specified in the Accept header is not supported.",c["429"]="Too many requests. Please wait and resend your request.",c["456"]="Quota exceeded. The maximum amount of glossaries has been reached.",c["500"]="Internal server error",c["503"]="Resource currently unavailable. Try again later.",c["529"]="Too many requests. Please wait and resend your request.";var m="",x="",T="",y="";if(!g)return n.error("\ntarget element does not exists: "+a),!1;l=a.includes(".")||a.includes("#")?a.substring(1):a,"TEXTAREA"===(h=t(a).get(0).nodeName)?T=this.element.value:"P"===h&&(x=this.element,T=t(a).text()),d=T.length,s.max_char&&T.length>s.max_char&&(T=T.substring(0,s.max_char-3)+" ...",n.info("\nlimit for source text (max: "+s.max_char+") reached: "+T.length)),y=this.prepareText(T),this.prepareXHR(s);for(var v="",_=0;_<y.length;_++)v+="&text="+y[_];if(this.xhr.onload=function(){if(4===this.readyState){if(200===this.status){for(var s=JSON.parse(this.responseText),e="",i=0;i<s.translations.length;i++)e+=s.translations[i].text,e+="\n";n.info("\ntranslation: finished"),"TEXTAREA"===h?t(a).val(e):"P"===h&&t(a).text(e)}else n.error("\nAPI returned "+this.status+": "+c[this.status])}},p=this.settings.source_lang,f=this.settings.target_lang,"auto"!==this.settings.source_lang&&(this.settings.source_lang=e.indexOf(this.settings.source_lang)>-1&&this.settings.source_lang),this.settings.target_lang=e.indexOf(this.settings.target_lang)>-1&&this.settings.target_lang,!this.settings.auth_key||!this.settings.source_lang||!this.settings.target_lang)return this.settings.auth_key||(u="NO AUTH key passed.",n.error("\ninvalid option found. "+u)),this.settings.source_lang||(u="WRONG source language passed: "+p,n.error("\ninvalid option found. "+u)),this.settings.target_lang||(u="WRONG target language passed: "+f,n.error("\ninvalid option found. "+u)),"TEXTAREA"===h?t(a).val(r+u):"P"===h&&t(a).text(r+u),!1;if(!d)return u="NO text found for translation","TEXTAREA"===h?t(a).val(o+u):"P"===h&&t(a).text(o+u),n.warn("\nno text found for translation"),!1;if("default"!==this.settings.formality&&(i.indexOf(this.settings.target_lang)>-1||n.warn("\nwrong language found for formality setting: "+this.settings.target_lang),this.settings.formality=i.indexOf(this.settings.target_lang)>-1?this.settings.formality:"default"),this.settings.tag_handling){var $=this.settings.tag_handling;this.settings.tag_handling=["xml"].indexOf(this.settings.tag_handling)>-1&&this.settings.tag_handling,this.settings.tag_handling?(this.settings.non_splitting_tags=!!this.settings.non_splitting_tags&&encodeURIComponent(this.settings.non_splitting_tags),this.settings.splitting_tags=!!this.settings.splitting_tags&&encodeURIComponent(this.settings.splitting_tags),this.settings.ignore_tags=!!this.settings.ignore_tags&&encodeURIComponent(this.settings.ignore_tags)):(n.error("\ninvalid option found for tag handling : "+$),n.warn("\ndisable option: tag_handling"),this.settings.non_splitting_tags&&(n.warn("\ndisable option: "+this.settings.non_splitting_tags),this.settings.non_splitting_tags=!1),this.settings.splitting_tags&&(n.warn("\ndisable option : "+this.settings.splitting_tags),this.settings.splitting_tags=!1),this.settings.ignore_tags&&(n.warn("\ndisable option: "+this.settings.ignore_tags),this.settings.ignore_tags=!1))}else this.settings.non_splitting_tags&&(n.warn("\ninvalid option found: "+this.settings.non_splitting_tags),this.settings.non_splitting_tags=!1),this.settings.splitting_tags&&(n.warn("\ninvalid option found: "+this.settings.splitting_tags),this.settings.splitting_tags=!1),this.settings.ignore_tags&&(n.warn("\ninvalid option found: "+this.settings.ignore_tags),this.settings.ignore_tags=!1);m="auth_key="+this.settings.auth_key,m+="auto"!==this.settings.source_lang?"&source_lang="+this.settings.source_lang:"",m+="&target_lang="+this.settings.target_lang,m+="default"!==this.settings.formality?"&formality="+this.settings.formality:"",m+=this.settings.split_sentences?"&split_sentences="+this.settings.formality:"",m+=this.settings.tag_handling?"&tag_handling="+this.settings.tag_handling:"&tag_handling=0",m+=this.settings.tag_handling&&this.settings.non_splitting_tags?"&non_splitting_tags="+this.settings.non_splitting_tags:"",m+=this.settings.tag_handling&&this.settings.splitting_tags?"&splitting_tags="+this.settings.splitting_tags:"",m+=this.settings.tag_handling&&this.settings.ignore_tags?"&ignore_tags="+this.settings.ignore_tags:"",m+=v,this.xhr.send(m)}}),t.fn[i]=function(s){var n,a=arguments;return s===e||"object"==typeof s?this.each(function(){t.data(this,"plugin_"+i)||t.data(this,"plugin_"+i,new g(this,s))}):"string"==typeof s&&"_"!==s[0]&&"init"!==s?(this.each(function(){var e=t.data(this,"plugin_"+i);e instanceof g&&"function"==typeof e[s]&&(n=e[s].apply(e,Array.prototype.slice.call(a,1))),"destroy"===s&&t.data(this,"plugin_"+i,null)}),n!==e?n:this):void 0}}(jQuery,window,document);
|
@@ -0,0 +1,266 @@
|
|
1
|
+
|
2
|
+
# Universal Icon Picker
|
3
|
+
|
4
|
+
![Language: Vanilla JS](https://img.shields.io/badge/-vanilla%20js-555?logo=JavaScript)
|
5
|
+
![Dependencies: none](https://img.shields.io/badge/dependencies-none-04B54E)
|
6
|
+
![GitHub file size in bytes](https://img.shields.io/github/size/migliori/universal-icon-picker/assets/js/universal-icon-picker.min.js)
|
7
|
+
[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html)
|
8
|
+
|
9
|
+
Nice small Javascript **Icon Picker for any icon library**
|
10
|
+
|
11
|
+
*Vanilla Javascript* - *No dependency* - *2.6ko gzipped*
|
12
|
+
|
13
|
+
Originally forked from [aesthetic-icon-picker](https://github.com/sh-sabbir/aesthetic-icon-picker/tree/20d6aa6134311b44891809cc852dbf247a029495)
|
14
|
+
|
15
|
+
## Demo
|
16
|
+
|
17
|
+
[https://universal-icon-picker.miglisoft.com](https://universal-icon-picker.miglisoft.com)
|
18
|
+
|
19
|
+
## Features
|
20
|
+
|
21
|
+
- Load any icon library from a single JSON file
|
22
|
+
- Load the icon fonts stylesheets from local files or CDNs
|
23
|
+
- Autoload the icon fonts (JSON + stylesheets) or load them only on request
|
24
|
+
- Add as many icon libraries as you like to each instance of the plugin
|
25
|
+
- Create multiple instances and triggers on the same page
|
26
|
+
- Change the icon libraries attached to an instance whenever you want
|
27
|
+
- Group icons of the same family by categories
|
28
|
+
- Load one or more styles from the same icon family individually
|
29
|
+
- Search / Filter icons
|
30
|
+
- Built-in `onSelect()` and `onReset()` callback functions
|
31
|
+
- Attach the Icon Picker to any HTML element
|
32
|
+
- Add your favourite icon libraries very easily
|
33
|
+
|
34
|
+
## Integrated icon libraries
|
35
|
+
|
36
|
+
### Font Awesome
|
37
|
+
|
38
|
+
- All
|
39
|
+
- Solid
|
40
|
+
- Regular
|
41
|
+
- Brands
|
42
|
+
|
43
|
+
### Material Icons
|
44
|
+
|
45
|
+
- Filled
|
46
|
+
- Outlined
|
47
|
+
- Round
|
48
|
+
- Sharp
|
49
|
+
- Two-tone
|
50
|
+
|
51
|
+
### Other icon libraries
|
52
|
+
|
53
|
+
- Bootstrap Icons
|
54
|
+
- Elegant Icons
|
55
|
+
- Feather Icons
|
56
|
+
- Fomantic UI Icons
|
57
|
+
- Foundation Icons
|
58
|
+
- Happy Icons
|
59
|
+
- Icomoon
|
60
|
+
- Open-iconic
|
61
|
+
- Tabler Icons
|
62
|
+
- Weather Icons
|
63
|
+
- Zondicons
|
64
|
+
|
65
|
+
## Installation
|
66
|
+
|
67
|
+
Clone / download or install with npm
|
68
|
+
|
69
|
+
```bash
|
70
|
+
npm install @migliori/universal-icon-picker@1.1.6
|
71
|
+
```
|
72
|
+
|
73
|
+
## Usage/Examples
|
74
|
+
|
75
|
+
```html
|
76
|
+
<!DOCTYPE html>
|
77
|
+
<html lang="en">
|
78
|
+
|
79
|
+
<head>
|
80
|
+
<meta charset="UTF-8">
|
81
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
82
|
+
</head>
|
83
|
+
|
84
|
+
<body>
|
85
|
+
<button id="selector" title="Open the icon picker">Click to open</button>
|
86
|
+
<script src="universal-icon-picker/assets/js/universal-icon-picker.min.js"></script>
|
87
|
+
|
88
|
+
<script>
|
89
|
+
document.addEventListener('DOMContentLoaded', function(event) {
|
90
|
+
var uip = new UniversalIconPicker('#selector', options);
|
91
|
+
});
|
92
|
+
</script>
|
93
|
+
|
94
|
+
</body>
|
95
|
+
|
96
|
+
</html>
|
97
|
+
```
|
98
|
+
|
99
|
+
## Options
|
100
|
+
|
101
|
+
| option | type | value |
|
102
|
+
|------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------|
|
103
|
+
| allowEmpty | *Boolean* | Add an empty icon selector in the beginning of each icon list.<br />Default: true |
|
104
|
+
| iconLibraries | *Array* | Array of JSON icon libraries in `assets/icons-libraries`.<br />Default: `null` |
|
105
|
+
| iconLibrariesCss | *Array* | Array of CSS icon libraries in `assets/stylesheets` or from any CDN. Leave empty if your page already loads them.<br />Default: `null` |
|
106
|
+
| mode | *String* | `'autoload'` or `'onrequest'`. Default: `'autoload'` |
|
107
|
+
| onReset | *Function* | Callback function when the user clicks the `reset` button.<br />Default: `null` |
|
108
|
+
| onSelect | *Function* | Callback function when the user clicks the `insert` button.<br />Default: `null` |
|
109
|
+
| resetSelector | *String* | Selector for the HTML *reset* button on your page.<br />Default: `null` |
|
110
|
+
| loadCustomCss | *Boolean* | If true, universal icon picker does **not** load its own css allowing for custom css. Default: `false` |
|
111
|
+
## Configuring loaded assets
|
112
|
+
|
113
|
+
Universtal icon picker will retrieve some assets from the server based on where ths script itself was retrieved from (`assets/js/universal-icon-picker.min.js`) :
|
114
|
+
|
115
|
+
1. Icons from the `assets/images`folder
|
116
|
+
2. Icon library json files from the `assets/icon-libraries` folder
|
117
|
+
|
118
|
+
Also, the naming of the library names in the sidebar is derived from their file name in `assets/icon-libraries`.
|
119
|
+
|
120
|
+
In most cases this will just work fine. For some installations, however, you need to adjust the exact paths from where to retrieve those assets.
|
121
|
+
|
122
|
+
### Configuring icon assets
|
123
|
+
|
124
|
+
Three option settings overwrite the paths for the three icons used:
|
125
|
+
|
126
|
+
| option | type | value |
|
127
|
+
|------------------|----------|------------------------------------------------------|
|
128
|
+
| closeUrl | *String* | Path of the close button icon (some type of "x") |
|
129
|
+
| starUrl | *String* | Path of the star icon for the side bar |
|
130
|
+
| searchUrl | *String* | Path of the magnifying glass icon for the search bar |
|
131
|
+
|
132
|
+
### Configuring library assets
|
133
|
+
|
134
|
+
Library assets are defined by `iconLibraries`. If the library does include a slash (`/`) it is assumed to be an URL or path of the library's json file. If it does not include a slash the library is searched for in the `assets/icon-libraries` folder.
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
### Example
|
139
|
+
|
140
|
+
```javascript
|
141
|
+
const options = {
|
142
|
+
iconLibraries: [
|
143
|
+
'happy-icons.min.json',
|
144
|
+
'font-awesome.min.json'
|
145
|
+
],
|
146
|
+
iconLibrariesCss: [
|
147
|
+
'happy-icons.min.css',
|
148
|
+
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css'
|
149
|
+
],
|
150
|
+
resetSelector: '#uip-reset-btn',
|
151
|
+
onSelect: function(jsonIconData) {
|
152
|
+
document.getElementById('output-icon').innerHTML = jsonIconData.iconMarkup;
|
153
|
+
|
154
|
+
console.log(jsonIconData);
|
155
|
+
/* will output something like:
|
156
|
+
{
|
157
|
+
"libraryId": "fa-solid",
|
158
|
+
"libraryName": "fontAwesome",
|
159
|
+
"iconHtml": "<i class=\"fa-solid fa-oil-can\"></i>",
|
160
|
+
"iconMarkup": "<i class="fa-solid fa-oil-can"></i>",
|
161
|
+
"iconClass": "fa-solid fa-oil-can",
|
162
|
+
"iconText": ""
|
163
|
+
}
|
164
|
+
*/
|
165
|
+
},
|
166
|
+
onReset: function() {
|
167
|
+
document.getElementById('output-icon').innerHTML = '';
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
// Instanciate the Icon Picker
|
172
|
+
var uip = new UniversalIconPicker('#selector', options);
|
173
|
+
```
|
174
|
+
|
175
|
+
See the source code of the [demo](https://universal-icon-picker.miglisoft.com) for more examples
|
176
|
+
|
177
|
+
## Public methods
|
178
|
+
|
179
|
+
- ### setOptions(options)
|
180
|
+
|
181
|
+
Update the *options* of an Icon Picker instance
|
182
|
+
|
183
|
+
Example:
|
184
|
+
|
185
|
+
```javascript
|
186
|
+
// Instanciate the Icon Picker
|
187
|
+
|
188
|
+
var uip = new UniversalIconPicker('#selector', options);
|
189
|
+
|
190
|
+
// later, change the icon libraries
|
191
|
+
uip.setOptions({
|
192
|
+
iconLibraries: ['weather-icons.min.json'],
|
193
|
+
iconLibrariesCss: ['weather-icons.min.css']
|
194
|
+
});
|
195
|
+
|
196
|
+
```
|
197
|
+
|
198
|
+
Live demo: [https://universal-icon-picker.miglisoft.com/demo/demo-4.html](https://universal-icon-picker.miglisoft.com/demo/demo-4.html)
|
199
|
+
|
200
|
+
## Change / Upgrade Fontawesome version & icons
|
201
|
+
|
202
|
+
A built-in tool is provided to get the Fontawesome icon list from the Fontawesome API and for Bootstrap icons to scrape the Bootstrap icon list from their website.
|
203
|
+
|
204
|
+
To choose the Fontawesome version:
|
205
|
+
|
206
|
+
1. open `tools/fontawesome-icons-list.html` in your code editor and change the version number:
|
207
|
+
|
208
|
+
```html
|
209
|
+
// set the fontawesome version version here
|
210
|
+
const fontawesomeVersion = '6.0.0';
|
211
|
+
```
|
212
|
+
|
213
|
+
2. open it in your browser to retrieve the JSON list
|
214
|
+
|
215
|
+
3. save the complete list in `assets/icon-libraries/font-awesome.json` and each style (brands, regular, solid) in the appropriate json file (`assets/icon-libraries/font-awesome-brands.json`, ...)
|
216
|
+
|
217
|
+
4. minify the json files to `.min.json`
|
218
|
+
|
219
|
+
For Bootstrap icons use `tools/bootstrap-icons-list.html`. It scrapes the latest version from the website. You will need to add the version number manually to the generated json file.
|
220
|
+
|
221
|
+
## Screenshots
|
222
|
+
|
223
|
+
![Universal Icon Picker Screenshot](https://universal-icon-picker.miglisoft.com/demo/assets/images/screenshot.png)
|
224
|
+
|
225
|
+
## Contributing
|
226
|
+
|
227
|
+
Contributions are always welcome!
|
228
|
+
|
229
|
+
Please contact us for any improvement suggestions or send your pull requests
|
230
|
+
|
231
|
+
## Changelog
|
232
|
+
|
233
|
+
2022/02/23
|
234
|
+
|
235
|
+
- First release
|
236
|
+
- fix icon selections when changing the icon library programatically with setOptions()
|
237
|
+
- update README
|
238
|
+
|
239
|
+
2022/02/26
|
240
|
+
|
241
|
+
- detect absolute css urls starting without protocol ; ie: '//domain.com/my-font.css'
|
242
|
+
- allow more complex trigger button selectors ; ie: '#div button["name=iconpicker-opener"]'
|
243
|
+
- add the "onBeforeOpen" option
|
244
|
+
- add the "onBeforeOpen" demo (demo 5)
|
245
|
+
|
246
|
+
2022/11/18
|
247
|
+
|
248
|
+
- update npm package
|
249
|
+
|
250
|
+
2023/02/09
|
251
|
+
|
252
|
+
- add Fomantic UI icons
|
253
|
+
|
254
|
+
2023/03/09
|
255
|
+
|
256
|
+
- add loadCustomCss option
|
257
|
+
- Double click inserts icon
|
258
|
+
|
259
|
+
|
260
|
+
## License
|
261
|
+
|
262
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
263
|
+
|
264
|
+
## Credits
|
265
|
+
|
266
|
+
Thanks to Sabbir for his [Aesthetic Icon Picker](https://github.com/sh-sabbir/aesthetic-icon-picker/tree/20d6aa6134311b44891809cc852dbf247a029495), which gave me a clean & strong base code for this project.
|