@oiz/stzh-components 0.0.1-pretest → 1.4.0-npmjstest
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +56 -56
- package/dist/cjs/{animation-utils-c816beac.js → animation-utils-cfa35ce7.js} +37 -37
- package/dist/cjs/{app-globals-83a6c2d3.js → app-globals-e07b8f5f.js} +42 -42
- package/dist/cjs/{arrow-70a32014.js → arrow-3c3b0ae5.js} +3 -3
- package/dist/cjs/{date-adapter-2ffd8eaf.js → date-adapter-2a78f6f8.js} +85 -85
- package/dist/cjs/{date-utils-898a50be.js → date-utils-bb50c91f.js} +156 -156
- package/dist/cjs/{event-utils-4d7d610a.js → event-utils-9b64c792.js} +13 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{media-utils-f1720906.js → media-utils-8cfc8591.js} +19 -19
- package/dist/cjs/{string-utils-223b03e2.js → string-utils-a867b99d.js} +12 -12
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +170 -170
- package/dist/cjs/stzh-accordion.cjs.entry.js +63 -63
- package/dist/cjs/stzh-actions.cjs.entry.js +42 -42
- package/dist/cjs/stzh-appnav.cjs.entry.js +39 -39
- package/dist/cjs/stzh-appointments.cjs.entry.js +260 -260
- package/dist/cjs/stzh-badge_3.cjs.entry.js +146 -146
- package/dist/cjs/stzh-calendar.cjs.entry.js +291 -291
- package/dist/cjs/stzh-cell.cjs.entry.js +24 -24
- package/dist/cjs/stzh-checkbox.cjs.entry.js +123 -123
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +157 -157
- package/dist/cjs/stzh-chip-select.cjs.entry.js +55 -55
- package/dist/cjs/stzh-chip.cjs.entry.js +90 -90
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-container.cjs.entry.js +8 -8
- package/dist/cjs/stzh-cspace.cjs.entry.js +11 -11
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +92 -92
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +12 -12
- package/dist/cjs/stzh-datatable.cjs.entry.js +201 -201
- package/dist/cjs/stzh-datepicker_4.cjs.entry.js +458 -458
- package/dist/cjs/stzh-dialog.cjs.entry.js +179 -179
- package/dist/cjs/stzh-dropdown.cjs.entry.js +450 -450
- package/dist/cjs/stzh-fieldset.cjs.entry.js +24 -24
- package/dist/cjs/stzh-figure.cjs.entry.js +19 -19
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +167 -167
- package/dist/cjs/stzh-footer.cjs.entry.js +56 -56
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +132 -132
- package/dist/cjs/stzh-header.cjs.entry.js +151 -151
- package/dist/cjs/stzh-heading.cjs.entry.js +21 -21
- package/dist/cjs/stzh-hr.cjs.entry.js +12 -12
- package/dist/cjs/stzh-hspace.cjs.entry.js +30 -30
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +9 -9
- package/dist/cjs/{stzh-input-description-9ed61d1d.js → stzh-input-description-9802abc2.js} +15 -15
- package/dist/cjs/stzh-input.cjs.entry.js +181 -181
- package/dist/cjs/stzh-link.cjs.entry.js +95 -95
- package/dist/cjs/stzh-list-item.cjs.entry.js +15 -15
- package/dist/cjs/stzh-list.cjs.entry.js +15 -15
- package/dist/cjs/stzh-loader.cjs.entry.js +20 -20
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +22 -22
- package/dist/cjs/stzh-menu_2.cjs.entry.js +81 -81
- package/dist/cjs/stzh-message.cjs.entry.js +72 -72
- package/dist/cjs/stzh-metanav.cjs.entry.js +26 -26
- package/dist/cjs/stzh-overlay.cjs.entry.js +88 -88
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +26 -26
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +61 -61
- package/dist/cjs/stzh-popover.cjs.entry.js +349 -349
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +12 -12
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +46 -46
- package/dist/cjs/stzh-progressbar.cjs.entry.js +114 -114
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +47 -47
- package/dist/cjs/stzh-row.cjs.entry.js +29 -29
- package/dist/cjs/stzh-saptcha.cjs.entry.js +70 -70
- package/dist/cjs/stzh-section.cjs.entry.js +13 -13
- package/dist/cjs/stzh-servicecard-list.cjs.entry.js +45 -45
- package/dist/cjs/stzh-servicecard.cjs.entry.js +201 -201
- package/dist/cjs/stzh-skiplink.cjs.entry.js +16 -16
- package/dist/cjs/stzh-sortable.cjs.entry.js +288 -288
- package/dist/cjs/stzh-status.cjs.entry.js +25 -25
- package/dist/cjs/stzh-table.cjs.entry.js +132 -132
- package/dist/cjs/stzh-toggle.cjs.entry.js +123 -123
- package/dist/cjs/stzh-tooltip.cjs.entry.js +310 -310
- package/dist/cjs/stzh-upload.cjs.entry.js +440 -440
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +71 -71
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +95 -95
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +171 -171
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +10 -10
- package/dist/cjs/stzh-vspace.cjs.entry.js +30 -30
- package/dist/cjs/{translation-utils-2dbbce94.js → translation-utils-73073e44.js} +54 -54
- package/dist/cjs/{utils-e84f4a8d.js → utils-d327c19d.js} +30 -30
- package/dist/collection/assets/favicons/browserconfig.xml +9 -9
- package/dist/collection/assets/favicons/site.webmanifest +19 -19
- package/dist/collection/assets/fonts.css +39 -39
- package/dist/collection/assets/i18n/de.json +154 -154
- package/dist/collection/assets/i18n/en.json +154 -154
- package/dist/collection/assets/icons/mono/alarm-bell.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-down.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-left.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-right.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-up.svg +3 -3
- package/dist/collection/assets/icons/mono/archive-box.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-down.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-left-circle.svg +4 -4
- package/dist/collection/assets/icons/mono/arrow-left.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-right-long.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-right.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-up.svg +3 -3
- package/dist/collection/assets/icons/mono/bulleted-list.svg +3 -3
- package/dist/collection/assets/icons/mono/calendar.svg +3 -3
- package/dist/collection/assets/icons/mono/cart.svg +3 -3
- package/dist/collection/assets/icons/mono/checkmark-circle.svg +3 -3
- package/dist/collection/assets/icons/mono/checkmark.svg +3 -3
- package/dist/collection/assets/icons/mono/clock.svg +3 -3
- package/dist/collection/assets/icons/mono/close-circle.svg +3 -3
- package/dist/collection/assets/icons/mono/close.svg +3 -3
- package/dist/collection/assets/icons/mono/compass-direction.svg +3 -3
- package/dist/collection/assets/icons/mono/compass-north.svg +4 -4
- package/dist/collection/assets/icons/mono/construction.svg +3 -3
- package/dist/collection/assets/icons/mono/copy.svg +3 -3
- package/dist/collection/assets/icons/mono/delete.svg +3 -3
- package/dist/collection/assets/icons/mono/download.svg +3 -3
- package/dist/collection/assets/icons/mono/drag.svg +10 -10
- package/dist/collection/assets/icons/mono/edit.svg +3 -3
- package/dist/collection/assets/icons/mono/email-check.svg +10 -10
- package/dist/collection/assets/icons/mono/expand.svg +3 -3
- package/dist/collection/assets/icons/mono/external-link.svg +4 -4
- package/dist/collection/assets/icons/mono/facebook-comment.svg +3 -3
- package/dist/collection/assets/icons/mono/facebook.svg +10 -10
- package/dist/collection/assets/icons/mono/file.svg +3 -3
- package/dist/collection/assets/icons/mono/filtering.svg +3 -3
- package/dist/collection/assets/icons/mono/flag.svg +10 -10
- package/dist/collection/assets/icons/mono/focus.svg +3 -3
- package/dist/collection/assets/icons/mono/gear.svg +3 -3
- package/dist/collection/assets/icons/mono/heart.svg +10 -10
- package/dist/collection/assets/icons/mono/home.svg +10 -10
- package/dist/collection/assets/icons/mono/important-warning.svg +3 -3
- package/dist/collection/assets/icons/mono/info-help.svg +3 -3
- package/dist/collection/assets/icons/mono/instagram.svg +3 -3
- package/dist/collection/assets/icons/mono/like-hand.svg +10 -10
- package/dist/collection/assets/icons/mono/linkedin.svg +5 -5
- package/dist/collection/assets/icons/mono/list-expanded.svg +4 -4
- package/dist/collection/assets/icons/mono/list-shrinked.svg +3 -3
- package/dist/collection/assets/icons/mono/lock.svg +10 -10
- package/dist/collection/assets/icons/mono/mail.svg +10 -10
- package/dist/collection/assets/icons/mono/map.svg +3 -3
- package/dist/collection/assets/icons/mono/menu.svg +3 -3
- package/dist/collection/assets/icons/mono/minus.svg +3 -3
- package/dist/collection/assets/icons/mono/more-horizontal.svg +5 -5
- package/dist/collection/assets/icons/mono/more-vertical.svg +5 -5
- package/dist/collection/assets/icons/mono/paper-clip.svg +10 -10
- package/dist/collection/assets/icons/mono/phone.svg +10 -10
- package/dist/collection/assets/icons/mono/pin-location.svg +10 -10
- package/dist/collection/assets/icons/mono/pin.svg +11 -11
- package/dist/collection/assets/icons/mono/play-1.svg +4 -4
- package/dist/collection/assets/icons/mono/play-button.svg +11 -11
- package/dist/collection/assets/icons/mono/play.svg +10 -10
- package/dist/collection/assets/icons/mono/plus.svg +3 -3
- package/dist/collection/assets/icons/mono/portfolio-grid.svg +11 -11
- package/dist/collection/assets/icons/mono/print.svg +10 -10
- package/dist/collection/assets/icons/mono/question-help.svg +3 -3
- package/dist/collection/assets/icons/mono/read-mail.svg +10 -10
- package/dist/collection/assets/icons/mono/reload.svg +10 -10
- package/dist/collection/assets/icons/mono/reset-time.svg +10 -10
- package/dist/collection/assets/icons/mono/reset.svg +10 -10
- package/dist/collection/assets/icons/mono/resize.svg +8 -8
- package/dist/collection/assets/icons/mono/rss.svg +12 -12
- package/dist/collection/assets/icons/mono/search.svg +3 -3
- package/dist/collection/assets/icons/mono/services.svg +6 -6
- package/dist/collection/assets/icons/mono/share.svg +3 -3
- package/dist/collection/assets/icons/mono/shrink.svg +3 -3
- package/dist/collection/assets/icons/mono/silent-mode.svg +3 -3
- package/dist/collection/assets/icons/mono/social-media.svg +23 -23
- package/dist/collection/assets/icons/mono/star-filled.svg +3 -3
- package/dist/collection/assets/icons/mono/star.svg +3 -3
- package/dist/collection/assets/icons/mono/subtitle.svg +3 -3
- package/dist/collection/assets/icons/mono/team.svg +10 -10
- package/dist/collection/assets/icons/mono/text-message.svg +6 -6
- package/dist/collection/assets/icons/mono/thermometer.svg +10 -10
- package/dist/collection/assets/icons/mono/transcript.svg +3 -3
- package/dist/collection/assets/icons/mono/twitter-reply.svg +3 -3
- package/dist/collection/assets/icons/mono/twitter-retweet.svg +3 -3
- package/dist/collection/assets/icons/mono/twitter.svg +10 -10
- package/dist/collection/assets/icons/mono/unlock.svg +10 -10
- package/dist/collection/assets/icons/mono/user.svg +3 -3
- package/dist/collection/assets/icons/mono/view-hidden.svg +3 -3
- package/dist/collection/assets/icons/mono/view.svg +4 -4
- package/dist/collection/assets/icons/mono/volume-medium.svg +3 -3
- package/dist/collection/assets/icons/mono/warning-big.svg +4 -4
- package/dist/collection/assets/icons/mono/warning.svg +3 -3
- package/dist/collection/assets/icons/mono/web-Link.svg +3 -3
- package/dist/collection/assets/icons/mono/wifi-signal.svg +3 -3
- package/dist/collection/assets/icons/mono/world-globe.svg +10 -10
- package/dist/collection/assets/icons/mono/xing.svg +11 -11
- package/dist/collection/assets/polyfills/ie11CustomProperties.min.js +8 -8
- package/dist/collection/assets/polyfills/intersection-observer.min.js +7 -7
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
- package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
- package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
- package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +156 -156
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +52 -52
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +429 -429
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +45 -45
- package/dist/collection/components/stzh-actions/stzh-actions.js +98 -98
- package/dist/collection/components/stzh-actions/stzh-actions.stories.js +66 -66
- package/dist/collection/components/stzh-appnav/stzh-appnav.js +112 -112
- package/dist/collection/components/stzh-appnav/stzh-appnav.stories.js +53 -53
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +515 -515
- package/dist/collection/components/stzh-appointments/stzh-appointments.localization.js +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +186 -186
- package/dist/collection/components/stzh-badge/stzh-badge.js +47 -47
- package/dist/collection/components/stzh-badge/stzh-badge.stories.js +36 -36
- package/dist/collection/components/stzh-button/stzh-button.js +516 -516
- package/dist/collection/components/stzh-button/stzh-button.stories.js +66 -66
- package/dist/collection/components/stzh-calendar/stzh-calendar-day.js +22 -22
- package/dist/collection/components/stzh-calendar/stzh-calendar-month.js +21 -21
- package/dist/collection/components/stzh-calendar/stzh-calendar.js +463 -463
- package/dist/collection/components/stzh-calendar/stzh-calendar.localization.js +1 -1
- package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +37 -37
- package/dist/collection/components/stzh-cell/stzh-cell.js +179 -179
- package/dist/collection/components/stzh-cell/stzh-cell.stories.js +39 -39
- package/dist/collection/components/stzh-checkbox/assets/check.svg +3 -3
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +459 -459
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +38 -38
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +450 -450
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +39 -39
- package/dist/collection/components/stzh-chip/stzh-chip.js +407 -407
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +64 -64
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +158 -158
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.stories.js +69 -69
- package/dist/collection/components/stzh-container/stzh-container.js +21 -21
- package/dist/collection/components/stzh-container/stzh-container.stories.js +35 -35
- package/dist/collection/components/stzh-cspace/stzh-cspace.js +24 -24
- package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +34 -34
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +24 -24
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +149 -149
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +358 -358
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.js +1 -1
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +63 -63
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +413 -413
- package/dist/collection/components/stzh-datatable/stzh-datatable.localization.js +1 -1
- package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +63 -63
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +586 -586
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.localization.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +39 -39
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +480 -480
- package/dist/collection/components/stzh-dialog/stzh-dialog.localization.js +1 -1
- package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +75 -75
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1436 -1436
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.localization.js +1 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +109 -109
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +120 -120
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +55 -55
- package/dist/collection/components/stzh-figure/stzh-figure.js +76 -76
- package/dist/collection/components/stzh-figure/stzh-figure.stories.js +36 -36
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +253 -253
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +27 -27
- package/dist/collection/components/stzh-footer/stzh-footer.js +147 -147
- package/dist/collection/components/stzh-footer/stzh-footer.localization.js +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +49 -49
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +319 -319
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.localization.js +1 -1
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +49 -49
- package/dist/collection/components/stzh-header/stzh-header.js +267 -267
- package/dist/collection/components/stzh-header/stzh-header.stories.js +178 -178
- package/dist/collection/components/stzh-heading/stzh-heading.js +99 -99
- package/dist/collection/components/stzh-heading/stzh-heading.stories.js +37 -37
- package/dist/collection/components/stzh-hr/stzh-hr.js +25 -25
- package/dist/collection/components/stzh-hr/stzh-hr.stories.js +23 -23
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +246 -246
- package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +73 -73
- package/dist/collection/components/stzh-icon/stzh-icon.js +76 -76
- package/dist/collection/components/stzh-icon/stzh-icon.stories.js +37 -37
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.js +19 -19
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.stories.js +46 -46
- package/dist/collection/components/stzh-input/stzh-input-description.js +8 -8
- package/dist/collection/components/stzh-input/stzh-input.js +724 -724
- package/dist/collection/components/stzh-input/stzh-input.stories.js +116 -116
- package/dist/collection/components/stzh-link/stzh-link.js +427 -427
- package/dist/collection/components/stzh-link/stzh-link.stories.js +67 -67
- package/dist/collection/components/stzh-list/stzh-list.js +52 -52
- package/dist/collection/components/stzh-list/stzh-list.stories.js +42 -42
- package/dist/collection/components/stzh-list-item/assets/checkmark.svg +3 -3
- package/dist/collection/components/stzh-list-item/stzh-list-item.js +26 -26
- package/dist/collection/components/stzh-loader/stzh-loader.js +93 -93
- package/dist/collection/components/stzh-loader/stzh-loader.stories.js +36 -36
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +94 -94
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +34 -34
- package/dist/collection/components/stzh-menu/stzh-menu.js +21 -21
- package/dist/collection/components/stzh-menu/stzh-menu.stories.js +69 -69
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +296 -296
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +52 -52
- package/dist/collection/components/stzh-message/stzh-message.js +287 -287
- package/dist/collection/components/stzh-message/stzh-message.localization.js +1 -1
- package/dist/collection/components/stzh-message/stzh-message.stories.js +40 -40
- package/dist/collection/components/stzh-metanav/stzh-metanav.js +41 -41
- package/dist/collection/components/stzh-metanav/stzh-metanav.stories.js +39 -39
- package/dist/collection/components/stzh-overlay/stzh-overlay.js +239 -239
- package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +50 -50
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +41 -41
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +43 -43
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +76 -76
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +107 -107
- package/dist/collection/components/stzh-popover/stzh-popover.js +673 -673
- package/dist/collection/components/stzh-popover/stzh-popover.localization.js +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.stories.js +67 -67
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +578 -578
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +25 -25
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +28 -28
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +272 -272
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +164 -164
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +250 -250
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +36 -36
- package/dist/collection/components/stzh-radio/stzh-radio.js +458 -458
- package/dist/collection/components/stzh-radio/stzh-radio.stories.js +38 -38
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +479 -477
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +39 -39
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +114 -114
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +50 -50
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +90 -90
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +79 -79
- package/dist/collection/components/stzh-row/stzh-row.js +207 -207
- package/dist/collection/components/stzh-row/stzh-row.stories.js +90 -90
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +221 -221
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.localization.js +1 -1
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +34 -34
- package/dist/collection/components/stzh-section/stzh-section.js +50 -50
- package/dist/collection/components/stzh-section/stzh-section.stories.js +100 -100
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +592 -592
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.localization.js +1 -1
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +73 -73
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +153 -153
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.localization.js +1 -1
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +115 -115
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +106 -106
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +53 -53
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +501 -501
- package/dist/collection/components/stzh-sortable/stzh-sortable.localization.js +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +34 -34
- package/dist/collection/components/stzh-status/stzh-status.js +115 -115
- package/dist/collection/components/stzh-status/stzh-status.stories.js +34 -34
- package/dist/collection/components/stzh-table/stzh-table.js +215 -215
- package/dist/collection/components/stzh-table/stzh-table.stories.js +89 -89
- package/dist/collection/components/stzh-text/stzh-text.js +232 -232
- package/dist/collection/components/stzh-text/stzh-text.stories.js +43 -43
- package/dist/collection/components/stzh-toggle/stzh-toggle.js +479 -479
- package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +38 -38
- package/dist/collection/components/stzh-tooltip/assets/arrow.svg +3 -3
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +667 -667
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.localization.js +1 -1
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +63 -63
- package/dist/collection/components/stzh-upload/stzh-upload.js +1358 -1358
- package/dist/collection/components/stzh-upload/stzh-upload.localization.js +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +69 -69
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +229 -229
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +36 -36
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +236 -236
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.js +1 -1
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +52 -52
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +292 -292
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js +1 -1
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +53 -53
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +23 -23
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +45 -45
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +246 -246
- package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +73 -73
- package/dist/collection/global/js/helpers/autofocus.js +20 -20
- package/dist/collection/global/js/helpers/scrollbar-width.js +20 -20
- package/dist/collection/global/js/script.js +17 -17
- package/dist/collection/index.js +7 -7
- package/dist/collection/pages/egov.stories.js +262 -262
- package/dist/collection/pages/example.stories.js +170 -170
- package/dist/collection/pages/meinkonto.stories.js +660 -660
- package/dist/collection/patterns/appointments.stories.js +43 -43
- package/dist/collection/patterns/processingscreen.stories.js +43 -43
- package/dist/collection/utils/animation-utils.js +51 -51
- package/dist/collection/utils/date-adapter.js +86 -86
- package/dist/collection/utils/date-utils.js +196 -196
- package/dist/collection/utils/decorators.js +15 -15
- package/dist/collection/utils/event-utils.js +14 -14
- package/dist/collection/utils/h.js +109 -109
- package/dist/collection/utils/media-utils.js +20 -20
- package/dist/collection/utils/string-utils.js +13 -13
- package/dist/collection/utils/test-utils.js +27 -27
- package/dist/collection/utils/translation-utils.js +55 -55
- package/dist/collection/utils/utils.js +41 -41
- package/dist/components/animation-utils.js +37 -37
- package/dist/components/arrow.js +3 -3
- package/dist/components/date-adapter.js +85 -85
- package/dist/components/event-utils.js +13 -13
- package/dist/components/index.js +41 -41
- package/dist/components/media-utils.js +19 -19
- package/dist/components/string-utils.js +12 -12
- package/dist/components/stzh-accordion-item.js +192 -192
- package/dist/components/stzh-accordion.js +81 -81
- package/dist/components/stzh-actions.js +58 -58
- package/dist/components/stzh-appnav.js +56 -56
- package/dist/components/stzh-appointments.js +343 -343
- package/dist/components/stzh-badge2.js +26 -26
- package/dist/components/stzh-button2.js +155 -155
- package/dist/components/stzh-calendar2.js +475 -475
- package/dist/components/stzh-cell.js +47 -47
- package/dist/components/stzh-checkbox.js +159 -159
- package/dist/components/stzh-checkboxgroup.js +192 -192
- package/dist/components/stzh-chip-select.js +93 -93
- package/dist/components/stzh-chip2.js +122 -122
- package/dist/components/stzh-container.js +22 -22
- package/dist/components/stzh-cspace.js +25 -25
- package/dist/components/stzh-datamessagelist-item.js +156 -156
- package/dist/components/stzh-datamessagelist.js +26 -26
- package/dist/components/stzh-datatable.js +255 -255
- package/dist/components/stzh-datepicker2.js +206 -206
- package/dist/components/stzh-dialog.js +214 -214
- package/dist/components/stzh-dropdown2.js +514 -514
- package/dist/components/stzh-fieldset.js +48 -48
- package/dist/components/stzh-figure.js +35 -35
- package/dist/components/stzh-flyingfocus.js +188 -188
- package/dist/components/stzh-footer.js +88 -88
- package/dist/components/stzh-ghettobox2.js +124 -124
- package/dist/components/stzh-header.js +174 -174
- package/dist/components/stzh-heading2.js +39 -39
- package/dist/components/stzh-hr.js +26 -26
- package/dist/components/stzh-hspace.js +54 -54
- package/dist/components/stzh-icon-sprite.js +23 -23
- package/dist/components/stzh-icon2.js +41 -41
- package/dist/components/stzh-input-description.js +15 -15
- package/dist/components/stzh-input2.js +239 -239
- package/dist/components/stzh-link2.js +134 -134
- package/dist/components/stzh-list-item.js +30 -30
- package/dist/components/stzh-list.js +32 -32
- package/dist/components/stzh-loader.js +38 -38
- package/dist/components/stzh-loadingbar.js +40 -40
- package/dist/components/stzh-menu-item2.js +106 -106
- package/dist/components/stzh-menu2.js +22 -22
- package/dist/components/stzh-message.js +100 -100
- package/dist/components/stzh-metanav.js +40 -40
- package/dist/components/stzh-overlay.js +108 -108
- package/dist/components/stzh-page-skiplinks.js +40 -40
- package/dist/components/stzh-pagetitle.js +74 -74
- package/dist/components/stzh-popover2.js +376 -376
- package/dist/components/stzh-portal-mitwirken.js +26 -26
- package/dist/components/stzh-progressbar-item2.js +74 -74
- package/dist/components/stzh-progressbar.js +146 -146
- package/dist/components/stzh-radio2.js +156 -156
- package/dist/components/stzh-radiogroup2.js +202 -202
- package/dist/components/stzh-readspeaker.js +63 -63
- package/dist/components/stzh-richtext2.js +57 -57
- package/dist/components/stzh-row.js +53 -53
- package/dist/components/stzh-saptcha.js +116 -116
- package/dist/components/stzh-section.js +29 -29
- package/dist/components/stzh-servicecard-list.js +84 -84
- package/dist/components/stzh-servicecard.js +263 -263
- package/dist/components/stzh-skiplink.js +35 -35
- package/dist/components/stzh-sortable2.js +310 -310
- package/dist/components/stzh-status2.js +44 -44
- package/dist/components/stzh-table.js +153 -153
- package/dist/components/stzh-text2.js +57 -57
- package/dist/components/stzh-toggle.js +160 -160
- package/dist/components/stzh-tooltip2.js +340 -340
- package/dist/components/stzh-upload.js +502 -502
- package/dist/components/stzh-vbz-linechip2.js +96 -96
- package/dist/components/stzh-vbz-majorticker.js +139 -139
- package/dist/components/stzh-vbz-ticker.js +214 -214
- package/dist/components/stzh-visuallyhidden.js +24 -24
- package/dist/components/stzh-vspace.js +54 -54
- package/dist/components/translation-utils.js +54 -54
- package/dist/components/utils.js +30 -30
- package/dist/esm/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +37 -37
- package/dist/esm/{app-globals-137e106c.js → app-globals-70c229e3.js} +42 -42
- package/dist/esm/{arrow-18769ca6.js → arrow-86a679c7.js} +3 -3
- package/dist/esm/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +85 -85
- package/dist/esm/{date-utils-282e96fe.js → date-utils-be83fff1.js} +156 -156
- package/dist/esm/{event-utils-68b64805.js → event-utils-7a709e21.js} +13 -13
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +19 -19
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{string-utils-33181845.js → string-utils-f98ee4e8.js} +12 -12
- package/dist/esm/stzh-accordion-item.entry.js +170 -170
- package/dist/esm/stzh-accordion.entry.js +63 -63
- package/dist/esm/stzh-actions.entry.js +42 -42
- package/dist/esm/stzh-appnav.entry.js +39 -39
- package/dist/esm/stzh-appointments.entry.js +260 -260
- package/dist/esm/stzh-badge_3.entry.js +146 -146
- package/dist/esm/stzh-calendar.entry.js +291 -291
- package/dist/esm/stzh-cell.entry.js +24 -24
- package/dist/esm/stzh-checkbox.entry.js +123 -123
- package/dist/esm/stzh-checkboxgroup.entry.js +157 -157
- package/dist/esm/stzh-chip-select.entry.js +55 -55
- package/dist/esm/stzh-chip.entry.js +90 -90
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-container.entry.js +8 -8
- package/dist/esm/stzh-cspace.entry.js +11 -11
- package/dist/esm/stzh-datamessagelist-item.entry.js +92 -92
- package/dist/esm/stzh-datamessagelist.entry.js +12 -12
- package/dist/esm/stzh-datatable.entry.js +201 -201
- package/dist/esm/stzh-datepicker_4.entry.js +458 -458
- package/dist/esm/stzh-dialog.entry.js +179 -179
- package/dist/esm/stzh-dropdown.entry.js +450 -450
- package/dist/esm/stzh-fieldset.entry.js +24 -24
- package/dist/esm/stzh-figure.entry.js +19 -19
- package/dist/esm/stzh-flyingfocus.entry.js +167 -167
- package/dist/esm/stzh-footer.entry.js +56 -56
- package/dist/esm/stzh-ghettobox_2.entry.js +132 -132
- package/dist/esm/stzh-header.entry.js +151 -151
- package/dist/esm/stzh-heading.entry.js +21 -21
- package/dist/esm/stzh-hr.entry.js +12 -12
- package/dist/esm/stzh-hspace.entry.js +30 -30
- package/dist/esm/stzh-icon-sprite.entry.js +9 -9
- package/dist/esm/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +15 -15
- package/dist/esm/stzh-input.entry.js +181 -181
- package/dist/esm/stzh-link.entry.js +95 -95
- package/dist/esm/stzh-list-item.entry.js +15 -15
- package/dist/esm/stzh-list.entry.js +15 -15
- package/dist/esm/stzh-loader.entry.js +20 -20
- package/dist/esm/stzh-loadingbar.entry.js +22 -22
- package/dist/esm/stzh-menu_2.entry.js +81 -81
- package/dist/esm/stzh-message.entry.js +72 -72
- package/dist/esm/stzh-metanav.entry.js +26 -26
- package/dist/esm/stzh-overlay.entry.js +88 -88
- package/dist/esm/stzh-page-skiplinks.entry.js +26 -26
- package/dist/esm/stzh-pagetitle.entry.js +61 -61
- package/dist/esm/stzh-popover.entry.js +349 -349
- package/dist/esm/stzh-portal-mitwirken.entry.js +12 -12
- package/dist/esm/stzh-progressbar-item.entry.js +46 -46
- package/dist/esm/stzh-progressbar.entry.js +114 -114
- package/dist/esm/stzh-readspeaker.entry.js +47 -47
- package/dist/esm/stzh-row.entry.js +29 -29
- package/dist/esm/stzh-saptcha.entry.js +70 -70
- package/dist/esm/stzh-section.entry.js +13 -13
- package/dist/esm/stzh-servicecard-list.entry.js +45 -45
- package/dist/esm/stzh-servicecard.entry.js +201 -201
- package/dist/esm/stzh-skiplink.entry.js +16 -16
- package/dist/esm/stzh-sortable.entry.js +288 -288
- package/dist/esm/stzh-status.entry.js +25 -25
- package/dist/esm/stzh-table.entry.js +132 -132
- package/dist/esm/stzh-toggle.entry.js +123 -123
- package/dist/esm/stzh-tooltip.entry.js +310 -310
- package/dist/esm/stzh-upload.entry.js +440 -440
- package/dist/esm/stzh-vbz-linechip.entry.js +71 -71
- package/dist/esm/stzh-vbz-majorticker.entry.js +95 -95
- package/dist/esm/stzh-vbz-ticker.entry.js +171 -171
- package/dist/esm/stzh-visuallyhidden.entry.js +10 -10
- package/dist/esm/stzh-vspace.entry.js +30 -30
- package/dist/esm/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +54 -54
- package/dist/esm/{utils-c5d68020.js → utils-904416df.js} +30 -30
- package/dist/esm-es5/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +0 -0
- package/dist/esm-es5/app-globals-70c229e3.js +1 -0
- package/dist/esm-es5/{arrow-18769ca6.js → arrow-86a679c7.js} +0 -0
- package/dist/esm-es5/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +0 -0
- package/dist/esm-es5/{date-utils-282e96fe.js → date-utils-be83fff1.js} +0 -0
- package/dist/esm-es5/{event-utils-68b64805.js → event-utils-7a709e21.js} +0 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +0 -0
- package/dist/esm-es5/{string-utils-33181845.js → string-utils-f98ee4e8.js} +0 -0
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +0 -0
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-message.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
- package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -1
- package/dist/esm-es5/stzh-servicecard.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +0 -0
- package/dist/esm-es5/{utils-c5d68020.js → utils-904416df.js} +0 -0
- package/dist/stzh-components/assets/favicons/browserconfig.xml +9 -9
- package/dist/stzh-components/assets/favicons/site.webmanifest +19 -19
- package/dist/stzh-components/assets/fonts.css +39 -39
- package/dist/stzh-components/assets/i18n/de.json +154 -154
- package/dist/stzh-components/assets/i18n/en.json +154 -154
- package/dist/stzh-components/assets/icons/mono/alarm-bell.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-down.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-left.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-right.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-up.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/archive-box.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-down.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-left-circle.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/arrow-left.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-right-long.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-right.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-up.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/bulleted-list.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/calendar.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/cart.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/checkmark-circle.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/checkmark.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/clock.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/close-circle.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/close.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/compass-direction.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/compass-north.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/construction.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/copy.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/delete.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/download.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/drag.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/edit.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/email-check.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/expand.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/external-link.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/facebook-comment.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/facebook.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/file.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/filtering.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/flag.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/focus.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/gear.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/heart.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/home.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/important-warning.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/info-help.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/instagram.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/like-hand.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/linkedin.svg +5 -5
- package/dist/stzh-components/assets/icons/mono/list-expanded.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/list-shrinked.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/lock.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/mail.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/map.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/menu.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/minus.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/more-horizontal.svg +5 -5
- package/dist/stzh-components/assets/icons/mono/more-vertical.svg +5 -5
- package/dist/stzh-components/assets/icons/mono/paper-clip.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/phone.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/pin-location.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/pin.svg +11 -11
- package/dist/stzh-components/assets/icons/mono/play-1.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/play-button.svg +11 -11
- package/dist/stzh-components/assets/icons/mono/play.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/plus.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/portfolio-grid.svg +11 -11
- package/dist/stzh-components/assets/icons/mono/print.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/question-help.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/read-mail.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/reload.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/reset-time.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/reset.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/resize.svg +8 -8
- package/dist/stzh-components/assets/icons/mono/rss.svg +12 -12
- package/dist/stzh-components/assets/icons/mono/search.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/services.svg +6 -6
- package/dist/stzh-components/assets/icons/mono/share.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/shrink.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/silent-mode.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/social-media.svg +23 -23
- package/dist/stzh-components/assets/icons/mono/star-filled.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/star.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/subtitle.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/team.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/text-message.svg +6 -6
- package/dist/stzh-components/assets/icons/mono/thermometer.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/transcript.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/twitter-reply.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/twitter-retweet.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/twitter.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/unlock.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/user.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/view-hidden.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/view.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/volume-medium.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/warning-big.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/warning.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/web-Link.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/wifi-signal.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/world-globe.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/xing.svg +11 -11
- package/dist/stzh-components/assets/polyfills/ie11CustomProperties.min.js +8 -8
- package/dist/stzh-components/assets/polyfills/intersection-observer.min.js +7 -7
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
- package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
- package/dist/stzh-components/{p-95a3c962.system.entry.js → p-043ab41e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-bf5b6523.entry.js → p-07f16263.entry.js} +1 -1
- package/dist/stzh-components/p-08d4ed80.entry.js +1 -0
- package/dist/stzh-components/{p-e1b64b8a.system.entry.js → p-0c92ee26.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3e3e4bfd.system.js → p-11816251.system.js} +0 -0
- package/dist/stzh-components/{p-d790a367.entry.js → p-11d0c8f3.entry.js} +1 -1
- package/dist/stzh-components/{p-bb900d9f.entry.js → p-14d728f0.entry.js} +1 -1
- package/dist/stzh-components/{p-f481f21d.system.js → p-176db2fe.system.js} +0 -0
- package/dist/stzh-components/{p-af47430b.system.entry.js → p-19344366.system.entry.js} +1 -1
- package/dist/stzh-components/{p-afa7061e.entry.js → p-1bfc1097.entry.js} +1 -1
- package/dist/stzh-components/{p-da8218fa.system.entry.js → p-1ccbd2d6.system.entry.js} +1 -1
- package/dist/stzh-components/{p-22f948e2.entry.js → p-1d914f6c.entry.js} +1 -1
- package/dist/stzh-components/{p-9fe34fe8.system.js → p-1e4b4d71.system.js} +0 -0
- package/dist/stzh-components/{p-160c6e5f.system.entry.js → p-1f15a4e0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1a40a6e4.js → p-25a09313.js} +0 -0
- package/dist/stzh-components/{p-ab2727e6.entry.js → p-298276e4.entry.js} +1 -1
- package/dist/stzh-components/{p-3ca5c2e6.system.entry.js → p-2990206c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-320aedf7.js → p-2a5855f8.js} +0 -0
- package/dist/stzh-components/{p-6113bb25.entry.js → p-2d0685e3.entry.js} +1 -1
- package/dist/stzh-components/{p-1aaa5112.system.entry.js → p-2f2cb544.system.entry.js} +1 -1
- package/dist/stzh-components/{p-99195f5a.system.js → p-309d2b66.system.js} +0 -0
- package/dist/stzh-components/{p-59bdb14a.system.entry.js → p-30cb8bc0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8ba6ca80.js → p-32b78d65.js} +0 -0
- package/dist/stzh-components/{p-b06cc533.entry.js → p-33d75303.entry.js} +1 -1
- package/dist/stzh-components/{p-45d4e9b4.system.entry.js → p-346e26f2.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4b8893d1.entry.js → p-3c4478b0.entry.js} +1 -1
- package/dist/stzh-components/{p-740dd50f.entry.js → p-3c799247.entry.js} +1 -1
- package/dist/stzh-components/{p-3410ef5a.system.entry.js → p-48bbcc26.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3eb7b6b4.entry.js → p-49e37004.entry.js} +1 -1
- package/dist/stzh-components/{p-e029f6c5.system.entry.js → p-49ea222f.system.entry.js} +1 -1
- package/dist/stzh-components/p-4c61dcad.js +4 -4
- package/dist/stzh-components/{p-efb9fa47.system.entry.js → p-4cfe83b5.system.entry.js} +1 -1
- package/dist/stzh-components/{p-a499fa98.system.entry.js → p-4e9bfeb8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4c68fa45.system.js → p-5318ba20.system.js} +0 -0
- package/dist/stzh-components/{p-301841e3.entry.js → p-55188328.entry.js} +1 -1
- package/dist/stzh-components/{p-3afe13ac.system.entry.js → p-58ffc722.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ebf73698.entry.js → p-5f7b72c8.entry.js} +1 -1
- package/dist/stzh-components/{p-af819e4e.system.js → p-5f856307.system.js} +0 -0
- package/dist/stzh-components/{p-73d51acc.system.entry.js → p-60b4f34c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-5f20178b.system.js → p-6267a327.system.js} +0 -0
- package/dist/stzh-components/{p-ac9e6d17.system.entry.js → p-634095bd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-42430cdf.js → p-6c502e6e.js} +0 -0
- package/dist/stzh-components/{p-f8bb1bed.system.entry.js → p-6ea5c23d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-25afa99e.entry.js → p-6ec17efc.entry.js} +1 -1
- package/dist/stzh-components/{p-4b69a3e8.system.entry.js → p-6edd58a4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-58b8d309.system.entry.js → p-7279af4a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-7c6f9cb3.entry.js → p-73194e28.entry.js} +1 -1
- package/dist/stzh-components/{p-81d9f3e0.js → p-77a00e55.js} +0 -0
- package/dist/stzh-components/{p-bb91feeb.entry.js → p-79ca1ba6.entry.js} +1 -1
- package/dist/stzh-components/{p-79770abe.system.entry.js → p-7a6e347d.system.entry.js} +2 -2
- package/dist/stzh-components/{p-cd29b7ca.entry.js → p-7bb1bd3b.entry.js} +1 -1
- package/dist/stzh-components/{p-649164c7.entry.js → p-7d098987.entry.js} +1 -1
- package/dist/stzh-components/{p-b9e4095d.entry.js → p-7d2237ca.entry.js} +1 -1
- package/dist/stzh-components/{p-927901f5.system.entry.js → p-7d62dfeb.system.entry.js} +1 -1
- package/dist/stzh-components/{p-c2218965.system.entry.js → p-82d85c3a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-adaf8b15.entry.js → p-8462ba57.entry.js} +1 -1
- package/dist/stzh-components/{p-a42a7524.entry.js → p-86d3ce62.entry.js} +1 -1
- package/dist/stzh-components/{p-1f3e6fad.system.entry.js → p-88a4f756.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d7b5770c.entry.js → p-88bef2cd.entry.js} +1 -1
- package/dist/stzh-components/{p-a8c3af68.system.entry.js → p-8db4279d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0c2b5907.js → p-9111e257.js} +0 -0
- package/dist/stzh-components/{p-d2f660e1.system.js → p-9c0494a6.system.js} +0 -0
- package/dist/stzh-components/{p-b24040ff.system.entry.js → p-9e6c25ed.system.entry.js} +1 -1
- package/dist/stzh-components/{p-582cf0f1.system.js → p-a408bfba.system.js} +0 -0
- package/dist/stzh-components/{p-c3ac1bdc.system.entry.js → p-a4100bd8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-efd78d08.system.entry.js → p-a6486f64.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b56c83a4.entry.js → p-a7c3b41a.entry.js} +1 -1
- package/dist/stzh-components/{p-e00139a1.entry.js → p-a86c6487.entry.js} +1 -1
- package/dist/stzh-components/{p-e3769e97.system.js → p-aa4e28cc.system.js} +1 -1
- package/dist/stzh-components/p-ac1da083.system.js +1 -0
- package/dist/stzh-components/{p-17258518.entry.js → p-b3b5ee7e.entry.js} +1 -1
- package/dist/stzh-components/{p-87140179.system.entry.js → p-b63d6ded.system.entry.js} +1 -1
- package/dist/stzh-components/{p-63bf05f1.system.entry.js → p-bba52769.system.entry.js} +1 -1
- package/dist/stzh-components/{p-9be4e960.entry.js → p-bcade28e.entry.js} +1 -1
- package/dist/stzh-components/p-be21cebd.js +1 -0
- package/dist/stzh-components/{p-67eac0a0.entry.js → p-c2d58384.entry.js} +1 -1
- package/dist/stzh-components/{p-f0422b6c.entry.js → p-c6ad1a8c.entry.js} +1 -1
- package/dist/stzh-components/{p-649621fc.js → p-c8bcceac.js} +0 -0
- package/dist/stzh-components/{p-1e2ee622.system.entry.js → p-cb4a91b7.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ffa293cf.entry.js → p-cf162e67.entry.js} +1 -1
- package/dist/stzh-components/{p-a7454367.js → p-cf6003d6.js} +0 -0
- package/dist/stzh-components/{p-d1821750.system.entry.js → p-d04e8743.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0e9e4c68.entry.js → p-debb00e6.entry.js} +1 -1
- package/dist/stzh-components/{p-e69a66bb.js → p-df2bb358.js} +0 -0
- package/dist/stzh-components/{p-3da37219.entry.js → p-e048de42.entry.js} +1 -1
- package/dist/stzh-components/{p-a5b616bb.system.entry.js → p-e2ce48f1.system.entry.js} +1 -1
- package/dist/stzh-components/{p-22fba26d.entry.js → p-e58d3bc7.entry.js} +1 -1
- package/dist/stzh-components/{p-08cc711a.system.entry.js → p-e972a44f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-6d23fb4d.system.entry.js → p-e987954a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-648695c2.js → p-ee7a68db.js} +0 -0
- package/dist/stzh-components/p-ef5d4167.js +1 -1
- package/dist/stzh-components/{p-b3b05b6c.entry.js → p-f544cf3d.entry.js} +1 -1
- package/dist/stzh-components/{p-a7785d9b.system.js → p-f58c28ad.system.js} +0 -0
- package/dist/stzh-components/{p-c51a61cb.system.entry.js → p-f8d9411d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4e9e606f.entry.js → p-f9dc7a9b.entry.js} +1 -1
- package/dist/stzh-components/{p-ab864a8a.system.entry.js → p-fc9c4fc3.system.entry.js} +1 -1
- package/dist/stzh-components/{p-75f1b800.entry.js → p-ff8a3e96.entry.js} +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +11 -11
- package/dist/types/components/stzh-badge/stzh-badge.d.ts +8 -8
- package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +14 -14
- package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +21 -21
- package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +7 -7
- package/dist/types/components/stzh-cell/stzh-cell.d.ts +21 -21
- package/dist/types/components/stzh-container/stzh-container.d.ts +6 -6
- package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +6 -6
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +4 -4
- package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +4 -4
- package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +5 -5
- package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +4 -4
- package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +7 -7
- package/dist/types/components/stzh-fieldset/stzh-fieldset.d.ts +15 -15
- package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +9 -9
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +5 -5
- package/dist/types/components/stzh-heading/stzh-heading.d.ts +13 -13
- package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +25 -25
- package/dist/types/components/stzh-icon/stzh-icon.d.ts +15 -15
- package/dist/types/components/stzh-icon-sprite/stzh-icon-sprite.d.ts +3 -3
- package/dist/types/components/stzh-input/stzh-input-description.d.ts +11 -11
- package/dist/types/components/stzh-menu/stzh-menu.d.ts +6 -6
- package/dist/types/components/stzh-message/stzh-message.localization.d.ts +4 -4
- package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +4 -4
- package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +8 -8
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +22 -22
- package/dist/types/components/stzh-row/stzh-row.d.ts +23 -23
- package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +7 -7
- package/dist/types/components/stzh-section/stzh-section.d.ts +8 -8
- package/dist/types/components/stzh-servicecard/stzh-servicecard.localization.d.ts +8 -8
- package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.localization.d.ts +5 -5
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +16 -16
- package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +8 -8
- package/dist/types/components/stzh-text/stzh-text.d.ts +23 -23
- package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +4 -4
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +16 -16
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +4 -4
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +15 -15
- package/dist/types/components/stzh-visuallyhidden/stzh-visuallyhidden.d.ts +6 -6
- package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +25 -25
- package/dist/types/index.d.ts +427 -427
- package/dist/types/utils/animation-utils.d.ts +10 -10
- package/dist/types/utils/date-adapter.d.ts +8 -8
- package/dist/types/utils/date-utils.d.ts +61 -61
- package/dist/types/utils/event-utils.d.ts +1 -1
- package/dist/types/utils/h.d.ts +18 -18
- package/dist/types/utils/media-utils.d.ts +3 -3
- package/dist/types/utils/string-utils.d.ts +2 -2
- package/dist/types/utils/test-utils.d.ts +9 -9
- package/dist/types/utils/translation-utils.d.ts +40 -40
- package/dist/types/utils/utils.d.ts +3 -3
- package/dist/vscode-data.json +64 -60
- package/package.json +1 -1
- package/dist/esm-es5/app-globals-137e106c.js +0 -1
- package/dist/stzh-components/p-4476344d.js +0 -1
- package/dist/stzh-components/p-5977373f.system.js +0 -1
- package/dist/stzh-components/p-91e9ccfa.entry.js +0 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +0 -15
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -44
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +0 -16
- package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +0 -17
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +0 -73
- package/dist/types/components/stzh-button/stzh-button.d.ts +0 -59
- package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +0 -76
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +0 -55
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +0 -62
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +0 -47
- package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +0 -23
- package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +0 -6
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +0 -44
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +0 -49
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +0 -93
- package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +0 -59
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +0 -150
- package/dist/types/components/stzh-figure/stzh-figure.d.ts +0 -13
- package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +0 -39
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +0 -21
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +0 -49
- package/dist/types/components/stzh-header/stzh-header.d.ts +0 -57
- package/dist/types/components/stzh-hr/stzh-hr.d.ts +0 -7
- package/dist/types/components/stzh-input/stzh-input.d.ts +0 -95
- package/dist/types/components/stzh-link/stzh-link.d.ts +0 -50
- package/dist/types/components/stzh-list/stzh-list.d.ts +0 -9
- package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +0 -7
- package/dist/types/components/stzh-loader/stzh-loader.d.ts +0 -13
- package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +0 -12
- package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +0 -35
- package/dist/types/components/stzh-message/stzh-message.d.ts +0 -36
- package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +0 -11
- package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +0 -34
- package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +0 -11
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +0 -11
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +0 -73
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +0 -42
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +0 -55
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +0 -64
- package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +0 -18
- package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +0 -14
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +0 -28
- package/dist/types/components/stzh-servicecard/stzh-servicecard.d.ts +0 -72
- package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.d.ts +0 -23
- package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +0 -52
- package/dist/types/components/stzh-status/stzh-status.d.ts +0 -14
- package/dist/types/components/stzh-table/stzh-table.d.ts +0 -33
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +0 -57
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +0 -78
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +0 -207
- package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +0 -27
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +0 -34
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +0 -54
- package/dist/types/types/svg.d.ts +0 -4
|
@@ -1,1241 +1,1241 @@
|
|
|
1
|
-
ReadSpeaker.ui = function () {
|
|
2
|
-
var a = null, f = [], p = [], x = !1, v = function (h) {
|
|
3
|
-
h = h || window.event;
|
|
4
|
-
h.returnValue = !1;
|
|
5
|
-
if (h = h.originalEvent)h.cancelBubble = !0, h.returnValue = !1;
|
|
6
|
-
h && h.preventDefault && h.preventDefault();
|
|
7
|
-
h && h.stopPropagation && h.stopPropagation()
|
|
8
|
-
}, n = function () {
|
|
9
|
-
rspkr.log("[rspkr.ui] Attempting to add click events.");
|
|
10
|
-
var h = $rs.get("." + rspkr.ui.rsbtnClass + " a.rsbtn_play"), a = null;
|
|
11
|
-
$rs.isArray(h) || (h = [h]);
|
|
12
|
-
for (var b = 0, c = h.length; b < c; b++)if ($rs.unregEvent(h[b], "click", ReadSpeakerDefer.clickhandler), a = h[b] ? $rs.getAttr(h[b],
|
|
13
|
-
"data-rsevent-id") : "_bogus_", rspkr.l.f.eq.store[a] && rspkr.l.f.eq.store[a].click)rspkr.log("[rspkr.ui] Click event already existed on " + h[b], 2); else {
|
|
14
|
-
$rs.regEvent(h[b], "click", function (g) {
|
|
15
|
-
v(g);
|
|
16
|
-
window.readpage(this)
|
|
17
|
-
});
|
|
18
|
-
rspkr.ui.addFocusHandler(h[b], !0, h[b].parentNode);
|
|
19
|
-
rspkr.log("[rspkr.ui] Added click event to: " + h[b], 1);
|
|
20
|
-
try {
|
|
21
|
-
$rs.getAttr(h[b], "role") || $rs.setAttr(h[b], "role", "button")
|
|
22
|
-
} catch (f) {
|
|
23
|
-
rspkr.log("[rspkr.ui] Could not add role attribute.", 2)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}, y = function () {
|
|
27
|
-
rspkr.log("[rspkr.ui] Initiating global callbacks");
|
|
28
|
-
rspkr.ui.rsbtnClass = rspkr.cfg.item("ui.rsbtnClass") || "rsbtn";
|
|
29
|
-
window.readpage = function (h, b) {
|
|
30
|
-
rspkr.ui.initrun && rspkr.ui.showPlayer(h, b)
|
|
31
|
-
};
|
|
32
|
-
window.rshlexit = function (h) {
|
|
33
|
-
rspkr.HL.chunking && rspkr.HL.chunking.destroy();
|
|
34
|
-
(void 0 === h || "false" === h) && a.stop();
|
|
35
|
-
setTimeout(function () {
|
|
36
|
-
rspkr.c.dispatchEvent("onAfterSyncExit", window)
|
|
37
|
-
}, 1E3)
|
|
38
|
-
};
|
|
39
|
-
window.rshlinit = l().sync.init;
|
|
40
|
-
window.rshlsetContent = l().sync.setContent;
|
|
41
|
-
window.rshlsetId = l().sync.setId;
|
|
42
|
-
window.rshlsync = function (h, b) {
|
|
43
|
-
for (var a = h.split(","), c = b.split(","), g = 0, j =
|
|
44
|
-
h.length; g < j; g++)l().sync.execute(a[g], c[g])
|
|
45
|
-
};
|
|
46
|
-
window.rshlcontinue = function () {
|
|
47
|
-
function h(g) {
|
|
48
|
-
if (!rspkr.HL.chunking.entracte.src) {
|
|
49
|
-
var g = encodeURIComponent(decodeURIComponent(rs.cfg.getPhrase(g))), a = {}, b;
|
|
50
|
-
for (b in rspkr.c.data.params)rspkr.c.data.params.hasOwnProperty(b) && (a[b] = rspkr.c.data.params[b]);
|
|
51
|
-
b = rspkr.Common.data.selectedText;
|
|
52
|
-
var c = rspkr.Common.data.selectedHTML;
|
|
53
|
-
rspkr.Common.data.selectedText = g;
|
|
54
|
-
rspkr.Common.data.selectedHTML = "";
|
|
55
|
-
a.text = g;
|
|
56
|
-
a.output = "audio";
|
|
57
|
-
g = rspkr.c.buildReadSpeakerCall(a);
|
|
58
|
-
rspkr.HL.chunking.entracte.src =
|
|
59
|
-
g;
|
|
60
|
-
rspkr.Common.data.selectedText = b;
|
|
61
|
-
rspkr.Common.data.selectedHTML = c
|
|
62
|
-
}
|
|
63
|
-
rspkr.HL.chunking.entracte.volume = parseFloat((rspkr.st.get("hlvol") || 100) / 100);
|
|
64
|
-
rspkr.HL.chunking.entracte.play()
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (rspkr.HL.chunking) {
|
|
68
|
-
rspkr.log("[rspkr.ui.rshlcontinue]");
|
|
69
|
-
rspkr.HL.chunking.chunkEnded = !0;
|
|
70
|
-
var b = $rs.get("#sync" + rspkr.HL.html5.synclist[rspkr.HL.html5.synclist.length - 1][2]), b = $rs.offset(b);
|
|
71
|
-
if (rspkr.HL.chunking.continueHref) {
|
|
72
|
-
var a = rspkr.cfg.item("cb.chunking.pause", void 0, !0);
|
|
73
|
-
if (-1 == rspkr.HL.chunking.continueTime)if (rspkr.log("[rspkr.ui.rshlcontinue] Waiting for user interaction"),
|
|
74
|
-
rs.ui.getActivePlayer().pause(), $rs.addClass(rspkr.ui.getActivePlayer().getContainer(), "rsautopaused"), h("chunkcontinue"), a && "function" == typeof a)rspkr.log("[rspkr.ui.rshlcontinue] Running custom callback", 3), a(); else {
|
|
75
|
-
rspkr.log("[rspkr.ui.rshlcontinue] Showing default continue button");
|
|
76
|
-
a = document.createElement("div");
|
|
77
|
-
a.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
|
|
78
|
-
$rs.addClass(a, rspkr.ui.rsbtnClass + " rspopup rsresume");
|
|
79
|
-
var c = $rs.findIn(a, "a");
|
|
80
|
-
c.removeAttribute("href");
|
|
81
|
-
$rs.regEvent(c, "click",
|
|
82
|
-
function () {
|
|
83
|
-
rspkr.c.dispatchEvent("onChunkResume", window)
|
|
84
|
-
});
|
|
85
|
-
$rs.findIn(c, ".rsbtn_text").innerHTML = "<span>" + rs.cfg.getPhrase("chunkbutton") + "</span>";
|
|
86
|
-
document.body.appendChild(a);
|
|
87
|
-
a.style.display = "block";
|
|
88
|
-
b.left += 15;
|
|
89
|
-
c = b.left + $rs.width(a) - $rs.width(window);
|
|
90
|
-
0 < c && (b.left -= c);
|
|
91
|
-
a.style.left = b.left + "px";
|
|
92
|
-
a.style.top = b.top + 15 + "px"
|
|
93
|
-
} else 0 == rspkr.HL.chunking.continueTime ? (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay"), rspkr.c.dispatchEvent("onChunkResume", window)) : isNaN(rspkr.HL.chunking.continueTime) ? rspkr.log("[rshlcontinue] Invalid time parameter!",
|
|
94
|
-
3) : (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay with " + rspkr.HL.chunking.continueTime + " seconds delay"), 5 <= rspkr.HL.chunking.continueTime && h("chunkwait"), a && "function" == typeof a && a(rspkr.HL.chunking.continueTime), rspkr.HL.chunking.stall = !0, setTimeout(function () {
|
|
95
|
-
rspkr.HL.chunking.stall = !1
|
|
96
|
-
}, 1E3 * rspkr.HL.chunking.continueTime), rspkr.HL.chunking.timer = setTimeout(function () {
|
|
97
|
-
rspkr.c.dispatchEvent("onChunkResume", window)
|
|
98
|
-
}, 1E3 * rspkr.HL.chunking.continueTime))
|
|
99
|
-
} else rspkr.log("[rshlcontinue] No continue href found!")
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
var h = rspkr.c.data.browser;
|
|
103
|
-
h && (/iphone|ipad|ios|android/i.test(h.OS) || "android" == h.name.toLowerCase()) ? $rs.regEvent(document.body, "touchend", function (h) {
|
|
104
|
-
rspkr.c.data.setSelectedText(h);
|
|
105
|
-
return!0
|
|
106
|
-
}) : ($rs.regEvent(document.body, "mousedown", function (h) {
|
|
107
|
-
rspkr.ui.setPointerPos(h);
|
|
108
|
-
return!0
|
|
109
|
-
}), $rs.regEvent(document.body, "mouseup", function (a) {
|
|
110
|
-
"opera" === h.name.toLowerCase() ? setTimeout(function () {
|
|
111
|
-
rspkr.c.data.setSelectedText(a)
|
|
112
|
-
}, 50) : rspkr.c.data.setSelectedText(a);
|
|
113
|
-
return!0
|
|
114
|
-
}), $rs.regEvent(window, "mouseup", function (a) {
|
|
115
|
-
"opera" ===
|
|
116
|
-
h.name.toLowerCase() ? setTimeout(function () {
|
|
117
|
-
rspkr.c.data.setSelectedText(a)
|
|
118
|
-
}, 50) : rspkr.c.data.setSelectedText(a);
|
|
119
|
-
return!0
|
|
120
|
-
}), $rs.regEvent(document.body, "keydown", rspkr.ui.setPointerPos), $rs.regEvent(document.body, "keyup", function (h) {
|
|
121
|
-
rspkr.c.data.setSelectedText(h);
|
|
122
|
-
return!0
|
|
123
|
-
}))
|
|
124
|
-
}, q = function () {
|
|
125
|
-
document.removeEventListener ? document.removeEventListener("click", window.ReadSpeakerDefer.clickhandler, !1) : document.detachEvent && document.detachEvent("onclick", window.ReadSpeakerDefer.clickhandler);
|
|
126
|
-
if (ReadSpeakerDefer.deferred) {
|
|
127
|
-
var h =
|
|
128
|
-
ReadSpeakerDefer.deferred, a = null;
|
|
129
|
-
if ("a" != h.tagName.toLowerCase()) {
|
|
130
|
-
for (a = h; "body" != a.tagName.toLowerCase() && !(a = a.parentNode, "a" == a.tagName.toLowerCase()););
|
|
131
|
-
h = a
|
|
132
|
-
}
|
|
133
|
-
ReadSpeakerDefer.isRSLink(h) && (rspkr.log("[rspkr.ui] Activating deferred element: " + h), $rs.removeClass(h.parentNode, "rsdeferred"), rspkr.ui.showPlayer(h));
|
|
134
|
-
ReadSpeakerDefer.deferred = null
|
|
135
|
-
}
|
|
136
|
-
}, w = null, e = function () {
|
|
137
|
-
w && $rs.isVisible(w) && (rspkr.log("[rspkr.ui.updateFocus] " + w.outerHTML), t(w))
|
|
138
|
-
}, t = function (h) {
|
|
139
|
-
$rs.focus && ("function" == typeof $rs.focus &&
|
|
140
|
-
h) && $rs.focus(h)
|
|
141
|
-
}, b = function (h) {
|
|
142
|
-
if ("iconon" == rspkr.st.get("hlicon") && !x) {
|
|
143
|
-
var a = p.push(new k) - 1;
|
|
144
|
-
p[a].id = a;
|
|
145
|
-
p[a].show(h);
|
|
146
|
-
x = !0
|
|
147
|
-
}
|
|
148
|
-
}, c = function () {
|
|
149
|
-
"iconon" == rspkr.st.get("hlicon") && x && (p.pop().hide(), x = !1)
|
|
150
|
-
}, k = function () {
|
|
151
|
-
var h = 0, a = 0, b = null, c = 52, f = null, g = null, j = null, e = function (g) {
|
|
152
|
-
g = g || b;
|
|
153
|
-
$rs.addClass(g, rspkr.ui.rsbtnClass + " rspopup");
|
|
154
|
-
rspkr.cfg.item("general.useCompactPopupButton") && $rs.addClass(g, "rscompact")
|
|
155
|
-
}, k = function (h) {
|
|
156
|
-
$rs.unregEvent(b, "mouseout", i);
|
|
157
|
-
window.clearTimeout(f);
|
|
158
|
-
var a, c = b.clientWidth + 10, u;
|
|
159
|
-
g = rspkr.ui.showPlayer(j,
|
|
160
|
-
b, !0);
|
|
161
|
-
u = g.getWidth();
|
|
162
|
-
a = parseInt($rs.offset(b).left);
|
|
163
|
-
if ((a = rspkr.ui.viewport.width + $rs.scrollLeft(document) - a) < u)a = parseInt($rs.css(b, "left")) - (u - (c - 10)), $rs.css(b, "left", a + "px");
|
|
164
|
-
x = !1;
|
|
165
|
-
$rs.unregEvent(j, "click", k);
|
|
166
|
-
$rs.regEvent(j, "click", function (a) {
|
|
167
|
-
v(a);
|
|
168
|
-
return g.restart()
|
|
169
|
-
});
|
|
170
|
-
v(h);
|
|
171
|
-
return!1
|
|
172
|
-
}, i = function () {
|
|
173
|
-
f || (f = window.setTimeout(function () {
|
|
174
|
-
n()
|
|
175
|
-
}, rspkr.cfg.item("general.popupCloseTime") || 2E3))
|
|
176
|
-
}, m = function () {
|
|
177
|
-
f && (window.clearTimeout(f), f = null)
|
|
178
|
-
}, r = function (g, a) {
|
|
179
|
-
var h = document.body.getBoundingClientRect();
|
|
180
|
-
$rs.css(b,
|
|
181
|
-
{top: a - h.top + "px", left: g - h.left + "px", width: c + "px"})
|
|
182
|
-
}, n = function () {
|
|
183
|
-
$rs.css(b, {display: "none", top: 0, left: 0});
|
|
184
|
-
m();
|
|
185
|
-
p.splice(null, 1);
|
|
186
|
-
x = !1;
|
|
187
|
-
b.parentElement.removeChild(b)
|
|
188
|
-
}, l = rspkr.c.findFirstRSButton(), b = document.createElement("div");
|
|
189
|
-
b.id = rspkr.getID();
|
|
190
|
-
b.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
|
|
191
|
-
e();
|
|
192
|
-
j = $rs.findIn(b, "a.rsbtn_play");
|
|
193
|
-
j.href = l ? l.href : null;
|
|
194
|
-
if (l = rspkr.cfg.item("general.popupHref"))j.href = l;
|
|
195
|
-
var l = j.href.match(/lang=([^&;]*)/i).pop(), q = $rs.findIn($rs.get(b), "a.rsbtn_play span.rsbtn_text span");
|
|
196
|
-
q && (q.textContent = q.innerText = rspkr.cfg.getPhrase("listen", l, "en_us"));
|
|
197
|
-
$rs.setAttr(j, "title", rspkr.cfg.getPhrase("listentoselectedtext", l, "en_us"));
|
|
198
|
-
$rs.regEvent(j, "click", k);
|
|
199
|
-
document.body.appendChild(b);
|
|
200
|
-
return{setPos: r, show: function (g) {
|
|
201
|
-
m(g);
|
|
202
|
-
if (g && "none" == $rs.css(b, "display")) {
|
|
203
|
-
var j = b.cloneNode(!0);
|
|
204
|
-
j.id = rspkr.getID();
|
|
205
|
-
$rs.css(j, {display: "block", position: "absolute", top: 0, left: 0});
|
|
206
|
-
document.body.appendChild(j);
|
|
207
|
-
c = $rs.outerWidth(j) + 3;
|
|
208
|
-
document.body.removeChild(j);
|
|
209
|
-
j = g.clientX || g.pageX;
|
|
210
|
-
g = g.clientY || g.pageY;
|
|
211
|
-
a = g > rspkr.ui.pointerY ? g - $rs.scrollTop(document) + 36 > rspkr.ui.viewport.height - 46 ? g - 66 : g + 30 : 10 > g - $rs.scrollTop(document) - 66 ? g + 30 : g - 51;
|
|
212
|
-
h = 10 > j - $rs.scrollLeft(document) ? j + 10 : j - $rs.scrollLeft(document) > rspkr.ui.viewport.width - (c + 10) ? rspkr.ui.viewport.width + $rs.scrollLeft(document) - (c + 10) : j + 0;
|
|
213
|
-
r(h, a)
|
|
214
|
-
}
|
|
215
|
-
$rs.regEvent(b, "mouseout", i);
|
|
216
|
-
$rs.regEvent(b, "mouseover", m);
|
|
217
|
-
i(null);
|
|
218
|
-
e();
|
|
219
|
-
$rs.css(b, "display", "block")
|
|
220
|
-
}, hide: n, id: null}
|
|
221
|
-
}, i = {update: function (h, b, c) {
|
|
222
|
-
"hlspeed" === h && b !== c && (h = h.replace("hl", ""), rspkr.c.converter[h] &&
|
|
223
|
-
"function" == typeof rspkr.c.converter[h] && (b = rspkr.c.converter[h](b)), rspkr.c.data[h] = b, a && a.stop(), rspkr.pl.releaseAdapter())
|
|
224
|
-
}}, m = function (a, b, c, f, e, g) {
|
|
225
|
-
$rs.css(a, "background-color", "rgb(" + b + "," + c + "," + f + ")");
|
|
226
|
-
f < e ? (f += 10, window.setTimeout(function () {
|
|
227
|
-
m(a, b, c, f, e, g)
|
|
228
|
-
}, 50)) : g && "function" === typeof g && g.apply(a, [])
|
|
229
|
-
}, l = function () {
|
|
230
|
-
return rspkr.XP ? rspkr.XP : rspkr.HL
|
|
231
|
-
};
|
|
232
|
-
_expand = function (a) {
|
|
233
|
-
"string" == typeof a && (a = $rs.get(a));
|
|
234
|
-
$rs.isArray(a) || (a = [a]);
|
|
235
|
-
for (var b = rspkr.c.data.browser, c = function (g) {
|
|
236
|
-
return $rs.closest(g,
|
|
237
|
-
"div." + rspkr.ui.rsbtnClass)
|
|
238
|
-
}, f = function () {
|
|
239
|
-
k(this)
|
|
240
|
-
}, e = function () {
|
|
241
|
-
var g = $rs.findIn(c(this), ".rsbtn_play");
|
|
242
|
-
$rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
|
|
243
|
-
k(this);
|
|
244
|
-
g.click()
|
|
245
|
-
}, g = function () {
|
|
246
|
-
$rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
|
|
247
|
-
k(this)
|
|
248
|
-
}, j = function () {
|
|
249
|
-
var g = c(this);
|
|
250
|
-
rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function () {
|
|
251
|
-
rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
|
|
252
|
-
rspkr.cfg.execCallback("cb.ui.settingsopened", g)
|
|
253
|
-
})
|
|
254
|
-
}, k = function (a) {
|
|
255
|
-
a =
|
|
256
|
-
c(a);
|
|
257
|
-
$rs.unregEvent($rs.findIn(a, ".rsbtn_pause"), "click", e);
|
|
258
|
-
$rs.unregEvent($rs.findIn(a, ".rsbtn_closer"), "click", g);
|
|
259
|
-
$rs.unregEvent($rs.findIn(a, ".rsbtn_settings"), "click", j);
|
|
260
|
-
$rs.unregEvent($rs.findIn(a, ".rsbtn_play"), "click", f);
|
|
261
|
-
$rs.removeClass(a, "pre-expanded")
|
|
262
|
-
}, i = 0; i < a.length; i++) {
|
|
263
|
-
$rs.addClass(a[i], "rsexpanded rsstopped");
|
|
264
|
-
var m = $rs.findIn(a[i], ".rsbtn_powered");
|
|
265
|
-
if (m) {
|
|
266
|
-
var l = $rs.findIn(m, ".rsbtn_btnlabel"), r = rs.cfg.getPhrase("speechenabled") || "", n = (r.match(/.*href="([^"]*)"/i) || []).pop(), p = rs.cfg.getPhrase("newwindow"),
|
|
267
|
-
q = document.createElement("p");
|
|
268
|
-
q.innerHTML = r;
|
|
269
|
-
p = (q.innerText || q.textContent) + (p ? " (" + p + ")" : "");
|
|
270
|
-
l && (l.innerHTML = r);
|
|
271
|
-
$rs.setAttr(m, "title", p);
|
|
272
|
-
$rs.setAttr(m, "data-readspeaker-href", n);
|
|
273
|
-
l = $rs.getAttr(m, "data-rsevent-id");
|
|
274
|
-
(!l || rs.l.f.eq.store[l] && !rs.l.f.eq.store[l].click) && $rs.regEvent(m, "click", function () {
|
|
275
|
-
window.open($rs.getAttr(this, "data-readspeaker-href"))
|
|
276
|
-
});
|
|
277
|
-
if (m = $rs.findIn(m, ".rsbtn_btnlabel a"))(/Chrome|Safari|Opera/gi.test(b.name) || /Explorer/gi.test(b.name) && 8 <= b.version) && $rs.regEvent(m, "click", function (g) {
|
|
278
|
-
v(g)
|
|
279
|
-
}),
|
|
280
|
-
m.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>'
|
|
281
|
-
}
|
|
282
|
-
$rs.addClass(a[i], "pre-expanded");
|
|
283
|
-
$rs.removeClass($rs.findIn(a[i], ".rsbtn_progress_container"), "rsloading");
|
|
284
|
-
$rs.regEvent($rs.findIn(a[i], ".rsbtn_closer"), "click", g);
|
|
285
|
-
$rs.regEvent($rs.findIn(a[i], ".rsbtn_pause"), "click", e);
|
|
286
|
-
$rs.regEvent($rs.findIn(a[i], ".rsbtn_play"), "click", f);
|
|
287
|
-
$rs.regEvent($rs.findIn(a[i], ".rsbtn_settings"), "click", j)
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
_animate = function () {
|
|
291
|
-
var a =
|
|
292
|
-
rs.cfg.item("ui.animate");
|
|
293
|
-
if (a) {
|
|
294
|
-
var b, c = 15, f = 500;
|
|
295
|
-
"object" == typeof a ? (a.id && (b = $rs.get(a.id)), a.count && (c = a.count), a.interval && (f = a.interval)) : "string" === typeof a && (b = $rs.get(a));
|
|
296
|
-
if ("boolean" === typeof a && a || $rs.isArray(b) && 0 == b.length || !b)b = $rs.get("." + rs.ui.rsbtnClass);
|
|
297
|
-
$rs.isArray(b) || (b = [b]);
|
|
298
|
-
var e = c, g = setInterval(function () {
|
|
299
|
-
0 == e && ($rs.removeClass(b, "rsanimate"), clearInterval(g));
|
|
300
|
-
1 == e-- % 2 ? $rs.addClass(b, "rsanimate") : $rs.removeClass(b, "rsanimate")
|
|
301
|
-
}, f)
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
return{meta: {revision: "3253"}, initrun: !1, init: function () {
|
|
305
|
-
evt =
|
|
306
|
-
rspkr.Common.addEvent;
|
|
307
|
-
ui = rspkr.ui;
|
|
308
|
-
evt("onAfterModsLoaded", y);
|
|
309
|
-
evt("onReady", n);
|
|
310
|
-
evt("onReady", q);
|
|
311
|
-
evt("onReady", _animate);
|
|
312
|
-
evt("onSelectedText", b);
|
|
313
|
-
evt("onDeselectedText", c);
|
|
314
|
-
evt("onSettingsChanged", i.update);
|
|
315
|
-
evt("onAfterSyncInit", e);
|
|
316
|
-
this.initrun = !0;
|
|
317
|
-
rspkr.Common.dispatchEvent("onUIInitialized");
|
|
318
|
-
rspkr.log("[rspkr.ui] Initialized!")
|
|
319
|
-
}, addFocusHandler: function (a, b, c) {
|
|
320
|
-
var f = b, e = c, e = e || a;
|
|
321
|
-
void 0 === f && (f = !0);
|
|
322
|
-
$rs.focusIn && "function" == typeof $rs.focusIn && ($rs.focusIn(a, function () {
|
|
323
|
-
$rs.addClass(e, "rsfocus");
|
|
324
|
-
!0 === f &&
|
|
325
|
-
(w = a);
|
|
326
|
-
rspkr.Common.dispatchEvent("onFocusIn", window, [a, e])
|
|
327
|
-
}), $rs.focusOut(a, function () {
|
|
328
|
-
$rs.removeClass(e, "rsfocus");
|
|
329
|
-
rspkr.Common.dispatchEvent("onFocusOut", window, [a, e])
|
|
330
|
-
}))
|
|
331
|
-
}, focus: function (a) {
|
|
332
|
-
t(a)
|
|
333
|
-
}, updateFocus: function () {
|
|
334
|
-
e()
|
|
335
|
-
}, showOverlay: function (b, c) {
|
|
336
|
-
var f = b, e;
|
|
337
|
-
e = c || a.getContainer();
|
|
338
|
-
var k = $rs.findIn(e, ".rsbtn_status");
|
|
339
|
-
0 === k.length && (k = document.createElement("span"), k.className = "rsbtn_status_overlay", k.innerHTML = '<span class="rsbtn_status"></span>', $rs.findIn(e, ".rsbtn_exp").appendChild(k), k = $rs.findIn(e,
|
|
340
|
-
".rsbtn_status"));
|
|
341
|
-
$rs.css($rs.findIn(e, ".rsbtn_status_overlay"), "display", "block");
|
|
342
|
-
if ("nosound" === f)f = '<a class="rsbtn_nosound">' + rspkr.cfg.getPhrase("nosound") + "</a>", k.innerHTML = f, (f = $rs.findIn(e, ".rsbtn_nosound")) && $rs.regEvent(f, "click", function () {
|
|
343
|
-
return a.nosound()
|
|
344
|
-
}); else if ("loaderror" === f) {
|
|
345
|
-
var f = rspkr.c.data.getSaveData("link"), g = document.createElement("a");
|
|
346
|
-
g.className = "rsbtn_loaderror";
|
|
347
|
-
g.innerHTML = "[?]";
|
|
348
|
-
g.href = f;
|
|
349
|
-
$rs.regEvent(g, "click", function (a) {
|
|
350
|
-
rspkr.ui.Lightbox.show("<iframe src='" + g.href +
|
|
351
|
-
"' style='height:100%'></iframe>", null, !1, null, 300);
|
|
352
|
-
v(a)
|
|
353
|
-
});
|
|
354
|
-
k.innerHTML = rspkr.cfg.getPhrase("loaderror") || "An error has occurred, try again";
|
|
355
|
-
k.appendChild(g)
|
|
356
|
-
} else k.innerHTML = f
|
|
357
|
-
}, settings: i, rsbtnClass: "", addClickEvents: function () {
|
|
358
|
-
n()
|
|
359
|
-
}, initGlobalCallbacks: function () {
|
|
360
|
-
y()
|
|
361
|
-
}, showPopupIcon: function (a) {
|
|
362
|
-
b(a)
|
|
363
|
-
}, processDeferred: function () {
|
|
364
|
-
q()
|
|
365
|
-
}, showPlayer: function (b, c, e) {
|
|
366
|
-
var k;
|
|
367
|
-
a:{
|
|
368
|
-
var i = e;
|
|
369
|
-
rspkr.log("[rspkr.ui.showPlayer]");
|
|
370
|
-
i = i || !1;
|
|
371
|
-
if ("string" == typeof b)b:{
|
|
372
|
-
for (var e = $rs.get("a"), g = 0, j = e.length; g < j; g++)if (e[g].href &&
|
|
373
|
-
e[g].href == b) {
|
|
374
|
-
e = e[g];
|
|
375
|
-
break b
|
|
376
|
-
}
|
|
377
|
-
e = !1
|
|
378
|
-
} else e = b;
|
|
379
|
-
e = (g = e) ? $rs.closest(g, ".rsexpanded") : void 0;
|
|
380
|
-
j = rspkr.HL.chunking ? rspkr.HL.chunking.currentChunkNumber : 1;
|
|
381
|
-
if (e && !$rs.isArray(e) && rspkr.ui.getActivePlayer() && 1 == j)rspkr.log("Player already active, calling Player.restart() instead"), rspkr.ui.getActivePlayer().restart(), k = void 0; else {
|
|
382
|
-
rspkr.HL.chunking && rspkr.HL.chunking.destroy();
|
|
383
|
-
rspkr.HL.chunking && rspkr.HL.chunking.html5support && (rspkr.HL.chunking.entracte = new Audio, rspkr.HL.chunking.entracte.play(), rspkr.HL.chunking.entracte.pause());
|
|
384
|
-
rspkr.c.dispatchEvent("onBeforeParamsSet", window, [g]);
|
|
385
|
-
e = "string" == typeof b ? b : g.href;
|
|
386
|
-
j = null;
|
|
387
|
-
"string" == typeof b && (b = e.match(/readid=[^&]+/gi), j = e.match(/readclass=[^&]+/gi), b && 0 < b.length && rspkr.HL.Restore.Storage.readId.push(b[0].replace("readid=", "").split(",")), j && 0 < j.length && rspkr.HL.Restore.Storage.readClass.push(j[0].replace("readclass=", "").split(",")));
|
|
388
|
-
rspkr.c.data.selectedHTML = "";
|
|
389
|
-
rspkr.c.data.setParams(e);
|
|
390
|
-
void 0 !== $rs.getAttr(g, "data-target") && null !== $rs.getAttr(g, "data-target") && (b = $rs.getAttr(g,
|
|
391
|
-
"data-target"), b = $rs.get(b), "object" === typeof b && (c = b));
|
|
392
|
-
c && !i ? (j = $rs.get(c), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsfloating"), rspkr.basicMode && ($rs.removeClass(j, "rshidden"), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsvisible"))) : j = $rs.closest(g, "div." + rspkr.ui.rsbtnClass);
|
|
393
|
-
if (!0 === rspkr.cfg.item("survey.allowed"))if (c = rspkr.c.cookie, i = rspkr.cfg.item("survey.cookieName") || "rspkrsurvey", b = rspkr.cfg.item("survey.cookieLifetime") || 15552E6, g = rspkr.c.data.params, "1" === c.readKey(i, "nmbrdisplays")) {
|
|
394
|
-
rspkr.ui.Lightbox.show(rspkr.cfg.item("survey.url") +
|
|
395
|
-
"?customerid=" + g.customerid + "&lang=" + g.lang, rspkr.st.r().replaceTokens(rspkr.cfg.item("ui.survey.buttons").join(), {rsSURVEY_BUTTON_CLOSErs: rspkr.cfg.getPhrase("close")}), !0, function () {
|
|
396
|
-
$rs.regEvent($rs.get("#rssurvey_button_close"), "click", rspkr.u.Lightbox.hide)
|
|
397
|
-
}, 500);
|
|
398
|
-
rspkr.log(c.updateKey(i, "nmbrdisplays", "displayed", b), 4);
|
|
399
|
-
k = void 0;
|
|
400
|
-
break a
|
|
401
|
-
} else void 0 === c.readKey(i, "nmbrdisplays") && rspkr.log(c.updateKey(i, "nmbrdisplays", "1", b), 4);
|
|
402
|
-
b:{
|
|
403
|
-
c = j;
|
|
404
|
-
for (k in f)if (f[k] && f[k].getContainer && f[k].getContainer() ==
|
|
405
|
-
c) {
|
|
406
|
-
k = f[k];
|
|
407
|
-
break b
|
|
408
|
-
}
|
|
409
|
-
k = new rspkr.ui.Player(c);
|
|
410
|
-
f.push(k)
|
|
411
|
-
}
|
|
412
|
-
if (a && a != k || a && e !== a.getHref())a.close(!0), rspkr.c.dispatchEvent("onUIClosePlayer", a.getContainer(), [0 < rspkr.c.data.selectedText.length ? "textsel" : "nosel"]);
|
|
413
|
-
c = (c = a) ? c.getID() : null;
|
|
414
|
-
rspkr.c.dispatchEvent("onUIShowPlayer", window, [c, k.getID()]);
|
|
415
|
-
k.setHref(e);
|
|
416
|
-
a = k;
|
|
417
|
-
k.show();
|
|
418
|
-
k = a
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
return k
|
|
422
|
-
}, expand: function (a) {
|
|
423
|
-
_expand(a)
|
|
424
|
-
}, pointerX: 0, pointerY: 0, setPointerPos: function (a) {
|
|
425
|
-
rspkr.ui.pointerX = a.pageX;
|
|
426
|
-
rspkr.ui.pointerY = a.pageY;
|
|
427
|
-
return!0
|
|
428
|
-
}, viewport: {width: $rs.width(window),
|
|
429
|
-
height: $rs.height(window)}, popups: p, hl: function (a, b) {
|
|
430
|
-
window.setTimeout(function () {
|
|
431
|
-
m(a, 255, 255, 100, 255, b)
|
|
432
|
-
}, 200)
|
|
433
|
-
}, scroll: {INTERVAL: null, STEPS: 25, scrollToElm: function (a) {
|
|
434
|
-
$rs.isVisible(a) && this.initScroll(a)
|
|
435
|
-
}, scrollToAnchor: function (a) {
|
|
436
|
-
for (var b = $rs.get("a"), c = null, e = 0; e < b.length; e++) {
|
|
437
|
-
var f = b[e];
|
|
438
|
-
if (f.name && f.name == a) {
|
|
439
|
-
c = f;
|
|
440
|
-
break
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
this.initScroll(c)
|
|
444
|
-
}, initScroll: function (a) {
|
|
445
|
-
if (a) {
|
|
446
|
-
for (var b = a.offsetTop, c = a; c.offsetParent && c.offsetParent != document.body;)c = c.offsetParent, b += c.offsetTop;
|
|
447
|
-
b -= 50;
|
|
448
|
-
rs.cfg.item("ui.autoscrollOffset") && !isNaN(rs.cfg.item("ui.autoscrollOffset")) && (b -= rs.cfg.item("ui.autoscrollOffset"));
|
|
449
|
-
clearInterval(rspkr.u.scroll.INTERVAL);
|
|
450
|
-
var c = rspkr.u.scroll.getCurrentYPos(), e = parseInt((b - c) / rspkr.u.scroll.STEPS);
|
|
451
|
-
rspkr.u.scroll.INTERVAL = setInterval(function () {
|
|
452
|
-
rspkr.u.scroll.scrollWindow(e, b, a)
|
|
453
|
-
}, 10)
|
|
454
|
-
} else document.location.hash = a
|
|
455
|
-
}, getCurrentYPos: function () {
|
|
456
|
-
return document.body && document.body.scrollTop ? document.body.scrollTop : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop :
|
|
457
|
-
window.pageYOffset ? window.pageYOffset : 0
|
|
458
|
-
}, scrollWindow: function (a, b, c) {
|
|
459
|
-
var e = rspkr.u.scroll.getCurrentYPos(), f = e < b;
|
|
460
|
-
window.scrollTo(0, e + a);
|
|
461
|
-
a = rspkr.u.scroll.getCurrentYPos();
|
|
462
|
-
if (f != a < b || e == a)window.scrollTo(0, b), clearInterval(rspkr.u.scroll.INTERVAL), "string" == typeof c && (location.hash = c)
|
|
463
|
-
}}, activePlayer: a, getActivePlayer: function () {
|
|
464
|
-
return a
|
|
465
|
-
}}
|
|
466
|
-
}();
|
|
467
|
-
ReadSpeaker.ui.Slider = function () {
|
|
468
|
-
var a = this, f = {handleClass: "", width: 0, height: 0, left: 0, top: 0, steps: -1, stepsize: -1, dir: "h", initval: -1, drop: null, start: null, dragging: null, click: null, labelDragHandle: "", labelStart: "", labelEnd: "", nudge: 1}, p = {rsid: void 0, parent: void 0, ref: void 0}, x = void 0, v = void 0, n = void 0, y = void 0, q = void 0, w = !1, e = 0, t = function (a) {
|
|
469
|
-
a = a || window.event;
|
|
470
|
-
a.returnValue = !1;
|
|
471
|
-
if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
|
|
472
|
-
a && a.preventDefault && a.preventDefault();
|
|
473
|
-
a && a.stopPropagation && a.stopPropagation()
|
|
474
|
-
};
|
|
475
|
-
this.initElement = function (a) {
|
|
476
|
-
if (!w) {
|
|
477
|
-
"string" == typeof a && (a = document.getElementById(a));
|
|
478
|
-
a.innerHTML += '<a href="javascript:void(0);" role="slider" class="keyLink" style="display:block; border:0;"> </a>';
|
|
479
|
-
var c = a.getElementsByTagName("a"), c = c[c.length - 1], k = -1 < f.steps ? f.steps : 100;
|
|
480
|
-
c.relatedElement = a;
|
|
481
|
-
$rs.setAttr(c, "title", f.labelDragHandle);
|
|
482
|
-
$rs.setAttr(c, "aria-label", f.labelDragHandle);
|
|
483
|
-
$rs.setAttr(c, "aria-orientation", "h" == f.dir ? "horizontal" : "vertical");
|
|
484
|
-
$rs.setAttr(c, "aria-valuemin", 0);
|
|
485
|
-
$rs.setAttr(c,
|
|
486
|
-
"aria-valuemax", k);
|
|
487
|
-
$rs.setAttr(c, "aria-valuenow", f.initval || 0);
|
|
488
|
-
e = f.initval;
|
|
489
|
-
$rs.regEvent(a, "mousedown", this.startDragMouse);
|
|
490
|
-
$rs.regEvent(c, "click", function (a) {
|
|
491
|
-
t(a)
|
|
492
|
-
});
|
|
493
|
-
$rs.regEvent(c, "keyup", this.startDragKeys);
|
|
494
|
-
$rs.regEvent(c, "dragstart", function (a) {
|
|
495
|
-
t(a)
|
|
496
|
-
});
|
|
497
|
-
$rs.regEvent(a, "touchstart", this.touchStart);
|
|
498
|
-
$rs.regEvent(p.parent, "mousedown", this.mouseClick)
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
this.mouseClick = function (b) {
|
|
502
|
-
if (!w && !$rs.hasClass(p.ref, "dragged")) {
|
|
503
|
-
var c = a.findPos(b.target), e = b.clientX - (c.left - f.left), b = b.clientY - (c.top - f.top);
|
|
504
|
-
n =
|
|
505
|
-
c.left;
|
|
506
|
-
y = c.top;
|
|
507
|
-
c = a.getCurrentVal({left: e, top: b});
|
|
508
|
-
"function" == typeof f.click && f.click(c, p);
|
|
509
|
-
return!1
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
this.findPos = function (a) {
|
|
513
|
-
var c = curTop = 0;
|
|
514
|
-
if (a.offsetParent) {
|
|
515
|
-
do c += a.offsetLeft, curTop += a.offsetTop; while (a = a.offsetParent);
|
|
516
|
-
return{left: c, top: curTop}
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
this.startDragMouse = function (b) {
|
|
520
|
-
rspkr.log("[rspkr.ui.Slider] startDragMouse");
|
|
521
|
-
if (!w) {
|
|
522
|
-
a.startDrag(this);
|
|
523
|
-
var c = b || window.event;
|
|
524
|
-
x = c.clientX;
|
|
525
|
-
v = c.clientY;
|
|
526
|
-
$rs.regEvent(document.body, "mousemove", a.dragMouse);
|
|
527
|
-
$rs.regEvent(document.body, "mouseup", a.releaseElement)
|
|
528
|
-
}
|
|
529
|
-
t(b);
|
|
530
|
-
return!1
|
|
531
|
-
};
|
|
532
|
-
this.startDragKeys = function (b) {
|
|
533
|
-
rspkr.log("[rspkr.ui.Slider] startDragKeys " + (b || window.event).keyCode);
|
|
534
|
-
a.startDrag(this.relatedElement);
|
|
535
|
-
$rs.regEvent(document.body, "keydown", a.dragKeys);
|
|
536
|
-
$rs.regEvent(document.body, "keypress", a.switchKeyEvents);
|
|
537
|
-
$rs.addClass(this.relatedElement, "rskeycontrolled");
|
|
538
|
-
t(b)
|
|
539
|
-
};
|
|
540
|
-
this.touchStart = function (b) {
|
|
541
|
-
b = b.originalEvent;
|
|
542
|
-
rspkr.log("[rspkr.ui.Slider] touchStart");
|
|
543
|
-
w || (a.startDrag(b.target), x = b.touches[0].pageX, v = b.touches[0].pageY, $rs.regEvent(b.target, "touchmove", a.touchMove),
|
|
544
|
-
$rs.regEvent(b.target, "touchend", a.releaseElement));
|
|
545
|
-
return!1
|
|
546
|
-
};
|
|
547
|
-
this.startDrag = function (b) {
|
|
548
|
-
rspkr.log("[rspkr.ui.Slider] startDrag");
|
|
549
|
-
q && a.releaseElement();
|
|
550
|
-
n = b.offsetLeft;
|
|
551
|
-
y = b.offsetTop;
|
|
552
|
-
q = b;
|
|
553
|
-
$rs.addClass(q, "dragged");
|
|
554
|
-
"function" == typeof f.start && f.start(p)
|
|
555
|
-
};
|
|
556
|
-
this.dragMouse = function (b) {
|
|
557
|
-
b = b || window.event;
|
|
558
|
-
a.setPosition(b.clientX - x, b.clientY - v);
|
|
559
|
-
a.valueChanged = !0;
|
|
560
|
-
return!1
|
|
561
|
-
};
|
|
562
|
-
this.touchMove = function (b) {
|
|
563
|
-
t(b);
|
|
564
|
-
a.setPosition(b.touches[0].pageX - x, b.touches[0].pageY - v);
|
|
565
|
-
a.valueChanged = !0;
|
|
566
|
-
return!1
|
|
567
|
-
};
|
|
568
|
-
this.dragKeys = function (b) {
|
|
569
|
-
switch ((b ||
|
|
570
|
-
window.event).keyCode) {
|
|
571
|
-
case 37:
|
|
572
|
-
case 63234:
|
|
573
|
-
a.valueChanged = !0;
|
|
574
|
-
e -= f.nudge;
|
|
575
|
-
break;
|
|
576
|
-
case 38:
|
|
577
|
-
case 63232:
|
|
578
|
-
a.valueChanged = !0;
|
|
579
|
-
e += f.nudge;
|
|
580
|
-
break;
|
|
581
|
-
case 39:
|
|
582
|
-
case 63235:
|
|
583
|
-
a.valueChanged = !0;
|
|
584
|
-
e += f.nudge;
|
|
585
|
-
break;
|
|
586
|
-
case 40:
|
|
587
|
-
case 63233:
|
|
588
|
-
a.valueChanged = !0;
|
|
589
|
-
e -= f.nudge;
|
|
590
|
-
break;
|
|
591
|
-
case 13:
|
|
592
|
-
case 27:
|
|
593
|
-
return a.releaseElement(), !1;
|
|
594
|
-
case 9:
|
|
595
|
-
return a.releaseElement(), !0;
|
|
596
|
-
default:
|
|
597
|
-
return rspkr.log("[rspkr.ui.Slider] return TRUE"), !0
|
|
598
|
-
}
|
|
599
|
-
!0 === a.valueChanged && (rspkr.c.dispatchEvent("onUISliderMove"), "function" == typeof f.dragging && f.dragging(a.getCurrentVal({skipValueCalculation: !0}),
|
|
600
|
-
p));
|
|
601
|
-
t(b);
|
|
602
|
-
rspkr.log("[rspkr.ui.Slider] ready to return!");
|
|
603
|
-
return!1
|
|
604
|
-
};
|
|
605
|
-
this.setPosition = function (b, c) {
|
|
606
|
-
var e, i = !1;
|
|
607
|
-
e = b;
|
|
608
|
-
var m = n, l = f.left, h = f.width, u = "left";
|
|
609
|
-
"v" == f.dir && (e = c, m = y, l = f.top, h = f.height, u = "top");
|
|
610
|
-
e = m + e;
|
|
611
|
-
-1 < f.stepsize && ((e + l) % f.stepsize ? e = f.stepsize * Math.ceil(e / f.stepsize) + l : i = !0);
|
|
612
|
-
e > h + l ? e = h + l : e < l && (e = l);
|
|
613
|
-
i || (q.style[u] = e + "px", "function" == typeof f.dragging && f.dragging(a.getCurrentVal(), p))
|
|
614
|
-
};
|
|
615
|
-
this.switchKeyEvents = function () {
|
|
616
|
-
$rs.unregEvent(document.body, "keydown", a.dragKeys);
|
|
617
|
-
$rs.unregEvent(document.body,
|
|
618
|
-
"keypress", a.switchKeyEvents);
|
|
619
|
-
$rs.regEvent(document.body, "keypress", a.dragKeys)
|
|
620
|
-
};
|
|
621
|
-
this.releaseElement = function () {
|
|
622
|
-
rspkr.log("[rspkr.ui.Slider] releaseElement");
|
|
623
|
-
$rs.unregEvent(document.body, "mousemove", a.dragMouse);
|
|
624
|
-
$rs.unregEvent(document.body, "mouseup", a.releaseElement);
|
|
625
|
-
$rs.unregEvent(document.body, "keypress", a.dragKeys);
|
|
626
|
-
$rs.unregEvent(document.body, "keypress", a.switchKeyEvents);
|
|
627
|
-
$rs.unregEvent(document.body, "keydown", a.dragKeys);
|
|
628
|
-
$rs.unregEvent(q, "touchmove", a.touchMove);
|
|
629
|
-
$rs.unregEvent(q, "touchend",
|
|
630
|
-
a.releaseElement);
|
|
631
|
-
$rs.removeClass(q, "dragged");
|
|
632
|
-
$rs.removeClass(q, "rskeycontrolled");
|
|
633
|
-
$rs.removeClass(q, "rsmousecontrolled");
|
|
634
|
-
var b = a.getCurrentVal();
|
|
635
|
-
q = null;
|
|
636
|
-
"function" == typeof f.drop && !0 === a.valueChanged && f.drop(b, p);
|
|
637
|
-
a.valueChanged = !1;
|
|
638
|
-
rs.ui.getActivePlayer() && rs.ui.getActivePlayer().setProgress();
|
|
639
|
-
return!1
|
|
640
|
-
};
|
|
641
|
-
this.getCurrentVal = function (a) {
|
|
642
|
-
var c, k = f.width;
|
|
643
|
-
c = "left";
|
|
644
|
-
var i = f.left;
|
|
645
|
-
"v" == f.dir && (k = f.height, c = "top", i = f.top);
|
|
646
|
-
var m = -1 < f.steps ? f.steps : 100, k = -1 < f.stepsize ? f.stepsize : k / m, a = a ? a[c] : $rs.css(p.ref, c).replace(/px/i,
|
|
647
|
-
"");
|
|
648
|
-
pos = Math.round(a) - i;
|
|
649
|
-
c = Math.round(pos / k);
|
|
650
|
-
"v" == f.dir && (c = m - c);
|
|
651
|
-
rspkr.log("[rspkr.ui.Slider] currentval: " + c);
|
|
652
|
-
return a && a.skipValueCalculation || isNaN(c) ? e = Math.max(Math.min(e, m), 0) : e = c
|
|
653
|
-
};
|
|
654
|
-
return{init: function (b, c) {
|
|
655
|
-
"string" == typeof b && (b = document.getElementById(b));
|
|
656
|
-
if (b) {
|
|
657
|
-
var e = b.id || "data-readspeaker-slider-id-" + Math.floor(2E4 * Math.random());
|
|
658
|
-
b.setAttribute && b.setAttribute("data-readspeaker-slider-id-", "data-readspeaker-slider-parent-" + e);
|
|
659
|
-
var i = {width: function () {
|
|
660
|
-
return $rs.width(b)
|
|
661
|
-
}, height: function () {
|
|
662
|
-
return $rs.height(b)
|
|
663
|
-
}};
|
|
664
|
-
if ("object" == typeof c)for (var m in c)c.hasOwnProperty(m) && void 0 !== f[m] && (f[m] = c[m]);
|
|
665
|
-
m = !1;
|
|
666
|
-
var l;
|
|
667
|
-
"rsbtn_volume_slider" === b.className && ("jquery" === rspkr.l.f.currentLib() && 1.5 > parseFloat(jQuery.fn.jquery)) && (l = b.parentNode.style.display, b.parentNode.style.display = "block", m = !0);
|
|
668
|
-
f.width = i.width();
|
|
669
|
-
f.height = i.height();
|
|
670
|
-
m && (b.parentNode.style.display = l);
|
|
671
|
-
-1 < f.steps && (f.stepsize = ("h" == f.dir ? f.width : f.height) / f.steps);
|
|
672
|
-
i = document.createElement("span");
|
|
673
|
-
i.setAttribute("data-readspeaker-slider-id-", e);
|
|
674
|
-
i.className =
|
|
675
|
-
f.handleClass || "rsbtn_progress_handle rsimg";
|
|
676
|
-
b.appendChild(i);
|
|
677
|
-
p.rsid = e;
|
|
678
|
-
p.parent = b;
|
|
679
|
-
p.ref = i;
|
|
680
|
-
e = $rs.css(i, "left");
|
|
681
|
-
null !== e && (f.left = parseInt(e.replace(/px/i, "")));
|
|
682
|
-
e = $rs.css(i, "top");
|
|
683
|
-
null !== e && (f.top = parseInt(e.replace(/px/i, "")));
|
|
684
|
-
-1 < f.initval && this.jumpTo(f.initval);
|
|
685
|
-
f.labelStart && (e = document.createElement("span"), e.className = "slider-label-start", e.innerHTML = f.labelStart, b.appendChild(e));
|
|
686
|
-
f.labelEnd && (e = document.createElement("span"), e.className = "slider-label-end", e.innerHTML = f.labelEnd, b.appendChild(e));
|
|
687
|
-
a.initElement(i)
|
|
688
|
-
}
|
|
689
|
-
}, jumpTo: function (a) {
|
|
690
|
-
if (isNaN(a))return!1;
|
|
691
|
-
var c = 101, e = a;
|
|
692
|
-
-1 < f.steps && (a = Math.round(a), c = f.steps + 1);
|
|
693
|
-
if (-1 < a && a < c) {
|
|
694
|
-
var i = f.width, m = f.left, l = "left";
|
|
695
|
-
"v" == f.dir && (i = f.height, m = f.top, l = "top", a = c - 1 - a);
|
|
696
|
-
p.ref.style[l] = i / (c - 1) * a + m + "px";
|
|
697
|
-
$rs.setAttr($rs.findIn(p.ref, "a.keyLink"), "aria-valuenow", e)
|
|
698
|
-
}
|
|
699
|
-
}, setCurrentValue: function (a) {
|
|
700
|
-
e = a
|
|
701
|
-
}, getInstance: function () {
|
|
702
|
-
return p
|
|
703
|
-
}, getContainer: function () {
|
|
704
|
-
return p.parent
|
|
705
|
-
}, releaseElement: function () {
|
|
706
|
-
a.releaseElement()
|
|
707
|
-
}, startDragKeys: function (b, c) {
|
|
708
|
-
a.startDragKeys.call(b,
|
|
709
|
-
c)
|
|
710
|
-
}, disabled: function () {
|
|
711
|
-
if (arguments)w = arguments[0]; else return w
|
|
712
|
-
}}
|
|
713
|
-
};
|
|
714
|
-
ReadSpeaker.ui.Player = function (a) {
|
|
715
|
-
var f = function (a) {
|
|
716
|
-
a = a || window.event;
|
|
717
|
-
a.returnValue = !1;
|
|
718
|
-
if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
|
|
719
|
-
a && a.preventDefault && a.preventDefault();
|
|
720
|
-
a && a.stopPropagation && a.stopPropagation()
|
|
721
|
-
}, p = rspkr.getID(), x = this, v = [], n = 0, y = !1, q = null, w = !1, e = {_play: null, _pause: null, _stop: null, _vol: null, _settings: null, _dl: null, _closer: null, _powered: null, _get: function (g, b) {
|
|
722
|
-
var c, g = "_" + g;
|
|
723
|
-
c = a ? this[g] && 0 < this[g].length ? this[g] : this[g] = $rs.findIn(a, b) : null;
|
|
724
|
-
return c == [] ? null : c
|
|
725
|
-
}, play: function () {
|
|
726
|
-
return this._get("play",
|
|
727
|
-
".rsbtn_play")
|
|
728
|
-
}, pause: function () {
|
|
729
|
-
return this._get("pause", ".rsbtn_pause")
|
|
730
|
-
}, stop: function () {
|
|
731
|
-
return this._get("stop", ".rsbtn_stop")
|
|
732
|
-
}, vol: function () {
|
|
733
|
-
return this._get("vol", ".rsbtn_volume")
|
|
734
|
-
}, settings: function () {
|
|
735
|
-
return this._get("settings", ".rsbtn_settings")
|
|
736
|
-
}, dl: function () {
|
|
737
|
-
return this._get("dl", ".rsbtn_dl")
|
|
738
|
-
}, pin: function () {
|
|
739
|
-
return this._get("pin", ".rsbtn_pin")
|
|
740
|
-
}, powered: function () {
|
|
741
|
-
return this._get("powered", ".rsbtn_powered")
|
|
742
|
-
}, closer: function () {
|
|
743
|
-
return this._get("closer", ".rsbtn_closer")
|
|
744
|
-
}, nosound: function () {
|
|
745
|
-
return this._get("nosound",
|
|
746
|
-
".rsbtn_nosound")
|
|
747
|
-
}, setPlayPause: function (a) {
|
|
748
|
-
rspkr.log("[rspkr.ui.Player.setPlayPause(" + a + ")]");
|
|
749
|
-
a = a ? $rs.getAttr(this.pause(), "data-rsphrase-play") : $rs.getAttr(this.pause(), "data-rsphrase-pause");
|
|
750
|
-
$rs.setAttr(this.pause(), "title", rspkr.c.decodeEntities(a));
|
|
751
|
-
$rs.findIn(this.pause(), ".rsbtn_btnlabel").innerHTML = a
|
|
752
|
-
}}, t = !1, b = [], c = {play: function () {
|
|
753
|
-
rspkr.c.dispatchEvent("onUIBeforePlay");
|
|
754
|
-
rspkr.log("[rspkr.ui.handlers.play]");
|
|
755
|
-
b.progress && b.progress.disabled(!1);
|
|
756
|
-
c.setStateClass(a, "rsplaying");
|
|
757
|
-
rspkr.basicMode &&
|
|
758
|
-
c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsplaying");
|
|
759
|
-
$rs.addClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading");
|
|
760
|
-
e.setPlayPause(!1);
|
|
761
|
-
rspkr.pl.play();
|
|
762
|
-
w && rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x]);
|
|
763
|
-
rspkr.c.addEvent("onBeforeSyncInit", function () {
|
|
764
|
-
w = !0;
|
|
765
|
-
rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x])
|
|
766
|
-
});
|
|
767
|
-
"flash" === rspkr.pl.adapter && !rspkr.displog.onVolumeAdjusted && rspkr.pl.setVolume(parseInt(rspkr.st.get("hlvol") || "100"));
|
|
768
|
-
rspkr.c.dispatchEvent("onUIAfterPlay");
|
|
769
|
-
rspkr.cfg.execCallback("cb.ui.play",
|
|
770
|
-
a)
|
|
771
|
-
}, pause: function () {
|
|
772
|
-
rspkr.log("[rspkr.ui.handlers.pause]");
|
|
773
|
-
c.setStateClass(a, "rspaused");
|
|
774
|
-
rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rspaused");
|
|
775
|
-
e.setPlayPause(!0);
|
|
776
|
-
rspkr.pl.pause();
|
|
777
|
-
rspkr.pl.getProgress(!1);
|
|
778
|
-
rspkr.c.dispatchEvent("onUIPause");
|
|
779
|
-
rspkr.cfg.execCallback("cb.ui.pause", a);
|
|
780
|
-
rspkr.log("ReadSpeaker.ui.pause")
|
|
781
|
-
}, stop: function () {
|
|
782
|
-
rspkr.log("[rspkr.ui.handlers.stop]");
|
|
783
|
-
b.progress && b.progress.disabled(!0);
|
|
784
|
-
c.setStateClass(a, "rsstopped");
|
|
785
|
-
$rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"),
|
|
786
|
-
"rsloading");
|
|
787
|
-
rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsstopped");
|
|
788
|
-
e.setPlayPause(!0);
|
|
789
|
-
$rs.setAttr(a, "data-readspeaker-current", 0);
|
|
790
|
-
b.progress && (b.progress.jumpTo(0), k(0));
|
|
791
|
-
rspkr.pl.stop();
|
|
792
|
-
rspkr.pl.getProgress(!1);
|
|
793
|
-
rspkr.c.dispatchEvent("onUIStop", a);
|
|
794
|
-
rspkr.cfg.execCallback("cb.ui.stop", a);
|
|
795
|
-
(!document.getElementById("rslightbox_contentcontainer") || !$rs.isVisible(document.getElementById("rslightbox_contentcontainer"))) && e.pause().focus();
|
|
796
|
-
rspkr.HL.chunking && 1 < rspkr.HL.chunking.currentChunkNumber &&
|
|
797
|
-
(rspkr.HL.chunking.destroy(), rspkr.pl.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter());
|
|
798
|
-
rspkr.log("ReadSpeaker.ui.stop")
|
|
799
|
-
}, setStateClass: function (a, b) {
|
|
800
|
-
a && ($rs.removeClass(a, "rspaused rsstopped rsplaying"), $rs.addClass(a, b))
|
|
801
|
-
}, vol: function (g) {
|
|
802
|
-
var c = $rs.findIn(a, ".rsbtn_volume_container"), e = $rs.findIn(a, ".rsbtn_volume"), g = g.originalEvent, f = function (a) {
|
|
803
|
-
var b = a.originalEvent, b = $rs.closest(b.srcElement || b.originalTarget, ".rsbtn_volume_container");
|
|
804
|
-
if ("click" === a.type) {
|
|
805
|
-
if (void 0 === b || $rs.isArray(b) && !b.length)$rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f)
|
|
806
|
-
} else"keyup" === a.type && 27 === a.keyCode && ($rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f))
|
|
807
|
-
};
|
|
808
|
-
$rs.css(c, "left", e.offsetLeft + "px");
|
|
809
|
-
$rs.css(c, "display", "none" == $rs.css(c, "display") ? "block" : "none");
|
|
810
|
-
"block" === $rs.css(c, "display") ? ($rs.regEvent(document.body, "click", f), $rs.regEvent(document.body, "keyup", f)) : ($rs.unregEvent(document.body,
|
|
811
|
-
"click", f), $rs.unregEvent(document.body, "keyup", f));
|
|
812
|
-
g && g.stopPropagation && g.stopPropagation();
|
|
813
|
-
g.cancelBubble = !0;
|
|
814
|
-
e = $rs.findIn(c, ".keyLink");
|
|
815
|
-
b.vol.startDragKeys(e, {keyCode: 13});
|
|
816
|
-
return!1
|
|
817
|
-
}, settings: function () {
|
|
818
|
-
$rs.hasClass(a, "rsplaying") && this.pause();
|
|
819
|
-
rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function (a) {
|
|
820
|
-
var b = $rs.get("rslightbox_closer"), c = function () {
|
|
821
|
-
document.removeEventListener ? b.removeEventListener("click", c, !1) : document.detachEvent && document.detachEvent("onclick", c);
|
|
822
|
-
rspkr.c.dispatchEvent("onSettingsClosed",
|
|
823
|
-
window, [])
|
|
824
|
-
};
|
|
825
|
-
$rs.regEvent(b, "click", c);
|
|
826
|
-
rspkr.ui.addClickEvents();
|
|
827
|
-
rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
|
|
828
|
-
rspkr.cfg.execCallback("cb.ui.settingsopened", a)
|
|
829
|
-
})
|
|
830
|
-
}, close: function (g) {
|
|
831
|
-
c.pin(!0);
|
|
832
|
-
var g = g || !1, j = rspkr.pl, f = !1;
|
|
833
|
-
rspkr.HL.chunking && rspkr.HL.chunking.destroy();
|
|
834
|
-
g || rspkr.cfg.execCallback("cb.ui.beforeclose", a);
|
|
835
|
-
j.hasOwnProperty("getProgress") && rspkr.pl.getProgress(!1);
|
|
836
|
-
j.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter();
|
|
837
|
-
$rs.setAttr(a, "data-readspeaker-current", 0);
|
|
838
|
-
b.progress && b.progress.jumpTo(0);
|
|
839
|
-
$rs.removeClass(a, "rsstopped rsplaying rspaused rsexpanded");
|
|
840
|
-
if (rspkr.basicMode) {
|
|
841
|
-
var h;
|
|
842
|
-
(h = $rs.findIn(a, ".rsbtn_play")) && $rs.removeClass(h, "rsexpanded")
|
|
843
|
-
}
|
|
844
|
-
$rs.hasClass(a, "rsfloating") && ($rs.removeClass(a, rspkr.ui.rsbtnClass), rspkr.basicMode && ($rs.removeClass(a, "rsvisible"), $rs.addClass(a, "rshidden")));
|
|
845
|
-
e.setPlayPause(!0);
|
|
846
|
-
$rs.hasClass(a, "rspopup") && (f = !0, $rs.removeClass(a, "rspopup"), $rs.css(a, "display", "none"), a.parentNode.removeChild(a));
|
|
847
|
-
$rs.css(a, "width", "auto");
|
|
848
|
-
delete rspkr.displog.onVolumeAdjusted;
|
|
849
|
-
g || (rspkr.c.dispatchEvent("onUIClosePlayer", a, ["userclick"]), rspkr.cfg.execCallback("cb.ui.close", a), rspkr.log("ReadSpeaker.ui.close: " + a));
|
|
850
|
-
!g && !1 === f && rspkr.ui.focus($rs.findIn($rs.get(a), ".rsbtn_play"))
|
|
851
|
-
}, dl: function () {
|
|
852
|
-
$rs.hasClass(a, "rsplaying") && this.pause();
|
|
853
|
-
var b = rspkr.c.data.getSaveData("dialog"), c = !1;
|
|
854
|
-
rspkr.log("[rspkr.ui.handlers.dl] Savelink: " + b);
|
|
855
|
-
rspkr.u.Lightbox.show(this.getDlDialog(), this.getDlButtons(), !0, function () {
|
|
856
|
-
var a = $rs.get("#rsdl_button_accept"), e = $rs.get("#rsdl_button_decline");
|
|
857
|
-
a && $rs.regEvent(a, "click", function (e) {
|
|
858
|
-
rspkr.u.Lightbox.hide(e);
|
|
859
|
-
c = "iOS" !== rspkr.c.data.browser.OS && 0 < rspkr.c.data.selectedHTML.length ? !0 : "iOS" !== rspkr.c.data.browser.OS && !0 === rspkr.cfg.item("general.usePost") ? !0 : !1;
|
|
860
|
-
if (!0 === c) {
|
|
861
|
-
e = null;
|
|
862
|
-
if (document.getElementById("dliframe"))e = document.getElementById("dliframe"); else {
|
|
863
|
-
if (document.selection)try {
|
|
864
|
-
e = document.createElement('<iframe name="dliframe">')
|
|
865
|
-
} catch (f) {
|
|
866
|
-
e = document.createElement("iframe")
|
|
867
|
-
} else e = document.createElement("iframe");
|
|
868
|
-
e.name = "dliframe";
|
|
869
|
-
e.setAttribute("id",
|
|
870
|
-
"dliframe");
|
|
871
|
-
e.setAttribute("style", "display: none; position: absolute;");
|
|
872
|
-
e.style.display = "none";
|
|
873
|
-
var h = document.getElementsByTagName("body"), i = null;
|
|
874
|
-
0 < h.length && (i = h.item(0));
|
|
875
|
-
if (i)i.appendChild(e); else return
|
|
876
|
-
}
|
|
877
|
-
e.src = b;
|
|
878
|
-
return!1
|
|
879
|
-
}
|
|
880
|
-
$rs.setAttr(a, "href", b);
|
|
881
|
-
return!0
|
|
882
|
-
});
|
|
883
|
-
e && ($rs.regEvent(e, "click", function (a) {
|
|
884
|
-
f(a);
|
|
885
|
-
rspkr.u.Lightbox.hide(a)
|
|
886
|
-
}), setTimeout(function () {
|
|
887
|
-
rspkr.ui.focus(e)
|
|
888
|
-
}, 200));
|
|
889
|
-
rspkr.c.dispatchEvent("onDownloadLoaded", window, [])
|
|
890
|
-
})
|
|
891
|
-
}, pin: function (a) {
|
|
892
|
-
var b = rs.ui.getActivePlayer().getContainer(), c = b.id + "_pinnedHome",
|
|
893
|
-
f = document.getElementById(c);
|
|
894
|
-
if (!$rs.hasClass(e.pin(), "pinned") && !a) {
|
|
895
|
-
if ($rs.addClass(e.pin(), "pinned"), !f) {
|
|
896
|
-
var a = function (a, b) {
|
|
897
|
-
return window.getComputedStyle ? window.getComputedStyle(a)[b] : a.currentStyle ? a.currentStyle[b] : a.style[b]
|
|
898
|
-
}, f = $rs.clone(b, !1, !0), h = b.offsetLeft, i = b.offsetTop;
|
|
899
|
-
f.style.width = a(b, "width").replace(/[^-\d\.]/g, "") - 2 + "px";
|
|
900
|
-
f.style.height = a(b, "height").replace(/[^-\d\.]/g, "") - 2 + "px";
|
|
901
|
-
for (var k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" "),
|
|
902
|
-
m = 0, l; l = k[m]; m++) {
|
|
903
|
-
var n = $rs.css(b, l);
|
|
904
|
-
$rs.setAttr(b, "data-css-" + l, n);
|
|
905
|
-
n = a(b, l);
|
|
906
|
-
"auto" != n && (f.style[l] = n)
|
|
907
|
-
}
|
|
908
|
-
b.style.position = "fixed";
|
|
909
|
-
b.style.left = h - document.body.scrollLeft + "px";
|
|
910
|
-
b.style.top = i - document.body.scrollTop + "px";
|
|
911
|
-
f.className = "rsbtn_pinnedHome rsbtn";
|
|
912
|
-
for (f.id = c; f.hasChildNodes();)f.removeChild(f.lastChild);
|
|
913
|
-
b.parentElement.insertBefore(f, b)
|
|
914
|
-
}
|
|
915
|
-
} else if ($rs.hasClass(e.pin(), "pinned") || a)if ($rs.removeClass(e.pin(), "pinned"), f) {
|
|
916
|
-
f.parentNode.removeChild(f);
|
|
917
|
-
k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" ");
|
|
918
|
-
for (m = 0; l = k[m]; m++)n = $rs.getAttr(b, "data-css-" + l), $rs.css(b, l, n)
|
|
919
|
-
}
|
|
920
|
-
}, getDlDialog: function () {
|
|
921
|
-
var a = rspkr.cfg.item("ui.dldialog").join("\n"), b = {};
|
|
922
|
-
b.rsTERMS_OF_USE_HEADINGrs = rspkr.cfg.getPhrase("touheading");
|
|
923
|
-
b.rsTERMS_OF_USE_BODYrs = rspkr.cfg.getPhrase("toubody");
|
|
924
|
-
return rspkr.st.r().replaceTokens(a, b)
|
|
925
|
-
}, getDlButtons: function () {
|
|
926
|
-
var a = rspkr.cfg.item("ui.dlbuttons").join("\n"), b = {};
|
|
927
|
-
b.rsTERMS_OF_USE_ACCEPTrs = rspkr.cfg.getPhrase("touaccept");
|
|
928
|
-
b.rsTERMS_OF_USE_DECLINErs = rspkr.cfg.getPhrase("toudecline");
|
|
929
|
-
return rspkr.st.r().replaceTokens(a,
|
|
930
|
-
b)
|
|
931
|
-
}, nosound: function () {
|
|
932
|
-
var a = rspkr.c.data.getSaveData("link");
|
|
933
|
-
$rs.setAttr(e.nosound(), "href", a);
|
|
934
|
-
return!0
|
|
935
|
-
}}, k = function (b) {
|
|
936
|
-
var b = 100 < b ? 100 : b, c = $rs.findIn(a, ".rsbtn_progress_played");
|
|
937
|
-
"object" === typeof c && $rs.css(c, "width", b + "%");
|
|
938
|
-
rspkr.cfg.execCallback("cb.ui.progresschanged", a, [b])
|
|
939
|
-
}, i = function (c) {
|
|
940
|
-
if (c.length) {
|
|
941
|
-
var e = parseInt(c[0]), c = parseInt(c[1]), f = 0 == c ? 0 : Math.round(100 * (e / c)), h = $rs.findIn(a, ".rsbtn_current_time"), i = $rs.findIn(a, ".rsbtn_total_time"), l, n;
|
|
942
|
-
b.progress && (b.progress.setCurrentValue(f), t ||
|
|
943
|
-
(b.progress.jumpTo(f), k(f), h && (h.innerHTML = l = m(e)), i && (i.innerHTML = n = m(c)), rspkr.cfg.execCallback("cb.ui.timeupdated", a, [l, n])));
|
|
944
|
-
rspkr.log("[rspkr.player.updateProgress] current time: " + e + " total time: " + c);
|
|
945
|
-
$rs.setAttr(a, "data-readspeaker-current", e);
|
|
946
|
-
$rs.setAttr(a, "data-readspeaker-buffered", c);
|
|
947
|
-
0 < e && $rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading")
|
|
948
|
-
}
|
|
949
|
-
}, m = function (a) {
|
|
950
|
-
var a = a / 1E3, b = parseInt(a % 60), c = parseInt(a / 60 % 60), a = parseInt(a / 60 / 60 % 60);
|
|
951
|
-
return(10 > a ? "0" + a : a.toString()) + ":" + (10 > c ?
|
|
952
|
-
"0" + c : c.toString()) + ":" + (10 > b ? "0" + b : b.toString())
|
|
953
|
-
}, l = function () {
|
|
954
|
-
t = !0
|
|
955
|
-
}, h = function (b) {
|
|
956
|
-
rspkr.log("_dropProgress (" + b + ")", 5);
|
|
957
|
-
b && (b = b / 100 * $rs.getAttr(a, "data-readspeaker-buffered") / 1E3, rspkr.pl.setProgress(b));
|
|
958
|
-
t = !1
|
|
959
|
-
}, u = function (a) {
|
|
960
|
-
h(a)
|
|
961
|
-
}, B = function (c) {
|
|
962
|
-
rspkr.log("_dropVolume, " + c, 5);
|
|
963
|
-
c = 0 > c ? 0 : 20 * c;
|
|
964
|
-
b.vol && b.vol.jumpTo(c / 20);
|
|
965
|
-
rspkr.pl.setVolume(c);
|
|
966
|
-
rspkr.st.set("hlvol", c);
|
|
967
|
-
rspkr.cfg.execCallback("cb.ui.volumechanged", a, [c]);
|
|
968
|
-
return!1
|
|
969
|
-
}, A = function (c, e) {
|
|
970
|
-
if ("keyLink" === c.className) {
|
|
971
|
-
var f = "";
|
|
972
|
-
$rs.hasClass(e, "rsbtn_volume_handle") ?
|
|
973
|
-
f = "vol" : $rs.hasClass(e, "rsbtn_progress_handle") && (f = "progress");
|
|
974
|
-
var h = {keyCode: 13};
|
|
975
|
-
b[f].startDragKeys(c, h)
|
|
976
|
-
} else $rs.hasClass(e, "rsbtn_volume") && (h = {keyCode: 13}, f = $rs.findIn(a, ".rsbtn_volume_container"), f = $rs.findIn(f, ".keyLink"), b.vol.startDragKeys(f, h))
|
|
977
|
-
}, z = function (a, c) {
|
|
978
|
-
if ("keyLink" === a.className) {
|
|
979
|
-
var e = "";
|
|
980
|
-
$rs.hasClass(c, "rsbtn_volume_handle") ? e = "vol" : $rs.hasClass(c, "rsbtn_progress_handle") && (e = "progress");
|
|
981
|
-
b[e].releaseElement();
|
|
982
|
-
t = !1
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
return{init: function () {
|
|
986
|
-
v.push([this.show, []])
|
|
987
|
-
}, show: function () {
|
|
988
|
-
$rs.rsid(a);
|
|
989
|
-
a.id = p = a.id || rspkr.getID();
|
|
990
|
-
ui = rspkr.ui;
|
|
991
|
-
$rs.hasClass(a, rspkr.ui.rsbtnClass) || $rs.addClass(a, rspkr.ui.rsbtnClass);
|
|
992
|
-
var g = null, g = rspkr.cfg, j = rspkr.cfg.getPhrases(rspkr.c.data.getParam("lang"));
|
|
993
|
-
if (0 == $rs.findIn(a, ".rsbtn_exp").length) {
|
|
994
|
-
var i = $rs.hasClass(a, "rspopup") ? g.item("ui.popupplayer") : g.item("ui.player"), g = document.createElement("div");
|
|
995
|
-
g.className = "rsbtn_exp rsimg rspart";
|
|
996
|
-
g.innerHTML += i.join("\n");
|
|
997
|
-
a.appendChild(g)
|
|
998
|
-
}
|
|
999
|
-
g = e.pin();
|
|
1000
|
-
i = "Explorer" == rspkr.c.data.browser.name && 8 > rspkr.c.data.browser.version;
|
|
1001
|
-
$rs.isArray(g) && 0 == g.length && (g = void 0);
|
|
1002
|
-
g && !i && rspkr.cfg.item("ui.usePin") ? $rs.removeClass(g, "turnedOff") : g && g.parentElement.removeChild(g);
|
|
1003
|
-
if (j) {
|
|
1004
|
-
g = function (a, b) {
|
|
1005
|
-
var c = $rs.findIn(a, ".rsbtn_btnlabel");
|
|
1006
|
-
$rs.isArray(c) || (c = [c]);
|
|
1007
|
-
0 < c.length && (c[0].innerHTML = b)
|
|
1008
|
-
};
|
|
1009
|
-
e.pause() && ($rs.setAttr(e.pause(), "data-rsphrase-pause", j.pause), $rs.setAttr(e.pause(), "data-rsphrase-play", j.play), $rs.setAttr(e.pause(), "title", rspkr.c.decodeEntities(j.pause)), g(e.pause(), rspkr.c.decodeEntities(j.pause)));
|
|
1010
|
-
e.stop() && ($rs.setAttr(e.stop(),
|
|
1011
|
-
"title", rspkr.c.decodeEntities(j.stop)), g(e.stop(), rspkr.c.decodeEntities(j.stop)));
|
|
1012
|
-
e.vol() && ($rs.setAttr(e.vol(), "title", rspkr.c.decodeEntities(j.volume)), g(e.vol(), rspkr.c.decodeEntities(j.volume)));
|
|
1013
|
-
e.settings() && ($rs.setAttr(e.settings(), "title", rspkr.c.decodeEntities(j.settings)), g(e.settings(), rspkr.c.decodeEntities(j.settings)));
|
|
1014
|
-
e.dl() && ($rs.setAttr(e.dl(), "title", rspkr.c.decodeEntities(j.download)), g(e.dl(), rspkr.c.decodeEntities(j.download)));
|
|
1015
|
-
if (e.powered()) {
|
|
1016
|
-
var i = $rs.findIn(e.powered(), ".rsbtn_btnlabel"),
|
|
1017
|
-
k = j.speechenabled.match(/.*href="([^"]*)"/i).pop(), m = j.newwindow, q = document.createElement("p");
|
|
1018
|
-
q.innerHTML = j.speechenabled;
|
|
1019
|
-
m = (q.innerText || q.textContent) + (m ? " (" + m + ")" : "");
|
|
1020
|
-
i && (i.innerHTML = j.speechenabled);
|
|
1021
|
-
$rs.setAttr(e.powered(), "title", m);
|
|
1022
|
-
$rs.setAttr(e.powered(), "data-readspeaker-href", k);
|
|
1023
|
-
i = $rs.getAttr(e.powered(), "data-rsevent-id");
|
|
1024
|
-
(!i || rs.l.f.eq.store[i] && !rs.l.f.eq.store[i].click) && $rs.regEvent(e.powered(), "click", function () {
|
|
1025
|
-
window.open($rs.getAttr(this, "data-readspeaker-href"))
|
|
1026
|
-
})
|
|
1027
|
-
}
|
|
1028
|
-
e.closer() &&
|
|
1029
|
-
($rs.setAttr(e.closer(), "title", rspkr.c.decodeEntities(j.closeplayer)), g(e.closer(), rspkr.c.decodeEntities(j.closeplayer)))
|
|
1030
|
-
}
|
|
1031
|
-
j = rspkr.c.data.browser;
|
|
1032
|
-
(!/safari/i.test(j.name) || !/iphone|ipad|ios/i.test(j.OS)) && $rs.addClass(a, "rs-no-touch");
|
|
1033
|
-
j = $rs.findIn(a, ".rsbtn_status_overlay");
|
|
1034
|
-
$rs.isArray(j) || $rs.css(j, "display", "none");
|
|
1035
|
-
"fallback" === rspkr.pl.adapter && (rspkr.ui.showOverlay("nosound", a), $rs.addClass(a, "rsstopped"));
|
|
1036
|
-
$rs.addClass(a, "rsexpanded");
|
|
1037
|
-
if (rspkr.basicMode) {
|
|
1038
|
-
var r;
|
|
1039
|
-
(r = $rs.findIn(a, ".rsbtn_play")) &&
|
|
1040
|
-
$rs.addClass(r, "rsexpanded")
|
|
1041
|
-
}
|
|
1042
|
-
y || (e.stop() && ($rs.regEvent(e.stop(), "click", function (a) {
|
|
1043
|
-
f(a);
|
|
1044
|
-
c.stop()
|
|
1045
|
-
}), ui.addFocusHandler(e.stop())), e.pause() && ($rs.regEvent(e.pause(), "click", function (b) {
|
|
1046
|
-
f(b);
|
|
1047
|
-
$rs.hasClass(a, "rsplaying") ? c.pause() : ($rs.hasClass(a, "rsstopped") || $rs.hasClass(a, "rspaused")) && c.play()
|
|
1048
|
-
}), ui.addFocusHandler(e.pause())), e.closer() && ($rs.regEvent(e.closer(), "click", function (a) {
|
|
1049
|
-
f(a);
|
|
1050
|
-
c.close()
|
|
1051
|
-
}), ui.addFocusHandler(e.closer())), e.vol() && ($rs.regEvent(e.vol(), "click", function (a) {
|
|
1052
|
-
f(a);
|
|
1053
|
-
c.vol(a)
|
|
1054
|
-
}),
|
|
1055
|
-
ui.addFocusHandler(e.vol())), e.dl() && ($rs.regEvent(e.dl(), "click", function (a) {
|
|
1056
|
-
f(a);
|
|
1057
|
-
return c.dl()
|
|
1058
|
-
}), ui.addFocusHandler(e.dl())), e.settings() && ($rs.regEvent(e.settings(), "click", function (a) {
|
|
1059
|
-
f(a);
|
|
1060
|
-
c.settings()
|
|
1061
|
-
}), ui.addFocusHandler(e.settings())), e.pin() && ($rs.regEvent(e.pin(), "click", function (a) {
|
|
1062
|
-
f(a);
|
|
1063
|
-
c.pin()
|
|
1064
|
-
}), ui.addFocusHandler(e.pin())), r = rspkr.cfg, $rs.setAttr(a, "data-readspeaker-current", 0), $rs.setAttr(a, "data-readspeaker-buffered", 0), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_progress_container")) ||
|
|
1065
|
-
(b.progress = new rspkr.ui.Slider, b.progress.init($rs.findIn($rs.get(a), ".rsbtn_progress_container"), {handleClass: r.item("ui.progressHandleClass") || "rsbtn_progress_handle rsimg", dir: r.item("ui.progressDir") || "h", nudge: 5, start: l, dragging: h, click: u, labelDragHandle: r.getPhrase("sliderseek")}), j = $rs.findIn($rs.get(a), ".rsbtn_progress_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_volume_slider")) || (j = rspkr.st.get("hlvol") || "100", j = 5 * (parseInt(j) / 100), b.vol = new rspkr.ui.Slider,
|
|
1066
|
-
b.vol.init($rs.findIn(a, ".rsbtn_volume_slider"), {handleClass: r.item("ui.volumeHandleClass") || "rsbtn_volume_handle rsimg", dir: r.item("ui.volumeDir") || "v", steps: 5, nudge: 1, initval: j, dragging: B, click: B, labelDragHandle: r.getPhrase("slidervolumedesc")}), j = $rs.findIn($rs.get(a), ".rsbtn_volume_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), rspkr.Common.addEvent("onFocusIn", A), rspkr.Common.addEvent("onFocusOut", z), rspkr.cfg.execCallback("cb.ui.open", a), y = !0);
|
|
1067
|
-
if ($rs.findIn(a, ".rsbtn_powered") && (r = $rs.findIn(a,
|
|
1068
|
-
".rsbtn_powered .rsbtn_btnlabel a")))(/Chrome|Safari|Opera/gi.test(rs.c.data.browser.name) || /Explorer/gi.test(rs.c.data.browser.name) && 8 <= rs.c.data.browser.version) && $rs.regEvent(r, "click", function (a) {
|
|
1069
|
-
f(a)
|
|
1070
|
-
}), r.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>';
|
|
1071
|
-
"0" != $rs.getAttr(a, "data-readspeaker-current") && (rspkr.pl.releaseAdapter(), $rs.setAttr(a, "data-readspeaker-current", 0));
|
|
1072
|
-
"fallback" !== rspkr.pl.adapter &&
|
|
1073
|
-
(c.play(), rspkr.ui.focus(e.pause()));
|
|
1074
|
-
r = (r = a) || a;
|
|
1075
|
-
r = $rs.clone(r, !0, !0);
|
|
1076
|
-
r.id = rspkr.getID();
|
|
1077
|
-
document.body.appendChild(r);
|
|
1078
|
-
$rs.css(r, {position: "absolute", top: "0", left: "0", display: "block", width: "auto"});
|
|
1079
|
-
$rs.css(r, "float", "none");
|
|
1080
|
-
$rs.addClass(r, "rsexpanded");
|
|
1081
|
-
j = $rs.outerWidth(r) + 3;
|
|
1082
|
-
r.style.display = "none";
|
|
1083
|
-
document.body.removeChild(r);
|
|
1084
|
-
n = j;
|
|
1085
|
-
isNaN(n) || $rs.css(a, "width", n + (/[Ee]xplorer/.test(ReadSpeaker.c.data.browser.name) ? 1 : 0) + "px")
|
|
1086
|
-
}, close: function (a) {
|
|
1087
|
-
c.close(a)
|
|
1088
|
-
}, stop: function () {
|
|
1089
|
-
c.stop()
|
|
1090
|
-
}, nosound: function () {
|
|
1091
|
-
return c.nosound()
|
|
1092
|
-
},
|
|
1093
|
-
pause: function () {
|
|
1094
|
-
c.pause()
|
|
1095
|
-
}, play: function () {
|
|
1096
|
-
c.play()
|
|
1097
|
-
}, restart: function () {
|
|
1098
|
-
rspkr.log("[rspkr.ui.restart]");
|
|
1099
|
-
c.stop();
|
|
1100
|
-
window.setTimeout(function () {
|
|
1101
|
-
c.play()
|
|
1102
|
-
}, 500);
|
|
1103
|
-
return!1
|
|
1104
|
-
}, updateProgress: function (a) {
|
|
1105
|
-
i(a)
|
|
1106
|
-
}, setProgress: function (a) {
|
|
1107
|
-
h(a)
|
|
1108
|
-
}, getContainer: function () {
|
|
1109
|
-
return a
|
|
1110
|
-
}, getID: function () {
|
|
1111
|
-
return p
|
|
1112
|
-
}, getWidth: function () {
|
|
1113
|
-
return n
|
|
1114
|
-
}, setHref: function (a) {
|
|
1115
|
-
q = a
|
|
1116
|
-
}, getHref: function () {
|
|
1117
|
-
return q
|
|
1118
|
-
}}
|
|
1119
|
-
};
|
|
1120
|
-
ReadSpeaker.ui.Lightbox = function () {
|
|
1121
|
-
var a = null, f = null, p = null, x = null, v = null, n = null, y, q = [], w = function (a) {
|
|
1122
|
-
a = a || window.event;
|
|
1123
|
-
a.returnValue = !1;
|
|
1124
|
-
if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
|
|
1125
|
-
a && a.preventDefault && a.preventDefault();
|
|
1126
|
-
a && a.stopPropagation && a.stopPropagation()
|
|
1127
|
-
}, e = function () {
|
|
1128
|
-
$rs.css(n, "display", "none");
|
|
1129
|
-
var a = $rs.height(window), b = $rs.height(document), e = parseInt($rs.css(document.documentElement, "width")), f = $rs.width(document), l = $rs.absOffset(document.body), h = 0, p = 0;
|
|
1130
|
-
isNaN(e) && (e = $rs.width(window));
|
|
1131
|
-
l.left && (p = l.left);
|
|
1132
|
-
l.top && (h = l.top);
|
|
1133
|
-
$rs.css(v, {width: (f > e ? f : e) + "px", height: (b > a ? b : a) + "px", top: "-" + Math.abs(h) + "px", left: "-" + Math.abs(p) + "px"});
|
|
1134
|
-
$rs.css(n, "display", "block");
|
|
1135
|
-
t()
|
|
1136
|
-
}, t = function () {
|
|
1137
|
-
var a = $rs.outerWidth(n), b = $rs.outerHeight(n), e = $rs.width(window), f = $rs.height(window), b = y + 80 + 50 < f ? y + 80 : f - 50;
|
|
1138
|
-
n.style.height = b + "px";
|
|
1139
|
-
$rs.get("#rslightbox_content").style.height = b - 80 + "px";
|
|
1140
|
-
b > f ? (n.style.top = $rs.scrollTop(document) + "px", n.style.marginTop = "10px") : (n.style.top = f / 2 + "px", n.style.marginTop = -(b / 2 - $rs.scrollTop(document)) +
|
|
1141
|
-
"px");
|
|
1142
|
-
a > e ? (n.style.left = $rs.scrollLeft(document) + "px", n.style.marginLeft = "0") : (n.style.left = "50%", n.style.marginLeft = -(a / 2 - $rs.scrollLeft(document)) + "px")
|
|
1143
|
-
}, b = function (a) {
|
|
1144
|
-
27 === a.keyCode && rspkr.ui.Lightbox.hide()
|
|
1145
|
-
};
|
|
1146
|
-
return{init: function () {
|
|
1147
|
-
var b = rspkr.pub.Config;
|
|
1148
|
-
a = b.item("ui.overlay.overlayStyles");
|
|
1149
|
-
f = b.item("ui.overlay.contentStyles");
|
|
1150
|
-
p = b.item("ui.overlay.contentTemplate");
|
|
1151
|
-
document.querySelectorAll || (d = document, s = d.createStyleSheet(), d.querySelectorAll = function (a, b, c, e, f) {
|
|
1152
|
-
f = d.all;
|
|
1153
|
-
b = [];
|
|
1154
|
-
a = a.replace(/\[for\b/gi,
|
|
1155
|
-
"[htmlFor").split(",");
|
|
1156
|
-
for (c = a.length; c--;) {
|
|
1157
|
-
s.addRule(a[c], "k:v");
|
|
1158
|
-
for (e = f.length; e--;)f[e].currentStyle.k && b.push(f[e]);
|
|
1159
|
-
s.removeRule(0)
|
|
1160
|
-
}
|
|
1161
|
-
return b
|
|
1162
|
-
});
|
|
1163
|
-
rspkr.log("[rspkr.ui.Lightbox] Heartbeat!")
|
|
1164
|
-
}, show: function (c, k, i, m, l) {
|
|
1165
|
-
for (var h = 0, u = document.body.getElementsByTagName("*"), t; t = u[h]; h++)-1 != t.tabIndex && (q.push([t, t.tabIndex]), t.tabIndex = -1);
|
|
1166
|
-
if (!("Explorer" == rs.c.data.browser.name && 6 == rs.c.data.browser.version)) {
|
|
1167
|
-
t = document.querySelectorAll("body > *");
|
|
1168
|
-
for (h = 0; u = t[h]; h++)if (!("rslightbox_overlay" == u.id ||
|
|
1169
|
-
"rslightbox_contentcontainer" == u.id || "script" == u.tagName.toLowerCase())) {
|
|
1170
|
-
var A = u.getAttribute("aria-hidden");
|
|
1171
|
-
A && u.setAttribute("data-original-aria-hidden", A);
|
|
1172
|
-
u.setAttribute("aria-hidden", "true")
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
c = c || "";
|
|
1176
|
-
i = i || !1;
|
|
1177
|
-
v ? (v.style.display = "", n.style.display = "") : (v = document.createElement("div"), v.id = "rslightbox_overlay", n = document.createElement("div"), n.id = "rslightbox_contentcontainer", n.innerHTML = rspkr.st.r().replaceTokens(p.join("\n"), {rsLIGHTBOX_CLOSE_LABELrs: rspkr.cfg.getPhrase("close")}), $rs.setAttr(v,
|
|
1178
|
-
"style", a.join(";")), $rs.setAttr(n, "style", f.join(";")), document.body.appendChild(v), document.body.appendChild(n), rspkr.evt("onSettingsLoaded", {func: rspkr.st.r().handlers.changed.addButtonEvents, context: rspkr.st.r().handlers.changed, params: [this]}));
|
|
1179
|
-
h = $rs.get("rslightbox_closer");
|
|
1180
|
-
rspkr.ui.addFocusHandler(h, !1);
|
|
1181
|
-
$rs.regEvent(h, "click", function (a) {
|
|
1182
|
-
w(a);
|
|
1183
|
-
rspkr.ui.Lightbox.hide(a)
|
|
1184
|
-
});
|
|
1185
|
-
$rs.regEvent(v, "click", rspkr.ui.Lightbox.hide);
|
|
1186
|
-
$rs.regEvent(document.body, "keyup", b);
|
|
1187
|
-
if ((u = document.documentElement) && document.all)u.style.overflowX =
|
|
1188
|
-
u.style.overflowY = "hidden";
|
|
1189
|
-
if (c != x || i)i = rspkr.cfg.getPhrase("close"), $rs.setAttr(h, "title", i), $rs.findIn(h, ".rsbtn_btnlabel").innerHTML = i, $rs.get("#rslightbox_content").innerHTML = "", $rs.css("#rslightbox_content", "height", "auto"), /^http/i.test(c) ? $rs.findIn("#rslightbox_content", "iframe").length || (i = document.createElement("iframe"), i.src = c, i.className = "rslightbox-iframe", void 0 === l && (l = 2E3), $rs.get("#rslightbox_content").appendChild(i)) : "<" == c.substr(0, 1) && ($rs.get("#rslightbox_content").innerHTML =
|
|
1190
|
-
c), $rs.get("#rslightbox_buttons").innerHTML = k, x = c, "ar_ar" == rs.c.data.params.lang && (-1 == n.className.indexOf("rtl") && (n.className = (n.className + " rtl").replace(/^\s+|\s+$/g, "")), $rs.setAttr($rs.findIn(n, "legend"), "align", "right"));
|
|
1191
|
-
y = void 0 !== l && !isNaN(l) ? l : !rspkr.basicMode ? $rs.get("#rslightbox_content").clientHeight : $rs.get("#rslightbox_content").scrollHeight;
|
|
1192
|
-
c = $rs.findIn("#rslightbox_content", ".rsform-row");
|
|
1193
|
-
for (h = 0; h < c.length; h++) {
|
|
1194
|
-
k = $rs.findIn(c[h], "input, a, select");
|
|
1195
|
-
$rs.isArray(k) || (k = [k]);
|
|
1196
|
-
for (u =
|
|
1197
|
-
0; u < k.length; u++)rspkr.ui.addFocusHandler(k[u], !1, c[h])
|
|
1198
|
-
}
|
|
1199
|
-
var z = $rs.findIn("#rslightbox_buttons", ".rssettings-button-close");
|
|
1200
|
-
rspkr.ui.addFocusHandler(z, !1);
|
|
1201
|
-
$rs.regEvent(z, "click", function (a) {
|
|
1202
|
-
w(a)
|
|
1203
|
-
});
|
|
1204
|
-
(c = $rs.findIn("#rsform_wrapper", ".rssettings-button-gotobottom")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
|
|
1205
|
-
(c = $rs.findIn("#rslightbox_buttons", ".rssettings-button-gototop")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
|
|
1206
|
-
var g = $rs.findIn("#rslightbox_content", "input");
|
|
1207
|
-
$rs.isArray(g) && 0 < g.length ?
|
|
1208
|
-
setTimeout(function () {
|
|
1209
|
-
rspkr.ui.focus(g[0]);
|
|
1210
|
-
rspkr.Common.addEvent("onFocusIn", function (a) {
|
|
1211
|
-
a.className && $rs.hasClass(a, "rssettings-button-gototop") ? rspkr.ui.focus(g[0]) : a.className && $rs.hasClass(a, "rssettings-button-gotobottom") && rspkr.ui.focus(z)
|
|
1212
|
-
})
|
|
1213
|
-
}, 200) : $rs.isArray(g) || setTimeout(function () {
|
|
1214
|
-
rspkr.ui.focus(g)
|
|
1215
|
-
}, 200);
|
|
1216
|
-
e();
|
|
1217
|
-
$rs.regEvent(window, "resize", e);
|
|
1218
|
-
"function" == typeof m && m.apply(this, [n])
|
|
1219
|
-
}, hide: function (a) {
|
|
1220
|
-
for (; 0 < q.length;) {
|
|
1221
|
-
var f = q.pop();
|
|
1222
|
-
f[0].tabIndex = f[1]
|
|
1223
|
-
}
|
|
1224
|
-
if (!("Explorer" == rs.c.data.browser.name &&
|
|
1225
|
-
6 == rs.c.data.browser.version))for (var a = document.querySelectorAll("body > *"), f = 0, i; i = a[f]; f++) {
|
|
1226
|
-
var m = i.getAttribute("data-original-aria-hidden");
|
|
1227
|
-
m ? (i.setAttribute("aria-hidden", m), i.removeAttribute("data-original-aria-hidden")) : i.removeAttribute("aria-hidden")
|
|
1228
|
-
}
|
|
1229
|
-
w(a);
|
|
1230
|
-
v.style.display = "none";
|
|
1231
|
-
n.style.display = "none";
|
|
1232
|
-
$rs.unregEvent(window, "resize", e);
|
|
1233
|
-
$rs.unregEvent($rs.get("#rslightbox_closer"), "click", rspkr.ui.Lightbox.hide);
|
|
1234
|
-
$rs.unregEvent(v, "click", rspkr.ui.Lightbox.hide);
|
|
1235
|
-
$rs.unregEvent(document.body,
|
|
1236
|
-
"keyup", b);
|
|
1237
|
-
if ((a = document.documentElement) && document.all)a.style.overflowX = a.style.overflowY = "auto";
|
|
1238
|
-
rspkr.ui.updateFocus();
|
|
1239
|
-
rspkr.c.dispatchEvent("onSettingsClosed", window, [])
|
|
1240
|
-
}, reposition: t}
|
|
1241
|
-
}();
|
|
1
|
+
ReadSpeaker.ui = function () {
|
|
2
|
+
var a = null, f = [], p = [], x = !1, v = function (h) {
|
|
3
|
+
h = h || window.event;
|
|
4
|
+
h.returnValue = !1;
|
|
5
|
+
if (h = h.originalEvent)h.cancelBubble = !0, h.returnValue = !1;
|
|
6
|
+
h && h.preventDefault && h.preventDefault();
|
|
7
|
+
h && h.stopPropagation && h.stopPropagation()
|
|
8
|
+
}, n = function () {
|
|
9
|
+
rspkr.log("[rspkr.ui] Attempting to add click events.");
|
|
10
|
+
var h = $rs.get("." + rspkr.ui.rsbtnClass + " a.rsbtn_play"), a = null;
|
|
11
|
+
$rs.isArray(h) || (h = [h]);
|
|
12
|
+
for (var b = 0, c = h.length; b < c; b++)if ($rs.unregEvent(h[b], "click", ReadSpeakerDefer.clickhandler), a = h[b] ? $rs.getAttr(h[b],
|
|
13
|
+
"data-rsevent-id") : "_bogus_", rspkr.l.f.eq.store[a] && rspkr.l.f.eq.store[a].click)rspkr.log("[rspkr.ui] Click event already existed on " + h[b], 2); else {
|
|
14
|
+
$rs.regEvent(h[b], "click", function (g) {
|
|
15
|
+
v(g);
|
|
16
|
+
window.readpage(this)
|
|
17
|
+
});
|
|
18
|
+
rspkr.ui.addFocusHandler(h[b], !0, h[b].parentNode);
|
|
19
|
+
rspkr.log("[rspkr.ui] Added click event to: " + h[b], 1);
|
|
20
|
+
try {
|
|
21
|
+
$rs.getAttr(h[b], "role") || $rs.setAttr(h[b], "role", "button")
|
|
22
|
+
} catch (f) {
|
|
23
|
+
rspkr.log("[rspkr.ui] Could not add role attribute.", 2)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}, y = function () {
|
|
27
|
+
rspkr.log("[rspkr.ui] Initiating global callbacks");
|
|
28
|
+
rspkr.ui.rsbtnClass = rspkr.cfg.item("ui.rsbtnClass") || "rsbtn";
|
|
29
|
+
window.readpage = function (h, b) {
|
|
30
|
+
rspkr.ui.initrun && rspkr.ui.showPlayer(h, b)
|
|
31
|
+
};
|
|
32
|
+
window.rshlexit = function (h) {
|
|
33
|
+
rspkr.HL.chunking && rspkr.HL.chunking.destroy();
|
|
34
|
+
(void 0 === h || "false" === h) && a.stop();
|
|
35
|
+
setTimeout(function () {
|
|
36
|
+
rspkr.c.dispatchEvent("onAfterSyncExit", window)
|
|
37
|
+
}, 1E3)
|
|
38
|
+
};
|
|
39
|
+
window.rshlinit = l().sync.init;
|
|
40
|
+
window.rshlsetContent = l().sync.setContent;
|
|
41
|
+
window.rshlsetId = l().sync.setId;
|
|
42
|
+
window.rshlsync = function (h, b) {
|
|
43
|
+
for (var a = h.split(","), c = b.split(","), g = 0, j =
|
|
44
|
+
h.length; g < j; g++)l().sync.execute(a[g], c[g])
|
|
45
|
+
};
|
|
46
|
+
window.rshlcontinue = function () {
|
|
47
|
+
function h(g) {
|
|
48
|
+
if (!rspkr.HL.chunking.entracte.src) {
|
|
49
|
+
var g = encodeURIComponent(decodeURIComponent(rs.cfg.getPhrase(g))), a = {}, b;
|
|
50
|
+
for (b in rspkr.c.data.params)rspkr.c.data.params.hasOwnProperty(b) && (a[b] = rspkr.c.data.params[b]);
|
|
51
|
+
b = rspkr.Common.data.selectedText;
|
|
52
|
+
var c = rspkr.Common.data.selectedHTML;
|
|
53
|
+
rspkr.Common.data.selectedText = g;
|
|
54
|
+
rspkr.Common.data.selectedHTML = "";
|
|
55
|
+
a.text = g;
|
|
56
|
+
a.output = "audio";
|
|
57
|
+
g = rspkr.c.buildReadSpeakerCall(a);
|
|
58
|
+
rspkr.HL.chunking.entracte.src =
|
|
59
|
+
g;
|
|
60
|
+
rspkr.Common.data.selectedText = b;
|
|
61
|
+
rspkr.Common.data.selectedHTML = c
|
|
62
|
+
}
|
|
63
|
+
rspkr.HL.chunking.entracte.volume = parseFloat((rspkr.st.get("hlvol") || 100) / 100);
|
|
64
|
+
rspkr.HL.chunking.entracte.play()
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (rspkr.HL.chunking) {
|
|
68
|
+
rspkr.log("[rspkr.ui.rshlcontinue]");
|
|
69
|
+
rspkr.HL.chunking.chunkEnded = !0;
|
|
70
|
+
var b = $rs.get("#sync" + rspkr.HL.html5.synclist[rspkr.HL.html5.synclist.length - 1][2]), b = $rs.offset(b);
|
|
71
|
+
if (rspkr.HL.chunking.continueHref) {
|
|
72
|
+
var a = rspkr.cfg.item("cb.chunking.pause", void 0, !0);
|
|
73
|
+
if (-1 == rspkr.HL.chunking.continueTime)if (rspkr.log("[rspkr.ui.rshlcontinue] Waiting for user interaction"),
|
|
74
|
+
rs.ui.getActivePlayer().pause(), $rs.addClass(rspkr.ui.getActivePlayer().getContainer(), "rsautopaused"), h("chunkcontinue"), a && "function" == typeof a)rspkr.log("[rspkr.ui.rshlcontinue] Running custom callback", 3), a(); else {
|
|
75
|
+
rspkr.log("[rspkr.ui.rshlcontinue] Showing default continue button");
|
|
76
|
+
a = document.createElement("div");
|
|
77
|
+
a.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
|
|
78
|
+
$rs.addClass(a, rspkr.ui.rsbtnClass + " rspopup rsresume");
|
|
79
|
+
var c = $rs.findIn(a, "a");
|
|
80
|
+
c.removeAttribute("href");
|
|
81
|
+
$rs.regEvent(c, "click",
|
|
82
|
+
function () {
|
|
83
|
+
rspkr.c.dispatchEvent("onChunkResume", window)
|
|
84
|
+
});
|
|
85
|
+
$rs.findIn(c, ".rsbtn_text").innerHTML = "<span>" + rs.cfg.getPhrase("chunkbutton") + "</span>";
|
|
86
|
+
document.body.appendChild(a);
|
|
87
|
+
a.style.display = "block";
|
|
88
|
+
b.left += 15;
|
|
89
|
+
c = b.left + $rs.width(a) - $rs.width(window);
|
|
90
|
+
0 < c && (b.left -= c);
|
|
91
|
+
a.style.left = b.left + "px";
|
|
92
|
+
a.style.top = b.top + 15 + "px"
|
|
93
|
+
} else 0 == rspkr.HL.chunking.continueTime ? (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay"), rspkr.c.dispatchEvent("onChunkResume", window)) : isNaN(rspkr.HL.chunking.continueTime) ? rspkr.log("[rshlcontinue] Invalid time parameter!",
|
|
94
|
+
3) : (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay with " + rspkr.HL.chunking.continueTime + " seconds delay"), 5 <= rspkr.HL.chunking.continueTime && h("chunkwait"), a && "function" == typeof a && a(rspkr.HL.chunking.continueTime), rspkr.HL.chunking.stall = !0, setTimeout(function () {
|
|
95
|
+
rspkr.HL.chunking.stall = !1
|
|
96
|
+
}, 1E3 * rspkr.HL.chunking.continueTime), rspkr.HL.chunking.timer = setTimeout(function () {
|
|
97
|
+
rspkr.c.dispatchEvent("onChunkResume", window)
|
|
98
|
+
}, 1E3 * rspkr.HL.chunking.continueTime))
|
|
99
|
+
} else rspkr.log("[rshlcontinue] No continue href found!")
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var h = rspkr.c.data.browser;
|
|
103
|
+
h && (/iphone|ipad|ios|android/i.test(h.OS) || "android" == h.name.toLowerCase()) ? $rs.regEvent(document.body, "touchend", function (h) {
|
|
104
|
+
rspkr.c.data.setSelectedText(h);
|
|
105
|
+
return!0
|
|
106
|
+
}) : ($rs.regEvent(document.body, "mousedown", function (h) {
|
|
107
|
+
rspkr.ui.setPointerPos(h);
|
|
108
|
+
return!0
|
|
109
|
+
}), $rs.regEvent(document.body, "mouseup", function (a) {
|
|
110
|
+
"opera" === h.name.toLowerCase() ? setTimeout(function () {
|
|
111
|
+
rspkr.c.data.setSelectedText(a)
|
|
112
|
+
}, 50) : rspkr.c.data.setSelectedText(a);
|
|
113
|
+
return!0
|
|
114
|
+
}), $rs.regEvent(window, "mouseup", function (a) {
|
|
115
|
+
"opera" ===
|
|
116
|
+
h.name.toLowerCase() ? setTimeout(function () {
|
|
117
|
+
rspkr.c.data.setSelectedText(a)
|
|
118
|
+
}, 50) : rspkr.c.data.setSelectedText(a);
|
|
119
|
+
return!0
|
|
120
|
+
}), $rs.regEvent(document.body, "keydown", rspkr.ui.setPointerPos), $rs.regEvent(document.body, "keyup", function (h) {
|
|
121
|
+
rspkr.c.data.setSelectedText(h);
|
|
122
|
+
return!0
|
|
123
|
+
}))
|
|
124
|
+
}, q = function () {
|
|
125
|
+
document.removeEventListener ? document.removeEventListener("click", window.ReadSpeakerDefer.clickhandler, !1) : document.detachEvent && document.detachEvent("onclick", window.ReadSpeakerDefer.clickhandler);
|
|
126
|
+
if (ReadSpeakerDefer.deferred) {
|
|
127
|
+
var h =
|
|
128
|
+
ReadSpeakerDefer.deferred, a = null;
|
|
129
|
+
if ("a" != h.tagName.toLowerCase()) {
|
|
130
|
+
for (a = h; "body" != a.tagName.toLowerCase() && !(a = a.parentNode, "a" == a.tagName.toLowerCase()););
|
|
131
|
+
h = a
|
|
132
|
+
}
|
|
133
|
+
ReadSpeakerDefer.isRSLink(h) && (rspkr.log("[rspkr.ui] Activating deferred element: " + h), $rs.removeClass(h.parentNode, "rsdeferred"), rspkr.ui.showPlayer(h));
|
|
134
|
+
ReadSpeakerDefer.deferred = null
|
|
135
|
+
}
|
|
136
|
+
}, w = null, e = function () {
|
|
137
|
+
w && $rs.isVisible(w) && (rspkr.log("[rspkr.ui.updateFocus] " + w.outerHTML), t(w))
|
|
138
|
+
}, t = function (h) {
|
|
139
|
+
$rs.focus && ("function" == typeof $rs.focus &&
|
|
140
|
+
h) && $rs.focus(h)
|
|
141
|
+
}, b = function (h) {
|
|
142
|
+
if ("iconon" == rspkr.st.get("hlicon") && !x) {
|
|
143
|
+
var a = p.push(new k) - 1;
|
|
144
|
+
p[a].id = a;
|
|
145
|
+
p[a].show(h);
|
|
146
|
+
x = !0
|
|
147
|
+
}
|
|
148
|
+
}, c = function () {
|
|
149
|
+
"iconon" == rspkr.st.get("hlicon") && x && (p.pop().hide(), x = !1)
|
|
150
|
+
}, k = function () {
|
|
151
|
+
var h = 0, a = 0, b = null, c = 52, f = null, g = null, j = null, e = function (g) {
|
|
152
|
+
g = g || b;
|
|
153
|
+
$rs.addClass(g, rspkr.ui.rsbtnClass + " rspopup");
|
|
154
|
+
rspkr.cfg.item("general.useCompactPopupButton") && $rs.addClass(g, "rscompact")
|
|
155
|
+
}, k = function (h) {
|
|
156
|
+
$rs.unregEvent(b, "mouseout", i);
|
|
157
|
+
window.clearTimeout(f);
|
|
158
|
+
var a, c = b.clientWidth + 10, u;
|
|
159
|
+
g = rspkr.ui.showPlayer(j,
|
|
160
|
+
b, !0);
|
|
161
|
+
u = g.getWidth();
|
|
162
|
+
a = parseInt($rs.offset(b).left);
|
|
163
|
+
if ((a = rspkr.ui.viewport.width + $rs.scrollLeft(document) - a) < u)a = parseInt($rs.css(b, "left")) - (u - (c - 10)), $rs.css(b, "left", a + "px");
|
|
164
|
+
x = !1;
|
|
165
|
+
$rs.unregEvent(j, "click", k);
|
|
166
|
+
$rs.regEvent(j, "click", function (a) {
|
|
167
|
+
v(a);
|
|
168
|
+
return g.restart()
|
|
169
|
+
});
|
|
170
|
+
v(h);
|
|
171
|
+
return!1
|
|
172
|
+
}, i = function () {
|
|
173
|
+
f || (f = window.setTimeout(function () {
|
|
174
|
+
n()
|
|
175
|
+
}, rspkr.cfg.item("general.popupCloseTime") || 2E3))
|
|
176
|
+
}, m = function () {
|
|
177
|
+
f && (window.clearTimeout(f), f = null)
|
|
178
|
+
}, r = function (g, a) {
|
|
179
|
+
var h = document.body.getBoundingClientRect();
|
|
180
|
+
$rs.css(b,
|
|
181
|
+
{top: a - h.top + "px", left: g - h.left + "px", width: c + "px"})
|
|
182
|
+
}, n = function () {
|
|
183
|
+
$rs.css(b, {display: "none", top: 0, left: 0});
|
|
184
|
+
m();
|
|
185
|
+
p.splice(null, 1);
|
|
186
|
+
x = !1;
|
|
187
|
+
b.parentElement.removeChild(b)
|
|
188
|
+
}, l = rspkr.c.findFirstRSButton(), b = document.createElement("div");
|
|
189
|
+
b.id = rspkr.getID();
|
|
190
|
+
b.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
|
|
191
|
+
e();
|
|
192
|
+
j = $rs.findIn(b, "a.rsbtn_play");
|
|
193
|
+
j.href = l ? l.href : null;
|
|
194
|
+
if (l = rspkr.cfg.item("general.popupHref"))j.href = l;
|
|
195
|
+
var l = j.href.match(/lang=([^&;]*)/i).pop(), q = $rs.findIn($rs.get(b), "a.rsbtn_play span.rsbtn_text span");
|
|
196
|
+
q && (q.textContent = q.innerText = rspkr.cfg.getPhrase("listen", l, "en_us"));
|
|
197
|
+
$rs.setAttr(j, "title", rspkr.cfg.getPhrase("listentoselectedtext", l, "en_us"));
|
|
198
|
+
$rs.regEvent(j, "click", k);
|
|
199
|
+
document.body.appendChild(b);
|
|
200
|
+
return{setPos: r, show: function (g) {
|
|
201
|
+
m(g);
|
|
202
|
+
if (g && "none" == $rs.css(b, "display")) {
|
|
203
|
+
var j = b.cloneNode(!0);
|
|
204
|
+
j.id = rspkr.getID();
|
|
205
|
+
$rs.css(j, {display: "block", position: "absolute", top: 0, left: 0});
|
|
206
|
+
document.body.appendChild(j);
|
|
207
|
+
c = $rs.outerWidth(j) + 3;
|
|
208
|
+
document.body.removeChild(j);
|
|
209
|
+
j = g.clientX || g.pageX;
|
|
210
|
+
g = g.clientY || g.pageY;
|
|
211
|
+
a = g > rspkr.ui.pointerY ? g - $rs.scrollTop(document) + 36 > rspkr.ui.viewport.height - 46 ? g - 66 : g + 30 : 10 > g - $rs.scrollTop(document) - 66 ? g + 30 : g - 51;
|
|
212
|
+
h = 10 > j - $rs.scrollLeft(document) ? j + 10 : j - $rs.scrollLeft(document) > rspkr.ui.viewport.width - (c + 10) ? rspkr.ui.viewport.width + $rs.scrollLeft(document) - (c + 10) : j + 0;
|
|
213
|
+
r(h, a)
|
|
214
|
+
}
|
|
215
|
+
$rs.regEvent(b, "mouseout", i);
|
|
216
|
+
$rs.regEvent(b, "mouseover", m);
|
|
217
|
+
i(null);
|
|
218
|
+
e();
|
|
219
|
+
$rs.css(b, "display", "block")
|
|
220
|
+
}, hide: n, id: null}
|
|
221
|
+
}, i = {update: function (h, b, c) {
|
|
222
|
+
"hlspeed" === h && b !== c && (h = h.replace("hl", ""), rspkr.c.converter[h] &&
|
|
223
|
+
"function" == typeof rspkr.c.converter[h] && (b = rspkr.c.converter[h](b)), rspkr.c.data[h] = b, a && a.stop(), rspkr.pl.releaseAdapter())
|
|
224
|
+
}}, m = function (a, b, c, f, e, g) {
|
|
225
|
+
$rs.css(a, "background-color", "rgb(" + b + "," + c + "," + f + ")");
|
|
226
|
+
f < e ? (f += 10, window.setTimeout(function () {
|
|
227
|
+
m(a, b, c, f, e, g)
|
|
228
|
+
}, 50)) : g && "function" === typeof g && g.apply(a, [])
|
|
229
|
+
}, l = function () {
|
|
230
|
+
return rspkr.XP ? rspkr.XP : rspkr.HL
|
|
231
|
+
};
|
|
232
|
+
_expand = function (a) {
|
|
233
|
+
"string" == typeof a && (a = $rs.get(a));
|
|
234
|
+
$rs.isArray(a) || (a = [a]);
|
|
235
|
+
for (var b = rspkr.c.data.browser, c = function (g) {
|
|
236
|
+
return $rs.closest(g,
|
|
237
|
+
"div." + rspkr.ui.rsbtnClass)
|
|
238
|
+
}, f = function () {
|
|
239
|
+
k(this)
|
|
240
|
+
}, e = function () {
|
|
241
|
+
var g = $rs.findIn(c(this), ".rsbtn_play");
|
|
242
|
+
$rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
|
|
243
|
+
k(this);
|
|
244
|
+
g.click()
|
|
245
|
+
}, g = function () {
|
|
246
|
+
$rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
|
|
247
|
+
k(this)
|
|
248
|
+
}, j = function () {
|
|
249
|
+
var g = c(this);
|
|
250
|
+
rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function () {
|
|
251
|
+
rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
|
|
252
|
+
rspkr.cfg.execCallback("cb.ui.settingsopened", g)
|
|
253
|
+
})
|
|
254
|
+
}, k = function (a) {
|
|
255
|
+
a =
|
|
256
|
+
c(a);
|
|
257
|
+
$rs.unregEvent($rs.findIn(a, ".rsbtn_pause"), "click", e);
|
|
258
|
+
$rs.unregEvent($rs.findIn(a, ".rsbtn_closer"), "click", g);
|
|
259
|
+
$rs.unregEvent($rs.findIn(a, ".rsbtn_settings"), "click", j);
|
|
260
|
+
$rs.unregEvent($rs.findIn(a, ".rsbtn_play"), "click", f);
|
|
261
|
+
$rs.removeClass(a, "pre-expanded")
|
|
262
|
+
}, i = 0; i < a.length; i++) {
|
|
263
|
+
$rs.addClass(a[i], "rsexpanded rsstopped");
|
|
264
|
+
var m = $rs.findIn(a[i], ".rsbtn_powered");
|
|
265
|
+
if (m) {
|
|
266
|
+
var l = $rs.findIn(m, ".rsbtn_btnlabel"), r = rs.cfg.getPhrase("speechenabled") || "", n = (r.match(/.*href="([^"]*)"/i) || []).pop(), p = rs.cfg.getPhrase("newwindow"),
|
|
267
|
+
q = document.createElement("p");
|
|
268
|
+
q.innerHTML = r;
|
|
269
|
+
p = (q.innerText || q.textContent) + (p ? " (" + p + ")" : "");
|
|
270
|
+
l && (l.innerHTML = r);
|
|
271
|
+
$rs.setAttr(m, "title", p);
|
|
272
|
+
$rs.setAttr(m, "data-readspeaker-href", n);
|
|
273
|
+
l = $rs.getAttr(m, "data-rsevent-id");
|
|
274
|
+
(!l || rs.l.f.eq.store[l] && !rs.l.f.eq.store[l].click) && $rs.regEvent(m, "click", function () {
|
|
275
|
+
window.open($rs.getAttr(this, "data-readspeaker-href"))
|
|
276
|
+
});
|
|
277
|
+
if (m = $rs.findIn(m, ".rsbtn_btnlabel a"))(/Chrome|Safari|Opera/gi.test(b.name) || /Explorer/gi.test(b.name) && 8 <= b.version) && $rs.regEvent(m, "click", function (g) {
|
|
278
|
+
v(g)
|
|
279
|
+
}),
|
|
280
|
+
m.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>'
|
|
281
|
+
}
|
|
282
|
+
$rs.addClass(a[i], "pre-expanded");
|
|
283
|
+
$rs.removeClass($rs.findIn(a[i], ".rsbtn_progress_container"), "rsloading");
|
|
284
|
+
$rs.regEvent($rs.findIn(a[i], ".rsbtn_closer"), "click", g);
|
|
285
|
+
$rs.regEvent($rs.findIn(a[i], ".rsbtn_pause"), "click", e);
|
|
286
|
+
$rs.regEvent($rs.findIn(a[i], ".rsbtn_play"), "click", f);
|
|
287
|
+
$rs.regEvent($rs.findIn(a[i], ".rsbtn_settings"), "click", j)
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
_animate = function () {
|
|
291
|
+
var a =
|
|
292
|
+
rs.cfg.item("ui.animate");
|
|
293
|
+
if (a) {
|
|
294
|
+
var b, c = 15, f = 500;
|
|
295
|
+
"object" == typeof a ? (a.id && (b = $rs.get(a.id)), a.count && (c = a.count), a.interval && (f = a.interval)) : "string" === typeof a && (b = $rs.get(a));
|
|
296
|
+
if ("boolean" === typeof a && a || $rs.isArray(b) && 0 == b.length || !b)b = $rs.get("." + rs.ui.rsbtnClass);
|
|
297
|
+
$rs.isArray(b) || (b = [b]);
|
|
298
|
+
var e = c, g = setInterval(function () {
|
|
299
|
+
0 == e && ($rs.removeClass(b, "rsanimate"), clearInterval(g));
|
|
300
|
+
1 == e-- % 2 ? $rs.addClass(b, "rsanimate") : $rs.removeClass(b, "rsanimate")
|
|
301
|
+
}, f)
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
return{meta: {revision: "3253"}, initrun: !1, init: function () {
|
|
305
|
+
evt =
|
|
306
|
+
rspkr.Common.addEvent;
|
|
307
|
+
ui = rspkr.ui;
|
|
308
|
+
evt("onAfterModsLoaded", y);
|
|
309
|
+
evt("onReady", n);
|
|
310
|
+
evt("onReady", q);
|
|
311
|
+
evt("onReady", _animate);
|
|
312
|
+
evt("onSelectedText", b);
|
|
313
|
+
evt("onDeselectedText", c);
|
|
314
|
+
evt("onSettingsChanged", i.update);
|
|
315
|
+
evt("onAfterSyncInit", e);
|
|
316
|
+
this.initrun = !0;
|
|
317
|
+
rspkr.Common.dispatchEvent("onUIInitialized");
|
|
318
|
+
rspkr.log("[rspkr.ui] Initialized!")
|
|
319
|
+
}, addFocusHandler: function (a, b, c) {
|
|
320
|
+
var f = b, e = c, e = e || a;
|
|
321
|
+
void 0 === f && (f = !0);
|
|
322
|
+
$rs.focusIn && "function" == typeof $rs.focusIn && ($rs.focusIn(a, function () {
|
|
323
|
+
$rs.addClass(e, "rsfocus");
|
|
324
|
+
!0 === f &&
|
|
325
|
+
(w = a);
|
|
326
|
+
rspkr.Common.dispatchEvent("onFocusIn", window, [a, e])
|
|
327
|
+
}), $rs.focusOut(a, function () {
|
|
328
|
+
$rs.removeClass(e, "rsfocus");
|
|
329
|
+
rspkr.Common.dispatchEvent("onFocusOut", window, [a, e])
|
|
330
|
+
}))
|
|
331
|
+
}, focus: function (a) {
|
|
332
|
+
t(a)
|
|
333
|
+
}, updateFocus: function () {
|
|
334
|
+
e()
|
|
335
|
+
}, showOverlay: function (b, c) {
|
|
336
|
+
var f = b, e;
|
|
337
|
+
e = c || a.getContainer();
|
|
338
|
+
var k = $rs.findIn(e, ".rsbtn_status");
|
|
339
|
+
0 === k.length && (k = document.createElement("span"), k.className = "rsbtn_status_overlay", k.innerHTML = '<span class="rsbtn_status"></span>', $rs.findIn(e, ".rsbtn_exp").appendChild(k), k = $rs.findIn(e,
|
|
340
|
+
".rsbtn_status"));
|
|
341
|
+
$rs.css($rs.findIn(e, ".rsbtn_status_overlay"), "display", "block");
|
|
342
|
+
if ("nosound" === f)f = '<a class="rsbtn_nosound">' + rspkr.cfg.getPhrase("nosound") + "</a>", k.innerHTML = f, (f = $rs.findIn(e, ".rsbtn_nosound")) && $rs.regEvent(f, "click", function () {
|
|
343
|
+
return a.nosound()
|
|
344
|
+
}); else if ("loaderror" === f) {
|
|
345
|
+
var f = rspkr.c.data.getSaveData("link"), g = document.createElement("a");
|
|
346
|
+
g.className = "rsbtn_loaderror";
|
|
347
|
+
g.innerHTML = "[?]";
|
|
348
|
+
g.href = f;
|
|
349
|
+
$rs.regEvent(g, "click", function (a) {
|
|
350
|
+
rspkr.ui.Lightbox.show("<iframe src='" + g.href +
|
|
351
|
+
"' style='height:100%'></iframe>", null, !1, null, 300);
|
|
352
|
+
v(a)
|
|
353
|
+
});
|
|
354
|
+
k.innerHTML = rspkr.cfg.getPhrase("loaderror") || "An error has occurred, try again";
|
|
355
|
+
k.appendChild(g)
|
|
356
|
+
} else k.innerHTML = f
|
|
357
|
+
}, settings: i, rsbtnClass: "", addClickEvents: function () {
|
|
358
|
+
n()
|
|
359
|
+
}, initGlobalCallbacks: function () {
|
|
360
|
+
y()
|
|
361
|
+
}, showPopupIcon: function (a) {
|
|
362
|
+
b(a)
|
|
363
|
+
}, processDeferred: function () {
|
|
364
|
+
q()
|
|
365
|
+
}, showPlayer: function (b, c, e) {
|
|
366
|
+
var k;
|
|
367
|
+
a:{
|
|
368
|
+
var i = e;
|
|
369
|
+
rspkr.log("[rspkr.ui.showPlayer]");
|
|
370
|
+
i = i || !1;
|
|
371
|
+
if ("string" == typeof b)b:{
|
|
372
|
+
for (var e = $rs.get("a"), g = 0, j = e.length; g < j; g++)if (e[g].href &&
|
|
373
|
+
e[g].href == b) {
|
|
374
|
+
e = e[g];
|
|
375
|
+
break b
|
|
376
|
+
}
|
|
377
|
+
e = !1
|
|
378
|
+
} else e = b;
|
|
379
|
+
e = (g = e) ? $rs.closest(g, ".rsexpanded") : void 0;
|
|
380
|
+
j = rspkr.HL.chunking ? rspkr.HL.chunking.currentChunkNumber : 1;
|
|
381
|
+
if (e && !$rs.isArray(e) && rspkr.ui.getActivePlayer() && 1 == j)rspkr.log("Player already active, calling Player.restart() instead"), rspkr.ui.getActivePlayer().restart(), k = void 0; else {
|
|
382
|
+
rspkr.HL.chunking && rspkr.HL.chunking.destroy();
|
|
383
|
+
rspkr.HL.chunking && rspkr.HL.chunking.html5support && (rspkr.HL.chunking.entracte = new Audio, rspkr.HL.chunking.entracte.play(), rspkr.HL.chunking.entracte.pause());
|
|
384
|
+
rspkr.c.dispatchEvent("onBeforeParamsSet", window, [g]);
|
|
385
|
+
e = "string" == typeof b ? b : g.href;
|
|
386
|
+
j = null;
|
|
387
|
+
"string" == typeof b && (b = e.match(/readid=[^&]+/gi), j = e.match(/readclass=[^&]+/gi), b && 0 < b.length && rspkr.HL.Restore.Storage.readId.push(b[0].replace("readid=", "").split(",")), j && 0 < j.length && rspkr.HL.Restore.Storage.readClass.push(j[0].replace("readclass=", "").split(",")));
|
|
388
|
+
rspkr.c.data.selectedHTML = "";
|
|
389
|
+
rspkr.c.data.setParams(e);
|
|
390
|
+
void 0 !== $rs.getAttr(g, "data-target") && null !== $rs.getAttr(g, "data-target") && (b = $rs.getAttr(g,
|
|
391
|
+
"data-target"), b = $rs.get(b), "object" === typeof b && (c = b));
|
|
392
|
+
c && !i ? (j = $rs.get(c), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsfloating"), rspkr.basicMode && ($rs.removeClass(j, "rshidden"), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsvisible"))) : j = $rs.closest(g, "div." + rspkr.ui.rsbtnClass);
|
|
393
|
+
if (!0 === rspkr.cfg.item("survey.allowed"))if (c = rspkr.c.cookie, i = rspkr.cfg.item("survey.cookieName") || "rspkrsurvey", b = rspkr.cfg.item("survey.cookieLifetime") || 15552E6, g = rspkr.c.data.params, "1" === c.readKey(i, "nmbrdisplays")) {
|
|
394
|
+
rspkr.ui.Lightbox.show(rspkr.cfg.item("survey.url") +
|
|
395
|
+
"?customerid=" + g.customerid + "&lang=" + g.lang, rspkr.st.r().replaceTokens(rspkr.cfg.item("ui.survey.buttons").join(), {rsSURVEY_BUTTON_CLOSErs: rspkr.cfg.getPhrase("close")}), !0, function () {
|
|
396
|
+
$rs.regEvent($rs.get("#rssurvey_button_close"), "click", rspkr.u.Lightbox.hide)
|
|
397
|
+
}, 500);
|
|
398
|
+
rspkr.log(c.updateKey(i, "nmbrdisplays", "displayed", b), 4);
|
|
399
|
+
k = void 0;
|
|
400
|
+
break a
|
|
401
|
+
} else void 0 === c.readKey(i, "nmbrdisplays") && rspkr.log(c.updateKey(i, "nmbrdisplays", "1", b), 4);
|
|
402
|
+
b:{
|
|
403
|
+
c = j;
|
|
404
|
+
for (k in f)if (f[k] && f[k].getContainer && f[k].getContainer() ==
|
|
405
|
+
c) {
|
|
406
|
+
k = f[k];
|
|
407
|
+
break b
|
|
408
|
+
}
|
|
409
|
+
k = new rspkr.ui.Player(c);
|
|
410
|
+
f.push(k)
|
|
411
|
+
}
|
|
412
|
+
if (a && a != k || a && e !== a.getHref())a.close(!0), rspkr.c.dispatchEvent("onUIClosePlayer", a.getContainer(), [0 < rspkr.c.data.selectedText.length ? "textsel" : "nosel"]);
|
|
413
|
+
c = (c = a) ? c.getID() : null;
|
|
414
|
+
rspkr.c.dispatchEvent("onUIShowPlayer", window, [c, k.getID()]);
|
|
415
|
+
k.setHref(e);
|
|
416
|
+
a = k;
|
|
417
|
+
k.show();
|
|
418
|
+
k = a
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return k
|
|
422
|
+
}, expand: function (a) {
|
|
423
|
+
_expand(a)
|
|
424
|
+
}, pointerX: 0, pointerY: 0, setPointerPos: function (a) {
|
|
425
|
+
rspkr.ui.pointerX = a.pageX;
|
|
426
|
+
rspkr.ui.pointerY = a.pageY;
|
|
427
|
+
return!0
|
|
428
|
+
}, viewport: {width: $rs.width(window),
|
|
429
|
+
height: $rs.height(window)}, popups: p, hl: function (a, b) {
|
|
430
|
+
window.setTimeout(function () {
|
|
431
|
+
m(a, 255, 255, 100, 255, b)
|
|
432
|
+
}, 200)
|
|
433
|
+
}, scroll: {INTERVAL: null, STEPS: 25, scrollToElm: function (a) {
|
|
434
|
+
$rs.isVisible(a) && this.initScroll(a)
|
|
435
|
+
}, scrollToAnchor: function (a) {
|
|
436
|
+
for (var b = $rs.get("a"), c = null, e = 0; e < b.length; e++) {
|
|
437
|
+
var f = b[e];
|
|
438
|
+
if (f.name && f.name == a) {
|
|
439
|
+
c = f;
|
|
440
|
+
break
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
this.initScroll(c)
|
|
444
|
+
}, initScroll: function (a) {
|
|
445
|
+
if (a) {
|
|
446
|
+
for (var b = a.offsetTop, c = a; c.offsetParent && c.offsetParent != document.body;)c = c.offsetParent, b += c.offsetTop;
|
|
447
|
+
b -= 50;
|
|
448
|
+
rs.cfg.item("ui.autoscrollOffset") && !isNaN(rs.cfg.item("ui.autoscrollOffset")) && (b -= rs.cfg.item("ui.autoscrollOffset"));
|
|
449
|
+
clearInterval(rspkr.u.scroll.INTERVAL);
|
|
450
|
+
var c = rspkr.u.scroll.getCurrentYPos(), e = parseInt((b - c) / rspkr.u.scroll.STEPS);
|
|
451
|
+
rspkr.u.scroll.INTERVAL = setInterval(function () {
|
|
452
|
+
rspkr.u.scroll.scrollWindow(e, b, a)
|
|
453
|
+
}, 10)
|
|
454
|
+
} else document.location.hash = a
|
|
455
|
+
}, getCurrentYPos: function () {
|
|
456
|
+
return document.body && document.body.scrollTop ? document.body.scrollTop : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop :
|
|
457
|
+
window.pageYOffset ? window.pageYOffset : 0
|
|
458
|
+
}, scrollWindow: function (a, b, c) {
|
|
459
|
+
var e = rspkr.u.scroll.getCurrentYPos(), f = e < b;
|
|
460
|
+
window.scrollTo(0, e + a);
|
|
461
|
+
a = rspkr.u.scroll.getCurrentYPos();
|
|
462
|
+
if (f != a < b || e == a)window.scrollTo(0, b), clearInterval(rspkr.u.scroll.INTERVAL), "string" == typeof c && (location.hash = c)
|
|
463
|
+
}}, activePlayer: a, getActivePlayer: function () {
|
|
464
|
+
return a
|
|
465
|
+
}}
|
|
466
|
+
}();
|
|
467
|
+
ReadSpeaker.ui.Slider = function () {
|
|
468
|
+
var a = this, f = {handleClass: "", width: 0, height: 0, left: 0, top: 0, steps: -1, stepsize: -1, dir: "h", initval: -1, drop: null, start: null, dragging: null, click: null, labelDragHandle: "", labelStart: "", labelEnd: "", nudge: 1}, p = {rsid: void 0, parent: void 0, ref: void 0}, x = void 0, v = void 0, n = void 0, y = void 0, q = void 0, w = !1, e = 0, t = function (a) {
|
|
469
|
+
a = a || window.event;
|
|
470
|
+
a.returnValue = !1;
|
|
471
|
+
if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
|
|
472
|
+
a && a.preventDefault && a.preventDefault();
|
|
473
|
+
a && a.stopPropagation && a.stopPropagation()
|
|
474
|
+
};
|
|
475
|
+
this.initElement = function (a) {
|
|
476
|
+
if (!w) {
|
|
477
|
+
"string" == typeof a && (a = document.getElementById(a));
|
|
478
|
+
a.innerHTML += '<a href="javascript:void(0);" role="slider" class="keyLink" style="display:block; border:0;"> </a>';
|
|
479
|
+
var c = a.getElementsByTagName("a"), c = c[c.length - 1], k = -1 < f.steps ? f.steps : 100;
|
|
480
|
+
c.relatedElement = a;
|
|
481
|
+
$rs.setAttr(c, "title", f.labelDragHandle);
|
|
482
|
+
$rs.setAttr(c, "aria-label", f.labelDragHandle);
|
|
483
|
+
$rs.setAttr(c, "aria-orientation", "h" == f.dir ? "horizontal" : "vertical");
|
|
484
|
+
$rs.setAttr(c, "aria-valuemin", 0);
|
|
485
|
+
$rs.setAttr(c,
|
|
486
|
+
"aria-valuemax", k);
|
|
487
|
+
$rs.setAttr(c, "aria-valuenow", f.initval || 0);
|
|
488
|
+
e = f.initval;
|
|
489
|
+
$rs.regEvent(a, "mousedown", this.startDragMouse);
|
|
490
|
+
$rs.regEvent(c, "click", function (a) {
|
|
491
|
+
t(a)
|
|
492
|
+
});
|
|
493
|
+
$rs.regEvent(c, "keyup", this.startDragKeys);
|
|
494
|
+
$rs.regEvent(c, "dragstart", function (a) {
|
|
495
|
+
t(a)
|
|
496
|
+
});
|
|
497
|
+
$rs.regEvent(a, "touchstart", this.touchStart);
|
|
498
|
+
$rs.regEvent(p.parent, "mousedown", this.mouseClick)
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
this.mouseClick = function (b) {
|
|
502
|
+
if (!w && !$rs.hasClass(p.ref, "dragged")) {
|
|
503
|
+
var c = a.findPos(b.target), e = b.clientX - (c.left - f.left), b = b.clientY - (c.top - f.top);
|
|
504
|
+
n =
|
|
505
|
+
c.left;
|
|
506
|
+
y = c.top;
|
|
507
|
+
c = a.getCurrentVal({left: e, top: b});
|
|
508
|
+
"function" == typeof f.click && f.click(c, p);
|
|
509
|
+
return!1
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
this.findPos = function (a) {
|
|
513
|
+
var c = curTop = 0;
|
|
514
|
+
if (a.offsetParent) {
|
|
515
|
+
do c += a.offsetLeft, curTop += a.offsetTop; while (a = a.offsetParent);
|
|
516
|
+
return{left: c, top: curTop}
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
this.startDragMouse = function (b) {
|
|
520
|
+
rspkr.log("[rspkr.ui.Slider] startDragMouse");
|
|
521
|
+
if (!w) {
|
|
522
|
+
a.startDrag(this);
|
|
523
|
+
var c = b || window.event;
|
|
524
|
+
x = c.clientX;
|
|
525
|
+
v = c.clientY;
|
|
526
|
+
$rs.regEvent(document.body, "mousemove", a.dragMouse);
|
|
527
|
+
$rs.regEvent(document.body, "mouseup", a.releaseElement)
|
|
528
|
+
}
|
|
529
|
+
t(b);
|
|
530
|
+
return!1
|
|
531
|
+
};
|
|
532
|
+
this.startDragKeys = function (b) {
|
|
533
|
+
rspkr.log("[rspkr.ui.Slider] startDragKeys " + (b || window.event).keyCode);
|
|
534
|
+
a.startDrag(this.relatedElement);
|
|
535
|
+
$rs.regEvent(document.body, "keydown", a.dragKeys);
|
|
536
|
+
$rs.regEvent(document.body, "keypress", a.switchKeyEvents);
|
|
537
|
+
$rs.addClass(this.relatedElement, "rskeycontrolled");
|
|
538
|
+
t(b)
|
|
539
|
+
};
|
|
540
|
+
this.touchStart = function (b) {
|
|
541
|
+
b = b.originalEvent;
|
|
542
|
+
rspkr.log("[rspkr.ui.Slider] touchStart");
|
|
543
|
+
w || (a.startDrag(b.target), x = b.touches[0].pageX, v = b.touches[0].pageY, $rs.regEvent(b.target, "touchmove", a.touchMove),
|
|
544
|
+
$rs.regEvent(b.target, "touchend", a.releaseElement));
|
|
545
|
+
return!1
|
|
546
|
+
};
|
|
547
|
+
this.startDrag = function (b) {
|
|
548
|
+
rspkr.log("[rspkr.ui.Slider] startDrag");
|
|
549
|
+
q && a.releaseElement();
|
|
550
|
+
n = b.offsetLeft;
|
|
551
|
+
y = b.offsetTop;
|
|
552
|
+
q = b;
|
|
553
|
+
$rs.addClass(q, "dragged");
|
|
554
|
+
"function" == typeof f.start && f.start(p)
|
|
555
|
+
};
|
|
556
|
+
this.dragMouse = function (b) {
|
|
557
|
+
b = b || window.event;
|
|
558
|
+
a.setPosition(b.clientX - x, b.clientY - v);
|
|
559
|
+
a.valueChanged = !0;
|
|
560
|
+
return!1
|
|
561
|
+
};
|
|
562
|
+
this.touchMove = function (b) {
|
|
563
|
+
t(b);
|
|
564
|
+
a.setPosition(b.touches[0].pageX - x, b.touches[0].pageY - v);
|
|
565
|
+
a.valueChanged = !0;
|
|
566
|
+
return!1
|
|
567
|
+
};
|
|
568
|
+
this.dragKeys = function (b) {
|
|
569
|
+
switch ((b ||
|
|
570
|
+
window.event).keyCode) {
|
|
571
|
+
case 37:
|
|
572
|
+
case 63234:
|
|
573
|
+
a.valueChanged = !0;
|
|
574
|
+
e -= f.nudge;
|
|
575
|
+
break;
|
|
576
|
+
case 38:
|
|
577
|
+
case 63232:
|
|
578
|
+
a.valueChanged = !0;
|
|
579
|
+
e += f.nudge;
|
|
580
|
+
break;
|
|
581
|
+
case 39:
|
|
582
|
+
case 63235:
|
|
583
|
+
a.valueChanged = !0;
|
|
584
|
+
e += f.nudge;
|
|
585
|
+
break;
|
|
586
|
+
case 40:
|
|
587
|
+
case 63233:
|
|
588
|
+
a.valueChanged = !0;
|
|
589
|
+
e -= f.nudge;
|
|
590
|
+
break;
|
|
591
|
+
case 13:
|
|
592
|
+
case 27:
|
|
593
|
+
return a.releaseElement(), !1;
|
|
594
|
+
case 9:
|
|
595
|
+
return a.releaseElement(), !0;
|
|
596
|
+
default:
|
|
597
|
+
return rspkr.log("[rspkr.ui.Slider] return TRUE"), !0
|
|
598
|
+
}
|
|
599
|
+
!0 === a.valueChanged && (rspkr.c.dispatchEvent("onUISliderMove"), "function" == typeof f.dragging && f.dragging(a.getCurrentVal({skipValueCalculation: !0}),
|
|
600
|
+
p));
|
|
601
|
+
t(b);
|
|
602
|
+
rspkr.log("[rspkr.ui.Slider] ready to return!");
|
|
603
|
+
return!1
|
|
604
|
+
};
|
|
605
|
+
this.setPosition = function (b, c) {
|
|
606
|
+
var e, i = !1;
|
|
607
|
+
e = b;
|
|
608
|
+
var m = n, l = f.left, h = f.width, u = "left";
|
|
609
|
+
"v" == f.dir && (e = c, m = y, l = f.top, h = f.height, u = "top");
|
|
610
|
+
e = m + e;
|
|
611
|
+
-1 < f.stepsize && ((e + l) % f.stepsize ? e = f.stepsize * Math.ceil(e / f.stepsize) + l : i = !0);
|
|
612
|
+
e > h + l ? e = h + l : e < l && (e = l);
|
|
613
|
+
i || (q.style[u] = e + "px", "function" == typeof f.dragging && f.dragging(a.getCurrentVal(), p))
|
|
614
|
+
};
|
|
615
|
+
this.switchKeyEvents = function () {
|
|
616
|
+
$rs.unregEvent(document.body, "keydown", a.dragKeys);
|
|
617
|
+
$rs.unregEvent(document.body,
|
|
618
|
+
"keypress", a.switchKeyEvents);
|
|
619
|
+
$rs.regEvent(document.body, "keypress", a.dragKeys)
|
|
620
|
+
};
|
|
621
|
+
this.releaseElement = function () {
|
|
622
|
+
rspkr.log("[rspkr.ui.Slider] releaseElement");
|
|
623
|
+
$rs.unregEvent(document.body, "mousemove", a.dragMouse);
|
|
624
|
+
$rs.unregEvent(document.body, "mouseup", a.releaseElement);
|
|
625
|
+
$rs.unregEvent(document.body, "keypress", a.dragKeys);
|
|
626
|
+
$rs.unregEvent(document.body, "keypress", a.switchKeyEvents);
|
|
627
|
+
$rs.unregEvent(document.body, "keydown", a.dragKeys);
|
|
628
|
+
$rs.unregEvent(q, "touchmove", a.touchMove);
|
|
629
|
+
$rs.unregEvent(q, "touchend",
|
|
630
|
+
a.releaseElement);
|
|
631
|
+
$rs.removeClass(q, "dragged");
|
|
632
|
+
$rs.removeClass(q, "rskeycontrolled");
|
|
633
|
+
$rs.removeClass(q, "rsmousecontrolled");
|
|
634
|
+
var b = a.getCurrentVal();
|
|
635
|
+
q = null;
|
|
636
|
+
"function" == typeof f.drop && !0 === a.valueChanged && f.drop(b, p);
|
|
637
|
+
a.valueChanged = !1;
|
|
638
|
+
rs.ui.getActivePlayer() && rs.ui.getActivePlayer().setProgress();
|
|
639
|
+
return!1
|
|
640
|
+
};
|
|
641
|
+
this.getCurrentVal = function (a) {
|
|
642
|
+
var c, k = f.width;
|
|
643
|
+
c = "left";
|
|
644
|
+
var i = f.left;
|
|
645
|
+
"v" == f.dir && (k = f.height, c = "top", i = f.top);
|
|
646
|
+
var m = -1 < f.steps ? f.steps : 100, k = -1 < f.stepsize ? f.stepsize : k / m, a = a ? a[c] : $rs.css(p.ref, c).replace(/px/i,
|
|
647
|
+
"");
|
|
648
|
+
pos = Math.round(a) - i;
|
|
649
|
+
c = Math.round(pos / k);
|
|
650
|
+
"v" == f.dir && (c = m - c);
|
|
651
|
+
rspkr.log("[rspkr.ui.Slider] currentval: " + c);
|
|
652
|
+
return a && a.skipValueCalculation || isNaN(c) ? e = Math.max(Math.min(e, m), 0) : e = c
|
|
653
|
+
};
|
|
654
|
+
return{init: function (b, c) {
|
|
655
|
+
"string" == typeof b && (b = document.getElementById(b));
|
|
656
|
+
if (b) {
|
|
657
|
+
var e = b.id || "data-readspeaker-slider-id-" + Math.floor(2E4 * Math.random());
|
|
658
|
+
b.setAttribute && b.setAttribute("data-readspeaker-slider-id-", "data-readspeaker-slider-parent-" + e);
|
|
659
|
+
var i = {width: function () {
|
|
660
|
+
return $rs.width(b)
|
|
661
|
+
}, height: function () {
|
|
662
|
+
return $rs.height(b)
|
|
663
|
+
}};
|
|
664
|
+
if ("object" == typeof c)for (var m in c)c.hasOwnProperty(m) && void 0 !== f[m] && (f[m] = c[m]);
|
|
665
|
+
m = !1;
|
|
666
|
+
var l;
|
|
667
|
+
"rsbtn_volume_slider" === b.className && ("jquery" === rspkr.l.f.currentLib() && 1.5 > parseFloat(jQuery.fn.jquery)) && (l = b.parentNode.style.display, b.parentNode.style.display = "block", m = !0);
|
|
668
|
+
f.width = i.width();
|
|
669
|
+
f.height = i.height();
|
|
670
|
+
m && (b.parentNode.style.display = l);
|
|
671
|
+
-1 < f.steps && (f.stepsize = ("h" == f.dir ? f.width : f.height) / f.steps);
|
|
672
|
+
i = document.createElement("span");
|
|
673
|
+
i.setAttribute("data-readspeaker-slider-id-", e);
|
|
674
|
+
i.className =
|
|
675
|
+
f.handleClass || "rsbtn_progress_handle rsimg";
|
|
676
|
+
b.appendChild(i);
|
|
677
|
+
p.rsid = e;
|
|
678
|
+
p.parent = b;
|
|
679
|
+
p.ref = i;
|
|
680
|
+
e = $rs.css(i, "left");
|
|
681
|
+
null !== e && (f.left = parseInt(e.replace(/px/i, "")));
|
|
682
|
+
e = $rs.css(i, "top");
|
|
683
|
+
null !== e && (f.top = parseInt(e.replace(/px/i, "")));
|
|
684
|
+
-1 < f.initval && this.jumpTo(f.initval);
|
|
685
|
+
f.labelStart && (e = document.createElement("span"), e.className = "slider-label-start", e.innerHTML = f.labelStart, b.appendChild(e));
|
|
686
|
+
f.labelEnd && (e = document.createElement("span"), e.className = "slider-label-end", e.innerHTML = f.labelEnd, b.appendChild(e));
|
|
687
|
+
a.initElement(i)
|
|
688
|
+
}
|
|
689
|
+
}, jumpTo: function (a) {
|
|
690
|
+
if (isNaN(a))return!1;
|
|
691
|
+
var c = 101, e = a;
|
|
692
|
+
-1 < f.steps && (a = Math.round(a), c = f.steps + 1);
|
|
693
|
+
if (-1 < a && a < c) {
|
|
694
|
+
var i = f.width, m = f.left, l = "left";
|
|
695
|
+
"v" == f.dir && (i = f.height, m = f.top, l = "top", a = c - 1 - a);
|
|
696
|
+
p.ref.style[l] = i / (c - 1) * a + m + "px";
|
|
697
|
+
$rs.setAttr($rs.findIn(p.ref, "a.keyLink"), "aria-valuenow", e)
|
|
698
|
+
}
|
|
699
|
+
}, setCurrentValue: function (a) {
|
|
700
|
+
e = a
|
|
701
|
+
}, getInstance: function () {
|
|
702
|
+
return p
|
|
703
|
+
}, getContainer: function () {
|
|
704
|
+
return p.parent
|
|
705
|
+
}, releaseElement: function () {
|
|
706
|
+
a.releaseElement()
|
|
707
|
+
}, startDragKeys: function (b, c) {
|
|
708
|
+
a.startDragKeys.call(b,
|
|
709
|
+
c)
|
|
710
|
+
}, disabled: function () {
|
|
711
|
+
if (arguments)w = arguments[0]; else return w
|
|
712
|
+
}}
|
|
713
|
+
};
|
|
714
|
+
ReadSpeaker.ui.Player = function (a) {
|
|
715
|
+
var f = function (a) {
|
|
716
|
+
a = a || window.event;
|
|
717
|
+
a.returnValue = !1;
|
|
718
|
+
if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
|
|
719
|
+
a && a.preventDefault && a.preventDefault();
|
|
720
|
+
a && a.stopPropagation && a.stopPropagation()
|
|
721
|
+
}, p = rspkr.getID(), x = this, v = [], n = 0, y = !1, q = null, w = !1, e = {_play: null, _pause: null, _stop: null, _vol: null, _settings: null, _dl: null, _closer: null, _powered: null, _get: function (g, b) {
|
|
722
|
+
var c, g = "_" + g;
|
|
723
|
+
c = a ? this[g] && 0 < this[g].length ? this[g] : this[g] = $rs.findIn(a, b) : null;
|
|
724
|
+
return c == [] ? null : c
|
|
725
|
+
}, play: function () {
|
|
726
|
+
return this._get("play",
|
|
727
|
+
".rsbtn_play")
|
|
728
|
+
}, pause: function () {
|
|
729
|
+
return this._get("pause", ".rsbtn_pause")
|
|
730
|
+
}, stop: function () {
|
|
731
|
+
return this._get("stop", ".rsbtn_stop")
|
|
732
|
+
}, vol: function () {
|
|
733
|
+
return this._get("vol", ".rsbtn_volume")
|
|
734
|
+
}, settings: function () {
|
|
735
|
+
return this._get("settings", ".rsbtn_settings")
|
|
736
|
+
}, dl: function () {
|
|
737
|
+
return this._get("dl", ".rsbtn_dl")
|
|
738
|
+
}, pin: function () {
|
|
739
|
+
return this._get("pin", ".rsbtn_pin")
|
|
740
|
+
}, powered: function () {
|
|
741
|
+
return this._get("powered", ".rsbtn_powered")
|
|
742
|
+
}, closer: function () {
|
|
743
|
+
return this._get("closer", ".rsbtn_closer")
|
|
744
|
+
}, nosound: function () {
|
|
745
|
+
return this._get("nosound",
|
|
746
|
+
".rsbtn_nosound")
|
|
747
|
+
}, setPlayPause: function (a) {
|
|
748
|
+
rspkr.log("[rspkr.ui.Player.setPlayPause(" + a + ")]");
|
|
749
|
+
a = a ? $rs.getAttr(this.pause(), "data-rsphrase-play") : $rs.getAttr(this.pause(), "data-rsphrase-pause");
|
|
750
|
+
$rs.setAttr(this.pause(), "title", rspkr.c.decodeEntities(a));
|
|
751
|
+
$rs.findIn(this.pause(), ".rsbtn_btnlabel").innerHTML = a
|
|
752
|
+
}}, t = !1, b = [], c = {play: function () {
|
|
753
|
+
rspkr.c.dispatchEvent("onUIBeforePlay");
|
|
754
|
+
rspkr.log("[rspkr.ui.handlers.play]");
|
|
755
|
+
b.progress && b.progress.disabled(!1);
|
|
756
|
+
c.setStateClass(a, "rsplaying");
|
|
757
|
+
rspkr.basicMode &&
|
|
758
|
+
c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsplaying");
|
|
759
|
+
$rs.addClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading");
|
|
760
|
+
e.setPlayPause(!1);
|
|
761
|
+
rspkr.pl.play();
|
|
762
|
+
w && rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x]);
|
|
763
|
+
rspkr.c.addEvent("onBeforeSyncInit", function () {
|
|
764
|
+
w = !0;
|
|
765
|
+
rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x])
|
|
766
|
+
});
|
|
767
|
+
"flash" === rspkr.pl.adapter && !rspkr.displog.onVolumeAdjusted && rspkr.pl.setVolume(parseInt(rspkr.st.get("hlvol") || "100"));
|
|
768
|
+
rspkr.c.dispatchEvent("onUIAfterPlay");
|
|
769
|
+
rspkr.cfg.execCallback("cb.ui.play",
|
|
770
|
+
a)
|
|
771
|
+
}, pause: function () {
|
|
772
|
+
rspkr.log("[rspkr.ui.handlers.pause]");
|
|
773
|
+
c.setStateClass(a, "rspaused");
|
|
774
|
+
rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rspaused");
|
|
775
|
+
e.setPlayPause(!0);
|
|
776
|
+
rspkr.pl.pause();
|
|
777
|
+
rspkr.pl.getProgress(!1);
|
|
778
|
+
rspkr.c.dispatchEvent("onUIPause");
|
|
779
|
+
rspkr.cfg.execCallback("cb.ui.pause", a);
|
|
780
|
+
rspkr.log("ReadSpeaker.ui.pause")
|
|
781
|
+
}, stop: function () {
|
|
782
|
+
rspkr.log("[rspkr.ui.handlers.stop]");
|
|
783
|
+
b.progress && b.progress.disabled(!0);
|
|
784
|
+
c.setStateClass(a, "rsstopped");
|
|
785
|
+
$rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"),
|
|
786
|
+
"rsloading");
|
|
787
|
+
rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsstopped");
|
|
788
|
+
e.setPlayPause(!0);
|
|
789
|
+
$rs.setAttr(a, "data-readspeaker-current", 0);
|
|
790
|
+
b.progress && (b.progress.jumpTo(0), k(0));
|
|
791
|
+
rspkr.pl.stop();
|
|
792
|
+
rspkr.pl.getProgress(!1);
|
|
793
|
+
rspkr.c.dispatchEvent("onUIStop", a);
|
|
794
|
+
rspkr.cfg.execCallback("cb.ui.stop", a);
|
|
795
|
+
(!document.getElementById("rslightbox_contentcontainer") || !$rs.isVisible(document.getElementById("rslightbox_contentcontainer"))) && e.pause().focus();
|
|
796
|
+
rspkr.HL.chunking && 1 < rspkr.HL.chunking.currentChunkNumber &&
|
|
797
|
+
(rspkr.HL.chunking.destroy(), rspkr.pl.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter());
|
|
798
|
+
rspkr.log("ReadSpeaker.ui.stop")
|
|
799
|
+
}, setStateClass: function (a, b) {
|
|
800
|
+
a && ($rs.removeClass(a, "rspaused rsstopped rsplaying"), $rs.addClass(a, b))
|
|
801
|
+
}, vol: function (g) {
|
|
802
|
+
var c = $rs.findIn(a, ".rsbtn_volume_container"), e = $rs.findIn(a, ".rsbtn_volume"), g = g.originalEvent, f = function (a) {
|
|
803
|
+
var b = a.originalEvent, b = $rs.closest(b.srcElement || b.originalTarget, ".rsbtn_volume_container");
|
|
804
|
+
if ("click" === a.type) {
|
|
805
|
+
if (void 0 === b || $rs.isArray(b) && !b.length)$rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f)
|
|
806
|
+
} else"keyup" === a.type && 27 === a.keyCode && ($rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f))
|
|
807
|
+
};
|
|
808
|
+
$rs.css(c, "left", e.offsetLeft + "px");
|
|
809
|
+
$rs.css(c, "display", "none" == $rs.css(c, "display") ? "block" : "none");
|
|
810
|
+
"block" === $rs.css(c, "display") ? ($rs.regEvent(document.body, "click", f), $rs.regEvent(document.body, "keyup", f)) : ($rs.unregEvent(document.body,
|
|
811
|
+
"click", f), $rs.unregEvent(document.body, "keyup", f));
|
|
812
|
+
g && g.stopPropagation && g.stopPropagation();
|
|
813
|
+
g.cancelBubble = !0;
|
|
814
|
+
e = $rs.findIn(c, ".keyLink");
|
|
815
|
+
b.vol.startDragKeys(e, {keyCode: 13});
|
|
816
|
+
return!1
|
|
817
|
+
}, settings: function () {
|
|
818
|
+
$rs.hasClass(a, "rsplaying") && this.pause();
|
|
819
|
+
rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function (a) {
|
|
820
|
+
var b = $rs.get("rslightbox_closer"), c = function () {
|
|
821
|
+
document.removeEventListener ? b.removeEventListener("click", c, !1) : document.detachEvent && document.detachEvent("onclick", c);
|
|
822
|
+
rspkr.c.dispatchEvent("onSettingsClosed",
|
|
823
|
+
window, [])
|
|
824
|
+
};
|
|
825
|
+
$rs.regEvent(b, "click", c);
|
|
826
|
+
rspkr.ui.addClickEvents();
|
|
827
|
+
rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
|
|
828
|
+
rspkr.cfg.execCallback("cb.ui.settingsopened", a)
|
|
829
|
+
})
|
|
830
|
+
}, close: function (g) {
|
|
831
|
+
c.pin(!0);
|
|
832
|
+
var g = g || !1, j = rspkr.pl, f = !1;
|
|
833
|
+
rspkr.HL.chunking && rspkr.HL.chunking.destroy();
|
|
834
|
+
g || rspkr.cfg.execCallback("cb.ui.beforeclose", a);
|
|
835
|
+
j.hasOwnProperty("getProgress") && rspkr.pl.getProgress(!1);
|
|
836
|
+
j.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter();
|
|
837
|
+
$rs.setAttr(a, "data-readspeaker-current", 0);
|
|
838
|
+
b.progress && b.progress.jumpTo(0);
|
|
839
|
+
$rs.removeClass(a, "rsstopped rsplaying rspaused rsexpanded");
|
|
840
|
+
if (rspkr.basicMode) {
|
|
841
|
+
var h;
|
|
842
|
+
(h = $rs.findIn(a, ".rsbtn_play")) && $rs.removeClass(h, "rsexpanded")
|
|
843
|
+
}
|
|
844
|
+
$rs.hasClass(a, "rsfloating") && ($rs.removeClass(a, rspkr.ui.rsbtnClass), rspkr.basicMode && ($rs.removeClass(a, "rsvisible"), $rs.addClass(a, "rshidden")));
|
|
845
|
+
e.setPlayPause(!0);
|
|
846
|
+
$rs.hasClass(a, "rspopup") && (f = !0, $rs.removeClass(a, "rspopup"), $rs.css(a, "display", "none"), a.parentNode.removeChild(a));
|
|
847
|
+
$rs.css(a, "width", "auto");
|
|
848
|
+
delete rspkr.displog.onVolumeAdjusted;
|
|
849
|
+
g || (rspkr.c.dispatchEvent("onUIClosePlayer", a, ["userclick"]), rspkr.cfg.execCallback("cb.ui.close", a), rspkr.log("ReadSpeaker.ui.close: " + a));
|
|
850
|
+
!g && !1 === f && rspkr.ui.focus($rs.findIn($rs.get(a), ".rsbtn_play"))
|
|
851
|
+
}, dl: function () {
|
|
852
|
+
$rs.hasClass(a, "rsplaying") && this.pause();
|
|
853
|
+
var b = rspkr.c.data.getSaveData("dialog"), c = !1;
|
|
854
|
+
rspkr.log("[rspkr.ui.handlers.dl] Savelink: " + b);
|
|
855
|
+
rspkr.u.Lightbox.show(this.getDlDialog(), this.getDlButtons(), !0, function () {
|
|
856
|
+
var a = $rs.get("#rsdl_button_accept"), e = $rs.get("#rsdl_button_decline");
|
|
857
|
+
a && $rs.regEvent(a, "click", function (e) {
|
|
858
|
+
rspkr.u.Lightbox.hide(e);
|
|
859
|
+
c = "iOS" !== rspkr.c.data.browser.OS && 0 < rspkr.c.data.selectedHTML.length ? !0 : "iOS" !== rspkr.c.data.browser.OS && !0 === rspkr.cfg.item("general.usePost") ? !0 : !1;
|
|
860
|
+
if (!0 === c) {
|
|
861
|
+
e = null;
|
|
862
|
+
if (document.getElementById("dliframe"))e = document.getElementById("dliframe"); else {
|
|
863
|
+
if (document.selection)try {
|
|
864
|
+
e = document.createElement('<iframe name="dliframe">')
|
|
865
|
+
} catch (f) {
|
|
866
|
+
e = document.createElement("iframe")
|
|
867
|
+
} else e = document.createElement("iframe");
|
|
868
|
+
e.name = "dliframe";
|
|
869
|
+
e.setAttribute("id",
|
|
870
|
+
"dliframe");
|
|
871
|
+
e.setAttribute("style", "display: none; position: absolute;");
|
|
872
|
+
e.style.display = "none";
|
|
873
|
+
var h = document.getElementsByTagName("body"), i = null;
|
|
874
|
+
0 < h.length && (i = h.item(0));
|
|
875
|
+
if (i)i.appendChild(e); else return
|
|
876
|
+
}
|
|
877
|
+
e.src = b;
|
|
878
|
+
return!1
|
|
879
|
+
}
|
|
880
|
+
$rs.setAttr(a, "href", b);
|
|
881
|
+
return!0
|
|
882
|
+
});
|
|
883
|
+
e && ($rs.regEvent(e, "click", function (a) {
|
|
884
|
+
f(a);
|
|
885
|
+
rspkr.u.Lightbox.hide(a)
|
|
886
|
+
}), setTimeout(function () {
|
|
887
|
+
rspkr.ui.focus(e)
|
|
888
|
+
}, 200));
|
|
889
|
+
rspkr.c.dispatchEvent("onDownloadLoaded", window, [])
|
|
890
|
+
})
|
|
891
|
+
}, pin: function (a) {
|
|
892
|
+
var b = rs.ui.getActivePlayer().getContainer(), c = b.id + "_pinnedHome",
|
|
893
|
+
f = document.getElementById(c);
|
|
894
|
+
if (!$rs.hasClass(e.pin(), "pinned") && !a) {
|
|
895
|
+
if ($rs.addClass(e.pin(), "pinned"), !f) {
|
|
896
|
+
var a = function (a, b) {
|
|
897
|
+
return window.getComputedStyle ? window.getComputedStyle(a)[b] : a.currentStyle ? a.currentStyle[b] : a.style[b]
|
|
898
|
+
}, f = $rs.clone(b, !1, !0), h = b.offsetLeft, i = b.offsetTop;
|
|
899
|
+
f.style.width = a(b, "width").replace(/[^-\d\.]/g, "") - 2 + "px";
|
|
900
|
+
f.style.height = a(b, "height").replace(/[^-\d\.]/g, "") - 2 + "px";
|
|
901
|
+
for (var k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" "),
|
|
902
|
+
m = 0, l; l = k[m]; m++) {
|
|
903
|
+
var n = $rs.css(b, l);
|
|
904
|
+
$rs.setAttr(b, "data-css-" + l, n);
|
|
905
|
+
n = a(b, l);
|
|
906
|
+
"auto" != n && (f.style[l] = n)
|
|
907
|
+
}
|
|
908
|
+
b.style.position = "fixed";
|
|
909
|
+
b.style.left = h - document.body.scrollLeft + "px";
|
|
910
|
+
b.style.top = i - document.body.scrollTop + "px";
|
|
911
|
+
f.className = "rsbtn_pinnedHome rsbtn";
|
|
912
|
+
for (f.id = c; f.hasChildNodes();)f.removeChild(f.lastChild);
|
|
913
|
+
b.parentElement.insertBefore(f, b)
|
|
914
|
+
}
|
|
915
|
+
} else if ($rs.hasClass(e.pin(), "pinned") || a)if ($rs.removeClass(e.pin(), "pinned"), f) {
|
|
916
|
+
f.parentNode.removeChild(f);
|
|
917
|
+
k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" ");
|
|
918
|
+
for (m = 0; l = k[m]; m++)n = $rs.getAttr(b, "data-css-" + l), $rs.css(b, l, n)
|
|
919
|
+
}
|
|
920
|
+
}, getDlDialog: function () {
|
|
921
|
+
var a = rspkr.cfg.item("ui.dldialog").join("\n"), b = {};
|
|
922
|
+
b.rsTERMS_OF_USE_HEADINGrs = rspkr.cfg.getPhrase("touheading");
|
|
923
|
+
b.rsTERMS_OF_USE_BODYrs = rspkr.cfg.getPhrase("toubody");
|
|
924
|
+
return rspkr.st.r().replaceTokens(a, b)
|
|
925
|
+
}, getDlButtons: function () {
|
|
926
|
+
var a = rspkr.cfg.item("ui.dlbuttons").join("\n"), b = {};
|
|
927
|
+
b.rsTERMS_OF_USE_ACCEPTrs = rspkr.cfg.getPhrase("touaccept");
|
|
928
|
+
b.rsTERMS_OF_USE_DECLINErs = rspkr.cfg.getPhrase("toudecline");
|
|
929
|
+
return rspkr.st.r().replaceTokens(a,
|
|
930
|
+
b)
|
|
931
|
+
}, nosound: function () {
|
|
932
|
+
var a = rspkr.c.data.getSaveData("link");
|
|
933
|
+
$rs.setAttr(e.nosound(), "href", a);
|
|
934
|
+
return!0
|
|
935
|
+
}}, k = function (b) {
|
|
936
|
+
var b = 100 < b ? 100 : b, c = $rs.findIn(a, ".rsbtn_progress_played");
|
|
937
|
+
"object" === typeof c && $rs.css(c, "width", b + "%");
|
|
938
|
+
rspkr.cfg.execCallback("cb.ui.progresschanged", a, [b])
|
|
939
|
+
}, i = function (c) {
|
|
940
|
+
if (c.length) {
|
|
941
|
+
var e = parseInt(c[0]), c = parseInt(c[1]), f = 0 == c ? 0 : Math.round(100 * (e / c)), h = $rs.findIn(a, ".rsbtn_current_time"), i = $rs.findIn(a, ".rsbtn_total_time"), l, n;
|
|
942
|
+
b.progress && (b.progress.setCurrentValue(f), t ||
|
|
943
|
+
(b.progress.jumpTo(f), k(f), h && (h.innerHTML = l = m(e)), i && (i.innerHTML = n = m(c)), rspkr.cfg.execCallback("cb.ui.timeupdated", a, [l, n])));
|
|
944
|
+
rspkr.log("[rspkr.player.updateProgress] current time: " + e + " total time: " + c);
|
|
945
|
+
$rs.setAttr(a, "data-readspeaker-current", e);
|
|
946
|
+
$rs.setAttr(a, "data-readspeaker-buffered", c);
|
|
947
|
+
0 < e && $rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading")
|
|
948
|
+
}
|
|
949
|
+
}, m = function (a) {
|
|
950
|
+
var a = a / 1E3, b = parseInt(a % 60), c = parseInt(a / 60 % 60), a = parseInt(a / 60 / 60 % 60);
|
|
951
|
+
return(10 > a ? "0" + a : a.toString()) + ":" + (10 > c ?
|
|
952
|
+
"0" + c : c.toString()) + ":" + (10 > b ? "0" + b : b.toString())
|
|
953
|
+
}, l = function () {
|
|
954
|
+
t = !0
|
|
955
|
+
}, h = function (b) {
|
|
956
|
+
rspkr.log("_dropProgress (" + b + ")", 5);
|
|
957
|
+
b && (b = b / 100 * $rs.getAttr(a, "data-readspeaker-buffered") / 1E3, rspkr.pl.setProgress(b));
|
|
958
|
+
t = !1
|
|
959
|
+
}, u = function (a) {
|
|
960
|
+
h(a)
|
|
961
|
+
}, B = function (c) {
|
|
962
|
+
rspkr.log("_dropVolume, " + c, 5);
|
|
963
|
+
c = 0 > c ? 0 : 20 * c;
|
|
964
|
+
b.vol && b.vol.jumpTo(c / 20);
|
|
965
|
+
rspkr.pl.setVolume(c);
|
|
966
|
+
rspkr.st.set("hlvol", c);
|
|
967
|
+
rspkr.cfg.execCallback("cb.ui.volumechanged", a, [c]);
|
|
968
|
+
return!1
|
|
969
|
+
}, A = function (c, e) {
|
|
970
|
+
if ("keyLink" === c.className) {
|
|
971
|
+
var f = "";
|
|
972
|
+
$rs.hasClass(e, "rsbtn_volume_handle") ?
|
|
973
|
+
f = "vol" : $rs.hasClass(e, "rsbtn_progress_handle") && (f = "progress");
|
|
974
|
+
var h = {keyCode: 13};
|
|
975
|
+
b[f].startDragKeys(c, h)
|
|
976
|
+
} else $rs.hasClass(e, "rsbtn_volume") && (h = {keyCode: 13}, f = $rs.findIn(a, ".rsbtn_volume_container"), f = $rs.findIn(f, ".keyLink"), b.vol.startDragKeys(f, h))
|
|
977
|
+
}, z = function (a, c) {
|
|
978
|
+
if ("keyLink" === a.className) {
|
|
979
|
+
var e = "";
|
|
980
|
+
$rs.hasClass(c, "rsbtn_volume_handle") ? e = "vol" : $rs.hasClass(c, "rsbtn_progress_handle") && (e = "progress");
|
|
981
|
+
b[e].releaseElement();
|
|
982
|
+
t = !1
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
return{init: function () {
|
|
986
|
+
v.push([this.show, []])
|
|
987
|
+
}, show: function () {
|
|
988
|
+
$rs.rsid(a);
|
|
989
|
+
a.id = p = a.id || rspkr.getID();
|
|
990
|
+
ui = rspkr.ui;
|
|
991
|
+
$rs.hasClass(a, rspkr.ui.rsbtnClass) || $rs.addClass(a, rspkr.ui.rsbtnClass);
|
|
992
|
+
var g = null, g = rspkr.cfg, j = rspkr.cfg.getPhrases(rspkr.c.data.getParam("lang"));
|
|
993
|
+
if (0 == $rs.findIn(a, ".rsbtn_exp").length) {
|
|
994
|
+
var i = $rs.hasClass(a, "rspopup") ? g.item("ui.popupplayer") : g.item("ui.player"), g = document.createElement("div");
|
|
995
|
+
g.className = "rsbtn_exp rsimg rspart";
|
|
996
|
+
g.innerHTML += i.join("\n");
|
|
997
|
+
a.appendChild(g)
|
|
998
|
+
}
|
|
999
|
+
g = e.pin();
|
|
1000
|
+
i = "Explorer" == rspkr.c.data.browser.name && 8 > rspkr.c.data.browser.version;
|
|
1001
|
+
$rs.isArray(g) && 0 == g.length && (g = void 0);
|
|
1002
|
+
g && !i && rspkr.cfg.item("ui.usePin") ? $rs.removeClass(g, "turnedOff") : g && g.parentElement.removeChild(g);
|
|
1003
|
+
if (j) {
|
|
1004
|
+
g = function (a, b) {
|
|
1005
|
+
var c = $rs.findIn(a, ".rsbtn_btnlabel");
|
|
1006
|
+
$rs.isArray(c) || (c = [c]);
|
|
1007
|
+
0 < c.length && (c[0].innerHTML = b)
|
|
1008
|
+
};
|
|
1009
|
+
e.pause() && ($rs.setAttr(e.pause(), "data-rsphrase-pause", j.pause), $rs.setAttr(e.pause(), "data-rsphrase-play", j.play), $rs.setAttr(e.pause(), "title", rspkr.c.decodeEntities(j.pause)), g(e.pause(), rspkr.c.decodeEntities(j.pause)));
|
|
1010
|
+
e.stop() && ($rs.setAttr(e.stop(),
|
|
1011
|
+
"title", rspkr.c.decodeEntities(j.stop)), g(e.stop(), rspkr.c.decodeEntities(j.stop)));
|
|
1012
|
+
e.vol() && ($rs.setAttr(e.vol(), "title", rspkr.c.decodeEntities(j.volume)), g(e.vol(), rspkr.c.decodeEntities(j.volume)));
|
|
1013
|
+
e.settings() && ($rs.setAttr(e.settings(), "title", rspkr.c.decodeEntities(j.settings)), g(e.settings(), rspkr.c.decodeEntities(j.settings)));
|
|
1014
|
+
e.dl() && ($rs.setAttr(e.dl(), "title", rspkr.c.decodeEntities(j.download)), g(e.dl(), rspkr.c.decodeEntities(j.download)));
|
|
1015
|
+
if (e.powered()) {
|
|
1016
|
+
var i = $rs.findIn(e.powered(), ".rsbtn_btnlabel"),
|
|
1017
|
+
k = j.speechenabled.match(/.*href="([^"]*)"/i).pop(), m = j.newwindow, q = document.createElement("p");
|
|
1018
|
+
q.innerHTML = j.speechenabled;
|
|
1019
|
+
m = (q.innerText || q.textContent) + (m ? " (" + m + ")" : "");
|
|
1020
|
+
i && (i.innerHTML = j.speechenabled);
|
|
1021
|
+
$rs.setAttr(e.powered(), "title", m);
|
|
1022
|
+
$rs.setAttr(e.powered(), "data-readspeaker-href", k);
|
|
1023
|
+
i = $rs.getAttr(e.powered(), "data-rsevent-id");
|
|
1024
|
+
(!i || rs.l.f.eq.store[i] && !rs.l.f.eq.store[i].click) && $rs.regEvent(e.powered(), "click", function () {
|
|
1025
|
+
window.open($rs.getAttr(this, "data-readspeaker-href"))
|
|
1026
|
+
})
|
|
1027
|
+
}
|
|
1028
|
+
e.closer() &&
|
|
1029
|
+
($rs.setAttr(e.closer(), "title", rspkr.c.decodeEntities(j.closeplayer)), g(e.closer(), rspkr.c.decodeEntities(j.closeplayer)))
|
|
1030
|
+
}
|
|
1031
|
+
j = rspkr.c.data.browser;
|
|
1032
|
+
(!/safari/i.test(j.name) || !/iphone|ipad|ios/i.test(j.OS)) && $rs.addClass(a, "rs-no-touch");
|
|
1033
|
+
j = $rs.findIn(a, ".rsbtn_status_overlay");
|
|
1034
|
+
$rs.isArray(j) || $rs.css(j, "display", "none");
|
|
1035
|
+
"fallback" === rspkr.pl.adapter && (rspkr.ui.showOverlay("nosound", a), $rs.addClass(a, "rsstopped"));
|
|
1036
|
+
$rs.addClass(a, "rsexpanded");
|
|
1037
|
+
if (rspkr.basicMode) {
|
|
1038
|
+
var r;
|
|
1039
|
+
(r = $rs.findIn(a, ".rsbtn_play")) &&
|
|
1040
|
+
$rs.addClass(r, "rsexpanded")
|
|
1041
|
+
}
|
|
1042
|
+
y || (e.stop() && ($rs.regEvent(e.stop(), "click", function (a) {
|
|
1043
|
+
f(a);
|
|
1044
|
+
c.stop()
|
|
1045
|
+
}), ui.addFocusHandler(e.stop())), e.pause() && ($rs.regEvent(e.pause(), "click", function (b) {
|
|
1046
|
+
f(b);
|
|
1047
|
+
$rs.hasClass(a, "rsplaying") ? c.pause() : ($rs.hasClass(a, "rsstopped") || $rs.hasClass(a, "rspaused")) && c.play()
|
|
1048
|
+
}), ui.addFocusHandler(e.pause())), e.closer() && ($rs.regEvent(e.closer(), "click", function (a) {
|
|
1049
|
+
f(a);
|
|
1050
|
+
c.close()
|
|
1051
|
+
}), ui.addFocusHandler(e.closer())), e.vol() && ($rs.regEvent(e.vol(), "click", function (a) {
|
|
1052
|
+
f(a);
|
|
1053
|
+
c.vol(a)
|
|
1054
|
+
}),
|
|
1055
|
+
ui.addFocusHandler(e.vol())), e.dl() && ($rs.regEvent(e.dl(), "click", function (a) {
|
|
1056
|
+
f(a);
|
|
1057
|
+
return c.dl()
|
|
1058
|
+
}), ui.addFocusHandler(e.dl())), e.settings() && ($rs.regEvent(e.settings(), "click", function (a) {
|
|
1059
|
+
f(a);
|
|
1060
|
+
c.settings()
|
|
1061
|
+
}), ui.addFocusHandler(e.settings())), e.pin() && ($rs.regEvent(e.pin(), "click", function (a) {
|
|
1062
|
+
f(a);
|
|
1063
|
+
c.pin()
|
|
1064
|
+
}), ui.addFocusHandler(e.pin())), r = rspkr.cfg, $rs.setAttr(a, "data-readspeaker-current", 0), $rs.setAttr(a, "data-readspeaker-buffered", 0), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_progress_container")) ||
|
|
1065
|
+
(b.progress = new rspkr.ui.Slider, b.progress.init($rs.findIn($rs.get(a), ".rsbtn_progress_container"), {handleClass: r.item("ui.progressHandleClass") || "rsbtn_progress_handle rsimg", dir: r.item("ui.progressDir") || "h", nudge: 5, start: l, dragging: h, click: u, labelDragHandle: r.getPhrase("sliderseek")}), j = $rs.findIn($rs.get(a), ".rsbtn_progress_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_volume_slider")) || (j = rspkr.st.get("hlvol") || "100", j = 5 * (parseInt(j) / 100), b.vol = new rspkr.ui.Slider,
|
|
1066
|
+
b.vol.init($rs.findIn(a, ".rsbtn_volume_slider"), {handleClass: r.item("ui.volumeHandleClass") || "rsbtn_volume_handle rsimg", dir: r.item("ui.volumeDir") || "v", steps: 5, nudge: 1, initval: j, dragging: B, click: B, labelDragHandle: r.getPhrase("slidervolumedesc")}), j = $rs.findIn($rs.get(a), ".rsbtn_volume_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), rspkr.Common.addEvent("onFocusIn", A), rspkr.Common.addEvent("onFocusOut", z), rspkr.cfg.execCallback("cb.ui.open", a), y = !0);
|
|
1067
|
+
if ($rs.findIn(a, ".rsbtn_powered") && (r = $rs.findIn(a,
|
|
1068
|
+
".rsbtn_powered .rsbtn_btnlabel a")))(/Chrome|Safari|Opera/gi.test(rs.c.data.browser.name) || /Explorer/gi.test(rs.c.data.browser.name) && 8 <= rs.c.data.browser.version) && $rs.regEvent(r, "click", function (a) {
|
|
1069
|
+
f(a)
|
|
1070
|
+
}), r.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>';
|
|
1071
|
+
"0" != $rs.getAttr(a, "data-readspeaker-current") && (rspkr.pl.releaseAdapter(), $rs.setAttr(a, "data-readspeaker-current", 0));
|
|
1072
|
+
"fallback" !== rspkr.pl.adapter &&
|
|
1073
|
+
(c.play(), rspkr.ui.focus(e.pause()));
|
|
1074
|
+
r = (r = a) || a;
|
|
1075
|
+
r = $rs.clone(r, !0, !0);
|
|
1076
|
+
r.id = rspkr.getID();
|
|
1077
|
+
document.body.appendChild(r);
|
|
1078
|
+
$rs.css(r, {position: "absolute", top: "0", left: "0", display: "block", width: "auto"});
|
|
1079
|
+
$rs.css(r, "float", "none");
|
|
1080
|
+
$rs.addClass(r, "rsexpanded");
|
|
1081
|
+
j = $rs.outerWidth(r) + 3;
|
|
1082
|
+
r.style.display = "none";
|
|
1083
|
+
document.body.removeChild(r);
|
|
1084
|
+
n = j;
|
|
1085
|
+
isNaN(n) || $rs.css(a, "width", n + (/[Ee]xplorer/.test(ReadSpeaker.c.data.browser.name) ? 1 : 0) + "px")
|
|
1086
|
+
}, close: function (a) {
|
|
1087
|
+
c.close(a)
|
|
1088
|
+
}, stop: function () {
|
|
1089
|
+
c.stop()
|
|
1090
|
+
}, nosound: function () {
|
|
1091
|
+
return c.nosound()
|
|
1092
|
+
},
|
|
1093
|
+
pause: function () {
|
|
1094
|
+
c.pause()
|
|
1095
|
+
}, play: function () {
|
|
1096
|
+
c.play()
|
|
1097
|
+
}, restart: function () {
|
|
1098
|
+
rspkr.log("[rspkr.ui.restart]");
|
|
1099
|
+
c.stop();
|
|
1100
|
+
window.setTimeout(function () {
|
|
1101
|
+
c.play()
|
|
1102
|
+
}, 500);
|
|
1103
|
+
return!1
|
|
1104
|
+
}, updateProgress: function (a) {
|
|
1105
|
+
i(a)
|
|
1106
|
+
}, setProgress: function (a) {
|
|
1107
|
+
h(a)
|
|
1108
|
+
}, getContainer: function () {
|
|
1109
|
+
return a
|
|
1110
|
+
}, getID: function () {
|
|
1111
|
+
return p
|
|
1112
|
+
}, getWidth: function () {
|
|
1113
|
+
return n
|
|
1114
|
+
}, setHref: function (a) {
|
|
1115
|
+
q = a
|
|
1116
|
+
}, getHref: function () {
|
|
1117
|
+
return q
|
|
1118
|
+
}}
|
|
1119
|
+
};
|
|
1120
|
+
ReadSpeaker.ui.Lightbox = function () {
|
|
1121
|
+
var a = null, f = null, p = null, x = null, v = null, n = null, y, q = [], w = function (a) {
|
|
1122
|
+
a = a || window.event;
|
|
1123
|
+
a.returnValue = !1;
|
|
1124
|
+
if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
|
|
1125
|
+
a && a.preventDefault && a.preventDefault();
|
|
1126
|
+
a && a.stopPropagation && a.stopPropagation()
|
|
1127
|
+
}, e = function () {
|
|
1128
|
+
$rs.css(n, "display", "none");
|
|
1129
|
+
var a = $rs.height(window), b = $rs.height(document), e = parseInt($rs.css(document.documentElement, "width")), f = $rs.width(document), l = $rs.absOffset(document.body), h = 0, p = 0;
|
|
1130
|
+
isNaN(e) && (e = $rs.width(window));
|
|
1131
|
+
l.left && (p = l.left);
|
|
1132
|
+
l.top && (h = l.top);
|
|
1133
|
+
$rs.css(v, {width: (f > e ? f : e) + "px", height: (b > a ? b : a) + "px", top: "-" + Math.abs(h) + "px", left: "-" + Math.abs(p) + "px"});
|
|
1134
|
+
$rs.css(n, "display", "block");
|
|
1135
|
+
t()
|
|
1136
|
+
}, t = function () {
|
|
1137
|
+
var a = $rs.outerWidth(n), b = $rs.outerHeight(n), e = $rs.width(window), f = $rs.height(window), b = y + 80 + 50 < f ? y + 80 : f - 50;
|
|
1138
|
+
n.style.height = b + "px";
|
|
1139
|
+
$rs.get("#rslightbox_content").style.height = b - 80 + "px";
|
|
1140
|
+
b > f ? (n.style.top = $rs.scrollTop(document) + "px", n.style.marginTop = "10px") : (n.style.top = f / 2 + "px", n.style.marginTop = -(b / 2 - $rs.scrollTop(document)) +
|
|
1141
|
+
"px");
|
|
1142
|
+
a > e ? (n.style.left = $rs.scrollLeft(document) + "px", n.style.marginLeft = "0") : (n.style.left = "50%", n.style.marginLeft = -(a / 2 - $rs.scrollLeft(document)) + "px")
|
|
1143
|
+
}, b = function (a) {
|
|
1144
|
+
27 === a.keyCode && rspkr.ui.Lightbox.hide()
|
|
1145
|
+
};
|
|
1146
|
+
return{init: function () {
|
|
1147
|
+
var b = rspkr.pub.Config;
|
|
1148
|
+
a = b.item("ui.overlay.overlayStyles");
|
|
1149
|
+
f = b.item("ui.overlay.contentStyles");
|
|
1150
|
+
p = b.item("ui.overlay.contentTemplate");
|
|
1151
|
+
document.querySelectorAll || (d = document, s = d.createStyleSheet(), d.querySelectorAll = function (a, b, c, e, f) {
|
|
1152
|
+
f = d.all;
|
|
1153
|
+
b = [];
|
|
1154
|
+
a = a.replace(/\[for\b/gi,
|
|
1155
|
+
"[htmlFor").split(",");
|
|
1156
|
+
for (c = a.length; c--;) {
|
|
1157
|
+
s.addRule(a[c], "k:v");
|
|
1158
|
+
for (e = f.length; e--;)f[e].currentStyle.k && b.push(f[e]);
|
|
1159
|
+
s.removeRule(0)
|
|
1160
|
+
}
|
|
1161
|
+
return b
|
|
1162
|
+
});
|
|
1163
|
+
rspkr.log("[rspkr.ui.Lightbox] Heartbeat!")
|
|
1164
|
+
}, show: function (c, k, i, m, l) {
|
|
1165
|
+
for (var h = 0, u = document.body.getElementsByTagName("*"), t; t = u[h]; h++)-1 != t.tabIndex && (q.push([t, t.tabIndex]), t.tabIndex = -1);
|
|
1166
|
+
if (!("Explorer" == rs.c.data.browser.name && 6 == rs.c.data.browser.version)) {
|
|
1167
|
+
t = document.querySelectorAll("body > *");
|
|
1168
|
+
for (h = 0; u = t[h]; h++)if (!("rslightbox_overlay" == u.id ||
|
|
1169
|
+
"rslightbox_contentcontainer" == u.id || "script" == u.tagName.toLowerCase())) {
|
|
1170
|
+
var A = u.getAttribute("aria-hidden");
|
|
1171
|
+
A && u.setAttribute("data-original-aria-hidden", A);
|
|
1172
|
+
u.setAttribute("aria-hidden", "true")
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
c = c || "";
|
|
1176
|
+
i = i || !1;
|
|
1177
|
+
v ? (v.style.display = "", n.style.display = "") : (v = document.createElement("div"), v.id = "rslightbox_overlay", n = document.createElement("div"), n.id = "rslightbox_contentcontainer", n.innerHTML = rspkr.st.r().replaceTokens(p.join("\n"), {rsLIGHTBOX_CLOSE_LABELrs: rspkr.cfg.getPhrase("close")}), $rs.setAttr(v,
|
|
1178
|
+
"style", a.join(";")), $rs.setAttr(n, "style", f.join(";")), document.body.appendChild(v), document.body.appendChild(n), rspkr.evt("onSettingsLoaded", {func: rspkr.st.r().handlers.changed.addButtonEvents, context: rspkr.st.r().handlers.changed, params: [this]}));
|
|
1179
|
+
h = $rs.get("rslightbox_closer");
|
|
1180
|
+
rspkr.ui.addFocusHandler(h, !1);
|
|
1181
|
+
$rs.regEvent(h, "click", function (a) {
|
|
1182
|
+
w(a);
|
|
1183
|
+
rspkr.ui.Lightbox.hide(a)
|
|
1184
|
+
});
|
|
1185
|
+
$rs.regEvent(v, "click", rspkr.ui.Lightbox.hide);
|
|
1186
|
+
$rs.regEvent(document.body, "keyup", b);
|
|
1187
|
+
if ((u = document.documentElement) && document.all)u.style.overflowX =
|
|
1188
|
+
u.style.overflowY = "hidden";
|
|
1189
|
+
if (c != x || i)i = rspkr.cfg.getPhrase("close"), $rs.setAttr(h, "title", i), $rs.findIn(h, ".rsbtn_btnlabel").innerHTML = i, $rs.get("#rslightbox_content").innerHTML = "", $rs.css("#rslightbox_content", "height", "auto"), /^http/i.test(c) ? $rs.findIn("#rslightbox_content", "iframe").length || (i = document.createElement("iframe"), i.src = c, i.className = "rslightbox-iframe", void 0 === l && (l = 2E3), $rs.get("#rslightbox_content").appendChild(i)) : "<" == c.substr(0, 1) && ($rs.get("#rslightbox_content").innerHTML =
|
|
1190
|
+
c), $rs.get("#rslightbox_buttons").innerHTML = k, x = c, "ar_ar" == rs.c.data.params.lang && (-1 == n.className.indexOf("rtl") && (n.className = (n.className + " rtl").replace(/^\s+|\s+$/g, "")), $rs.setAttr($rs.findIn(n, "legend"), "align", "right"));
|
|
1191
|
+
y = void 0 !== l && !isNaN(l) ? l : !rspkr.basicMode ? $rs.get("#rslightbox_content").clientHeight : $rs.get("#rslightbox_content").scrollHeight;
|
|
1192
|
+
c = $rs.findIn("#rslightbox_content", ".rsform-row");
|
|
1193
|
+
for (h = 0; h < c.length; h++) {
|
|
1194
|
+
k = $rs.findIn(c[h], "input, a, select");
|
|
1195
|
+
$rs.isArray(k) || (k = [k]);
|
|
1196
|
+
for (u =
|
|
1197
|
+
0; u < k.length; u++)rspkr.ui.addFocusHandler(k[u], !1, c[h])
|
|
1198
|
+
}
|
|
1199
|
+
var z = $rs.findIn("#rslightbox_buttons", ".rssettings-button-close");
|
|
1200
|
+
rspkr.ui.addFocusHandler(z, !1);
|
|
1201
|
+
$rs.regEvent(z, "click", function (a) {
|
|
1202
|
+
w(a)
|
|
1203
|
+
});
|
|
1204
|
+
(c = $rs.findIn("#rsform_wrapper", ".rssettings-button-gotobottom")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
|
|
1205
|
+
(c = $rs.findIn("#rslightbox_buttons", ".rssettings-button-gototop")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
|
|
1206
|
+
var g = $rs.findIn("#rslightbox_content", "input");
|
|
1207
|
+
$rs.isArray(g) && 0 < g.length ?
|
|
1208
|
+
setTimeout(function () {
|
|
1209
|
+
rspkr.ui.focus(g[0]);
|
|
1210
|
+
rspkr.Common.addEvent("onFocusIn", function (a) {
|
|
1211
|
+
a.className && $rs.hasClass(a, "rssettings-button-gototop") ? rspkr.ui.focus(g[0]) : a.className && $rs.hasClass(a, "rssettings-button-gotobottom") && rspkr.ui.focus(z)
|
|
1212
|
+
})
|
|
1213
|
+
}, 200) : $rs.isArray(g) || setTimeout(function () {
|
|
1214
|
+
rspkr.ui.focus(g)
|
|
1215
|
+
}, 200);
|
|
1216
|
+
e();
|
|
1217
|
+
$rs.regEvent(window, "resize", e);
|
|
1218
|
+
"function" == typeof m && m.apply(this, [n])
|
|
1219
|
+
}, hide: function (a) {
|
|
1220
|
+
for (; 0 < q.length;) {
|
|
1221
|
+
var f = q.pop();
|
|
1222
|
+
f[0].tabIndex = f[1]
|
|
1223
|
+
}
|
|
1224
|
+
if (!("Explorer" == rs.c.data.browser.name &&
|
|
1225
|
+
6 == rs.c.data.browser.version))for (var a = document.querySelectorAll("body > *"), f = 0, i; i = a[f]; f++) {
|
|
1226
|
+
var m = i.getAttribute("data-original-aria-hidden");
|
|
1227
|
+
m ? (i.setAttribute("aria-hidden", m), i.removeAttribute("data-original-aria-hidden")) : i.removeAttribute("aria-hidden")
|
|
1228
|
+
}
|
|
1229
|
+
w(a);
|
|
1230
|
+
v.style.display = "none";
|
|
1231
|
+
n.style.display = "none";
|
|
1232
|
+
$rs.unregEvent(window, "resize", e);
|
|
1233
|
+
$rs.unregEvent($rs.get("#rslightbox_closer"), "click", rspkr.ui.Lightbox.hide);
|
|
1234
|
+
$rs.unregEvent(v, "click", rspkr.ui.Lightbox.hide);
|
|
1235
|
+
$rs.unregEvent(document.body,
|
|
1236
|
+
"keyup", b);
|
|
1237
|
+
if ((a = document.documentElement) && document.all)a.style.overflowX = a.style.overflowY = "auto";
|
|
1238
|
+
rspkr.ui.updateFocus();
|
|
1239
|
+
rspkr.c.dispatchEvent("onSettingsClosed", window, [])
|
|
1240
|
+
}, reposition: t}
|
|
1241
|
+
}();
|