/
githubmirror
/
reveal.js
Обзор
Документация
Войти
/
githubmirror
/
reveal.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
js/utils/constants.ts
18 строк
950 B
Hakim El Hattab
blacklist previewIframe in postmessage api (closes #3887)
08 апр 2026, 09:43
08 апр 2026, 09:43
3cdb5c5
Код
Авторство
О чём код?
export const SLIDES_SELECTOR = '.slides section'; export const HORIZONTAL_SLIDES_SELECTOR = '.slides>section'; export const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section'; export const HORIZONTAL_BACKGROUNDS_SELECTOR = '.backgrounds>.slide-background'; // Methods that may not be invoked via the postMessage API export const POST_MESSAGE_METHOD_BLACKLIST = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/; // Regex for retrieving the fragment style from a class attribute export const FRAGMENT_STYLE_REGEX = /fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/; // Slide number formats export const SLIDE_NUMBER_FORMAT_HORIZONTAL_DOT_VERTICAL = 'h.v'; export const SLIDE_NUMBER_FORMAT_HORIZONTAL_SLASH_VERTICAL = 'h/v'; export const SLIDE_NUMBER_FORMAT_CURRENT = 'c'; export const SLIDE_NUMBER_FORMAT_CURRENT_SLASH_TOTAL = 'c/t';