j1-template 2024.0.3 → 2024.1.1
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/modules/searcher/procedures/topsearch.proc +1 -1
- data/assets/data/banner.html +4 -4
- data/assets/data/cookieconsent.html +270 -175
- data/assets/data/galeries.html +10 -5
- data/assets/data/iso-639-language-codes-flags.json +179 -169
- data/assets/data/masonry.html +18 -12
- data/assets/data/translator.html +124 -0
- data/assets/themes/j1/adapter/js/comments.js +420 -418
- data/assets/themes/j1/adapter/js/cookieConsent.js +462 -451
- data/assets/themes/j1/adapter/js/gallery.js +11 -0
- data/assets/themes/j1/adapter/js/j1.js +32 -18
- data/assets/themes/j1/adapter/js/navigator.js +2 -0
- data/assets/themes/j1/adapter/js/translator.js +2 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +5 -14
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/fonts/fontawesome_5/LICENSE.txt +2 -2
- data/assets/themes/j1/core/js/template.js +283 -224
- data/assets/themes/j1/core/js/template.min.js +5 -5
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/comments/hyvor/css/hyvor.css +2105 -0
- data/assets/themes/j1/modules/comments/hyvor/css/themes/uno.css +18 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +8 -2
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -1
- data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.css +34 -2
- data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.min.css +1 -1
- data/assets/themes/j1/modules/lightGallery/js/lightgallery.js +116 -101
- data/assets/themes/j1/modules/lightGallery/js/lightgallery.min.js +2 -1
- data/assets/themes/j1/modules/lightGallery/js/parser/webvtt/LICENSE.md +44 -0
- data/assets/themes/j1/modules/lightGallery/js/parser/webvtt/README.md +37 -0
- data/assets/themes/j1/modules/lightGallery/js/parser/webvtt/parser.js +890 -0
- data/assets/themes/j1/modules/lightGallery/js/parser/webvtt/parser.min.js +8 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js +166 -34
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js +11 -3
- data/assets/themes/j1/modules/msDropdown/js/msDropdown.js +1 -1
- data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js +4 -1
- data/assets/themes/j1/modules/tiktocPlayer/js/player.min.js +18 -0
- data/assets/themes/j1/modules/translator/js/translator.js +91 -80
- data/assets/themes/j1/modules/translator/js/translator.min.js +2 -1
- data/assets/themes/j1/modules/videojs/css/plugins/zoom.css +1 -1
- data/assets/themes/j1/modules/videojs/css/themes/uno.css +19 -1
- data/assets/themes/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/themes/j1/modules/videojs/js/plugins/zoom.js +2 -2
- data/assets/themes/j1/modules/videojs/js/plugins/zoom.min.js +2 -2
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/README.md +8 -8
- data/lib/starter_web/_config.yml +2 -1
- data/lib/starter_web/_data/blocks/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
- data/lib/starter_web/_data/blocks/footer.yml +1 -1
- data/lib/starter_web/_data/blocks/panel.yml +3 -3
- data/lib/starter_web/_data/layouts/collection.yml +6 -6
- data/lib/starter_web/_data/layouts/default.yml +6 -6
- data/lib/starter_web/_data/layouts/home.yml +2 -2
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +6 -6
- data/lib/starter_web/_data/layouts/page.yml +6 -6
- data/lib/starter_web/_data/layouts/post.yml +6 -6
- data/lib/starter_web/_data/layouts/raw.yml +6 -6
- data/lib/starter_web/_data/modules/analytics.yml +1 -1
- data/lib/starter_web/_data/modules/carousel.yml +2 -2
- data/lib/starter_web/_data/modules/comments.yml +4 -1
- data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/comments.yml +0 -6
- data/lib/starter_web/_data/modules/defaults/cookieconsent.de.yml +104 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.en.yml +104 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +1 -8
- data/lib/starter_web/_data/modules/defaults/gallery.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lunr.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/translator.en.yml +138 -0
- data/lib/starter_web/_data/modules/defaults/translator.yml +22 -20
- data/lib/starter_web/_data/modules/gallery.yml +430 -273
- data/lib/starter_web/_data/resources.yml +31 -4
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/asciidoctor/audio-block.rb +85 -0
- data/lib/starter_web/_plugins/asciidoctor/video-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +34 -8
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/audio/sound-effects/ambient-piano.mp3 +0 -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/brigitta-schneiter.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/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/isaac-davis.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/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/admin-dashboard-bootstrap-1280x600.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/franck-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/joanna-kosinska-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/katie-moum-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/leon-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lunr-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/machine-generator-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-krisetya-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske4-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthew-dockery-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/no-time-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/rirri-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/shubham-dhage-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/shutterstock_sponsor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/szabo-viktor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/themes-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/tldr-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/yellow-cactus-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-4.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-5.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-6.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-7.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-8.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/andreas-brucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-2_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/luca-bravo_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/thomas-tucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/andreas-brucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/banter-snaps_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/emmad-mazhari_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/ethan-brooke_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/federico-rizzarelli_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/gints-gailis_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/johan-mouchet_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/luca-bravo_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/steven-diaz_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/image_01.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/image_02.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/image_03.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/image_04.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-4.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-5.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-6.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-7.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_1/cat-8.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_10/panorama-bg-slide1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_10/panorama-bg-slide2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_2/andreas-brucker.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_2/denys-nevozhai-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_2/denys-nevozhai-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_2/luca-bravo.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_2/thomas-tucker.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_3/ms-free-food-family-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_3/ms-free-food-hamburger.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_3/ms-free-food-restaurant.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-1-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-2-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-3-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-4-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-4.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-5-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-5.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-6-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-6.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-7-100x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_4/ms-free-animals-7.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-family-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-family-2-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-family-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-family-3-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-family-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-family.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-hamburger-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-hamburger.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-pizza-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-pizza.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-table-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-table.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-woman-hand-140x80.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_5/ms-free-food-woman-hand.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_6_7/6876385555_74a0d7d7ee_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_6_7/6876387431_d86867a3d9_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_6_7/6876388511_d618d53455_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_6_7/6876389463_db27a377e1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_6_7/6876390339_2e4dd9dbbb_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_8/postslider-5-img-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_8/postslider-5-img-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_8/postslider-5-img-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_8/postslider6-bg-slide2-1024x622.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_9/1-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_9/5-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_9/6-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_9/6-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_9/8-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/slider_9/8.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/wp-examples/ms-free-business-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/wp-examples/ms-free-business-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/masterslider/wp-examples/ms-free-business-3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/blog-post-navigator-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/clipboard-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/comments-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/cookie-consent-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/desktop-web-navigation-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/fab-1280x500.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/full-text-search-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/intro-panel-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/master-header-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/nav-module-1280x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/nbi-barchart-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/teaser-banner-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/translator-1280x800.jpg +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/assets/images/pages/panels/florian-olivo-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/panels/modules-apps-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/panels/no-time-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/panels/responsive-text-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/panels/the-place-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/adrien-olichon-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/alejandro-barba-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/andre-francois-mckenzie-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/andreas-steger-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/ansgar-scheffold-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/ben-white-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/craig-sybert-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/danielle-cerullo-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/deb-dowd-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/halgatewood-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/hans-eiskonen-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/ian-barsby-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/ivan-aleksic-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/markus-krisetya-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/markus-spiske-6-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/markus-winkler-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/markus-winkler-2-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/michelle-cassar-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/mika-baumeister-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/posts/science-in-hd-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-2.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-2.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_input.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_results.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/bootstrap-1920x1000-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/cards-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/emojies-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/icon-fonts-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/images-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/puzzle-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/tables-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/themes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/typography-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/skeleton/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/skeleton/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/skeleton/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/skeleton/library-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/skeleton/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/skeleton/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/gianna_1.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/gianna_2.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/gianna_3.jpg +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/solo-sex.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/video2-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_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_james_carpool_caraoke_poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_michelle-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/videojs-poster.png +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_nl_2021/video_poster.jpg +0 -0
- data/lib/starter_web/assets/videos/vtt/captions/!readme +7 -0
- data/lib/starter_web/assets/videos/vtt/captions/video1.vtt +31 -0
- data/lib/starter_web/assets/videos/vtt/chapters/!readme +5 -0
- data/lib/starter_web/assets/videos/vtt/chapters/video1.vtt +23 -0
- data/lib/starter_web/assets/videos/vtt/descriptions/!readme +7 -0
- data/lib/starter_web/assets/videos/vtt/subtitles/!readme +6 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2023-10-18-url-types.adoc +17 -14
- data/lib/starter_web/index.html +2 -3
- data/lib/starter_web/package.json +2 -34
- data/lib/starter_web/pages/public/features/general.adoc +4 -4
- data/lib/starter_web/pages/public/features/template.adoc +15 -14
- data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +3 -3
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_bootstrap.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +68 -47
- data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +21 -30
- data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +19 -14
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +58 -54
- data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +43 -34
- data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +17 -18
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +4 -11
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +44 -14
- data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +29 -192
- data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +33 -29
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +5 -2
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +11 -4
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +19 -14
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +17 -12
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +12 -6
- data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +4 -3
- data/lib/starter_web/pages/public/panels/roundtrip/100_present_images/lightbox-image-1.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/100_present_images/lightbox-image-2.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/100_present_images/lightbox-image-3.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/100_present_images/lightbox-thumb-1.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/100_present_images/lightbox-thumb-2.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/100_present_images/lightbox-thumb-3.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/410_bs_modals_extentions/avatar.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/410_bs_modals_extentions/marc.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/600_quicksearch/quicksearch_icon.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/600_quicksearch/quicksearch_input.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/600_quicksearch/quicksearch_results.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/bootstrap-1920x1000-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/cards-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/emojies-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/icon-fonts-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/images-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/puzzle-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/tables-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/themes-1920x1280.jpg +0 -0
- data/lib/starter_web/pages/public/panels/roundtrip/typography-1920x1280-bw.jpg +0 -0
- metadata +53 -39
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-autoplay.css +0 -67
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-comments.css +0 -157
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-fullscreen.css +0 -32
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-medium-zoom.css +0 -40
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-pager.css +0 -115
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-rotate.css +0 -74
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-share.css +0 -168
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-thumbnail.css +0 -133
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-video.css +0 -169
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-zoom.css +0 -141
- data/lib/starter_web/assets/images/modules/attics/1920x1280/core_web_vitals_best.png +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/colored/image_01.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon-800x200.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_input-800x200.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_results_jekyll-.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_results_jekyll.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/themes-menu-1280x800.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/_video_james_carpool_caraoke_poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1.subtitles.vtt +0 -39
- data/lib/starter_web/assets/videos/gallery/html5/video2-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/303/237video2-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/video1-poster.1920..jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video1-thumb.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video2-thumb.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.1920.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_james_carpool_caraoke.1920.jpg +0 -0
- data/lib/starter_web/pages/public/tools/previewer/iframer_documents/iframe.content.html +0 -51
- data/lib/starter_web/pages/public/tools/previewer/iframer_documents/iframe.docsearch.info.html +0 -84
- data/lib/starter_web/pages/public/tools/previewer/preview_docsearch.adoc +0 -92
- data/lib/starter_web/pages/public/tools/previewer/preview_iframer.adoc +0 -106
- /data/lib/starter_web/_data/layouts/custom/{readme → !readme} +0 -0
- /data/lib/starter_web/_includes/custom/static/{readme → !readme} +0 -0
- /data/lib/starter_web/_includes/custom/templates/{readme → !readme} +0 -0
- /data/lib/starter_web/assets/videos/{tiktok → headers/tiktok}/einhorn.jpg +0 -0
- /data/lib/starter_web/assets/videos/{tiktok → headers/tiktok}/waluschka.jpg +0 -0
@@ -4840,7 +4840,9 @@ module.exports = function parseContent(options) {
|
|
4840
4840
|
const voiceUserDefault = 'Google UK English Female';
|
4841
4841
|
const voiceChromeDefault = 'Google US English';
|
4842
4842
|
const ignoreProvider = 'Microsoft';
|
4843
|
-
const
|
4843
|
+
const sourceLanguage = document.getElementsByTagName("html")[0].getAttribute("lang");
|
4844
|
+
var defaultLanguage = '';
|
4845
|
+
var navigatorLanguage = navigator.language || navigator.userLanguage;
|
4844
4846
|
var currentTranslation = getCookie('googtrans');
|
4845
4847
|
var scrollBlockOffset = 100;
|
4846
4848
|
var customOptions = {};
|
@@ -4872,50 +4874,57 @@ module.exports = function parseContent(options) {
|
|
4872
4874
|
var scanFinished;
|
4873
4875
|
var voiceLanguageGoogleDefault = {
|
4874
4876
|
'de-DE': 'Google Deutsch',
|
4875
|
-
'en-US':
|
4877
|
+
// 'en-US': 'Google US English',
|
4876
4878
|
'en-GB': 'Google UK English Female',
|
4877
4879
|
'es-ES': 'Google español',
|
4878
4880
|
'fr-FR': 'Google français',
|
4879
4881
|
// 'hi-IN': 'Google हिन्दी',
|
4880
4882
|
// 'id-ID': 'Google Bahasa Indonesia',
|
4881
|
-
'it-IT': 'Google italiano'
|
4883
|
+
'it-IT': 'Google italiano'
|
4882
4884
|
// 'jp-JP': 'Google 日本語',
|
4883
4885
|
// 'ko-KR': 'Google 한국의',
|
4884
|
-
'nl-NL':
|
4885
|
-
'pl-PL':
|
4886
|
+
// 'nl-NL': 'Google Nederlands',
|
4887
|
+
// 'pl-PL': 'Google polski',
|
4886
4888
|
// 'pt-BR': 'Google português do Brasil',
|
4887
|
-
'pt-PT':
|
4889
|
+
// 'pt-PT': 'Google português',
|
4888
4890
|
// 'ru-RU': 'Google русский',
|
4889
4891
|
// 'zh-CN': 'Google 普通话(中国大陆)',
|
4890
4892
|
};
|
4891
4893
|
var voiceLanguageMicrosoftDefault = {
|
4892
|
-
'sq-AL':
|
4893
|
-
'ar-EG':
|
4894
|
-
'bg-BG':
|
4895
|
-
'zh-CN':
|
4896
|
-
'hr-HR':
|
4897
|
-
'cs-CZ':
|
4898
|
-
'da-DK':
|
4899
|
-
'nl-NL':
|
4894
|
+
// 'sq-AL': 'Microsoft Anila Online (Natural) - Albanian (Albania)',
|
4895
|
+
// 'ar-EG': 'Microsoft Salma Online (Natural) - Arabic (Egypt)',
|
4896
|
+
// 'bg-BG': 'Microsoft Kalina Online (Natural) - Bulgarian (Bulgaria)',
|
4897
|
+
// 'zh-CN': 'Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)',
|
4898
|
+
// 'hr-HR': 'Microsoft Gabrijela Online (Natural) - Croatian (Croatia)',
|
4899
|
+
// 'cs-CZ': 'Microsoft Antonin Online (Natural) - Czech (Czech)',
|
4900
|
+
// 'da-DK': 'Microsoft Christel Online (Natural) - Danish (Denmark)',
|
4901
|
+
// 'nl-NL': 'Microsoft Colette Online (Natural) - Dutch (Netherlands)',
|
4900
4902
|
'en-GB': 'Microsoft Libby Online (Natural) - English (United Kingdom)',
|
4901
|
-
'en-US':
|
4902
|
-
'et-EE':
|
4903
|
-
'
|
4903
|
+
// 'en-US': 'Microsoft Aria Online (Natural) - English (United States)',
|
4904
|
+
// 'et-EE': 'Microsoft Anu Online (Natural) - Estonian (Estonia)',
|
4905
|
+
'es-ES': 'Microsoft Elvira Online (Natural) - Spanish (Spain)',
|
4906
|
+
// 'fi-FI': 'Microsoft Noora Online (Natural) - Finnish (Finland)',
|
4904
4907
|
'fr-FR': 'Microsoft Denise Online (Natural) - French (France)',
|
4905
|
-
'ka-GE':
|
4908
|
+
// 'ka-GE': 'Microsoft Giorgi Online (Natural) - Georgian (Georgia)',
|
4906
4909
|
'de-DE': 'Microsoft Katja Online (Natural) - German (Germany)',
|
4907
|
-
'el-GR':
|
4908
|
-
'he-IL':
|
4909
|
-
'hi-IN':
|
4910
|
-
'hu-HU':
|
4911
|
-
'it-IT': 'Microsoft Elsa Online (Natural) - Italian (Italy)'
|
4912
|
-
'
|
4910
|
+
// 'el-GR': 'Microsoft Athina Online (Natural) - Greek (Greece)',
|
4911
|
+
// 'he-IL': 'Microsoft Avri Online (Natural) - Hebrew (Israel)',
|
4912
|
+
// 'hi-IN': 'Microsoft Madhur Online (Natural) - Hindi (India)',
|
4913
|
+
// 'hu-HU': 'Microsoft Noemi Online (Natural) - Hungarian (Hungary)',
|
4914
|
+
'it-IT': 'Microsoft Elsa Online (Natural) - Italian (Italy)'
|
4915
|
+
// 'pl-PL' : 'Microsoft Zofia Online (Natural) - Polish (Poland)',
|
4916
|
+
// 'ja-JP': 'Microsoft Nanami Online (Natural) - Japanese (Japan)',
|
4913
4917
|
};
|
4914
4918
|
var voiceLanguageFirefoxDefault = {
|
4915
|
-
'en-GB': 'Microsoft Hazel - English (United Kingdom)
|
4916
|
-
'en-US':
|
4917
|
-
'de-DE': 'Microsoft Katja
|
4919
|
+
'en-GB': 'Microsoft Hazel - English (United Kingdom)',
|
4920
|
+
// 'en-US': 'Microsoft Zira Desktop - English (United States)',
|
4921
|
+
'de-DE': 'Microsoft Katja - German (Germany)'
|
4918
4922
|
};
|
4923
|
+
if (sourceLanguage == 'en') {
|
4924
|
+
defaultLanguage = sourceLanguage + '-' + 'GB';
|
4925
|
+
} else {
|
4926
|
+
defaultLanguage = sourceLanguage + '-' + sourceLanguage.toUpperCase();
|
4927
|
+
}
|
4919
4928
|
|
4920
4929
|
// ---------------------------------------------------------------------------
|
4921
4930
|
// Internal functions
|
@@ -5024,14 +5033,24 @@ module.exports = function parseContent(options) {
|
|
5024
5033
|
|
5025
5034
|
// This populates the "voices" array with objects that represent the
|
5026
5035
|
// available voices in the current browser. Each object has two
|
5027
|
-
// properties: name and language.
|
5028
|
-
//
|
5036
|
+
// properties: name and language.
|
5037
|
+
// NOTE: the array is loaded asynchronously.
|
5029
5038
|
//
|
5030
5039
|
function populateVoiceList() {
|
5040
|
+
let systemVoicesText = 'systemVoices START - ';
|
5031
5041
|
var systemVoices = speechSynthesis.getVoices();
|
5032
5042
|
for (var i = 0; i < systemVoices.length; i++) {
|
5033
5043
|
voices.push(new voiceObj(systemVoices[i].name, systemVoices[i].lang));
|
5044
|
+
// Collect available voices as text (for reference)
|
5045
|
+
//
|
5046
|
+
if (systemVoices[i].lang.includes("en") || systemVoices[i].lang.includes("de-DE") || systemVoices[i].lang.includes("es-ES") || systemVoices[i].lang.includes("pl") || systemVoices[i].lang.includes("nl")) {
|
5047
|
+
systemVoicesText += systemVoices[i].lang.toString();
|
5048
|
+
systemVoicesText += ' : ';
|
5049
|
+
systemVoicesText += systemVoices[i].name.toString();
|
5050
|
+
systemVoicesText += '\n';
|
5051
|
+
}
|
5034
5052
|
}
|
5053
|
+
systemVoicesText += " - systemVoices END.";
|
5035
5054
|
} // END populateVoiceList
|
5036
5055
|
|
5037
5056
|
populateVoiceList();
|
@@ -5118,32 +5137,35 @@ module.exports = function parseContent(options) {
|
|
5118
5137
|
|
5119
5138
|
// Default values
|
5120
5139
|
//
|
5121
|
-
voiceTags['a'] = new voiceTag('
|
5122
|
-
voiceTags['q']
|
5123
|
-
voiceTags['ol']
|
5124
|
-
voiceTags['ul']
|
5125
|
-
voiceTags['dl']
|
5126
|
-
voiceTags['dt'] = new voiceTag(
|
5127
|
-
voiceTags['img'] = new voiceTag('
|
5128
|
-
voiceTags['table'] = new voiceTag('
|
5129
|
-
voiceTags['card-header'] = new voiceTag(
|
5130
|
-
voiceTags['.doc-example'] = new voiceTag('
|
5131
|
-
voiceTags['.admonitionblock'] = new voiceTag('
|
5132
|
-
voiceTags['.listingblock'] = new voiceTag('
|
5133
|
-
voiceTags['.gist'] = new voiceTag('
|
5134
|
-
voiceTags['.slider'] = new voiceTag('
|
5135
|
-
voiceTags['.
|
5136
|
-
voiceTags['.
|
5137
|
-
voiceTags['.
|
5138
|
-
voiceTags['.
|
5139
|
-
voiceTags['.
|
5140
|
-
voiceTags['.
|
5141
|
-
voiceTags['.
|
5142
|
-
voiceTags['.
|
5143
|
-
voiceTags['.
|
5144
|
-
voiceTags['
|
5145
|
-
voiceTags['
|
5146
|
-
voiceTags['
|
5140
|
+
voiceTags['a'] = new voiceTag('Link, ', pause_spoken);
|
5141
|
+
// voiceTags['q'] = new voiceTag(pause_spoken, pause_spoken);
|
5142
|
+
// voiceTags['ol'] = new voiceTag('List element, ', pause_spoken);
|
5143
|
+
// voiceTags['ul'] = new voiceTag('List element, ', pause_spoken);
|
5144
|
+
// voiceTags['dl'] = new voiceTag('List element, ', pause_spoken);
|
5145
|
+
voiceTags['dt'] = new voiceTag(pause_spoken, pause_spoken);
|
5146
|
+
voiceTags['img'] = new voiceTag('Image element, ', pause_spoken);
|
5147
|
+
voiceTags['table'] = new voiceTag('Table element, ', pause_spoken);
|
5148
|
+
voiceTags['card-header'] = new voiceTag(pause_spoken, pause_spoken);
|
5149
|
+
voiceTags['.doc-example'] = new voiceTag('Example element, ', pause_spoken);
|
5150
|
+
voiceTags['.admonitionblock'] = new voiceTag('Attention element, ', pause_spoken);
|
5151
|
+
voiceTags['.listingblock'] = new voiceTag('Text element, ', pause_spoken);
|
5152
|
+
voiceTags['.gist'] = new voiceTag('Gist element, ', pause_spoken);
|
5153
|
+
voiceTags['.slider'] = new voiceTag('Slider element, ', pause_spoken);
|
5154
|
+
voiceTags['.modal'] = new voiceTag('Info element, ', pause_spoken);
|
5155
|
+
voiceTags['.masonry'] = new voiceTag('Masonry element, ', pause_spoken);
|
5156
|
+
voiceTags['.lightbox-block'] = new voiceTag('Lightbox element, ', pause_spoken);
|
5157
|
+
voiceTags['.gallery'] = new voiceTag('Gallery element, ', pause_spoken);
|
5158
|
+
voiceTags['.audioblock'] = new voiceTag('Audio element, ', pause_spoken);
|
5159
|
+
voiceTags['.videoblock'] = new voiceTag('Video element, ', pause_spoken);
|
5160
|
+
voiceTags['.videojs-player'] = new voiceTag('Video element, ', pause_spoken);
|
5161
|
+
voiceTags['.youtube-player'] = new voiceTag('Video element, ', pause_spoken);
|
5162
|
+
voiceTags['.dailymotion-player'] = new voiceTag('Video element, ', pause_spoken);
|
5163
|
+
voiceTags['.vimeo-player'] = new voiceTag('Video element, ', pause_spoken);
|
5164
|
+
voiceTags['.wistia-player'] = new voiceTag('Video element, ', pause_spoken);
|
5165
|
+
voiceTags['figure'] = new voiceTag('Figure element, ', pause_spoken);
|
5166
|
+
voiceTags['parallax-quoteblock'] = new voiceTag('Quote element, ', pause_spoken);
|
5167
|
+
voiceTags['blockquote'] = new voiceTag('Quote element, ', pause_spoken);
|
5168
|
+
voiceTags['quoteblock'] = new voiceTag('Quote element, ', pause_spoken);
|
5147
5169
|
ignoreTags = ['audio', 'button', 'canvas', 'code', 'del', 'pre', 'dialog', 'embed', 'form', 'head', 'iframe', 'meter', 'nav', 'noscript', 'object', 'picture', 'script', 'select', 'style', 'textarea', 'video'];
|
5148
5170
|
|
5149
5171
|
// TODO: NOT working for multiple 'tab' windows
|
@@ -5179,14 +5201,14 @@ module.exports = function parseContent(options) {
|
|
5179
5201
|
//
|
5180
5202
|
var processSpeech = setInterval(function () {
|
5181
5203
|
if (scanFinished) {
|
5182
|
-
// Cycle through all the elements in the original
|
5204
|
+
// Cycle through all the elements in the original $
|
5183
5205
|
// selector, process and clean them one at a time, and
|
5184
5206
|
// continually append it to the variable "toSpeak".
|
5185
5207
|
//
|
5186
5208
|
_this.each(function () {
|
5187
5209
|
obj = $(this).clone(); // clone the DOM node and its descendants of what the user wants spoken
|
5188
5210
|
processed = processDOMelements(obj); // process and manipulate DOM tree of this clone
|
5189
|
-
processed =
|
5211
|
+
processed = $(processed).html(); // convert the result of all that to a string
|
5190
5212
|
finished = cleanDOMelements(processed); // do some text manipulation
|
5191
5213
|
toSpeak = finished;
|
5192
5214
|
});
|
@@ -5358,8 +5380,8 @@ module.exports = function parseContent(options) {
|
|
5358
5380
|
//
|
5359
5381
|
words = wordCount(subText);
|
5360
5382
|
if (words < wordsMin) {
|
5361
|
-
return undefined;
|
5362
5383
|
console.warn('no search possible on this fraction of subText');
|
5384
|
+
return undefined;
|
5363
5385
|
} else {
|
5364
5386
|
return subText;
|
5365
5387
|
}
|
@@ -5488,8 +5510,8 @@ module.exports = function parseContent(options) {
|
|
5488
5510
|
// Remove DOM objects listed in the "ignoreTags" array
|
5489
5511
|
//
|
5490
5512
|
for (var prop in ignoreTags) {
|
5491
|
-
|
5492
|
-
|
5513
|
+
$(clone).find(ignoreTags[prop]).addBack(ignoreTags[prop]).not('[data-speak2me-recognize]').each(function () {
|
5514
|
+
$(this).html('');
|
5493
5515
|
});
|
5494
5516
|
}
|
5495
5517
|
;
|
@@ -5499,8 +5521,8 @@ module.exports = function parseContent(options) {
|
|
5499
5521
|
//
|
5500
5522
|
if (ignoreTagsUser.length > 0) {
|
5501
5523
|
for (var prop in ignoreTagsUser) {
|
5502
|
-
|
5503
|
-
|
5524
|
+
$(clone).find(ignoreTagsUser[prop]).addBack(ignoreTagsUser[prop]).not('[data-speak2me-recognize]').each(function () {
|
5525
|
+
$(this).html('');
|
5504
5526
|
});
|
5505
5527
|
}
|
5506
5528
|
;
|
@@ -5509,41 +5531,41 @@ module.exports = function parseContent(options) {
|
|
5509
5531
|
|
5510
5532
|
// Remove DOM objects marked in the HTML code by "data-speak2me-ignore".
|
5511
5533
|
//
|
5512
|
-
|
5513
|
-
|
5534
|
+
$(clone).find('[data-speak2me-ignore]').addBack('[data-speak2me-ignore]').each(function () {
|
5535
|
+
$(this).html('');
|
5514
5536
|
});
|
5515
5537
|
|
5516
5538
|
// Remove DOM objects in the HTML code mareked by class "speak2me-ignore".
|
5517
5539
|
//
|
5518
|
-
|
5519
|
-
|
5540
|
+
$(clone).find('.speak2me-ignore').addBack('[data-speak2me-ignore]').each(function () {
|
5541
|
+
$(this).html('');
|
5520
5542
|
});
|
5521
5543
|
|
5522
5544
|
// Search for prepend data specified in the HTML code by "data-speak2me-prepend".
|
5523
5545
|
//
|
5524
|
-
|
5525
|
-
copy =
|
5526
|
-
|
5546
|
+
$(clone).find('[data-speak2me-prepend]').addBack('[data-speak2me-prepend]').each(function () {
|
5547
|
+
copy = $(this).data('speak2me-prepend');
|
5548
|
+
$(this).prepend(copy + ' ');
|
5527
5549
|
});
|
5528
5550
|
|
5529
5551
|
// Search for append data specified in the HTML code by "data-speak2me-append".
|
5530
5552
|
//
|
5531
|
-
|
5532
|
-
copy =
|
5533
|
-
|
5553
|
+
$(clone).find('[data-speak2me-append]').addBack('[data-speak2me-append]').each(function () {
|
5554
|
+
copy = $(this).data('speak2me-append');
|
5555
|
+
$(this).append(' ' + copy);
|
5534
5556
|
});
|
5535
5557
|
|
5536
5558
|
// Search for tags to prepend and append specified by the "voiceTags" array.
|
5537
5559
|
//
|
5538
5560
|
var count = 0;
|
5539
5561
|
for (var tag in voiceTags) {
|
5540
|
-
|
5562
|
+
$(clone).find(tag).each(function () {
|
5541
5563
|
if (customTags[tag]) {
|
5542
|
-
|
5543
|
-
|
5564
|
+
$(this).prepend(customTags[tag].prepend + pause_spoken);
|
5565
|
+
$(this).append(customTags[tag].append + pause_spoken);
|
5544
5566
|
} else {
|
5545
|
-
|
5546
|
-
|
5567
|
+
$(this).prepend(voiceTags[tag].prepend + pause_spoken);
|
5568
|
+
$(this).append(voiceTags[tag].append + pause_spoken);
|
5547
5569
|
}
|
5548
5570
|
;
|
5549
5571
|
});
|
@@ -5555,38 +5577,38 @@ module.exports = function parseContent(options) {
|
|
5555
5577
|
// because these tags require a pause, but often don't
|
5556
5578
|
// have a comma or period at the end of their text.
|
5557
5579
|
//
|
5558
|
-
|
5559
|
-
|
5580
|
+
$(clone).find('h1,h2,h3,h4,h5,h6,li,p').addBack('h1,h2,h3,h4,h5,h6,li,p').each(function () {
|
5581
|
+
$(this).append(pause_spoken);
|
5560
5582
|
});
|
5561
5583
|
|
5562
5584
|
// Search for <br> tags to add a pause at the end.
|
5563
|
-
|
5564
|
-
|
5585
|
+
$(clone).find('br').each(function () {
|
5586
|
+
$(this).after(pause_spoken);
|
5565
5587
|
});
|
5566
5588
|
|
5567
5589
|
// Search for <figure>, check for <figcaption>, insert
|
5568
5590
|
// that text if exists and then remove the whole DOM object.
|
5569
5591
|
//
|
5570
|
-
|
5571
|
-
copy =
|
5592
|
+
$(clone).find('figure').addBack('figure').each(function () {
|
5593
|
+
copy = $(this).find('figcaption').html();
|
5572
5594
|
if (customTags['figure']) {
|
5573
5595
|
prepend = customTags['figure'].prepend;
|
5574
5596
|
} else {
|
5575
5597
|
prepend = voiceTags['figure'].prepend;
|
5576
5598
|
}
|
5577
5599
|
if (copy != undefined && copy !== '') {
|
5578
|
-
|
5600
|
+
$('<div>' + prepend + pause_spoken + copy + '</div>').insertBefore(this);
|
5579
5601
|
}
|
5580
|
-
|
5602
|
+
$(this).remove();
|
5581
5603
|
});
|
5582
5604
|
|
5583
5605
|
// Search for <image> tags, check for ALT attribute, and insert
|
5584
5606
|
// text if exists and then dinally remove the DOM object.
|
5585
5607
|
// NOTE: had to make adjustments for nesting in <picture> tags.
|
5586
5608
|
//
|
5587
|
-
|
5588
|
-
copy =
|
5589
|
-
var parent =
|
5609
|
+
$(clone).find('img').addBack('img').each(function () {
|
5610
|
+
copy = $(this).attr('alt');
|
5611
|
+
var parent = $(this).parent();
|
5590
5612
|
var parentName = parent.get(0).tagName;
|
5591
5613
|
if (customTags['img']) {
|
5592
5614
|
prepend = customTags['img'].prepend;
|
@@ -5596,181 +5618,212 @@ module.exports = function parseContent(options) {
|
|
5596
5618
|
if (copy !== undefined && copy != '') {
|
5597
5619
|
if (parentName == 'PICTURE') {
|
5598
5620
|
var par;
|
5599
|
-
|
5621
|
+
$('<div>' + prepend + pause_spoken + copy + pause_spoken + '</div>').insertBefore(parent);
|
5600
5622
|
} else {
|
5601
|
-
|
5623
|
+
$('<div>' + prepend + pause_spoken + copy + pause_spoken + '</div>').insertBefore(this);
|
5602
5624
|
}
|
5603
5625
|
}
|
5604
|
-
|
5626
|
+
$(this).remove();
|
5605
5627
|
});
|
5606
5628
|
|
5607
5629
|
// TODO: identify why the text 'Follow the link' is
|
5608
5630
|
// already placed on the anchor
|
5609
5631
|
//
|
5610
|
-
|
5611
|
-
var anchor =
|
5632
|
+
$(clone).find('a').addBack('a').each(function () {
|
5633
|
+
var anchor = $(this);
|
5612
5634
|
copy = anchor[0].innerText;
|
5613
5635
|
prepend = voiceTags['a'].prepend;
|
5614
5636
|
appended = voiceTags['a'].append;
|
5615
|
-
|
5616
|
-
|
5617
|
-
|
5637
|
+
$('<div>' + copy + '</div>').insertBefore(this);
|
5638
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5639
|
+
$(this).remove();
|
5618
5640
|
});
|
5619
5641
|
|
5620
5642
|
// Search for admonition block elements and extract the type and
|
5621
5643
|
// content. Insert type and content and then remove the DOM object.
|
5622
5644
|
//
|
5623
|
-
|
5645
|
+
$(clone).find('.admonitionblock').addBack('.admonitionblock').each(function () {
|
5624
5646
|
content_type = this.classList[1];
|
5625
|
-
content_element =
|
5647
|
+
content_element = $(this).find('.content');
|
5626
5648
|
content = content_element[0].innerText;
|
5627
5649
|
prepend = voiceTags['.admonitionblock'].prepend + content_type + '. ';
|
5628
5650
|
appended = voiceTags['.admonitionblock'].append;
|
5629
5651
|
if (content !== undefined && content != '') {
|
5630
|
-
|
5631
|
-
|
5652
|
+
$('<div>' + prepend + ' ' + content + '</div>').insertBefore(this);
|
5653
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5632
5654
|
}
|
5633
|
-
|
5655
|
+
$(this).remove();
|
5656
|
+
});
|
5657
|
+
|
5658
|
+
// Search for parallax quote block elements.
|
5659
|
+
//
|
5660
|
+
$(clone).find('.parallax-quoteblock').addBack('.parallax-quoteblock').each(function () {
|
5661
|
+
content_element = $(this).find('.quote-text');
|
5662
|
+
content = content_element[0].innerText;
|
5663
|
+
prepend = voiceTags['quoteblock'].prepend;
|
5664
|
+
appended = voiceTags['quoteblock'].append;
|
5665
|
+
if (content !== undefined && content != '') {
|
5666
|
+
$('<div>' + prepend + pause_spoken + content + '</div>').insertBefore(this);
|
5667
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5668
|
+
}
|
5669
|
+
$(this).remove();
|
5634
5670
|
});
|
5635
5671
|
|
5636
5672
|
// Search for quote block elements.
|
5637
5673
|
//
|
5638
|
-
|
5639
|
-
var attribution =
|
5640
|
-
content_element =
|
5674
|
+
$(clone).find('.quoteblock').addBack('quoteblock').each(function () {
|
5675
|
+
var attribution = $(this).find('.attribution');
|
5676
|
+
content_element = $(this).find('quote');
|
5641
5677
|
content = content_element[0].innerText + 'quoted by, ' + attribution[0].innerText + ', ';
|
5642
5678
|
prepend = voiceTags['quoteblock'].prepend;
|
5643
5679
|
appended = voiceTags['quoteblock'].append;
|
5644
5680
|
if (content !== undefined && content != '') {
|
5645
|
-
|
5646
|
-
|
5681
|
+
$('<div>' + prepend + pause_spoken + content + '</div>').insertBefore(this);
|
5682
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5647
5683
|
}
|
5648
|
-
|
5684
|
+
$(this).remove();
|
5649
5685
|
});
|
5650
5686
|
|
5651
5687
|
// Search for <table> tags, check for <caption>, insert text
|
5652
5688
|
// if exists and then remove the DOM object.
|
5653
5689
|
//
|
5654
|
-
|
5655
|
-
copy =
|
5690
|
+
$(clone).find('table').addBack('table').each(function () {
|
5691
|
+
copy = $(this).find('caption').text();
|
5656
5692
|
prepend = voiceTags['table'].prepend;
|
5657
5693
|
appended = voiceTags['table'].append;
|
5658
5694
|
if (copy !== undefined && copy != '') {
|
5659
|
-
|
5660
|
-
|
5695
|
+
$('<div>' + prepend + pause_spoken + copy + '</div>').insertBefore(this);
|
5696
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5697
|
+
} else {
|
5698
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5699
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5700
|
+
}
|
5701
|
+
$(this).remove();
|
5702
|
+
});
|
5703
|
+
|
5704
|
+
// Search for HTML5 audio players, check for the title and insert text
|
5705
|
+
// if exists and then remove the DOM object.
|
5706
|
+
//
|
5707
|
+
$(clone).find('.audioblock').addBack('.audioblock').each(function () {
|
5708
|
+
copy = $(this).find('.title').text();
|
5709
|
+
prepend = voiceTags['.audioblock'].prepend;
|
5710
|
+
appended = voiceTags['.audioblock'].append;
|
5711
|
+
if (copy !== undefined && copy != '') {
|
5712
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5713
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5661
5714
|
} else {
|
5662
|
-
|
5663
|
-
|
5715
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5716
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5664
5717
|
}
|
5665
|
-
|
5718
|
+
$(this).remove();
|
5666
5719
|
});
|
5667
5720
|
|
5668
5721
|
// Search for HTML5 video players, check for the title and insert text
|
5669
5722
|
// if exists and then remove the DOM object.
|
5670
5723
|
//
|
5671
|
-
|
5672
|
-
copy =
|
5724
|
+
$(clone).find('.videoblock').addBack('.videoblock').each(function () {
|
5725
|
+
copy = $(this).find('.title').text();
|
5673
5726
|
prepend = voiceTags['.videoblock'].prepend;
|
5674
5727
|
appended = voiceTags['.videoblock'].append;
|
5675
5728
|
if (copy !== undefined && copy != '') {
|
5676
|
-
|
5677
|
-
|
5729
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5730
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5678
5731
|
} else {
|
5679
|
-
|
5680
|
-
|
5732
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5733
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5681
5734
|
}
|
5682
|
-
|
5735
|
+
$(this).remove();
|
5683
5736
|
});
|
5684
5737
|
|
5685
5738
|
// Search for VideoJS players, check for the title and insert text
|
5686
5739
|
// if exists and then remove the DOM object.
|
5687
5740
|
//
|
5688
|
-
|
5689
|
-
copy =
|
5741
|
+
$(clone).find('.videojs-player').addBack('.videojs-player').each(function () {
|
5742
|
+
copy = $(this).find('.video-title').text();
|
5690
5743
|
prepend = voiceTags['.videojs-player'].prepend;
|
5691
5744
|
appended = voiceTags['.videojs-player'].append;
|
5692
5745
|
if (copy !== undefined && copy != '') {
|
5693
|
-
|
5694
|
-
|
5746
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5747
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5695
5748
|
} else {
|
5696
|
-
|
5697
|
-
|
5749
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5750
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5698
5751
|
}
|
5699
|
-
|
5752
|
+
$(this).remove();
|
5700
5753
|
});
|
5701
5754
|
|
5702
5755
|
// Search for YouTube players, check for the title and insert text
|
5703
5756
|
// if exists and then remove the DOM object.
|
5704
5757
|
//
|
5705
|
-
|
5706
|
-
copy =
|
5758
|
+
$(clone).find('.youtube-player').addBack('.youtube-player').each(function () {
|
5759
|
+
copy = $(this).find('.video-title').text();
|
5707
5760
|
prepend = voiceTags['.youtube-player'].prepend;
|
5708
5761
|
appended = voiceTags['.youtube-player'].append;
|
5709
5762
|
if (copy !== undefined && copy != '') {
|
5710
|
-
|
5711
|
-
|
5763
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5764
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5712
5765
|
} else {
|
5713
|
-
|
5714
|
-
|
5766
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5767
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5715
5768
|
}
|
5716
|
-
|
5769
|
+
$(this).remove();
|
5717
5770
|
});
|
5718
5771
|
|
5719
5772
|
// Search for Dailymotion players, check for the title and insert text
|
5720
5773
|
// if exists and then remove the DOM object.
|
5721
5774
|
//
|
5722
|
-
|
5723
|
-
copy =
|
5775
|
+
$(clone).find('.dailymotion-player').addBack('.dailymotion-player').each(function () {
|
5776
|
+
copy = $(this).find('.video-title').text();
|
5724
5777
|
prepend = voiceTags['.dailymotion-player'].prepend;
|
5725
5778
|
appended = voiceTags['.dailymotion-player'].append;
|
5726
5779
|
if (copy !== undefined && copy != '') {
|
5727
|
-
|
5728
|
-
|
5780
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5781
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5729
5782
|
} else {
|
5730
|
-
|
5731
|
-
|
5783
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5784
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5732
5785
|
}
|
5733
|
-
|
5786
|
+
$(this).remove();
|
5734
5787
|
});
|
5735
5788
|
|
5736
5789
|
// Search for Vimeo players, check for the title and insert text
|
5737
5790
|
// if exists and then remove the DOM object.
|
5738
5791
|
//
|
5739
|
-
|
5740
|
-
copy =
|
5792
|
+
$(clone).find('.vimeo-player').addBack('.vimeo-player').each(function () {
|
5793
|
+
copy = $(this).find('.video-title').text();
|
5741
5794
|
prepend = voiceTags['.vimeo-player'].prepend;
|
5742
5795
|
appended = voiceTags['.vimeo-player'].append;
|
5743
5796
|
if (copy !== undefined && copy != '') {
|
5744
|
-
|
5745
|
-
|
5797
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5798
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5746
5799
|
} else {
|
5747
|
-
|
5748
|
-
|
5800
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5801
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5749
5802
|
}
|
5750
|
-
|
5803
|
+
$(this).remove();
|
5751
5804
|
});
|
5752
5805
|
|
5753
5806
|
// Search for Wistia players, check for the title and insert text
|
5754
5807
|
// if exists and then remove the DOM object.
|
5755
5808
|
//
|
5756
|
-
|
5757
|
-
copy =
|
5809
|
+
$(clone).find('.wistia-player').addBack('.wistia-player').each(function () {
|
5810
|
+
copy = $(this).find('.video-title').text();
|
5758
5811
|
prepend = voiceTags['.wistia-player'].prepend;
|
5759
5812
|
appended = voiceTags['.wistia-player'].append;
|
5760
5813
|
if (copy !== undefined && copy != '') {
|
5761
|
-
|
5762
|
-
|
5814
|
+
$('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
|
5815
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5763
5816
|
} else {
|
5764
|
-
|
5765
|
-
|
5817
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5818
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5766
5819
|
}
|
5767
|
-
|
5820
|
+
$(this).remove();
|
5768
5821
|
});
|
5769
5822
|
|
5770
5823
|
// Search for cards|header elements and then remove the DOM object.
|
5771
5824
|
//
|
5772
|
-
|
5773
|
-
title_element =
|
5825
|
+
$(clone).find('.card-header').addBack('card-header').each(function () {
|
5826
|
+
title_element = $(this).find('.card-title');
|
5774
5827
|
prepend = voiceTags['card-header'].prepend;
|
5775
5828
|
appended = voiceTags['card-header'].append;
|
5776
5829
|
if (title_element.length) {
|
@@ -5778,27 +5831,27 @@ module.exports = function parseContent(options) {
|
|
5778
5831
|
} else {
|
5779
5832
|
title = '';
|
5780
5833
|
}
|
5781
|
-
|
5782
|
-
|
5783
|
-
|
5834
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5835
|
+
$('<div>' + appended + pause_spoken + title + '</div>').insertBefore(this);
|
5836
|
+
$(title_element).remove();
|
5784
5837
|
});
|
5785
5838
|
|
5786
5839
|
// Search for doc-example elements and then remove the DOM object.
|
5787
5840
|
//
|
5788
|
-
|
5841
|
+
$(clone).find('.doc-example').addBack('.doc-example').each(function () {
|
5789
5842
|
prepend = voiceTags['.doc-example'].prepend;
|
5790
5843
|
appended = voiceTags['.doc-example'].append;
|
5791
|
-
|
5792
|
-
|
5793
|
-
|
5844
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5845
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5846
|
+
$(this).remove();
|
5794
5847
|
});
|
5795
5848
|
|
5796
5849
|
// Search for listing block elements, check for previous declared <div>
|
5797
5850
|
// container that contains the title element and insert the
|
5798
5851
|
// text if exists and then finally remove the DOM object.
|
5799
5852
|
//
|
5800
|
-
|
5801
|
-
title_element =
|
5853
|
+
$(clone).find('.listingblock').addBack('.listingblock').each(function () {
|
5854
|
+
title_element = $(this).find('.title');
|
5802
5855
|
if (title_element.length) {
|
5803
5856
|
copy = title_element[0].innerText;
|
5804
5857
|
} else {
|
@@ -5807,159 +5860,165 @@ module.exports = function parseContent(options) {
|
|
5807
5860
|
prepend = voiceTags['.listingblock'].prepend;
|
5808
5861
|
appended = voiceTags['.listingblock'].append;
|
5809
5862
|
if (copy !== undefined && copy != '') {
|
5810
|
-
|
5811
|
-
|
5863
|
+
$('<div>' + prepend + ' with the caption,' + copy + pause_spoken + '</div>').insertBefore(this);
|
5864
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5812
5865
|
} else {
|
5813
|
-
|
5814
|
-
|
5866
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5867
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5815
5868
|
}
|
5816
|
-
|
5869
|
+
$(this).remove();
|
5817
5870
|
});
|
5818
5871
|
|
5819
5872
|
// Search for gist elements, check for previous declared <div>
|
5820
5873
|
// container that contains the title element and insert the
|
5821
5874
|
// text if exists and finally remove the DOM object.
|
5822
5875
|
//
|
5823
|
-
|
5876
|
+
$(clone).find('.gist').addBack('.gist').each(function () {
|
5824
5877
|
if ($(this).prev()[0] !== undefined && $(this).prev()[0].innerText !== undefined) {
|
5825
5878
|
title = $(this).prev()[0].innerText;
|
5826
|
-
title_element =
|
5879
|
+
title_element = $(this).prev();
|
5827
5880
|
// remove the title 'before' the DOM object deleted
|
5828
5881
|
//
|
5829
|
-
|
5882
|
+
$(title_element).remove();
|
5830
5883
|
} else {
|
5831
5884
|
title = '';
|
5832
5885
|
}
|
5833
5886
|
prepend = voiceTags['.gist'].prepend;
|
5834
5887
|
appended = voiceTags['.gist'].append;
|
5835
5888
|
if (title !== undefined && title != '') {
|
5836
|
-
|
5837
|
-
|
5889
|
+
$('<div>' + prepend + ' with the caption, ' + title + pause_spoken + '</div>').insertBefore(this);
|
5890
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5838
5891
|
} else {
|
5839
|
-
|
5840
|
-
|
5892
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5893
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5841
5894
|
}
|
5842
|
-
|
5895
|
+
$(this).remove();
|
5896
|
+
});
|
5897
|
+
|
5898
|
+
// Search for BS modal elements, if exists remove the DOM object.
|
5899
|
+
//
|
5900
|
+
$(clone).find('.modal').addBack('.modal').each(function () {
|
5901
|
+
$(this).remove();
|
5843
5902
|
});
|
5844
5903
|
|
5845
5904
|
// Search for masonry elements, check for previous declared <div>
|
5846
5905
|
// container that contains the title element and insert the
|
5847
5906
|
// text if exists and finally remove the DOM object.
|
5848
5907
|
//
|
5849
|
-
|
5908
|
+
$(clone).find('.masonry').addBack('.masonry').each(function () {
|
5850
5909
|
if ($(this).prev()[0].innerText !== undefined) {
|
5851
5910
|
title = $(this).prev()[0].innerText;
|
5852
|
-
title_element =
|
5911
|
+
title_element = $(this).prev();
|
5853
5912
|
// remove the title 'before' the DOM object deleted
|
5854
5913
|
//
|
5855
|
-
|
5914
|
+
$(title_element).remove();
|
5856
5915
|
} else {
|
5857
5916
|
title = '';
|
5858
5917
|
}
|
5859
5918
|
prepend = voiceTags['.masonry'].prepend;
|
5860
5919
|
appended = voiceTags['.masonry'].append;
|
5861
5920
|
if (title !== undefined && title != '') {
|
5862
|
-
|
5863
|
-
|
5921
|
+
$('<div>' + prepend + ' with the caption,' + title + pause_spoken + '</div>').insertBefore(this);
|
5922
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5864
5923
|
} else {
|
5865
|
-
|
5866
|
-
|
5924
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5925
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5867
5926
|
}
|
5868
|
-
|
5927
|
+
$(this).remove();
|
5869
5928
|
});
|
5870
5929
|
|
5871
5930
|
// Search for slider elements, check for previous declared <div>
|
5872
5931
|
// container that contains the title element and insert the
|
5873
5932
|
// text if exists and finally remove the DOM object.
|
5874
5933
|
//
|
5875
|
-
|
5934
|
+
$(clone).find('.slider').addBack('.slider').each(function () {
|
5876
5935
|
if ($(this).prev()[0].innerText !== undefined) {
|
5877
5936
|
title = $(this).prev()[0].innerText;
|
5878
|
-
title_element =
|
5937
|
+
title_element = $(this).prev();
|
5879
5938
|
// remove the title 'before' the DOM object deleted
|
5880
5939
|
//
|
5881
|
-
|
5940
|
+
$(title_element).remove();
|
5882
5941
|
} else {
|
5883
5942
|
title = '';
|
5884
5943
|
}
|
5885
5944
|
prepend = voiceTags['.slider'].prepend;
|
5886
5945
|
appended = voiceTags['.slider'].append;
|
5887
5946
|
if (title !== undefined && title != '') {
|
5888
|
-
|
5889
|
-
|
5947
|
+
$('<div>' + prepend + ' with the caption, ' + title + pause_spoken + '</div>').insertBefore(this);
|
5948
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5890
5949
|
} else {
|
5891
|
-
|
5892
|
-
|
5950
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5951
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5893
5952
|
}
|
5894
|
-
|
5953
|
+
$(this).remove();
|
5895
5954
|
});
|
5896
5955
|
|
5897
5956
|
// Search for gallery elements, check for previous declared <div>
|
5898
5957
|
// container that contains the title element and insert the
|
5899
5958
|
// text if exists and finally remove the DOM object.
|
5900
5959
|
//
|
5901
|
-
|
5960
|
+
$(clone).find('.gallery').addBack('.gallery').each(function () {
|
5902
5961
|
if ($(this).prev()[0] !== undefined && $(this).prev()[0].innerText !== undefined) {
|
5903
5962
|
title = $(this).prev()[0].innerText;
|
5904
|
-
title_element =
|
5963
|
+
title_element = $(this).prev();
|
5905
5964
|
// remove the title BEFORE the DOM object gets deleted
|
5906
5965
|
//
|
5907
|
-
|
5966
|
+
$(title_element).remove();
|
5908
5967
|
} else {
|
5909
5968
|
title = '';
|
5910
5969
|
}
|
5911
5970
|
prepend = voiceTags['.gallery'].prepend;
|
5912
5971
|
appended = voiceTags['.gallery'].append;
|
5913
5972
|
if (title !== undefined && title != '') {
|
5914
|
-
prepend !== '' &&
|
5915
|
-
appended !== '' &&
|
5973
|
+
prepend !== '' && $('<div>' + prepend + ' with the caption ' + title + pause_spoken + '</div>').insertBefore(this);
|
5974
|
+
appended !== '' && $('<div>' + appended + '</div>').insertBefore(this);
|
5916
5975
|
} else {
|
5917
|
-
prepend !== '' &&
|
5918
|
-
appended !== '' &&
|
5976
|
+
prepend !== '' && $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
5977
|
+
appended !== '' && $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5919
5978
|
}
|
5920
|
-
|
5979
|
+
$(this).remove();
|
5921
5980
|
});
|
5922
5981
|
|
5923
5982
|
// Search for a lightbox blocks and extract the <caption> tag data,
|
5924
5983
|
// insert the text if exists and finally remove the DOM object.
|
5925
5984
|
//
|
5926
|
-
|
5985
|
+
$(clone).find('.lightbox-block').addBack('.lightbox-block').each(function () {
|
5927
5986
|
if ($(this).prev()[0].innerText !== undefined) {
|
5928
5987
|
title = $(this).prev()[0].innerText;
|
5929
|
-
title_element =
|
5988
|
+
title_element = $(this).prev();
|
5930
5989
|
// remove the title 'before' the DOM object deleted
|
5931
5990
|
//
|
5932
|
-
|
5991
|
+
$(title_element).remove();
|
5933
5992
|
} else {
|
5934
5993
|
title = '';
|
5935
5994
|
}
|
5936
5995
|
prepend = voiceTags['.lightbox-block'].prepend;
|
5937
5996
|
appended = voiceTags['.lightbox-block'].append;
|
5938
5997
|
if (title !== undefined && title != '') {
|
5939
|
-
|
5940
|
-
|
5998
|
+
$('<div>' + prepend + ' with the caption,' + title + pause_spoken + '</div>').insertBefore(this);
|
5999
|
+
$('<div>' + appended + '</div>').insertBefore(this);
|
5941
6000
|
} else {
|
5942
|
-
|
5943
|
-
|
6001
|
+
$('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
|
6002
|
+
$('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
|
5944
6003
|
}
|
5945
|
-
|
6004
|
+
$(this).remove();
|
5946
6005
|
});
|
5947
6006
|
|
5948
6007
|
// Search for DOM object to be replaced specified in
|
5949
6008
|
// the HTML code by "data-speak2me-swap".
|
5950
6009
|
//
|
5951
|
-
|
5952
|
-
copy =
|
5953
|
-
|
6010
|
+
$(clone).find('[data-speak2me-swap]').addBack('[data-speak2me-swap]').each(function () {
|
6011
|
+
copy = $(this).data('speak2me-swap');
|
6012
|
+
$(this).text(copy);
|
5954
6013
|
});
|
5955
6014
|
|
5956
6015
|
// Search for DOM object to spelled out specified in
|
5957
6016
|
// the HTML code by "data-speak2me-spell".
|
5958
6017
|
//
|
5959
|
-
|
5960
|
-
copy =
|
6018
|
+
$(clone).find('[data-speak2me-spell]').addBack('[data-speak2me-spell]').each(function () {
|
6019
|
+
copy = $(this).text();
|
5961
6020
|
copy = copy.split('').join(' ');
|
5962
|
-
|
6021
|
+
$(this).text(copy);
|
5963
6022
|
});
|
5964
6023
|
return clone;
|
5965
6024
|
}
|
@@ -6093,7 +6152,7 @@ module.exports = function parseContent(options) {
|
|
6093
6152
|
return textChunks;
|
6094
6153
|
}
|
6095
6154
|
|
6096
|
-
// return the Utterance object of the SpeechSynthesis API
|
6155
|
+
// return the Utterance object of the SpeechSynthesis API
|
6097
6156
|
//
|
6098
6157
|
return speech;
|
6099
6158
|
},
|
@@ -6274,19 +6333,19 @@ module.exports = function parseContent(options) {
|
|
6274
6333
|
return voices;
|
6275
6334
|
}
|
6276
6335
|
|
6277
|
-
// If there's another argument, we'll assume it's a
|
6336
|
+
// If there's another argument, we'll assume it's a $
|
6278
6337
|
// selector designating where to put the dropdown menu.
|
6279
6338
|
// And if there's a third argument, that will be custom text
|
6280
6339
|
// for the dropdown menu.
|
6281
6340
|
// Then we'll create a dropdown menu with the voice names and,
|
6282
6341
|
//in parenthesis, the language code.
|
6283
6342
|
//
|
6284
|
-
var obj =
|
6343
|
+
var obj = $(arguments[0]);
|
6285
6344
|
var selectionTxt = 'Choose a voice';
|
6286
6345
|
if (arguments[1] !== undefined) {
|
6287
6346
|
selectionTxt = arguments[1];
|
6288
6347
|
}
|
6289
|
-
obj.append(
|
6348
|
+
obj.append($("<select id='voiceSelect' name='voiceSelect'><option value='none'>" + selectionTxt + "</option></select>"));
|
6290
6349
|
|
6291
6350
|
// jadams
|
6292
6351
|
var skippedVoices = 0;
|
@@ -6376,10 +6435,10 @@ module.exports = function parseContent(options) {
|
|
6376
6435
|
} else if (typeof method === 'object' || !method) {
|
6377
6436
|
return methods.speak.apply(this, arguments);
|
6378
6437
|
} else {
|
6379
|
-
|
6438
|
+
$.error('Method ' + method + ' does not exist on $.speak2me');
|
6380
6439
|
}
|
6381
6440
|
}; // END main
|
6382
|
-
})(
|
6441
|
+
})($);
|
6383
6442
|
|
6384
6443
|
/***/ }),
|
6385
6444
|
|