diff options
author | bpeetz <me@b-peetz.de> | 2023-06-26 07:07:28 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-02-22 16:07:05 +0100 |
commit | c4276f597be72da754cd0595dffee17454556c49 (patch) | |
tree | b6160a73a1c0b752d875fc356f1e06dcdf7503a0 /geschichte/js/utils/constants.js | |
parent | chore: Initial Commit (diff) | |
download | b-peetz.de-c4276f597be72da754cd0595dffee17454556c49.zip |
feat(geschichte): Add
Diffstat (limited to '')
-rw-r--r-- | geschichte/js/utils/constants.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/geschichte/js/utils/constants.js b/geschichte/js/utils/constants.js new file mode 100644 index 0000000..43fcb84 --- /dev/null +++ b/geschichte/js/utils/constants.js @@ -0,0 +1,10 @@ + +export const SLIDES_SELECTOR = '.slides section'; +export const HORIZONTAL_SLIDES_SELECTOR = '.slides>section'; +export const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section'; + +// Methods that may not be invoked via the postMessage API +export const POST_MESSAGE_METHOD_BLACKLIST = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/; + +// 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/; \ No newline at end of file |