From 8069b003f4f754689207167e3f4dbe92e1192abc Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 11 Mar 2018 14:15:17 +0100 Subject: [PATCH 001/217] Added Gulp I have created a gulpfile.js with the same tasks of grunt, replaced npm script and finally ad .jshintrc for jshint --- .jshintrc | 22 ++++++++++++++++++++ gulpfile.js | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 24 +++++++++++++++++----- 3 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 .jshintrc create mode 100644 gulpfile.js diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..fe80948 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,22 @@ +{ + "curly": false, + "eqeqeq": true, + "immed": true, + "esnext": true, + "latedef": "nofunc", + "newcap": true, + "noarg": true, + "sub": true, + "undef": true, + "eqnull": true, + "browser": true, + "expr": true, + "globals": { + "head": false, + "module": false, + "console": false, + "unescape": false, + "define": false, + "exports": false + } +} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..a44ae9b --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,58 @@ +const gulp = require('gulp') +const jshint = require('gulp-jshint') +const uglify = require('gulp-uglify') +const rename = require('gulp-rename') +const sass = require('gulp-sass') +const autoprefixer = require('gulp-autoprefixer') +const minify = require('gulp-clean-css') +const qunit = require('gulp-qunit') +const zip = require('gulp-zip') +const connect = require('gulp-connect') + +gulp.task('js', function () { + return gulp.src(['./js/reveal.js']).pipe(uglify()).pipe(rename('reveal.min.js')).pipe(gulp.dest('./js')) +}) + +gulp.task('css-themes', function () { + return gulp.src(['./css/theme/source/*.{sass,scss}']).pipe(sass()).pipe(gulp.dest('./css/theme')) +}) + +gulp.task('css-core', gulp.series(function () { + return gulp.src(['css/reveal.scss']).pipe(sass()).pipe(autoprefixer()).pipe(gulp.dest('./css')) +}, function () { + return gulp.src(['css/reveal.css']).pipe(minify({ + compatibility: 'ie9' + })).pipe(rename('reveal.min.css')).pipe(gulp.dest('./css')) +})) + +gulp.task('css', gulp.parallel('css-themes', 'css-core')) + +gulp.task('test', gulp.parallel(function () { + return gulp.src(['./js/reveal.js']).pipe(jshint()).pipe(jshint.reporter('default')).pipe(jshint.reporter('fail')); +}, function () { + return gulp.src(['./test/*.html']).pipe(qunit()) +})) + +gulp.task('default', gulp.series(gulp.parallel('js', 'css'), 'test')) + +gulp.task('package', gulp.series('default', function () { + return gulp.src([ + './index.html', + './css/**', + './js/**', + './lib/**', + './images/**', + './plugin/**', + './**.md' + ]).pipe(zip('reveal-js-presentation.zip')).pipe(gulp.dest('./')) +})) + +gulp.task('serve', function () { + connect.server({ + root: '.', + livereload: true, + open: true, + useAvailablePort: true + }) + gulp.watch(['js/reveal.js'], gulp.series('js')) +}) \ No newline at end of file diff --git a/package.json b/package.json index 9bb5d29..c4efa30 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "subdomain": "revealjs", "main": "js/reveal.js", "scripts": { - "test": "grunt test", - "start": "grunt serve", - "build": "grunt" + "test": "gulp test", + "start": "gulp serve", + "build": "gulp" }, "author": { "name": "Hakim El Hattab", @@ -33,11 +33,25 @@ "grunt-contrib-qunit": "^2.0.0", "grunt-contrib-uglify": "^3.3.0", "grunt-contrib-watch": "^1.0.0", - "grunt-sass": "^2.0.0", "grunt-retire": "^1.0.7", + "grunt-sass": "^2.0.0", "grunt-zip": "~0.17.1", + "gulp": "^4.0.0", + "gulp-autoprefixer": "^5.0.0", + "gulp-clean-css": "^3.9.3", + "gulp-connect": "^5.5.0", + "gulp-jshint": "^2.1.0", + "gulp-qunit": "^2.0.1", + "gulp-rename": "^1.2.2", + "gulp-sass": "^3.1.0", + "gulp-uglify": "^3.0.0", + "gulp-zip": "^4.1.0", + "jshint": "^2.9.5", "mustache": "^2.3.0", "socket.io": "^1.7.3" }, - "license": "MIT" + "license": "MIT", + "dependencies": { + "npm": "^5.7.1" + } } From fb5f4c034a453f0246a3a03897b033739376c694 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 11 Mar 2018 17:52:37 +0100 Subject: [PATCH 002/217] Added the remaining gulp watch I forgot them :anguished: --- gulpfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index a44ae9b..3326a68 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -55,4 +55,8 @@ gulp.task('serve', function () { useAvailablePort: true }) gulp.watch(['js/reveal.js'], gulp.series('js')) + gulp.watch(['css/theme/source/*.{sass,scss}', + 'css/theme/template/*.{sass,scss}', + ], gulp.series('css-themes')) + gulp.watch(['css/reveal.scss'], gulp.series('css-core')) }) \ No newline at end of file From 4818acbaf037b7c2976b4e699e73adf20966c545 Mon Sep 17 00:00:00 2001 From: Daniel Panero Date: Mon, 14 May 2018 20:01:59 +0200 Subject: [PATCH 003/217] Removed .jshintrc and added eslint instead of jshint I added the same jshint configuration/rules in package.json and I replaced some old function with arrow function to improve legibility --- .jshintrc | 22 ---------------------- gulpfile.js | 36 +++++++++++++++--------------------- package.json | 35 ++++++++++++++++++++++++++++++++++- 3 files changed, 49 insertions(+), 44 deletions(-) delete mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index fe80948..0000000 --- a/.jshintrc +++ /dev/null @@ -1,22 +0,0 @@ -{ - "curly": false, - "eqeqeq": true, - "immed": true, - "esnext": true, - "latedef": "nofunc", - "newcap": true, - "noarg": true, - "sub": true, - "undef": true, - "eqnull": true, - "browser": true, - "expr": true, - "globals": { - "head": false, - "module": false, - "console": false, - "unescape": false, - "define": false, - "exports": false - } -} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 3326a68..0989303 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,5 @@ const gulp = require('gulp') -const jshint = require('gulp-jshint') +const eslint = require('gulp-eslint') const uglify = require('gulp-uglify') const rename = require('gulp-rename') const sass = require('gulp-sass') @@ -9,34 +9,28 @@ const qunit = require('gulp-qunit') const zip = require('gulp-zip') const connect = require('gulp-connect') -gulp.task('js', function () { - return gulp.src(['./js/reveal.js']).pipe(uglify()).pipe(rename('reveal.min.js')).pipe(gulp.dest('./js')) -}) +gulp.task('js', () => gulp.src(['./js/reveal.js']).pipe(uglify()).pipe(rename('reveal.min.js')).pipe(gulp.dest('./js'))) -gulp.task('css-themes', function () { - return gulp.src(['./css/theme/source/*.{sass,scss}']).pipe(sass()).pipe(gulp.dest('./css/theme')) -}) +gulp.task('css-themes', () => gulp.src(['./css/theme/source/*.{sass,scss}']).pipe(sass()).pipe(gulp.dest('./css/theme'))) -gulp.task('css-core', gulp.series(function () { - return gulp.src(['css/reveal.scss']).pipe(sass()).pipe(autoprefixer()).pipe(gulp.dest('./css')) -}, function () { - return gulp.src(['css/reveal.css']).pipe(minify({ +gulp.task('css-core', gulp.series( + () => gulp.src(['css/reveal.scss']).pipe(sass()).pipe(autoprefixer()).pipe(gulp.dest('./css')), + () => gulp.src(['css/reveal.css']).pipe(minify({ compatibility: 'ie9' })).pipe(rename('reveal.min.css')).pipe(gulp.dest('./css')) -})) +)) gulp.task('css', gulp.parallel('css-themes', 'css-core')) -gulp.task('test', gulp.parallel(function () { - return gulp.src(['./js/reveal.js']).pipe(jshint()).pipe(jshint.reporter('default')).pipe(jshint.reporter('fail')); -}, function () { - return gulp.src(['./test/*.html']).pipe(qunit()) -})) +gulp.task('test', gulp.series( + () => gulp.src(['./js/reveal.js']).pipe(eslint({useEslintrc: true})).pipe(eslint.format()), + () => gulp.src(['./test/*.html']).pipe(qunit()) +)) gulp.task('default', gulp.series(gulp.parallel('js', 'css'), 'test')) -gulp.task('package', gulp.series('default', function () { - return gulp.src([ +gulp.task('package', gulp.series('default', () => + gulp.src([ './index.html', './css/**', './js/**', @@ -45,9 +39,9 @@ gulp.task('package', gulp.series('default', function () { './plugin/**', './**.md' ]).pipe(zip('reveal-js-presentation.zip')).pipe(gulp.dest('./')) -})) +)) -gulp.task('serve', function () { +gulp.task('serve', () => { connect.server({ root: '.', livereload: true, diff --git a/package.json b/package.json index c4efa30..9e96d0d 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "gulp-autoprefixer": "^5.0.0", "gulp-clean-css": "^3.9.3", "gulp-connect": "^5.5.0", - "gulp-jshint": "^2.1.0", + "gulp-eslint": "^4.0.2", "gulp-qunit": "^2.0.1", "gulp-rename": "^1.2.2", "gulp-sass": "^3.1.0", @@ -53,5 +53,38 @@ "license": "MIT", "dependencies": { "npm": "^5.7.1" + }, + "eslintConfig": { + "env": { + "browser": true + }, + "globals": { + "head": false, + "module": false, + "console": false, + "unescape": false, + "define": false, + "exports": false + }, + "rules": { + "curly": 0, + "eqeqeq": 2, + "wrap-iife": [ + 2, + "any" + ], + "no-use-before-define": [ + 2, + { + "functions": false + } + ], + "new-cap": 2, + "no-caller": 2, + "dot-notation": 0, + "no-undef": 2, + "no-eq-null": 2, + "no-unused-expressions": 2 + } } } From 40bf81ce9b1132528cb80bf6ec703a71f00a1098 Mon Sep 17 00:00:00 2001 From: ggodreau Date: Thu, 1 Nov 2018 08:18:21 -0500 Subject: [PATCH 004/217] Fixes #2268 - Added clarification to README.md that 'markdown.js' and 'marked.js' scripts were imported within the default included index.html file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 940e746..2b41c68 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ The presentation markup hierarchy needs to be `.reveal > .slides > section` wher ### Markdown -It's possible to write your slides using Markdown. To enable Markdown, add the `data-markdown` attribute to your `
` elements and wrap the contents in a ` -
+If you only have a single presentation on the page we recommend initializing reveal.js using the singleton API. +```js +Reveal.initialize({ keyboard: true }); ``` -#### External Markdown - -You can write your content as a separate file and have reveal.js load it at runtime. Note the separator arguments which determine how slides are delimited in the external file: the `data-separator` attribute defines a regular expression for horizontal slides (defaults to `^\r?\n---\r?\n$`, a newline-bounded horizontal rule) and `data-separator-vertical` defines vertical slides (disabled by default). The `data-separator-notes` attribute is a regular expression for specifying the beginning of the current slide's speaker notes (defaults to `notes?:`, so it will match both "note:" and "notes:"). The `data-charset` attribute is optional and specifies which charset to use when loading the external file. - -When used locally, this feature requires that reveal.js [runs from a local web server](#full-setup). The following example customises all available options: - -```html -
- -
+The `initialize` method returns a promise which will resolve as soon as the presentation is ready and can be interacted with via the API. +```js +Reveal.initialize.then( () => { + // reveal.js is ready +} ) ``` -#### Element Attributes - -Special syntax (through HTML comments) is available for adding attributes to Markdown elements. This is useful for fragments, amongst other things. - +If you want to run multiple presentations side-by-side on the same page you can create instances of the Reveal class. Note that you will also need to set the `embedded` config option to true. ```html -
- -
-``` +
...
+
...
+ - -``` - -#### Configuring *marked* - -We use [marked](https://github.com/chjj/marked) to parse Markdown. To customise marked's rendering, you can pass in options when [configuring Reveal](#configuration): - -```javascript -Reveal.initialize({ - // Options which are passed into marked - // See https://marked.js.org/#/USING_ADVANCED.md#options - markdown: { - smartypants: true - } -}); + deck1.initialize(); + deck2.initialize(); + ``` ### Configuration @@ -1253,6 +1194,80 @@ Reveal.initialize({ }); ``` +## Markdown + +It's possible to write your slides using Markdown. To enable Markdown, add the `data-markdown` attribute to your `
` elements and wrap the contents in a ` +
+``` + +### External Markdown + +You can write your content as a separate file and have reveal.js load it at runtime. Note the separator arguments which determine how slides are delimited in the external file: the `data-separator` attribute defines a regular expression for horizontal slides (defaults to `^\r?\n---\r?\n$`, a newline-bounded horizontal rule) and `data-separator-vertical` defines vertical slides (disabled by default). The `data-separator-notes` attribute is a regular expression for specifying the beginning of the current slide's speaker notes (defaults to `notes?:`, so it will match both "note:" and "notes:"). The `data-charset` attribute is optional and specifies which charset to use when loading the external file. + +When used locally, this feature requires that reveal.js [runs from a local web server](#full-setup). The following example customises all available options: + +```html +
+ +
+``` + +### Element Attributes + +Special syntax (through HTML comments) is available for adding attributes to Markdown elements. This is useful for fragments, amongst other things. + +```html +
+ +
+``` + +### Slide Attributes + +Special syntax (through HTML comments) is available for adding attributes to the slide `
` elements generated by your Markdown. + +```html +
+ +
+``` + +### Configuring *marked* + +We use [marked](https://github.com/chjj/marked) to parse Markdown. To customise marked's rendering, you can pass in options when [configuring Reveal](#configuration): + +```javascript +Reveal.initialize({ + // Options which are passed into marked + // See https://marked.js.org/#/USING_ADVANCED.md#options + markdown: { + smartypants: true + } +}); +``` ## PDF Export From 9c21f9b0f071635000da32bd72c5b9479759e692 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 7 Apr 2020 11:35:38 +0200 Subject: [PATCH 135/217] fix vulnerabilities --- package-lock.json | 299 ++++++++++++++++++++++------------------------ 1 file changed, 143 insertions(+), 156 deletions(-) diff --git a/package-lock.json b/package-lock.json index faf8ec1..6306343 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1005,178 +1005,177 @@ "dev": true }, "@webassemblyjs/ast": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", - "integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz", + "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==", "dev": true, "requires": { - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5" + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0" } }, "@webassemblyjs/floating-point-hex-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz", - "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz", + "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==", "dev": true }, "@webassemblyjs/helper-api-error": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz", - "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz", + "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==", "dev": true }, "@webassemblyjs/helper-buffer": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz", - "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz", + "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==", "dev": true }, "@webassemblyjs/helper-code-frame": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz", - "integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz", + "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==", "dev": true, "requires": { - "@webassemblyjs/wast-printer": "1.8.5" + "@webassemblyjs/wast-printer": "1.9.0" } }, "@webassemblyjs/helper-fsm": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz", - "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz", + "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==", "dev": true }, "@webassemblyjs/helper-module-context": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz", - "integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz", + "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "mamacro": "^0.0.3" + "@webassemblyjs/ast": "1.9.0" } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz", - "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz", + "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==", "dev": true }, "@webassemblyjs/helper-wasm-section": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz", - "integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz", + "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0" } }, "@webassemblyjs/ieee754": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz", - "integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz", + "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==", "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } }, "@webassemblyjs/leb128": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz", - "integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz", + "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==", "dev": true, "requires": { "@xtuc/long": "4.2.2" } }, "@webassemblyjs/utf8": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz", - "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz", + "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==", "dev": true }, "@webassemblyjs/wasm-edit": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz", - "integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz", + "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/helper-wasm-section": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-opt": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "@webassemblyjs/wast-printer": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/helper-wasm-section": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-opt": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "@webassemblyjs/wast-printer": "1.9.0" } }, "@webassemblyjs/wasm-gen": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz", - "integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz", + "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" } }, "@webassemblyjs/wasm-opt": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz", - "integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz", + "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0" } }, "@webassemblyjs/wasm-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz", - "integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz", + "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" } }, "@webassemblyjs/wast-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz", - "integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz", + "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/floating-point-hex-parser": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-code-frame": "1.8.5", - "@webassemblyjs/helper-fsm": "1.8.5", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/floating-point-hex-parser": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-code-frame": "1.9.0", + "@webassemblyjs/helper-fsm": "1.9.0", "@xtuc/long": "4.2.2" } }, "@webassemblyjs/wast-printer": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz", - "integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz", + "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0", "@xtuc/long": "4.2.2" } }, @@ -2110,9 +2109,9 @@ "dev": true }, "cacache": { - "version": "12.0.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.3.tgz", - "integrity": "sha512-kqdmfXEGFepesTuROHMs3MpFLWrPkSSpRqOw80RCflZXy/khxaArvFrQ7uJxSUduzAufc6G0g1VUCOZXxWavPw==", + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz", + "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==", "dev": true, "requires": { "bluebird": "^3.5.5", @@ -3596,15 +3595,15 @@ } }, "extract-zip": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", - "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz", + "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==", "dev": true, "requires": { - "concat-stream": "1.6.2", - "debug": "2.6.9", - "mkdirp": "0.5.1", - "yauzl": "2.4.1" + "concat-stream": "^1.6.2", + "debug": "^2.6.9", + "mkdirp": "^0.5.4", + "yauzl": "^2.10.0" } }, "extsprintf": { @@ -3653,18 +3652,18 @@ } }, "fd-slicer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", - "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", "dev": true, "requires": { "pend": "~1.2.0" } }, "figgy-pudding": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", - "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", + "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==", "dev": true }, "figures": { @@ -4156,13 +4155,6 @@ "brace-expansion": "^1.1.7" } }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true, - "optional": true - }, "minipass": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", @@ -4185,13 +4177,13 @@ } }, "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", "dev": true, "optional": true, "requires": { - "minimist": "0.0.8" + "minimist": "^1.2.5" } }, "ms": { @@ -4361,9 +4353,9 @@ }, "dependencies": { "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true, "optional": true } @@ -6130,12 +6122,6 @@ "kind-of": "^6.0.2" } }, - "mamacro": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", - "dev": true - }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -6343,9 +6329,9 @@ } }, "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, "mississippi": { @@ -6400,12 +6386,12 @@ } }, "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", "dev": true, "requires": { - "minimist": "0.0.8" + "minimist": "^1.2.5" } }, "move-concurrently": { @@ -8712,9 +8698,9 @@ } }, "terser": { - "version": "4.6.6", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.6.tgz", - "integrity": "sha512-4lYPyeNmstjIIESr/ysHg2vUPRGf2tzF9z2yYwnowXVuVzLEamPN1Gfrz7f8I9uEPuHcbFlW4PLIAsJoxXyJ1g==", + "version": "4.6.10", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.10.tgz", + "integrity": "sha512-qbF/3UOo11Hggsbsqm2hPa6+L4w7bkr+09FNseEe8xrcVD3APGLFqE+Oz1ZKAxjYnFsj80rLOfgAtJ0LNJjtTA==", "dev": true, "requires": { "commander": "^2.20.0", @@ -9361,26 +9347,26 @@ "dev": true }, "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.1.tgz", + "integrity": "sha512-+IF9hfUFOrYOOaKyfaI7h7dquUIOgyEMoQMLA7OP5FxegKA2+XdXThAZ9TU2kucfhDH7rfMHs1oPYziVGWRnZA==", "dev": true, "requires": { - "chokidar": "^2.0.2", + "chokidar": "^2.1.8", "graceful-fs": "^4.1.2", "neo-async": "^2.5.0" } }, "webpack": { - "version": "4.42.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.0.tgz", - "integrity": "sha512-EzJRHvwQyBiYrYqhyjW9AqM90dE4+s1/XtCfn7uWg6cS72zH+2VPFAlsnW0+W0cDi0XRjNKUMoJtpSi50+Ph6w==", + "version": "4.42.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.1.tgz", + "integrity": "sha512-SGfYMigqEfdGchGhFFJ9KyRpQKnipvEvjc1TwrXEPCM6H5Wywu10ka8o3KGrMzSMxMQKt8aCHUFh5DaQ9UmyRg==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/wasm-edit": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/wasm-edit": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", "acorn": "^6.2.1", "ajv": "^6.10.2", "ajv-keywords": "^3.4.1", @@ -9392,7 +9378,7 @@ "loader-utils": "^1.2.3", "memory-fs": "^0.4.1", "micromatch": "^3.1.10", - "mkdirp": "^0.5.1", + "mkdirp": "^0.5.3", "neo-async": "^2.6.1", "node-libs-browser": "^2.2.1", "schema-utils": "^1.0.0", @@ -9732,12 +9718,13 @@ } }, "yauzl": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", - "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", "dev": true, "requires": { - "fd-slicer": "~1.0.1" + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" } }, "yazl": { From 094acd6a6aa17e465b45b65b6d3fb66d2f144b0d Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 7 Apr 2020 11:40:23 +0200 Subject: [PATCH 136/217] tweak initialization docs --- README.md | 739 +++++++++++++++++++++++++++--------------------------- 1 file changed, 371 insertions(+), 368 deletions(-) diff --git a/README.md b/README.md index 0277553..b30a4fb 100644 --- a/README.md +++ b/README.md @@ -117,22 +117,22 @@ Some reveal.js features, like external Markdown and speaker notes, require that Here's a barebones example of a fully working reveal.js presentation: ```html - - - - - -
-
-
Slide 1
-
Slide 2
-
-
- - - + + + + + +
+
+
Slide 1
+
Slide 2
+
+
+ + + ``` @@ -140,13 +140,13 @@ The presentation markup hierarchy needs to be `.reveal > .slides > section` wher ```html
-
-
Single Horizontal Slide
-
-
Vertical Slide 1
-
Vertical Slide 2
-
-
+
+
Single Horizontal Slide
+
+
Vertical Slide 1
+
Vertical Slide 2
+
+
``` @@ -155,14 +155,17 @@ It's also possible to write presentations using [Markdown](#markdown). ### Initialization If you only have a single presentation on the page we recommend initializing reveal.js using the singleton API. -```js -Reveal.initialize({ keyboard: true }); +```html + + ``` The `initialize` method returns a promise which will resolve as soon as the presentation is ready and can be interacted with via the API. ```js Reveal.initialize.then( () => { - // reveal.js is ready + // reveal.js is ready } ) ``` @@ -171,13 +174,13 @@ If you want to run multiple presentations side-by-side on the same page you can
...
...
``` @@ -188,193 +191,193 @@ At the end of your page you need to initialize reveal by running the following c ```javascript Reveal.initialize({ - // Display presentation control arrows - controls: true, + // Display presentation control arrows + controls: true, - // Help the user learn the controls by providing hints, for example by - // bouncing the down arrow when they first encounter a vertical slide - controlsTutorial: true, + // Help the user learn the controls by providing hints, for example by + // bouncing the down arrow when they first encounter a vertical slide + controlsTutorial: true, - // Determines where controls appear, "edges" or "bottom-right" - controlsLayout: 'bottom-right', + // Determines where controls appear, "edges" or "bottom-right" + controlsLayout: 'bottom-right', - // Visibility rule for backwards navigation arrows; "faded", "hidden" - // or "visible" - controlsBackArrows: 'faded', + // Visibility rule for backwards navigation arrows; "faded", "hidden" + // or "visible" + controlsBackArrows: 'faded', - // Display a presentation progress bar - progress: true, + // Display a presentation progress bar + progress: true, - // Display the page number of the current slide - slideNumber: false, + // Display the page number of the current slide + slideNumber: false, - // Add the current slide number to the URL hash so that reloading the - // page/copying the URL will return you to the same slide - hash: false, + // Add the current slide number to the URL hash so that reloading the + // page/copying the URL will return you to the same slide + hash: false, - // Push each slide change to the browser history. Implies `hash: true` - history: false, + // Push each slide change to the browser history. Implies `hash: true` + history: false, - // Enable keyboard shortcuts for navigation - keyboard: true, + // Enable keyboard shortcuts for navigation + keyboard: true, - // Enable the slide overview mode - overview: true, + // Enable the slide overview mode + overview: true, - // Vertical centering of slides - center: true, + // Vertical centering of slides + center: true, - // Enables touch navigation on devices with touch input - touch: true, + // Enables touch navigation on devices with touch input + touch: true, - // Loop the presentation - loop: false, + // Loop the presentation + loop: false, - // Change the presentation direction to be RTL - rtl: false, + // Change the presentation direction to be RTL + rtl: false, - // See https://github.com/hakimel/reveal.js/#navigation-mode - navigationMode: 'default', + // See https://github.com/hakimel/reveal.js/#navigation-mode + navigationMode: 'default', - // Randomizes the order of slides each time the presentation loads - shuffle: false, + // Randomizes the order of slides each time the presentation loads + shuffle: false, - // Turns fragments on and off globally - fragments: true, + // Turns fragments on and off globally + fragments: true, - // Flags whether to include the current fragment in the URL, - // so that reloading brings you to the same fragment position - fragmentInURL: false, + // Flags whether to include the current fragment in the URL, + // so that reloading brings you to the same fragment position + fragmentInURL: false, - // Flags if the presentation is running in an embedded mode, - // i.e. contained within a limited portion of the screen - embedded: false, + // Flags if the presentation is running in an embedded mode, + // i.e. contained within a limited portion of the screen + embedded: false, - // Flags if we should show a help overlay when the questionmark - // key is pressed - help: true, + // Flags if we should show a help overlay when the questionmark + // key is pressed + help: true, - // Flags if speaker notes should be visible to all viewers - showNotes: false, + // Flags if speaker notes should be visible to all viewers + showNotes: false, - // Global override for autoplaying embedded media (video/audio/iframe) - // - null: Media will only autoplay if data-autoplay is present - // - true: All media will autoplay, regardless of individual setting - // - false: No media will autoplay, regardless of individual setting - autoPlayMedia: null, + // Global override for autoplaying embedded media (video/audio/iframe) + // - null: Media will only autoplay if data-autoplay is present + // - true: All media will autoplay, regardless of individual setting + // - false: No media will autoplay, regardless of individual setting + autoPlayMedia: null, - // Global override for preloading lazy-loaded iframes - // - null: Iframes with data-src AND data-preload will be loaded when within - // the viewDistance, iframes with only data-src will be loaded when visible - // - true: All iframes with data-src will be loaded when within the viewDistance - // - false: All iframes with data-src will be loaded only when visible - preloadIframes: null, + // Global override for preloading lazy-loaded iframes + // - null: Iframes with data-src AND data-preload will be loaded when within + // the viewDistance, iframes with only data-src will be loaded when visible + // - true: All iframes with data-src will be loaded when within the viewDistance + // - false: All iframes with data-src will be loaded only when visible + preloadIframes: null, - // Can be used to globally disable auto-animation - autoAnimate: true, + // Can be used to globally disable auto-animation + autoAnimate: true, - // Optionally provide a custom element matcher that will be - // used to dictate which elements we can animate between. - autoAnimateMatcher: null, + // Optionally provide a custom element matcher that will be + // used to dictate which elements we can animate between. + autoAnimateMatcher: null, - // Default settings for our auto-animate transitions, can be - // overridden per-slide or per-element via data arguments - autoAnimateEasing: 'ease', - autoAnimateDuration: 1.0, - autoAnimateUnmatched: true, + // Default settings for our auto-animate transitions, can be + // overridden per-slide or per-element via data arguments + autoAnimateEasing: 'ease', + autoAnimateDuration: 1.0, + autoAnimateUnmatched: true, - // CSS properties that can be auto-animated. Position & scale - // is matched separately so there's no need to include styles - // like top/right/bottom/left, width/height or margin. - autoAnimateStyles: [ - 'opacity', - 'color', - 'background-color', - 'padding', - 'font-size', - 'line-height', - 'letter-spacing', - 'border-width', - 'border-color', - 'border-radius', - 'outline', - 'outline-offset' - ], + // CSS properties that can be auto-animated. Position & scale + // is matched separately so there's no need to include styles + // like top/right/bottom/left, width/height or margin. + autoAnimateStyles: [ + 'opacity', + 'color', + 'background-color', + 'padding', + 'font-size', + 'line-height', + 'letter-spacing', + 'border-width', + 'border-color', + 'border-radius', + 'outline', + 'outline-offset' + ], - // Number of milliseconds between automatically proceeding to the - // next slide, disabled when set to 0, this value can be overwritten - // by using a data-autoslide attribute on your slides - autoSlide: 0, + // Number of milliseconds between automatically proceeding to the + // next slide, disabled when set to 0, this value can be overwritten + // by using a data-autoslide attribute on your slides + autoSlide: 0, - // Stop auto-sliding after user input - autoSlideStoppable: true, + // Stop auto-sliding after user input + autoSlideStoppable: true, - // Use this method for navigation when auto-sliding - autoSlideMethod: Reveal.next, + // Use this method for navigation when auto-sliding + autoSlideMethod: Reveal.next, - // Specify the average time in seconds that you think you will spend - // presenting each slide. This is used to show a pacing timer in the - // speaker view - defaultTiming: 120, + // Specify the average time in seconds that you think you will spend + // presenting each slide. This is used to show a pacing timer in the + // speaker view + defaultTiming: 120, - // Specify the total time in seconds that is available to - // present. If this is set to a nonzero value, the pacing - // timer will work out the time available for each slide, - // instead of using the defaultTiming value - totalTime: 0, + // Specify the total time in seconds that is available to + // present. If this is set to a nonzero value, the pacing + // timer will work out the time available for each slide, + // instead of using the defaultTiming value + totalTime: 0, - // Specify the minimum amount of time you want to allot to - // each slide, if using the totalTime calculation method. If - // the automated time allocation causes slide pacing to fall - // below this threshold, then you will see an alert in the - // speaker notes window - minimumTimePerSlide: 0, + // Specify the minimum amount of time you want to allot to + // each slide, if using the totalTime calculation method. If + // the automated time allocation causes slide pacing to fall + // below this threshold, then you will see an alert in the + // speaker notes window + minimumTimePerSlide: 0, - // Enable slide navigation via mouse wheel - mouseWheel: false, + // Enable slide navigation via mouse wheel + mouseWheel: false, - // Hide cursor if inactive - hideInactiveCursor: true, + // Hide cursor if inactive + hideInactiveCursor: true, - // Time before the cursor is hidden (in ms) - hideCursorTime: 5000, + // Time before the cursor is hidden (in ms) + hideCursorTime: 5000, - // Opens links in an iframe preview overlay - // Add `data-preview-link` and `data-preview-link="false"` to customise each link - // individually - previewLinks: false, + // Opens links in an iframe preview overlay + // Add `data-preview-link` and `data-preview-link="false"` to customise each link + // individually + previewLinks: false, - // Transition style - transition: 'slide', // none/fade/slide/convex/concave/zoom + // Transition style + transition: 'slide', // none/fade/slide/convex/concave/zoom - // Transition speed - transitionSpeed: 'default', // default/fast/slow + // Transition speed + transitionSpeed: 'default', // default/fast/slow - // Transition style for full page slide backgrounds - backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom + // Transition style for full page slide backgrounds + backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom - // Number of slides away from the current that are visible - viewDistance: 3, + // Number of slides away from the current that are visible + viewDistance: 3, - // Number of slides away from the current that are visible on mobile - // devices. It is advisable to set this to a lower number than - // viewDistance in order to save resources. - mobileViewDistance: 2, + // Number of slides away from the current that are visible on mobile + // devices. It is advisable to set this to a lower number than + // viewDistance in order to save resources. + mobileViewDistance: 2, - // Parallax background image - parallaxBackgroundImage: '', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" + // Parallax background image + parallaxBackgroundImage: '', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" - // Parallax background size - parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" + // Parallax background size + parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" - // Number of pixels to move the parallax background per slide - // - Calculated automatically unless specified - // - Set to 0 to disable movement along an axis - parallaxBackgroundHorizontal: null, - parallaxBackgroundVertical: null, + // Number of pixels to move the parallax background per slide + // - Calculated automatically unless specified + // - Set to 0 to disable movement along an axis + parallaxBackgroundHorizontal: null, + parallaxBackgroundVertical: null, - // The display mode that will be used to show slides - display: 'block' + // The display mode that will be used to show slides + display: 'block' }); ``` @@ -398,20 +401,20 @@ See below for a list of configuration options related to sizing, including defau ```javascript Reveal.initialize({ - // ... + // ... - // The "normal" size of the presentation, aspect ratio will be preserved - // when the presentation is scaled to fit different resolutions. Can be - // specified using percentage units. - width: 960, - height: 700, + // The "normal" size of the presentation, aspect ratio will be preserved + // when the presentation is scaled to fit different resolutions. Can be + // specified using percentage units. + width: 960, + height: 700, - // Factor of the display size that should remain empty around the content - margin: 0.1, + // Factor of the display size that should remain empty around the content + margin: 0.1, - // Bounds for smallest/largest possible scale to apply to content - minScale: 0.2, - maxScale: 1.5 + // Bounds for smallest/largest possible scale to apply to content + minScale: 0.2, + maxScale: 1.5 }); ``` @@ -421,13 +424,13 @@ If you wish to disable this behavior and do your own scaling (e.g. using media q ```javascript Reveal.initialize({ - // ... + // ... - width: "100%", - height: "100%", - margin: 0, - minScale: 1, - maxScale: 1 + width: "100%", + height: "100%", + margin: 0, + minScale: 1, + maxScale: 1 }); ``` @@ -437,23 +440,23 @@ Reveal.js doesn't _rely_ on any third party scripts to work but a few optional l ```javascript Reveal.initialize({ - dependencies: [ - // Interpret Markdown in
elements - { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, + dependencies: [ + // Interpret Markdown in
elements + { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, + { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - // Syntax highlight for elements - { src: 'plugin/highlight/highlight.js', async: true }, + // Syntax highlight for elements + { src: 'plugin/highlight/highlight.js', async: true }, - // Zoom in and out with Alt+click - { src: 'plugin/zoom-js/zoom.js', async: true }, + // Zoom in and out with Alt+click + { src: 'plugin/zoom-js/zoom.js', async: true }, - // Speaker notes - { src: 'plugin/notes/notes.js', async: true }, + // Speaker notes + { src: 'plugin/notes/notes.js', async: true }, - // MathJax - { src: 'plugin/math/math.js', async: true } - ] + // MathJax + { src: 'plugin/math/math.js', async: true } + ] }); ``` @@ -473,7 +476,7 @@ A `ready` event is fired when reveal.js has loaded all non-async dependencies an ```javascript Reveal.on( 'ready', function( event ) { - // event.currentSlide, event.indexh, event.indexv + // event.currentSlide, event.indexh, event.indexv } ); ``` @@ -496,9 +499,9 @@ You can also override the slide duration for individual slides and fragments by ```html
-

After 2 seconds the first fragment will be shown.

-

After 10 seconds the next fragment will be shown.

-

Now, the fragment is displayed for 2 seconds before the next slide is shown.

+

After 2 seconds the first fragment will be shown.

+

After 10 seconds the next fragment will be shown.

+

Now, the fragment is displayed for 2 seconds before the next slide is shown.

``` @@ -527,10 +530,10 @@ reveal.js can automatically animate elements across slides. All you need to do i Here's a simple example to give you a better idea of how it can be used. The resulting animation will be the word "Magic" sliding 100px downwards. ```html
-

Magic

+

Magic

-

Magic

+

Magic

``` @@ -581,7 +584,7 @@ Each individual element is decorated with a `data-auto-animate-target` attribute Each time a presentation navigates between two auto-animated slides it dispatches the `autoanimate` event. ```javascript Reveal.on( 'autoanimate', function( event ) { - // event.fromSlide, event.toSlide + // event.fromSlide, event.toSlide } ); ``` @@ -634,7 +637,7 @@ according to the `viewDistance`. ```html
- +
``` @@ -732,12 +735,12 @@ For example // key: the key label to show in the help overlay // description: the description of the action to show in the help overlay Reveal.addKeyBinding( { keyCode: 84, key: 'T', description: 'Start timer' }, function() { - // start timer + // start timer } ) // The binding parameter can also be a direct keycode without providing the help description Reveal.addKeyBinding( 82, function() { - // reset timer + // reset timer } ) ``` @@ -754,7 +757,7 @@ Some libraries, like MathJax (see [#226](https://github.com/hakimel/reveal.js/is ```javascript Reveal.on( 'slidechanged', function( event ) { - // event.previousSlide, event.currentSlide, event.indexh, event.indexv + // event.previousSlide, event.currentSlide, event.indexh, event.indexv } ); ``` @@ -783,7 +786,7 @@ Furthermore you can also listen to these changes in state via JavaScript: ```javascript Reveal.on( 'somestate', function() { - // TODO: Sprinkle magic + // TODO: Sprinkle magic }, false ); ``` @@ -802,7 +805,7 @@ All CSS color formats are supported, including hex values, keywords, `rgba()` or ```html
-

Color

+

Color

``` @@ -820,10 +823,10 @@ By default, background images are resized to cover the full page. Available opti ```html
-

Image

+

Image

-

This background image will be sized to 100px and repeated

+

This background image will be sized to 100px and repeated

``` @@ -841,7 +844,7 @@ Automatically plays a full size video behind the slide. ```html
-

Video

+

Video

``` @@ -851,7 +854,7 @@ Embeds a web page as a slide background that covers 100% of the reveal.js width ```html
-

Iframe

+

Iframe

``` @@ -869,17 +872,17 @@ If you want to use a parallax scrolling background, set the first two properties ```javascript Reveal.initialize({ - // Parallax background image - parallaxBackgroundImage: '', // e.g. "https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg" + // Parallax background image + parallaxBackgroundImage: '', // e.g. "https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg" - // Parallax background size - parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" - currently only pixels are supported (don't use % or auto) + // Parallax background size + parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" - currently only pixels are supported (don't use % or auto) - // Number of pixels to move the parallax background per slide - // - Calculated automatically unless specified - // - Set to 0 to disable movement along an axis - parallaxBackgroundHorizontal: 200, - parallaxBackgroundVertical: 50 + // Number of pixels to move the parallax background per slide + // - Calculated automatically unless specified + // - Set to 0 to disable movement along an axis + parallaxBackgroundHorizontal: 200, + parallaxBackgroundVertical: 50 }); ``` @@ -892,11 +895,11 @@ The global presentation transition is set using the `transition` config value. Y ```html
-

This slide will override the presentation transition and zoom!

+

This slide will override the presentation transition and zoom!

-

Choose from three transition speeds: default, fast or slow!

+

Choose from three transition speeds: default, fast or slow!

``` @@ -948,17 +951,17 @@ The default fragment style is to start out invisible and fade in. This style can ```html
-

grow

-

shrink

-

strike

-

fade-out

-

fade-up (also down, left and right!)

-

fades in, then out when we move to the next step

-

fades in, then obfuscate when we move to the next step

-

blue only once

-

highlight-red

-

highlight-green

-

highlight-blue

+

grow

+

shrink

+

strike

+

fade-out

+

fade-up (also down, left and right!)

+

fades in, then out when we move to the next step

+

fades in, then obfuscate when we move to the next step

+

blue only once

+

highlight-red

+

highlight-green

+

highlight-blue

``` @@ -966,9 +969,9 @@ Multiple fragments can be applied to the same element sequentially by wrapping i ```html
- - I'll fade in, then out - + + I'll fade in, then out +
``` @@ -976,9 +979,9 @@ The display order of fragments can be controlled using the `data-fragment-index` ```html
-

Appears last

-

Appears first

-

Appears second

+

Appears last

+

Appears first

+

Appears second

``` @@ -990,10 +993,10 @@ Some libraries, like MathJax (see #505), get confused by the initially hidden fr ```javascript Reveal.on( 'fragmentshown', function( event ) { - // event.fragment = the fragment DOM element + // event.fragment = the fragment DOM element } ); Reveal.on( 'fragmenthidden', function( event ) { - // event.fragment = the fragment DOM element + // event.fragment = the fragment DOM element } ); ``` @@ -1003,10 +1006,10 @@ By default, Reveal is configured with [highlight.js](https://highlightjs.org/) f ```javascript Reveal.initialize({ - // More info https://github.com/hakimel/reveal.js#dependencies - dependencies: [ - { src: 'plugin/highlight/highlight.js', async: true }, - ] + // More info https://github.com/hakimel/reveal.js#dependencies + dependencies: [ + { src: 'plugin/highlight/highlight.js', async: true }, + ] }); ``` @@ -1014,13 +1017,13 @@ Below is an example with clojure code that will be syntax highlighted. When the ```html
-

+  

 (def lazy-fib
   (concat
    [0 1]
    ((fn rfib [a b]
         (lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
-	
+
``` @@ -1064,10 +1067,10 @@ If you would like to display the page number of the current slide you can do so Reveal.configure({ slideNumber: true }); // Slide number formatting can be configured using these variables: -// "h.v": horizontal . vertical slide number (default) -// "h/v": horizontal / vertical slide number -// "c": flattened slide number -// "c/t": flattened slide number / total slides +// "h.v": horizontal . vertical slide number (default) +// "h/v": horizontal / vertical slide number +// "c": flattened slide number +// "c/t": flattened slide number / total slides Reveal.configure({ slideNumber: 'c/t' }); // You can provide a function to fully customize the number: @@ -1122,7 +1125,7 @@ Sometimes it's desirable to have an element, like an image or video, stretch to ```html
-

This video will use up the remaining space on the slide

+

This video will use up the remaining space on the slide

``` @@ -1137,7 +1140,7 @@ When reveal.js changes the scale of the slides it fires a resize event. You can ```javascript Reveal.on( 'resize', function( event ) { - // event.scale, event.oldScale, event.size + // event.scale, event.oldScale, event.size } ); ``` @@ -1155,10 +1158,10 @@ When reveal.js runs inside of an iframe it can optionally bubble all of its even ```javascript window.addEventListener( 'message', function( event ) { - var data = JSON.parse( event.data ); - if( data.namespace === 'reveal' && data.eventName === 'slidechanged' ) { - // Slide changed, see data.state for slide number - } + var data = JSON.parse( event.data ); + if( data.namespace === 'reveal' && data.eventName === 'slidechanged' ) { + // Slide changed, see data.state for slide number + } } ); ``` @@ -1170,11 +1173,11 @@ When you call any method via the postMessage API, reveal.js will dispatch a mess .postMessage( JSON.stringify({ method: 'getTotalSlides' }), '*' ); window.addEventListener( 'message', function( event ) { - var data = JSON.parse( event.data ); - // `data.method`` is the method that we invoked - if( data.namespace === 'reveal' && data.eventName === 'callback' && data.method === 'getTotalSlides' ) { - data.result // = the total number of slides - } + var data = JSON.parse( event.data ); + // `data.method`` is the method that we invoked + if( data.namespace === 'reveal' && data.eventName === 'callback' && data.method === 'getTotalSlides' ) { + data.result // = the total number of slides + } } ); ``` @@ -1184,13 +1187,13 @@ This cross-window messaging can be toggled on or off using configuration flags. ```javascript Reveal.initialize({ - // ... + // ... - // Exposes the reveal.js API through window.postMessage - postMessage: true, + // Exposes the reveal.js API through window.postMessage + postMessage: true, - // Dispatches all reveal.js events to the parent window through postMessage - postMessageEvents: false + // Dispatches all reveal.js events to the parent window through postMessage + postMessageEvents: false }); ``` @@ -1202,11 +1205,11 @@ This is based on [data-markdown](https://gist.github.com/1343518) from [Paul Iri ```html
- + A paragraph with some text and a [link](http://hakim.se). +
``` @@ -1235,10 +1238,10 @@ Special syntax (through HTML comments) is available for adding attributes to Mar ```html
- +
``` @@ -1248,10 +1251,10 @@ Special syntax (through HTML comments) is available for adding attributes to the ```html
- +
``` @@ -1261,11 +1264,11 @@ We use [marked](https://github.com/chjj/marked) to parse Markdown. To customise ```javascript Reveal.initialize({ - // Options which are passed into marked - // See https://marked.js.org/#/USING_ADVANCED.md#options - markdown: { - smartypants: true - } + // Options which are passed into marked + // See https://marked.js.org/#/USING_ADVANCED.md#options + markdown: { + smartypants: true + } }); ``` @@ -1337,11 +1340,11 @@ When used locally, this feature requires that reveal.js [runs from a local web s ```html
-

Some Slide

+

Some Slide

- +
``` @@ -1382,12 +1385,12 @@ In some cases it can be desirable to run notes on a separate device from the one ```javascript Reveal.initialize({ - // ... + // ... - dependencies: [ - { src: 'socket.io/socket.io.js', async: true }, - { src: 'plugin/notes-server/client.js', async: true } - ] + dependencies: [ + { src: 'socket.io/socket.io.js', async: true }, + { src: 'plugin/notes-server/client.js', async: true } + ] }); ``` @@ -1406,7 +1409,7 @@ When reveal.js is booted up via `Reveal.initialize()`, it will go through all re ```javascript let MyPlugin = { - init: () => new Promise( resolve => setTimeout( resolve, 3000 ) ) + init: () => new Promise( resolve => setTimeout( resolve, 3000 ) ) }; Reveal.registerPlugin( 'myPlugin', MyPlugin ); Reveal.on( 'ready', () => console.log( 'Three seconds later...' ) ); @@ -1445,25 +1448,25 @@ Example configuration: ```javascript Reveal.initialize({ - // other options... + // other options... - multiplex: { - // Example values. To generate your own, see the socket.io server instructions. - secret: '13652805320794272084', // Obtained from the socket.io server. Gives this (the master) control of the presentation - id: '1ea875674b17ca76', // Obtained from socket.io server - url: 'https://reveal-js-multiplex-ccjbegmaii.now.sh' // Location of socket.io server - }, + multiplex: { + // Example values. To generate your own, see the socket.io server instructions. + secret: '13652805320794272084', // Obtained from the socket.io server. Gives this (the master) control of the presentation + id: '1ea875674b17ca76', // Obtained from socket.io server + url: 'https://reveal-js-multiplex-ccjbegmaii.now.sh' // Location of socket.io server + }, - // Don't forget to add the dependencies - dependencies: [ - { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, - { src: 'plugin/multiplex/master.js', async: true }, + // Don't forget to add the dependencies + dependencies: [ + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, + { src: 'plugin/multiplex/master.js', async: true }, - // and if you want speaker notes - { src: 'plugin/notes-server/client.js', async: true } + // and if you want speaker notes + { src: 'plugin/notes-server/client.js', async: true } - // other dependencies... - ] + // other dependencies... + ] }); ``` @@ -1475,22 +1478,22 @@ Example configuration: ```javascript Reveal.initialize({ - // other options... + // other options... - multiplex: { - // Example values. To generate your own, see the socket.io server instructions. - secret: null, // null so the clients do not have control of the master presentation - id: '1ea875674b17ca76', // id, obtained from socket.io server - url: 'https://reveal-js-multiplex-ccjbegmaii.now.sh' // Location of socket.io server - }, + multiplex: { + // Example values. To generate your own, see the socket.io server instructions. + secret: null, // null so the clients do not have control of the master presentation + id: '1ea875674b17ca76', // id, obtained from socket.io server + url: 'https://reveal-js-multiplex-ccjbegmaii.now.sh' // Location of socket.io server + }, - // Don't forget to add the dependencies - dependencies: [ - { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, - { src: 'plugin/multiplex/client.js', async: true } + // Don't forget to add the dependencies + dependencies: [ + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, + { src: 'plugin/multiplex/client.js', async: true } - // other dependencies... - ] + // other dependencies... + ] }); ``` @@ -1517,22 +1520,22 @@ Example configuration: ```javascript Reveal.initialize({ - // other options... + // other options... - multiplex: { - // Example values. To generate your own, see the socket.io server instructions. - secret: null, // null so the clients do not have control of the master presentation - id: '1ea875674b17ca76', // id, obtained from socket.io server - url: 'example.com:80' // Location of your socket.io server - }, + multiplex: { + // Example values. To generate your own, see the socket.io server instructions. + secret: null, // null so the clients do not have control of the master presentation + id: '1ea875674b17ca76', // id, obtained from socket.io server + url: 'example.com:80' // Location of your socket.io server + }, - // Don't forget to add the dependencies - dependencies: [ - { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, - { src: 'plugin/multiplex/client.js', async: true } + // Don't forget to add the dependencies + dependencies: [ + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, + { src: 'plugin/multiplex/client.js', async: true } - // other dependencies... - ] + // other dependencies... + ] ``` It can also play the role of static file server for your master presentation and client presentations at the same time (as long as you don't want to use speaker notes). (Open [https://reveal-js-multiplex-ccjbegmaii.now.sh/](https://reveal-js-multiplex-ccjbegmaii.now.sh/) in two browsers. Navigate through the slides on one, and the other will update to match. Navigate through the slides on the second, and the first will update to match.) This is probably not desirable, because you don't want your audience to mess with your slides while you're presenting. ;) @@ -1541,23 +1544,23 @@ Example configuration: ```javascript Reveal.initialize({ - // other options... + // other options... - multiplex: { - // Example values. To generate your own, see the socket.io server instructions. - secret: '13652805320794272084', // Obtained from the socket.io server. Gives this (the master) control of the presentation - id: '1ea875674b17ca76', // Obtained from socket.io server - url: 'example.com:80' // Location of your socket.io server - }, + multiplex: { + // Example values. To generate your own, see the socket.io server instructions. + secret: '13652805320794272084', // Obtained from the socket.io server. Gives this (the master) control of the presentation + id: '1ea875674b17ca76', // Obtained from socket.io server + url: 'example.com:80' // Location of your socket.io server + }, - // Don't forget to add the dependencies - dependencies: [ - { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, - { src: 'plugin/multiplex/master.js', async: true }, - { src: 'plugin/multiplex/client.js', async: true } + // Don't forget to add the dependencies + dependencies: [ + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, + { src: 'plugin/multiplex/master.js', async: true }, + { src: 'plugin/multiplex/client.js', async: true } - // other dependencies... - ] + // other dependencies... + ] }); ``` @@ -1572,18 +1575,18 @@ Below is an example of how the plugin can be configured. If you don't intend to ```js Reveal.initialize({ - // other options ... + // other options ... - math: { - mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', - config: 'TeX-AMS_HTML-full', // See http://docs.mathjax.org/en/latest/config-files.html - // pass other options into `MathJax.Hub.Config()` - TeX: { Macros: { RR: "{\\bf R}" } } - }, + math: { + mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', + config: 'TeX-AMS_HTML-full', // See http://docs.mathjax.org/en/latest/config-files.html + // pass other options into `MathJax.Hub.Config()` + TeX: { Macros: { RR: "{\\bf R}" } } + }, - dependencies: [ - { src: 'plugin/math/math.js', async: true } - ] + dependencies: [ + { src: 'plugin/math/math.js', async: true } + ] }); ``` From 6030043036cb247afc181e9083eec9d05e2065c9 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 7 Apr 2020 13:25:46 +0200 Subject: [PATCH 137/217] move pointer logic out to own controller --- dist/reveal.css | 2 +- dist/reveal.min.js | 2 +- js/controllers/pointer.js | 118 ++++++++++++++++++++++++++++++++++++++ js/reveal.js | 99 +------------------------------- 4 files changed, 123 insertions(+), 98 deletions(-) create mode 100644 js/controllers/pointer.js diff --git a/dist/reveal.css b/dist/reveal.css index a850ca0..be4e552 100644 --- a/dist/reveal.css +++ b/dist/reveal.css @@ -1,5 +1,5 @@ /*! -* reveal.js 4.0.0-dev (Mon Apr 06 2020) +* reveal.js 4.0.0-dev (Tue Apr 07 2020) * https://revealjs.com * MIT licensed * diff --git a/dist/reveal.min.js b/dist/reveal.min.js index 6c50bdf..3c4b065 100644 --- a/dist/reveal.min.js +++ b/dist/reveal.min.js @@ -5,4 +5,4 @@ * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se */ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";n.r(t);var i=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/,a=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/,r=function(e,t){for(var n in t)e[n]=t[n];return e},o=function(e,t){return Array.from(e.querySelectorAll(t))},s=function(e){if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},l=function(e,t){e.style.transform=t},c=function(e,t){for(var n=e.parentNode;n;){var i=n.matches||n.matchesSelector||n.msMatchesSelector;if(i&&i.call(n,t))return n;n=n.parentNode}return null},d=function(e){var t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},u=function(){var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,(function(t){e[t.split("=").shift()]=t.split("=").pop()})),e){var n=e[t];e[t]=s(unescape(n))}return void 0!==e.dependencies&&delete e.dependencies,e},h=navigator.userAgent,v=document.createElement("div"),f=/(iphone|ipod|ipad|android)/gi.test(h)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,g=/chrome/i.test(h)&&!/edge/i.test(h),p=/android/gi.test(h),m="zoom"in v.style&&!f&&(g||/Version\/[\d\.]+.*Safari/.test(h)),y="function"==typeof window.history.replaceState&&!/PhantomJS/.test(h);function b(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,o(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((function(e){("IFRAME"!==e.tagName||t.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))})),o(e,"video, audio").forEach((function(e){var t=0;o(e,"source[data-src]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),t>0&&e.load()}));var i=e.slideBackgroundElement;if(i){i.style.display="block";var a=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");var s=e.getAttribute("data-background-image"),l=e.getAttribute("data-background-video"),c=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage="url("+encodeURI(s)+")";else if(l&&!this.Reveal.isSpeakerNotes()){var u=document.createElement("video");c&&u.setAttribute("loop",""),d&&(u.muted=!0),f&&(u.muted=!0,u.autoplay=!0,u.setAttribute("playsinline","")),l.split(",").forEach((function(e){u.innerHTML+=''})),a.appendChild(u)}else if(r&&!0!==n.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var v=a.querySelector("iframe[data-src]");v&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(r)&&v.getAttribute("src")!==r&&v.setAttribute("src",r)}}},{key:"unload",value:function(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",o(t,"iframe[src]").forEach((function(e){e.removeAttribute("src")}))),o(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})),o(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}))}},{key:"formatEmbeddedContent",value:function(){var e=this,t=function(t,n,i){o(e.Reveal.getSlidesElement(),"iframe["+t+'*="'+n+'"]').forEach((function(e){var n=e.getAttribute(t);n&&-1===n.indexOf(i)&&e.setAttribute(t,n+(/\?/.test(n)?"&":"?")+i)}))};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}},{key:"startEmbeddedContent",value:function(e){var t=this;e&&!this.Reveal.isSpeakerNotes()&&(o(e,'img[src$=".gif"]').forEach((function(e){e.setAttribute("src",e.getAttribute("src"))})),o(e,"video, audio").forEach((function(e){if(!c(e,".fragment")||c(e,".fragment.visible")){var n=t.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof n&&(n=e.hasAttribute("data-autoplay")||!!c(e,".slide-background")),n&&"function"==typeof e.play)if(e.readyState>1)t.startEmbeddedMedia({target:e});else if(f){var i=e.play();i&&"function"==typeof i.catch&&!1===e.controls&&i.catch((function(){e.controls=!0,e.addEventListener("play",(function(){e.controls=!1}))}))}else e.removeEventListener("loadeddata",t.startEmbeddedMedia),e.addEventListener("loadeddata",t.startEmbeddedMedia)}})),o(e,"iframe[src]").forEach((function(e){c(e,".fragment")&&!c(e,".fragment.visible")||t.startEmbeddedIframe({target:e})})),o(e,"iframe[data-src]").forEach((function(e){c(e,".fragment")&&!c(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",t.startEmbeddedIframe),e.addEventListener("load",t.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))})))}},{key:"startEmbeddedMedia",value:function(e){var t=!!c(e.target,"html"),n=!!c(e.target,".present");t&&n&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}},{key:"startEmbeddedIframe",value:function(e){var t=e.target;if(t&&t.contentWindow){var n=!!c(e.target,"html"),i=!!c(e.target,".present");if(n&&i){var a=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof a&&(a=t.hasAttribute("data-autoplay")||!!c(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}},{key:"stopEmbeddedContent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=r({unloadIframes:!0},n),e&&e.parentNode&&(o(e,"video, audio").forEach((function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())})),o(e,"iframe").forEach((function(e){e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",t.startEmbeddedIframe)})),o(e,'iframe[src*="youtube.com/embed/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),o(e,'iframe[src*="player.vimeo.com/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")})),!0===n.unloadIframes&&o(e,"iframe[data-src]").forEach((function(e){e.setAttribute("src","about:blank"),e.removeAttribute("src")})))}}])&&b(t.prototype,n),i&&b(t,i),e}();function k(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),n=this.Reveal.getConfig(),i="h.v";if("function"==typeof n.slideNumber)e=n.slideNumber(t);else switch("string"==typeof n.slideNumber&&(i=n.slideNumber),/c/.test(i)||1!==this.Reveal.getHorizontalSlides().length||(i="c"),e=[],i){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var a=this.Reveal.getIndices(t);e.push(a.h+1);var r="h/v"===i?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(r,a.v+1)}var o="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],o)}},{key:"formatNumber",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof n||isNaN(n)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(n,"\n\t\t\t\t\t")}}])&&k(t.prototype,n),i&&k(t,i),e}(),E=function(e){var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var n=e.match(/^#([0-9a-f]{6})$/i);if(n&&n[1])return n=n[1],{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16)};var i=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};var a=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null};function R(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],n=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,r=this.Reveal.getConfig().rtl?"future":"past",s=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((function(e,n){e.classList.remove("past","present","future"),ni.h?e.classList.add(s):(e.classList.add("present"),a=e),(t||n===i.h)&&o(e,".slide-background").forEach((function(e,t){e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),n===i.h&&(a=e))}))})),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var l=a.querySelector(".slide-background-content");if(l){var c=l.style.backgroundImage||"";/\.gif/i.test(c)&&(l.style.backgroundImage="",window.getComputedStyle(l).opacity,l.style.backgroundImage=c)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,u=a.getAttribute("data-background-hash");u&&u===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}n&&["has-light-background","has-dark-background"].forEach((function(t){n.classList.contains(t)?e.Reveal.getRevealElement().classList.add(t):e.Reveal.getRevealElement().classList.remove(t)}),this),setTimeout((function(){e.element.classList.remove("no-transition")}),1)}},{key:"updateParallax",value:function(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,n,i=this.Reveal.getHorizontalSlides(),a=this.Reveal.getVerticalSlides(),r=this.element.style.backgroundSize.split(" ");1===r.length?t=n=parseInt(r[0],10):(t=parseInt(r[0],10),n=parseInt(r[1],10));var o,s=this.element.offsetWidth,l=i.length;o=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-s)/(l-1):0)*e.h*-1;var c,d,u=this.element.offsetHeight,h=a.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(n-u)/(h-1),d=h>0?c*e.v:0,this.element.style.backgroundPosition=o+"px "+-d+"px"}}}])&&R(t.prototype,n),i&&R(t,i),e}();function L(e,t){for(var n=0;na.indexOf(e)?"forward":"backward";var r=this.getAutoAnimatableElements(e,t).map((function(e){return n.autoAnimateElements(e.from,e.to,e.options||{},i,n.autoAnimateCounter++)}));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var o=.8*i.duration,s=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach((function(e){var t=n.getAutoAnimateOptions(e,i),a="unmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+n.autoAnimateCounter++,r.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a}),this),r.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(o,"s ease ").concat(s,"s; }"))}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame((function(){n.autoAnimateStyleSheet&&(getComputedStyle(n.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}},{key:"reset",value:function(){o(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach((function(e){e.dataset.autoAnimate=""})),o(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((function(e){delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}},{key:"autoAnimateElements",value:function(e,t,n,i,r){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=r;var o=this.getAutoAnimateOptions(t,i);void 0!==n.delay&&(o.delay=n.delay),void 0!==n.duration&&(o.duration=n.duration),void 0!==n.easing&&(o.easing=n.easing);var s=this.getAutoAnimatableProperties("from",e,n),l=this.getAutoAnimatableProperties("to",t,n);if(t.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment")&&(e.className.match(a)||[""])[0]===(t.className.match(a)||[""])[0]&&"forward"===i.slideDirection&&t.classList.add("visible","disabled")),!1!==n.translate||!1!==n.scale){var c=this.Reveal.getScale(),d={x:(s.x-l.x)/c,y:(s.y-l.y)/c,scaleX:s.width/l.width,scaleY:s.height/l.height};d.x=Math.round(1e3*d.x)/1e3,d.y=Math.round(1e3*d.y)/1e3,d.scaleX=Math.round(1e3*d.scaleX)/1e3,d.scaleX=Math.round(1e3*d.scaleX)/1e3;var u=!1!==n.translate&&(0!==d.x||0!==d.y),h=!1!==n.scale&&(0!==d.scaleX||0!==d.scaleY);if(u||h){var v=[];u&&v.push("translate(".concat(d.x,"px, ").concat(d.y,"px)")),h&&v.push("scale(".concat(d.scaleX,", ").concat(d.scaleY,")")),s.styles.transform=v.join(" "),s.styles["transform-origin"]="top left",l.styles.transform="none"}}for(var f in l.styles){var g=l.styles[f],p=s.styles[f];g===p?delete l.styles[f]:(!0===g.explicitValue&&(l.styles[f]=g.value),!0===p.explicitValue&&(s.styles[f]=p.value))}var m="",y=Object.keys(l.styles);return y.length>0&&(s.styles.transition="none",l.styles.transition="all ".concat(o.duration,"s ").concat(o.easing," ").concat(o.delay,"s"),l.styles["transition-property"]=y.join(", "),l.styles["will-change"]=y.join(", "),m='[data-auto-animate-target="'+r+'"] {'+Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+r+'"] {'+Object.keys(l.styles).map((function(e){return e+": "+l.styles[e]+" !important;"})).join("")+"}"),m}},{key:"getAutoAnimateOptions",value:function(e,t){var n={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(n=r(n,t),e.closest&&e.parentNode){var i=e.parentNode.closest("[data-auto-animate-target]");i&&(n=this.getAutoAnimateOptions(i,n))}return e.dataset.autoAnimateEasing&&(n.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(n.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(n.delay=parseFloat(e.dataset.autoAnimateDelay)),n}},{key:"getAutoAnimatableProperties",value:function(e,t,n){var i,a={styles:[]};!1===n.translate&&!1===n.scale||(i="function"==typeof n.measure?n.measure(t):t.getBoundingClientRect(),a.x=i.x,a.y=i.y,a.width=i.width,a.height=i.height);var r=getComputedStyle(t);return(n.styles||this.Reveal.getConfig().autoAnimateStyles).forEach((function(t){var n;"string"==typeof t&&(t={property:t}),""!==(n=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:r[t.property])&&(a.styles[t.property]=n)})),a}},{key:"getAutoAnimatableElements",value:function(e,t){var n=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),i=[];return n.filter((function(e,t){if(-1===i.indexOf(e.to))return i.push(e.to),!0}))}},{key:"getAutoAnimatePairs",value:function(e,t){var n=this,i=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",(function(e){return e.nodeName+":::"+e.getAttribute("data-id")})),this.findAutoAnimateMatches(i,e,t,a,(function(e){return e.nodeName+":::"+e.innerText})),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",(function(e){return e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))})),this.findAutoAnimateMatches(i,e,t,"pre",(function(e){return e.nodeName+":::"+e.innerText})),i.forEach((function(e){e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},n.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",(function(e){return e.textContent}),{scale:!1,styles:[],measure:n.getLocalBoundingBox.bind(n)}),n.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",(function(e){return e.getAttribute("data-line-number")}),{scale:!1,styles:["width"],measure:n.getLocalBoundingBox.bind(n)}))}),this),i}},{key:"getLocalBoundingBox",value:function(e){var t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}},{key:"findAutoAnimateMatches",value:function(e,t,n,i,a,r){var o={},s={};[].slice.call(t.querySelectorAll(i)).forEach((function(e,t){var n=a(e);"string"==typeof n&&n.length&&(o[n]=o[n]||[],o[n].push(e))})),[].slice.call(n.querySelectorAll(i)).forEach((function(t,n){var i,l=a(t);if(s[l]=s[l]||[],s[l].push(t),o[l]){var c=s[l].length-1,d=o[l].length-1;o[l][c]?(i=o[l][c],o[l][c]=null):o[l][d]&&(i=o[l][d],o[l][d]=null)}i&&e.push({from:i,to:t,options:r})}))}},{key:"getUnmatchedAutoAnimateElements",value:function(e){var t=this;return[].slice.call(e.children).reduce((function(e,n){var i=n.querySelector("[data-auto-animate-target]");return n.hasAttribute("data-auto-animate-target")||i||e.push(n),n.querySelector("[data-auto-animate-target]")&&(e=e.concat(t.getUnmatchedAutoAnimateElements(n))),e}),[])}}])&&L(t.prototype,n),i&&L(t,i),e}();function C(e,t){for(var n=0;n0,next:!!n.length}}return{prev:!1,next:!1}}},{key:"sort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var n=[],i=[],a=[];e.forEach((function(e){if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);n[t]||(n[t]=[]),n[t].push(e)}else i.push([e])})),n=n.concat(i);var r=0;return n.forEach((function(e){e.forEach((function(e){a.push(e),e.setAttribute("data-fragment-index",r)})),r++})),!0===t?n:a}},{key:"sortAll",value:function(){var e=this;this.Reveal.getHorizontalSlides().forEach((function(t){var n=o(t,"section");n.forEach((function(t,n){e.sort(t.querySelectorAll(".fragment"))}),e),0===n.length&&e.sort(t.querySelectorAll(".fragment"))}))}},{key:"update",value:function(e,t){var n=this,i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var r=0;if("number"!=typeof e){var o=this.sort(a.querySelectorAll(".fragment.visible")).pop();o&&(e=parseInt(o.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((function(t,a){if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,a),a<=e){var o=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(n.Reveal.announceStatus(n.Reveal.getStatusText(t)),t.classList.add("current-fragment"),n.Reveal.slideContent.startEmbeddedContent(t)),o||(i.shown.push(t),n.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var s=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),s&&(i.hidden.push(t),n.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),a.setAttribute("data-fragment",e)}return i}},{key:"sync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments){var i=this.sort(n.querySelectorAll(".fragment:not(.disabled)"));if(i.length){if("number"!=typeof e){var a=this.sort(n.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}e+=t;var r=this.update(e,i);return r.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:r.hidden[0],fragments:r.hidden}}),r.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:r.shown[0],fragments:r.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!r.shown.length&&!r.hidden.length)}}return!1}},{key:"next",value:function(){return this.goto(null,1)}},{key:"prev",value:function(){return this.goto(null,-1)}}])&&C(t.prototype,n),i&&C(t,i),e}();function N(e,t){for(var n=0;n0||a.v>0||void 0!==a.f)&&(t+=a.h+r),(a.v>0||void 0!==a.f)&&(t+="/"+(a.v+r)),void 0!==a.f&&(t+="/"+a.f)}return t}}])&&O(t.prototype,n),i&&O(t,i),e}();function H(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t
\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=o(t,".navigate-left"),this.controlsRight=o(t,".navigate-right"),this.controlsUp=o(t,".navigate-up"),this.controlsDown=o(t,".navigate-down"),this.controlsPrev=o(t,".navigate-prev"),this.controlsNext=o(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}},{key:"configure",value:function(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}},{key:"bind",value:function(){var e=this,t=["touchstart","click"];p&&(t=["touchstart"]),t.forEach((function(t){e.controlsLeft.forEach((function(n){return n.addEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(n){return n.addEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(n){return n.addEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(n){return n.addEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(n){return n.addEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(n){return n.addEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"unbind",value:function(){var e=this;["touchstart","click"].forEach((function(t){e.controlsLeft.forEach((function(n){return n.removeEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(n){return n.removeEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(n){return n.removeEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(n){return n.removeEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(n){return n.removeEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(n){return n.removeEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"update",value:function(){var e=this.Reveal.availableRoutes();[].concat(H(this.controlsLeft),H(this.controlsRight),H(this.controlsUp),H(this.controlsDown),H(this.controlsPrev),H(this.controlsNext)).forEach((function(e){e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")})),e.left&&this.controlsLeft.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.right&&this.controlsRight.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.down&&this.controlsDown.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.left||e.up)&&this.controlsPrev.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}));var t=this.Reveal.getCurrentSlide();if(t){var n=this.Reveal.fragments.availableRoutes();n.prev&&this.controlsPrev.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),n.next&&this.controlsNext.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),this.Reveal.isVerticalSlide(t)?(n.prev&&this.controlsUp.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),n.next&&this.controlsDown.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(n.prev&&this.controlsLeft.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),n.next&&this.controlsRight.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig().controlsTutorial){var i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&0===i.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===i.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}},{key:"onNavigateLeftClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}},{key:"onNavigateRightClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}},{key:"onNavigateUpClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}},{key:"onNavigateDownClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}},{key:"onNavigatePrevClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}},{key:"onNavigateNextClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}])&&j(t.prototype,n),i&&j(t,i),e}();function U(e,t){for(var n=0;nimg, .reveal section>video, .reveal section>iframe{max-width: "+a+"px; max-height:"+r+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=n+"px",document.body.style.height=i+"px",this.Reveal.layoutSlideContents(a,r);var s=e.slideNumber&&/all|print/i.test(e.showSlideNumber);o(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),o(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var l=(n-a)/2,c=(i-r)/2,d=t.scrollHeight,u=Math.max(Math.ceil(d/i),1);(1===(u=Math.min(u,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(c=Math.max((i-d)/2,0));var h=document.createElement("div");if(h.className="pdf-page",h.style.height=(i+e.pdfPageHeightOffset)*u+"px",t.parentNode.insertBefore(h,t),h.appendChild(t),t.style.left=l+"px",t.style.top=c+"px",t.style.width=a+"px",t.slideBackgroundElement&&h.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var f="string"==typeof e.showNotes?e.showNotes:"inline",g=document.createElement("div");g.classList.add("speaker-notes"),g.classList.add("speaker-notes-pdf"),g.setAttribute("data-layout",f),g.innerHTML=v,"separate-page"===f?h.parentNode.insertBefore(g,h.nextSibling):(g.style.left="8px",g.style.bottom="8px",g.style.width=n-16+"px",h.appendChild(g))}}if(s){var p=document.createElement("div");p.classList.add("slide-number"),p.classList.add("slide-number-pdf"),p.innerHTML=t.getAttribute("data-slide-number"),h.appendChild(p)}if(e.pdfSeparateFragments){var m,y,b=this.Reveal.fragments.sort(h.querySelectorAll(".fragment"),!0);b.forEach((function(e){m&&m.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=h.cloneNode(!0);h.parentNode.insertBefore(t,(y||h).nextSibling),m=e,y=t}),this),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else o(h,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}},{key:"isPrintingPDF",value:function(){return/print-pdf/gi.test(window.location.search)}}])&&F(t.prototype,n),i&&F(t,i),e}();function Y(e,t){for(var n=0;n40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev()():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev()():this.Reveal.next():this.Reveal.right()):r>40?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev()():this.Reveal.up()):r<-40&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide(currentSlide))&&e.preventDefault():e.preventDefault()}}}},{key:"onTouchEnd",value:function(e){this.touchCaptured=!1}},{key:"onPointerDown",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}},{key:"onPointerMove",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}},{key:"onPointerUp",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}])&&Y(t.prototype,n),i&&Y(t,i),e}();function $(e,t){for(var n=0;nNo notes on this slide.')}},{key:"updateVisibility",value:function(){this.Reveal.getConfig().showNotes&&this.hasNotes()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}},{key:"hasNotes",value:function(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}},{key:"isSpeakerNotesWindow",value:function(){return!!window.location.search.match(/receiver/gi)}},{key:"getSlideNotes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}])&&$(t.prototype,n),i&&$(t,i),e}();function Q(e,t){for(var n=0;n.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}},{key:"render",value:function(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,n=this.diameter2,i=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var a=-Math.PI/2+e*(2*Math.PI),r=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(n,i,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(n,i,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(n,i,t,r,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(n-14,i-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}},{key:"on",value:function(e,t){this.canvas.addEventListener(e,t,!1)}},{key:"off",value:function(e,t){this.canvas.removeEventListener(e,t,!1)}},{key:"destroy",value:function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}])&&Q(t.prototype,n),i&&Q(t,i),e}(),G={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,disableLayout:!1,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!1,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]};function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ne(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"",a=e.querySelectorAll("."+n),r=0;rResume presentation':null),$.statusElement=function(){var e=$.wrapper.querySelector(".aria-status");e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),$.wrapper.appendChild(e));return e}(),$.wrapper.setAttribute("role","application")}(),n.postMessage&&window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof g[t.method])if(!1===i.test(t.method)){var n=g[t.method].apply(g,t.args);ye("callback",{method:t.method,result:n})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')}),!1),setInterval((function(){0===$.wrapper.scrollTop&&0===$.wrapper.scrollLeft||($.wrapper.scrollTop=0,$.wrapper.scrollLeft=0)}),1e3),Ye().forEach((function(e){o(e,"section").forEach((function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))})),ue(),O.readURL(),C.update(!0),setTimeout((function(){$.slides.classList.remove("no-transition"),$.wrapper.classList.add("ready"),me({type:"ready",data:{indexh:a,indexv:c,currentSlide:h}})}),1),K.isPrintingPDF()&&(ve(),"complete"===document.readyState?K.setupPDF():window.addEventListener("load",K.setupPDF))}function ce(e){$.statusElement.textContent=e}function de(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var n=e.getAttribute("aria-hidden"),i="none"===window.getComputedStyle(e).display;"true"===n||i||Array.from(e.childNodes).forEach((function(e){t+=de(e)}))}return""===(t=t.trim())?"":t+" "}function ue(e){var t=ne({},n);if("object"===ee(e)&&r(n,e),!1!==g.isReady()){var i=$.wrapper.querySelectorAll(".slides section").length;$.wrapper.classList.remove(t.transition),$.wrapper.classList.add(n.transition),$.wrapper.setAttribute("data-transition-speed",n.transitionSpeed),$.wrapper.setAttribute("data-background-transition",n.backgroundTransition),n.shuffle&&Ue(),n.rtl?$.wrapper.classList.add("rtl"):$.wrapper.classList.remove("rtl"),n.center?$.wrapper.classList.add("center"):$.wrapper.classList.remove("center"),!1===n.pause&&Oe(),n.mouseWheel?(document.addEventListener("DOMMouseScroll",ut,!1),document.addEventListener("mousewheel",ut,!1)):(document.removeEventListener("DOMMouseScroll",ut,!1),document.removeEventListener("mousewheel",ut,!1)),n.hideInactiveCursor?(document.addEventListener("mousemove",dt,!1),document.addEventListener("mousedown",dt,!1)):(Te(),document.removeEventListener("mousemove",dt,!1),document.removeEventListener("mousedown",dt,!1)),n.previewLinks?(be(),we("[data-preview-link=false]")):(we(),be("[data-preview-link]:not([data-preview-link=false])")),L.reset(),v&&(v.destroy(),v=null),i>1&&n.autoSlide&&n.autoSlideStoppable&&((v=new Z($.wrapper,(function(){return Math.min(Math.max((Date.now()-oe)/ae,0),1)}))).on("click",pt),se=!1),"default"!==n.navigationMode?$.wrapper.setAttribute("data-navigation-mode",n.navigationMode):$.wrapper.removeAttribute("data-navigation-mode"),F.configure(n,t),H.configure(n,t),j.configure(n,t),I.configure(n,t),N.configure(n,t),R.configure(n,t),ze()}}function he(){!0,window.addEventListener("hashchange",ht,!1),window.addEventListener("resize",vt,!1),n.touch&&W.bind(),n.keyboard&&I.bind(),H.bind(),j.bind(),$.pauseOverlay.addEventListener("click",Oe,!1),n.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",ft,!1)}function ve(){!1,W.unbind(),I.unbind(),H.unbind(),j.unbind(),window.removeEventListener("hashchange",ht,!1),window.removeEventListener("resize",vt,!1),$.pauseOverlay.removeEventListener("click",Oe,!1)}function fe(t,n,i){e.addEventListener(t,n,i)}function ge(t,n,i){e.removeEventListener(t,n,i)}function pe(e){"string"==typeof e.layout&&(Y.layout=e.layout),"string"==typeof e.overview&&(Y.overview=e.overview),Y.layout?l($.slides,Y.layout+" "+Y.overview):l($.slides,Y.overview)}function me(e){var t=e.target,n=void 0===t?$.wrapper:t,i=e.type,a=e.data,o=e.bubbles,s=void 0===o||o,l=document.createEvent("HTMLEvents",1,2);l.initEvent(i,s,!0),r(l,a),n.dispatchEvent(l),n===$.wrapper&&ye(i)}function ye(e,t){if(n.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:Ge()};r(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from($.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",gt,!1)}))}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from($.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",gt,!1)}))}function ke(){if(n.help){Ae(),$.overlay=document.createElement("div"),$.overlay.classList.add("overlay"),$.overlay.classList.add("overlay-help"),$.wrapper.appendChild($.overlay);var e='

Keyboard Shortcuts


';for(var t in e+="",I.shortcuts)e+="");for(var i in I.registeredKeyBindings)I.registeredKeyBindings[i].key&&I.registeredKeyBindings[i].description&&(e+=""));e+="
KEYACTION
".concat(t,"").concat(I.shortcuts[t],"
".concat(I.registeredKeyBindings[i].key,"").concat(I.registeredKeyBindings[i].description,"
",$.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),$.overlay.querySelector(".close").addEventListener("click",(function(e){Ae(),e.preventDefault()}),!1)}}function Ae(){return!!$.overlay&&($.overlay.parentNode.removeChild($.overlay),$.overlay=null,!0)}function Ee(){if($.wrapper&&!K.isPrintingPDF()){if(!n.disableLayout){f&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Se(),t=k;Re(n.width,n.height),$.slides.style.width=e.width+"px",$.slides.style.height=e.height+"px",k=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),k=Math.max(k,n.minScale),1===(k=Math.min(k,n.maxScale))?($.slides.style.zoom="",$.slides.style.left="",$.slides.style.top="",$.slides.style.bottom="",$.slides.style.right="",pe({layout:""})):k>1&&m&&window.devicePixelRatio<2?($.slides.style.zoom=k,$.slides.style.left="",$.slides.style.top="",$.slides.style.bottom="",$.slides.style.right="",pe({layout:""})):($.slides.style.zoom="",$.slides.style.left="50%",$.slides.style.top="50%",$.slides.style.bottom="auto",$.slides.style.right="auto",pe({layout:"translate(-50%, -50%) scale("+k+")"}));for(var i=Array.from($.wrapper.querySelectorAll(".slides section")),a=0,r=i.length;a .stretch").forEach((function(n){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var n,i=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",n=t-e.parentNode.offsetHeight,e.style.height=i+"px",e.parentNode.style.removeProperty("height"),n}return t}(n,t);if(/(img|video)/gi.test(n.nodeName)){var a=n.naturalWidth||n.videoWidth,r=n.naturalHeight||n.videoHeight,o=Math.min(e/a,i/r);n.style.width=a*o+"px",n.style.height=r*o+"px"}else n.style.width=e+"px",n.style.height=i+"px"}))}function Se(e,t){var i={width:n.width,height:n.height,presentationWidth:e||$.wrapper.offsetWidth,presentationHeight:t||$.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*n.margin,i.presentationHeight-=i.presentationHeight*n.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function Le(e,t){"object"===ee(e)&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function xe(e){if("object"===ee(e)&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Pe(){return!(!h||!Ce(h))&&!h.nextElementSibling}function Ne(){return 0===a&&0===c}function Me(){return!!h&&(!h.nextElementSibling&&(!Ce(h)||!h.parentNode.nextElementSibling))}function Te(){te&&(te=!1,$.wrapper.style.cursor="")}function Ie(){!1===te&&(te=!0,$.wrapper.style.cursor="none")}function De(){if(n.pause){var e=$.wrapper.classList.contains("paused");tt(),$.wrapper.classList.add("paused"),!1===e&&me({type:"paused"})}}function Oe(){var e=$.wrapper.classList.contains("paused");$.wrapper.classList.remove("paused"),et(),e&&me({type:"resumed"})}function Be(e){"boolean"==typeof e?e?De():Oe():He()?Oe():De()}function He(){return $.wrapper.classList.contains("paused")}function je(e,t,i,r){d=h;var s=$.wrapper.querySelectorAll(".slides>section");if(0!==s.length){void 0!==t||T.isActive()||(t=xe(s[e])),d&&d.parentNode&&d.parentNode.classList.contains("stack")&&Le(d.parentNode,c);var l=b.concat();b.length=0;var u=a||0,v=c||0;a=qe(".slides>section",void 0===e?a:e),c=qe(".slides>section.present>section",void 0===t?c:t);var f=a!==u||c!==v;f||(d=null);var g=s[a],p=g.querySelectorAll("section");h=p[c]||g;var m=!1;f&&d&&h&&!T.isActive()&&d.hasAttribute("data-auto-animate")&&h.hasAttribute("data-auto-animate")&&(m=!0,$.slides.classList.add("disable-slide-transitions")),Ke(),Ee(),T.isActive()&&T.update(),void 0!==i&&N.goto(i),d&&d!==h&&(d.classList.remove("present"),d.setAttribute("aria-hidden","true"),Ne()&&setTimeout((function(){o($.wrapper,".slides>section.stack").forEach((function(e){Le(e,0)}))}),0));e:for(var y=0,w=b.length;yt&&(l.classList.add(c?"past":"future"),n.fragments&&o(l,".fragment.visible").forEach((function(e){e.classList.remove("visible","current-fragment")})))}var d=i[t],u=d.classList.contains("present");d.classList.add("present"),d.removeAttribute("hidden"),d.removeAttribute("aria-hidden"),u||me({target:d,type:"visible",bubbles:!1});var h=d.getAttribute("data-state");h&&(b=b.concat(h.split(" ")))}else t=0;return t}function Ke(){var e,t=Ye(),i=t.length;if(i&&void 0!==a){var r=T.isActive()?10:n.viewDistance;f&&(r=T.isActive()?6:n.mobileViewDistance),K.isPrintingPDF()&&(r=Number.MAX_VALUE);for(var s=0;ssection"),t=$.wrapper.querySelectorAll(".slides>section.present>section"),i={left:a>0,right:a0,down:c1&&(i.left=!0,i.right=!0),t.length>1&&(i.up=!0,i.down=!0)),e.length>1&&"linear"===n.navigationMode&&(i.right=i.right||i.down,i.left=i.left||i.up),n.rtl){var r=i.left;i.left=i.right,i.right=r}return i}function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Ye(),n=0;e:for(var i=0;i0){var d=h.querySelector(".current-fragment");t=d&&d.hasAttribute("data-fragment-index")?parseInt(d.getAttribute("data-fragment-index"),10):h.querySelectorAll(".fragment.visible").length-1}return{h:n,v:i,f:t}}function Xe(){return o($.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function Ye(){return o($.wrapper,".slides>section")}function _e(){return o($.wrapper,".slides>section>section")}function $e(){return Ye().length>1}function Je(){return _e().length>1}function Qe(){return Xe().length}function Ze(e,t){var n=Ye()[e],i=n&&n.querySelectorAll("section");return i&&i.length&&"number"==typeof t?i?i[t]:void 0:n}function Ge(){var e=Fe();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:He(),overview:T.isActive()}}function et(){if(tt(),h&&!1!==n.autoSlide){var e=h.querySelector(".current-fragment");e||(e=h.querySelector(".fragment"));var t=e?e.getAttribute("data-autoslide"):null,i=h.parentNode?h.parentNode.getAttribute("data-autoslide"):null,a=h.getAttribute("data-autoslide");ae=t?parseInt(t,10):a?parseInt(a,10):i?parseInt(i,10):n.autoSlide,0===h.querySelectorAll(".fragment").length&&o(h,"video, audio").forEach((function(e){e.hasAttribute("data-autoplay")&&ae&&1e3*e.duration/e.playbackRate>ae&&(ae=1e3*e.duration/e.playbackRate+1e3)})),!ae||se||He()||T.isActive()||Me()&&!N.availableRoutes().next&&!0!==n.loop||(re=setTimeout((function(){"function"==typeof n.autoSlideMethod?n.autoSlideMethod():ct(),et()}),ae),oe=Date.now()),v&&v.setPlaying(-1!==re)}}function tt(){clearTimeout(re),re=-1}function nt(){ae&&!se&&(se=!0,me({type:"autoslidepaused"}),clearTimeout(re),v&&v.setPlaying(!1))}function it(){ae&&se&&(se=!1,me({type:"autoslideresumed"}),et())}function at(){y.hasNavigatedHorizontally=!0,n.rtl?(T.isActive()||!1===N.next())&&We().left&&je(a+1,"grid"===n.navigationMode?c:void 0):(T.isActive()||!1===N.prev())&&We().left&&je(a-1,"grid"===n.navigationMode?c:void 0)}function rt(){y.hasNavigatedHorizontally=!0,n.rtl?(T.isActive()||!1===N.prev())&&We().right&&je(a-1,"grid"===n.navigationMode?c:void 0):(T.isActive()||!1===N.next())&&We().right&&je(a+1,"grid"===n.navigationMode?c:void 0)}function ot(){(T.isActive()||!1===N.prev())&&We().up&&je(a,c-1)}function st(){y.hasNavigatedVertically=!0,(T.isActive()||!1===N.next())&&We().down&&je(a,c+1)}function lt(){var e;if(!1===N.prev())if(We().up)ot();else if(e=n.rtl?o($.wrapper,".slides>section.future").pop():o($.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;je(a-1,t)}}function ct(){if(y.hasNavigatedHorizontally=!0,y.hasNavigatedVertically=!0,!1===N.next()){var e=We();e.down&&e.right&&n.loop&&Pe()&&(e.down=!1),e.down?st():n.rtl?at():rt()}}function dt(e){Te(),clearTimeout(ie),ie=setTimeout(Ie,n.hideCursorTime)}function ut(e){if(Date.now()-Q>600){Q=Date.now();var t=e.detail||-e.wheelDelta;t>0?ct():t<0&<()}}function ht(e){O.readURL()}function vt(e){Ee()}function ft(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function gt(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(!function(e){Ae(),$.overlay=document.createElement("div"),$.overlay.classList.add("overlay"),$.overlay.classList.add("overlay-preview"),$.wrapper.appendChild($.overlay),$.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),$.overlay.querySelector("iframe").addEventListener("load",(function(e){$.overlay.classList.add("loaded")}),!1),$.overlay.querySelector(".close").addEventListener("click",(function(e){Ae(),e.preventDefault()}),!1),$.overlay.querySelector(".external").addEventListener("click",(function(e){Ae()}),!1)}(t),e.preventDefault())}}function pt(e){Me()&&!1===n.loop?(je(0,0),it()):se?it():nt()}return r(g,{VERSION:"4.0.0-dev",initialize:function(){if(e)return $.wrapper=e,$.slides=e.querySelector(".slides"),!0===(n=ne({},G,{},t,{},u())).embedded?e.classList.add("reveal-viewport"):(document.body.classList.add("reveal-viewport"),document.documentElement.classList.add("reveal-full-page")),window.addEventListener("load",Ee,!1),U.load(n.dependencies).then(le),new Promise((function(e){return g.on("ready",e)}));console.warn("reveal.js can not initialize without a valid .reveal element.")},configure:ue,sync:ze,syncSlide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;C.sync(e),N.sync(e),E.load(e),C.update(),F.update()},syncFragments:N.sync.bind(N),slide:je,left:at,right:rt,up:ot,down:st,prev:lt,next:ct,navigateLeft:at,navigateRight:rt,navigateUp:ot,navigateDown:st,navigatePrev:lt,navigateNext:ct,navigateFragment:N.goto.bind(N),prevFragment:N.prev.bind(N),nextFragment:N.next.bind(N),on:fe,off:ge,addEventListener:fe,removeEventListener:ge,layout:Ee,shuffle:Ue,availableRoutes:We,availableFragments:N.availableRoutes.bind(N),toggleHelp:function(e){"boolean"==typeof e?e?ke():Ae():$.overlay?Ae():ke()},toggleOverview:T.toggle.bind(T),togglePause:Be,toggleAutoSlide:function(e){"boolean"==typeof e?e?it():nt():se?it():nt()},isFirstSlide:Ne,isLastSlide:Me,isLastVerticalSlide:Pe,isVerticalSlide:Ce,isPaused:He,isAutoSliding:function(){return!(!ae||se)},isSpeakerNotes:F.isSpeakerNotesWindow.bind(F),isOverview:T.isActive.bind(T),isPrintingPDF:K.isPrintingPDF.bind(K),loadSlide:E.load.bind(E),unloadSlide:E.unload.bind(E),addEventListeners:he,removeEventListeners:ve,dispatchEvent:me,getState:Ge,setState:function(e){if("object"===ee(e)){je(s(e.indexh),s(e.indexv),s(e.indexf));var t=s(e.paused),n=s(e.overview);"boolean"==typeof t&&t!==He()&&Be(t),"boolean"==typeof n&&n!==T.isActive()&&T.toggle(n)}},getSlidePastCount:Ve,getProgress:function(){var e=Qe(),t=Ve();if(h){var n=h.querySelectorAll(".fragment");if(n.length>0){t+=h.querySelectorAll(".fragment.visible").length/n.length*.9}}return Math.min(t/(e-1),1)},getIndices:Fe,getSlides:Xe,getSlidesAttributes:function(){return Xe().map((function(e){for(var t={},n=0;n0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},d=function(){var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,(function(t){e[t.split("=").shift()]=t.split("=").pop()})),e){var n=e[t];e[t]=s(unescape(n))}return void 0!==e.dependencies&&delete e.dependencies,e},h=navigator.userAgent,v=document.createElement("div"),f=/(iphone|ipod|ipad|android)/gi.test(h)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,g=/chrome/i.test(h)&&!/edge/i.test(h),p=/android/gi.test(h),m="zoom"in v.style&&!f&&(g||/Version\/[\d\.]+.*Safari/.test(h)),y="function"==typeof window.history.replaceState&&!/PhantomJS/.test(h);function b(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,o(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((function(e){("IFRAME"!==e.tagName||t.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))})),o(e,"video, audio").forEach((function(e){var t=0;o(e,"source[data-src]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),t>0&&e.load()}));var i=e.slideBackgroundElement;if(i){i.style.display="block";var a=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");var s=e.getAttribute("data-background-image"),l=e.getAttribute("data-background-video"),c=e.hasAttribute("data-background-video-loop"),u=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage="url("+encodeURI(s)+")";else if(l&&!this.Reveal.isSpeakerNotes()){var d=document.createElement("video");c&&d.setAttribute("loop",""),u&&(d.muted=!0),f&&(d.muted=!0,d.autoplay=!0,d.setAttribute("playsinline","")),l.split(",").forEach((function(e){d.innerHTML+=''})),a.appendChild(d)}else if(r&&!0!==n.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var v=a.querySelector("iframe[data-src]");v&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(r)&&v.getAttribute("src")!==r&&v.setAttribute("src",r)}}},{key:"unload",value:function(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",o(t,"iframe[src]").forEach((function(e){e.removeAttribute("src")}))),o(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})),o(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}))}},{key:"formatEmbeddedContent",value:function(){var e=this,t=function(t,n,i){o(e.Reveal.getSlidesElement(),"iframe["+t+'*="'+n+'"]').forEach((function(e){var n=e.getAttribute(t);n&&-1===n.indexOf(i)&&e.setAttribute(t,n+(/\?/.test(n)?"&":"?")+i)}))};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}},{key:"startEmbeddedContent",value:function(e){var t=this;e&&!this.Reveal.isSpeakerNotes()&&(o(e,'img[src$=".gif"]').forEach((function(e){e.setAttribute("src",e.getAttribute("src"))})),o(e,"video, audio").forEach((function(e){if(!c(e,".fragment")||c(e,".fragment.visible")){var n=t.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof n&&(n=e.hasAttribute("data-autoplay")||!!c(e,".slide-background")),n&&"function"==typeof e.play)if(e.readyState>1)t.startEmbeddedMedia({target:e});else if(f){var i=e.play();i&&"function"==typeof i.catch&&!1===e.controls&&i.catch((function(){e.controls=!0,e.addEventListener("play",(function(){e.controls=!1}))}))}else e.removeEventListener("loadeddata",t.startEmbeddedMedia),e.addEventListener("loadeddata",t.startEmbeddedMedia)}})),o(e,"iframe[src]").forEach((function(e){c(e,".fragment")&&!c(e,".fragment.visible")||t.startEmbeddedIframe({target:e})})),o(e,"iframe[data-src]").forEach((function(e){c(e,".fragment")&&!c(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",t.startEmbeddedIframe),e.addEventListener("load",t.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))})))}},{key:"startEmbeddedMedia",value:function(e){var t=!!c(e.target,"html"),n=!!c(e.target,".present");t&&n&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}},{key:"startEmbeddedIframe",value:function(e){var t=e.target;if(t&&t.contentWindow){var n=!!c(e.target,"html"),i=!!c(e.target,".present");if(n&&i){var a=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof a&&(a=t.hasAttribute("data-autoplay")||!!c(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}},{key:"stopEmbeddedContent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=r({unloadIframes:!0},n),e&&e.parentNode&&(o(e,"video, audio").forEach((function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())})),o(e,"iframe").forEach((function(e){e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",t.startEmbeddedIframe)})),o(e,'iframe[src*="youtube.com/embed/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),o(e,'iframe[src*="player.vimeo.com/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")})),!0===n.unloadIframes&&o(e,"iframe[data-src]").forEach((function(e){e.setAttribute("src","about:blank"),e.removeAttribute("src")})))}}])&&b(t.prototype,n),i&&b(t,i),e}();function k(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),n=this.Reveal.getConfig(),i="h.v";if("function"==typeof n.slideNumber)e=n.slideNumber(t);else switch("string"==typeof n.slideNumber&&(i=n.slideNumber),/c/.test(i)||1!==this.Reveal.getHorizontalSlides().length||(i="c"),e=[],i){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var a=this.Reveal.getIndices(t);e.push(a.h+1);var r="h/v"===i?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(r,a.v+1)}var o="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],o)}},{key:"formatNumber",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof n||isNaN(n)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(n,"\n\t\t\t\t\t")}}])&&k(t.prototype,n),i&&k(t,i),e}(),E=function(e){var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var n=e.match(/^#([0-9a-f]{6})$/i);if(n&&n[1])return n=n[1],{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16)};var i=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};var a=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null};function R(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],n=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,r=this.Reveal.getConfig().rtl?"future":"past",s=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((function(e,n){e.classList.remove("past","present","future"),ni.h?e.classList.add(s):(e.classList.add("present"),a=e),(t||n===i.h)&&o(e,".slide-background").forEach((function(e,t){e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),n===i.h&&(a=e))}))})),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var l=a.querySelector(".slide-background-content");if(l){var c=l.style.backgroundImage||"";/\.gif/i.test(c)&&(l.style.backgroundImage="",window.getComputedStyle(l).opacity,l.style.backgroundImage=c)}var u=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,d=a.getAttribute("data-background-hash");d&&d===u&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}n&&["has-light-background","has-dark-background"].forEach((function(t){n.classList.contains(t)?e.Reveal.getRevealElement().classList.add(t):e.Reveal.getRevealElement().classList.remove(t)}),this),setTimeout((function(){e.element.classList.remove("no-transition")}),1)}},{key:"updateParallax",value:function(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,n,i=this.Reveal.getHorizontalSlides(),a=this.Reveal.getVerticalSlides(),r=this.element.style.backgroundSize.split(" ");1===r.length?t=n=parseInt(r[0],10):(t=parseInt(r[0],10),n=parseInt(r[1],10));var o,s=this.element.offsetWidth,l=i.length;o=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-s)/(l-1):0)*e.h*-1;var c,u,d=this.element.offsetHeight,h=a.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(n-d)/(h-1),u=h>0?c*e.v:0,this.element.style.backgroundPosition=o+"px "+-u+"px"}}}])&&R(t.prototype,n),i&&R(t,i),e}();function L(e,t){for(var n=0;na.indexOf(e)?"forward":"backward";var r=this.getAutoAnimatableElements(e,t).map((function(e){return n.autoAnimateElements(e.from,e.to,e.options||{},i,n.autoAnimateCounter++)}));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var o=.8*i.duration,s=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach((function(e){var t=n.getAutoAnimateOptions(e,i),a="unmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+n.autoAnimateCounter++,r.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a}),this),r.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(o,"s ease ").concat(s,"s; }"))}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame((function(){n.autoAnimateStyleSheet&&(getComputedStyle(n.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}},{key:"reset",value:function(){o(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach((function(e){e.dataset.autoAnimate=""})),o(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((function(e){delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}},{key:"autoAnimateElements",value:function(e,t,n,i,r){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=r;var o=this.getAutoAnimateOptions(t,i);void 0!==n.delay&&(o.delay=n.delay),void 0!==n.duration&&(o.duration=n.duration),void 0!==n.easing&&(o.easing=n.easing);var s=this.getAutoAnimatableProperties("from",e,n),l=this.getAutoAnimatableProperties("to",t,n);if(t.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment")&&(e.className.match(a)||[""])[0]===(t.className.match(a)||[""])[0]&&"forward"===i.slideDirection&&t.classList.add("visible","disabled")),!1!==n.translate||!1!==n.scale){var c=this.Reveal.getScale(),u={x:(s.x-l.x)/c,y:(s.y-l.y)/c,scaleX:s.width/l.width,scaleY:s.height/l.height};u.x=Math.round(1e3*u.x)/1e3,u.y=Math.round(1e3*u.y)/1e3,u.scaleX=Math.round(1e3*u.scaleX)/1e3,u.scaleX=Math.round(1e3*u.scaleX)/1e3;var d=!1!==n.translate&&(0!==u.x||0!==u.y),h=!1!==n.scale&&(0!==u.scaleX||0!==u.scaleY);if(d||h){var v=[];d&&v.push("translate(".concat(u.x,"px, ").concat(u.y,"px)")),h&&v.push("scale(".concat(u.scaleX,", ").concat(u.scaleY,")")),s.styles.transform=v.join(" "),s.styles["transform-origin"]="top left",l.styles.transform="none"}}for(var f in l.styles){var g=l.styles[f],p=s.styles[f];g===p?delete l.styles[f]:(!0===g.explicitValue&&(l.styles[f]=g.value),!0===p.explicitValue&&(s.styles[f]=p.value))}var m="",y=Object.keys(l.styles);return y.length>0&&(s.styles.transition="none",l.styles.transition="all ".concat(o.duration,"s ").concat(o.easing," ").concat(o.delay,"s"),l.styles["transition-property"]=y.join(", "),l.styles["will-change"]=y.join(", "),m='[data-auto-animate-target="'+r+'"] {'+Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+r+'"] {'+Object.keys(l.styles).map((function(e){return e+": "+l.styles[e]+" !important;"})).join("")+"}"),m}},{key:"getAutoAnimateOptions",value:function(e,t){var n={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(n=r(n,t),e.closest&&e.parentNode){var i=e.parentNode.closest("[data-auto-animate-target]");i&&(n=this.getAutoAnimateOptions(i,n))}return e.dataset.autoAnimateEasing&&(n.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(n.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(n.delay=parseFloat(e.dataset.autoAnimateDelay)),n}},{key:"getAutoAnimatableProperties",value:function(e,t,n){var i,a={styles:[]};!1===n.translate&&!1===n.scale||(i="function"==typeof n.measure?n.measure(t):t.getBoundingClientRect(),a.x=i.x,a.y=i.y,a.width=i.width,a.height=i.height);var r=getComputedStyle(t);return(n.styles||this.Reveal.getConfig().autoAnimateStyles).forEach((function(t){var n;"string"==typeof t&&(t={property:t}),""!==(n=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:r[t.property])&&(a.styles[t.property]=n)})),a}},{key:"getAutoAnimatableElements",value:function(e,t){var n=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),i=[];return n.filter((function(e,t){if(-1===i.indexOf(e.to))return i.push(e.to),!0}))}},{key:"getAutoAnimatePairs",value:function(e,t){var n=this,i=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",(function(e){return e.nodeName+":::"+e.getAttribute("data-id")})),this.findAutoAnimateMatches(i,e,t,a,(function(e){return e.nodeName+":::"+e.innerText})),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",(function(e){return e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))})),this.findAutoAnimateMatches(i,e,t,"pre",(function(e){return e.nodeName+":::"+e.innerText})),i.forEach((function(e){e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},n.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",(function(e){return e.textContent}),{scale:!1,styles:[],measure:n.getLocalBoundingBox.bind(n)}),n.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",(function(e){return e.getAttribute("data-line-number")}),{scale:!1,styles:["width"],measure:n.getLocalBoundingBox.bind(n)}))}),this),i}},{key:"getLocalBoundingBox",value:function(e){var t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}},{key:"findAutoAnimateMatches",value:function(e,t,n,i,a,r){var o={},s={};[].slice.call(t.querySelectorAll(i)).forEach((function(e,t){var n=a(e);"string"==typeof n&&n.length&&(o[n]=o[n]||[],o[n].push(e))})),[].slice.call(n.querySelectorAll(i)).forEach((function(t,n){var i,l=a(t);if(s[l]=s[l]||[],s[l].push(t),o[l]){var c=s[l].length-1,u=o[l].length-1;o[l][c]?(i=o[l][c],o[l][c]=null):o[l][u]&&(i=o[l][u],o[l][u]=null)}i&&e.push({from:i,to:t,options:r})}))}},{key:"getUnmatchedAutoAnimateElements",value:function(e){var t=this;return[].slice.call(e.children).reduce((function(e,n){var i=n.querySelector("[data-auto-animate-target]");return n.hasAttribute("data-auto-animate-target")||i||e.push(n),n.querySelector("[data-auto-animate-target]")&&(e=e.concat(t.getUnmatchedAutoAnimateElements(n))),e}),[])}}])&&L(t.prototype,n),i&&L(t,i),e}();function C(e,t){for(var n=0;n0,next:!!n.length}}return{prev:!1,next:!1}}},{key:"sort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var n=[],i=[],a=[];e.forEach((function(e){if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);n[t]||(n[t]=[]),n[t].push(e)}else i.push([e])})),n=n.concat(i);var r=0;return n.forEach((function(e){e.forEach((function(e){a.push(e),e.setAttribute("data-fragment-index",r)})),r++})),!0===t?n:a}},{key:"sortAll",value:function(){var e=this;this.Reveal.getHorizontalSlides().forEach((function(t){var n=o(t,"section");n.forEach((function(t,n){e.sort(t.querySelectorAll(".fragment"))}),e),0===n.length&&e.sort(t.querySelectorAll(".fragment"))}))}},{key:"update",value:function(e,t){var n=this,i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var r=0;if("number"!=typeof e){var o=this.sort(a.querySelectorAll(".fragment.visible")).pop();o&&(e=parseInt(o.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((function(t,a){if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,a),a<=e){var o=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(n.Reveal.announceStatus(n.Reveal.getStatusText(t)),t.classList.add("current-fragment"),n.Reveal.slideContent.startEmbeddedContent(t)),o||(i.shown.push(t),n.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var s=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),s&&(i.hidden.push(t),n.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),a.setAttribute("data-fragment",e)}return i}},{key:"sync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments){var i=this.sort(n.querySelectorAll(".fragment:not(.disabled)"));if(i.length){if("number"!=typeof e){var a=this.sort(n.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}e+=t;var r=this.update(e,i);return r.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:r.hidden[0],fragments:r.hidden}}),r.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:r.shown[0],fragments:r.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!r.shown.length&&!r.hidden.length)}}return!1}},{key:"next",value:function(){return this.goto(null,1)}},{key:"prev",value:function(){return this.goto(null,-1)}}])&&C(t.prototype,n),i&&C(t,i),e}();function N(e,t){for(var n=0;n0||a.v>0||void 0!==a.f)&&(t+=a.h+r),(a.v>0||void 0!==a.f)&&(t+="/"+(a.v+r)),void 0!==a.f&&(t+="/"+a.f)}return t}}])&&O(t.prototype,n),i&&O(t,i),e}();function H(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t
\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=o(t,".navigate-left"),this.controlsRight=o(t,".navigate-right"),this.controlsUp=o(t,".navigate-up"),this.controlsDown=o(t,".navigate-down"),this.controlsPrev=o(t,".navigate-prev"),this.controlsNext=o(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}},{key:"configure",value:function(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}},{key:"bind",value:function(){var e=this,t=["touchstart","click"];p&&(t=["touchstart"]),t.forEach((function(t){e.controlsLeft.forEach((function(n){return n.addEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(n){return n.addEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(n){return n.addEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(n){return n.addEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(n){return n.addEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(n){return n.addEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"unbind",value:function(){var e=this;["touchstart","click"].forEach((function(t){e.controlsLeft.forEach((function(n){return n.removeEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(n){return n.removeEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(n){return n.removeEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(n){return n.removeEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(n){return n.removeEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(n){return n.removeEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"update",value:function(){var e=this.Reveal.availableRoutes();[].concat(H(this.controlsLeft),H(this.controlsRight),H(this.controlsUp),H(this.controlsDown),H(this.controlsPrev),H(this.controlsNext)).forEach((function(e){e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")})),e.left&&this.controlsLeft.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.right&&this.controlsRight.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.down&&this.controlsDown.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.left||e.up)&&this.controlsPrev.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}));var t=this.Reveal.getCurrentSlide();if(t){var n=this.Reveal.fragments.availableRoutes();n.prev&&this.controlsPrev.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),n.next&&this.controlsNext.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),this.Reveal.isVerticalSlide(t)?(n.prev&&this.controlsUp.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),n.next&&this.controlsDown.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(n.prev&&this.controlsLeft.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),n.next&&this.controlsRight.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig().controlsTutorial){var i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&0===i.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===i.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}},{key:"onNavigateLeftClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}},{key:"onNavigateRightClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}},{key:"onNavigateUpClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}},{key:"onNavigateDownClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}},{key:"onNavigatePrevClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}},{key:"onNavigateNextClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}])&&j(t.prototype,n),i&&j(t,i),e}();function U(e,t){for(var n=0;n1e3){this.lastMouseWheelStep=Date.now();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}])&&W(t.prototype,n),i&&W(t,i),e}(),V=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!1,n.defer=!1,n.src=e,"function"==typeof t&&(n.onload=n.onreadystatechange=function(e){("load"===e.type||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=n.onerror=null,t())},n.onerror=function(e){n.onload=n.onreadystatechange=n.onerror=null,t(new Error("Failed loading script: "+n.src+"\n"+e))});var i=document.querySelector("head");i.insertBefore(n,i.lastChild)};function F(e,t){for(var n=0;nimg, .reveal section>video, .reveal section>iframe{max-width: "+a+"px; max-height:"+r+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=n+"px",document.body.style.height=i+"px",this.Reveal.layoutSlideContents(a,r);var s=e.slideNumber&&/all|print/i.test(e.showSlideNumber);o(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),o(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var l=(n-a)/2,c=(i-r)/2,u=t.scrollHeight,d=Math.max(Math.ceil(u/i),1);(1===(d=Math.min(d,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(c=Math.max((i-u)/2,0));var h=document.createElement("div");if(h.className="pdf-page",h.style.height=(i+e.pdfPageHeightOffset)*d+"px",t.parentNode.insertBefore(h,t),h.appendChild(t),t.style.left=l+"px",t.style.top=c+"px",t.style.width=a+"px",t.slideBackgroundElement&&h.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var f="string"==typeof e.showNotes?e.showNotes:"inline",g=document.createElement("div");g.classList.add("speaker-notes"),g.classList.add("speaker-notes-pdf"),g.setAttribute("data-layout",f),g.innerHTML=v,"separate-page"===f?h.parentNode.insertBefore(g,h.nextSibling):(g.style.left="8px",g.style.bottom="8px",g.style.width=n-16+"px",h.appendChild(g))}}if(s){var p=document.createElement("div");p.classList.add("slide-number"),p.classList.add("slide-number-pdf"),p.innerHTML=t.getAttribute("data-slide-number"),h.appendChild(p)}if(e.pdfSeparateFragments){var m,y,b=this.Reveal.fragments.sort(h.querySelectorAll(".fragment"),!0);b.forEach((function(e){m&&m.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=h.cloneNode(!0);h.parentNode.insertBefore(t,(y||h).nextSibling),m=e,y=t}),this),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else o(h,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}},{key:"isPrintingPDF",value:function(){return/print-pdf/gi.test(window.location.search)}}])&&Y(t.prototype,n),i&&Y(t,i),e}();function $(e,t){for(var n=0;n40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev()():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev()():this.Reveal.next():this.Reveal.right()):r>40?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev()():this.Reveal.up()):r<-40&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide(currentSlide))&&e.preventDefault():e.preventDefault()}}}},{key:"onTouchEnd",value:function(e){this.touchCaptured=!1}},{key:"onPointerDown",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}},{key:"onPointerMove",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}},{key:"onPointerUp",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}])&&$(t.prototype,n),i&&$(t,i),e}();function Q(e,t){for(var n=0;nNo notes on this slide.')}},{key:"updateVisibility",value:function(){this.Reveal.getConfig().showNotes&&this.hasNotes()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}},{key:"hasNotes",value:function(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}},{key:"isSpeakerNotesWindow",value:function(){return!!window.location.search.match(/receiver/gi)}},{key:"getSlideNotes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}])&&Q(t.prototype,n),i&&Q(t,i),e}();function G(e,t){for(var n=0;n.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}},{key:"render",value:function(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,n=this.diameter2,i=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var a=-Math.PI/2+e*(2*Math.PI),r=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(n,i,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(n,i,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(n,i,t,r,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(n-14,i-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}},{key:"on",value:function(e,t){this.canvas.addEventListener(e,t,!1)}},{key:"off",value:function(e,t){this.canvas.removeEventListener(e,t,!1)}},{key:"destroy",value:function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}])&&G(t.prototype,n),i&&G(t,i),e}(),te={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,disableLayout:!1,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!1,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]};function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ae(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"",a=e.querySelectorAll("."+n),r=0;rResume presentation':null),Q.statusElement=function(){var e=Q.wrapper.querySelector(".aria-status");e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),Q.wrapper.appendChild(e));return e}(),Q.wrapper.setAttribute("role","application")}(),n.postMessage&&window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof g[t.method])if(!1===i.test(t.method)){var n=g[t.method].apply(g,t.args);me("callback",{method:t.method,result:n})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')}),!1),setInterval((function(){0===Q.wrapper.scrollTop&&0===Q.wrapper.scrollLeft||(Q.wrapper.scrollTop=0,Q.wrapper.scrollLeft=0)}),1e3),Ve().forEach((function(e){o(e,"section").forEach((function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))})),ue(),O.readURL(),C.update(!0),setTimeout((function(){Q.slides.classList.remove("no-transition"),Q.wrapper.classList.add("ready"),pe({type:"ready",data:{indexh:a,indexv:c,currentSlide:h}})}),1),V.isPrintingPDF()&&(he(),"complete"===document.readyState?V.setupPDF():window.addEventListener("load",V.setupPDF))}function le(e){Q.statusElement.textContent=e}function ce(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var n=e.getAttribute("aria-hidden"),i="none"===window.getComputedStyle(e).display;"true"===n||i||Array.from(e.childNodes).forEach((function(e){t+=ce(e)}))}return""===(t=t.trim())?"":t+" "}function ue(e){var t=ae({},n);if("object"===ne(e)&&r(n,e),!1!==g.isReady()){var i=Q.wrapper.querySelectorAll(".slides section").length;Q.wrapper.classList.remove(t.transition),Q.wrapper.classList.add(n.transition),Q.wrapper.setAttribute("data-transition-speed",n.transitionSpeed),Q.wrapper.setAttribute("data-background-transition",n.backgroundTransition),n.shuffle&&He(),n.rtl?Q.wrapper.classList.add("rtl"):Q.wrapper.classList.remove("rtl"),n.center?Q.wrapper.classList.add("center"):Q.wrapper.classList.remove("center"),!1===n.pause&&Te(),n.previewLinks?(ye(),be("[data-preview-link=false]")):(be(),ye("[data-preview-link]:not([data-preview-link=false])")),L.reset(),v&&(v.destroy(),v=null),i>1&&n.autoSlide&&n.autoSlideStoppable&&((v=new ee(Q.wrapper,(function(){return Math.min(Math.max((Date.now()-re)/G,0),1)}))).on("click",dt),oe=!1),"default"!==n.navigationMode?Q.wrapper.setAttribute("data-navigation-mode",n.navigationMode):Q.wrapper.removeAttribute("data-navigation-mode"),Y.configure(n,t),U.configure(n,t),H.configure(n,t),j.configure(n,t),I.configure(n,t),N.configure(n,t),R.configure(n,t),Be()}}function de(){!0,window.addEventListener("hashchange",st,!1),window.addEventListener("resize",lt,!1),n.touch&&F.bind(),n.keyboard&&I.bind(),H.bind(),j.bind(),Q.pauseOverlay.addEventListener("click",Te,!1),n.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",ct,!1)}function he(){!1,F.unbind(),I.unbind(),H.unbind(),j.unbind(),window.removeEventListener("hashchange",st,!1),window.removeEventListener("resize",lt,!1),Q.pauseOverlay.removeEventListener("click",Te,!1)}function ve(t,n,i){e.addEventListener(t,n,i)}function fe(t,n,i){e.removeEventListener(t,n,i)}function ge(e){"string"==typeof e.layout&&($.layout=e.layout),"string"==typeof e.overview&&($.overview=e.overview),$.layout?l(Q.slides,$.layout+" "+$.overview):l(Q.slides,$.overview)}function pe(e){var t=e.target,n=void 0===t?Q.wrapper:t,i=e.type,a=e.data,o=e.bubbles,s=void 0===o||o,l=document.createEvent("HTMLEvents",1,2);l.initEvent(i,s,!0),r(l,a),n.dispatchEvent(l),n===Q.wrapper&&me(i)}function me(e,t){if(n.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:Je()};r(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(Q.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",ut,!1)}))}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(Q.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",ut,!1)}))}function we(){if(n.help){ke(),Q.overlay=document.createElement("div"),Q.overlay.classList.add("overlay"),Q.overlay.classList.add("overlay-help"),Q.wrapper.appendChild(Q.overlay);var e='

Keyboard Shortcuts


';for(var t in e+="",I.shortcuts)e+="");for(var i in I.registeredKeyBindings)I.registeredKeyBindings[i].key&&I.registeredKeyBindings[i].description&&(e+=""));e+="
KEYACTION
".concat(t,"").concat(I.shortcuts[t],"
".concat(I.registeredKeyBindings[i].key,"").concat(I.registeredKeyBindings[i].description,"
",Q.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),Q.overlay.querySelector(".close").addEventListener("click",(function(e){ke(),e.preventDefault()}),!1)}}function ke(){return!!Q.overlay&&(Q.overlay.parentNode.removeChild(Q.overlay),Q.overlay=null,!0)}function Ae(){if(Q.wrapper&&!V.isPrintingPDF()){if(!n.disableLayout){f&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Re(),t=k;Ee(n.width,n.height),Q.slides.style.width=e.width+"px",Q.slides.style.height=e.height+"px",k=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),k=Math.max(k,n.minScale),1===(k=Math.min(k,n.maxScale))?(Q.slides.style.zoom="",Q.slides.style.left="",Q.slides.style.top="",Q.slides.style.bottom="",Q.slides.style.right="",ge({layout:""})):k>1&&m&&window.devicePixelRatio<2?(Q.slides.style.zoom=k,Q.slides.style.left="",Q.slides.style.top="",Q.slides.style.bottom="",Q.slides.style.right="",ge({layout:""})):(Q.slides.style.zoom="",Q.slides.style.left="50%",Q.slides.style.top="50%",Q.slides.style.bottom="auto",Q.slides.style.right="auto",ge({layout:"translate(-50%, -50%) scale("+k+")"}));for(var i=Array.from(Q.wrapper.querySelectorAll(".slides section")),a=0,r=i.length;a .stretch").forEach((function(n){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var n,i=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",n=t-e.parentNode.offsetHeight,e.style.height=i+"px",e.parentNode.style.removeProperty("height"),n}return t}(n,t);if(/(img|video)/gi.test(n.nodeName)){var a=n.naturalWidth||n.videoWidth,r=n.naturalHeight||n.videoHeight,o=Math.min(e/a,i/r);n.style.width=a*o+"px",n.style.height=r*o+"px"}else n.style.width=e+"px",n.style.height=i+"px"}))}function Re(e,t){var i={width:n.width,height:n.height,presentationWidth:e||Q.wrapper.offsetWidth,presentationHeight:t||Q.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*n.margin,i.presentationHeight-=i.presentationHeight*n.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function Se(e,t){"object"===ne(e)&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function Le(e){if("object"===ne(e)&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Ce(){return!(!h||!xe(h))&&!h.nextElementSibling}function Pe(){return 0===a&&0===c}function Ne(){return!!h&&(!h.nextElementSibling&&(!xe(h)||!h.parentNode.nextElementSibling))}function Me(){if(n.pause){var e=Q.wrapper.classList.contains("paused");Ze(),Q.wrapper.classList.add("paused"),!1===e&&pe({type:"paused"})}}function Te(){var e=Q.wrapper.classList.contains("paused");Q.wrapper.classList.remove("paused"),Qe(),e&&pe({type:"resumed"})}function Ie(e){"boolean"==typeof e?e?Me():Te():De()?Te():Me()}function De(){return Q.wrapper.classList.contains("paused")}function Oe(e,t,i,r){u=h;var s=Q.wrapper.querySelectorAll(".slides>section");if(0!==s.length){void 0!==t||T.isActive()||(t=Le(s[e])),u&&u.parentNode&&u.parentNode.classList.contains("stack")&&Se(u.parentNode,c);var l=b.concat();b.length=0;var d=a||0,v=c||0;a=je(".slides>section",void 0===e?a:e),c=je(".slides>section.present>section",void 0===t?c:t);var f=a!==d||c!==v;f||(u=null);var g=s[a],p=g.querySelectorAll("section");h=p[c]||g;var m=!1;f&&u&&h&&!T.isActive()&&u.hasAttribute("data-auto-animate")&&h.hasAttribute("data-auto-animate")&&(m=!0,Q.slides.classList.add("disable-slide-transitions")),ze(),Ae(),T.isActive()&&T.update(),void 0!==i&&N.goto(i),u&&u!==h&&(u.classList.remove("present"),u.setAttribute("aria-hidden","true"),Pe()&&setTimeout((function(){o(Q.wrapper,".slides>section.stack").forEach((function(e){Se(e,0)}))}),0));e:for(var y=0,w=b.length;yt&&(l.classList.add(c?"past":"future"),n.fragments&&o(l,".fragment.visible").forEach((function(e){e.classList.remove("visible","current-fragment")})))}var u=i[t],d=u.classList.contains("present");u.classList.add("present"),u.removeAttribute("hidden"),u.removeAttribute("aria-hidden"),d||pe({target:u,type:"visible",bubbles:!1});var h=u.getAttribute("data-state");h&&(b=b.concat(h.split(" ")))}else t=0;return t}function ze(){var e,t=Ve(),i=t.length;if(i&&void 0!==a){var r=T.isActive()?10:n.viewDistance;f&&(r=T.isActive()?6:n.mobileViewDistance),V.isPrintingPDF()&&(r=Number.MAX_VALUE);for(var s=0;ssection"),t=Q.wrapper.querySelectorAll(".slides>section.present>section"),i={left:a>0,right:a0,down:c1&&(i.left=!0,i.right=!0),t.length>1&&(i.up=!0,i.down=!0)),e.length>1&&"linear"===n.navigationMode&&(i.right=i.right||i.down,i.left=i.left||i.up),n.rtl){var r=i.left;i.left=i.right,i.right=r}return i}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Ve(),n=0;e:for(var i=0;i0){var u=h.querySelector(".current-fragment");t=u&&u.hasAttribute("data-fragment-index")?parseInt(u.getAttribute("data-fragment-index"),10):h.querySelectorAll(".fragment.visible").length-1}return{h:n,v:i,f:t}}function Ke(){return o(Q.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function Ve(){return o(Q.wrapper,".slides>section")}function Fe(){return o(Q.wrapper,".slides>section>section")}function Xe(){return Ve().length>1}function Ye(){return Fe().length>1}function _e(){return Ke().length}function $e(e,t){var n=Ve()[e],i=n&&n.querySelectorAll("section");return i&&i.length&&"number"==typeof t?i?i[t]:void 0:n}function Je(){var e=We();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:De(),overview:T.isActive()}}function Qe(){if(Ze(),h&&!1!==n.autoSlide){var e=h.querySelector(".current-fragment");e||(e=h.querySelector(".fragment"));var t=e?e.getAttribute("data-autoslide"):null,i=h.parentNode?h.parentNode.getAttribute("data-autoslide"):null,a=h.getAttribute("data-autoslide");G=t?parseInt(t,10):a?parseInt(a,10):i?parseInt(i,10):n.autoSlide,0===h.querySelectorAll(".fragment").length&&o(h,"video, audio").forEach((function(e){e.hasAttribute("data-autoplay")&&G&&1e3*e.duration/e.playbackRate>G&&(G=1e3*e.duration/e.playbackRate+1e3)})),!G||oe||De()||T.isActive()||Ne()&&!N.availableRoutes().next&&!0!==n.loop||(ie=setTimeout((function(){"function"==typeof n.autoSlideMethod?n.autoSlideMethod():ot(),Qe()}),G),re=Date.now()),v&&v.setPlaying(-1!==ie)}}function Ze(){clearTimeout(ie),ie=-1}function Ge(){G&&!oe&&(oe=!0,pe({type:"autoslidepaused"}),clearTimeout(ie),v&&v.setPlaying(!1))}function et(){G&&oe&&(oe=!1,pe({type:"autoslideresumed"}),Qe())}function tt(){y.hasNavigatedHorizontally=!0,n.rtl?(T.isActive()||!1===N.next())&&Ue().left&&Oe(a+1,"grid"===n.navigationMode?c:void 0):(T.isActive()||!1===N.prev())&&Ue().left&&Oe(a-1,"grid"===n.navigationMode?c:void 0)}function nt(){y.hasNavigatedHorizontally=!0,n.rtl?(T.isActive()||!1===N.prev())&&Ue().right&&Oe(a-1,"grid"===n.navigationMode?c:void 0):(T.isActive()||!1===N.next())&&Ue().right&&Oe(a+1,"grid"===n.navigationMode?c:void 0)}function it(){(T.isActive()||!1===N.prev())&&Ue().up&&Oe(a,c-1)}function at(){y.hasNavigatedVertically=!0,(T.isActive()||!1===N.next())&&Ue().down&&Oe(a,c+1)}function rt(){var e;if(!1===N.prev())if(Ue().up)it();else if(e=n.rtl?o(Q.wrapper,".slides>section.future").pop():o(Q.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Oe(a-1,t)}}function ot(){if(y.hasNavigatedHorizontally=!0,y.hasNavigatedVertically=!0,!1===N.next()){var e=Ue();e.down&&e.right&&n.loop&&Ce()&&(e.down=!1),e.down?at():n.rtl?tt():nt()}}function st(e){O.readURL()}function lt(e){Ae()}function ct(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function ut(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(!function(e){ke(),Q.overlay=document.createElement("div"),Q.overlay.classList.add("overlay"),Q.overlay.classList.add("overlay-preview"),Q.wrapper.appendChild(Q.overlay),Q.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),Q.overlay.querySelector("iframe").addEventListener("load",(function(e){Q.overlay.classList.add("loaded")}),!1),Q.overlay.querySelector(".close").addEventListener("click",(function(e){ke(),e.preventDefault()}),!1),Q.overlay.querySelector(".external").addEventListener("click",(function(e){ke()}),!1)}(t),e.preventDefault())}}function dt(e){Ne()&&!1===n.loop?(Oe(0,0),et()):oe?et():Ge()}return r(g,{VERSION:"4.0.0-dev",initialize:function(){if(e)return Q.wrapper=e,Q.slides=e.querySelector(".slides"),!0===(n=ae({},te,{},t,{},d())).embedded?e.classList.add("reveal-viewport"):(document.body.classList.add("reveal-viewport"),document.documentElement.classList.add("reveal-full-page")),window.addEventListener("load",Ae,!1),W.load(n.dependencies).then(se),new Promise((function(e){return g.on("ready",e)}));console.warn("reveal.js can not initialize without a valid .reveal element.")},configure:ue,sync:Be,syncSlide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;C.sync(e),N.sync(e),E.load(e),C.update(),Y.update()},syncFragments:N.sync.bind(N),slide:Oe,left:tt,right:nt,up:it,down:at,prev:rt,next:ot,navigateLeft:tt,navigateRight:nt,navigateUp:it,navigateDown:at,navigatePrev:rt,navigateNext:ot,navigateFragment:N.goto.bind(N),prevFragment:N.prev.bind(N),nextFragment:N.next.bind(N),on:ve,off:fe,addEventListener:ve,removeEventListener:fe,layout:Ae,shuffle:He,availableRoutes:Ue,availableFragments:N.availableRoutes.bind(N),toggleHelp:function(e){"boolean"==typeof e?e?we():ke():Q.overlay?ke():we()},toggleOverview:T.toggle.bind(T),togglePause:Ie,toggleAutoSlide:function(e){"boolean"==typeof e?e?et():Ge():oe?et():Ge()},isFirstSlide:Pe,isLastSlide:Ne,isLastVerticalSlide:Ce,isVerticalSlide:xe,isPaused:De,isAutoSliding:function(){return!(!G||oe)},isSpeakerNotes:Y.isSpeakerNotesWindow.bind(Y),isOverview:T.isActive.bind(T),isPrintingPDF:V.isPrintingPDF.bind(V),loadSlide:E.load.bind(E),unloadSlide:E.unload.bind(E),addEventListeners:de,removeEventListeners:he,dispatchEvent:pe,getState:Je,setState:function(e){if("object"===ne(e)){Oe(s(e.indexh),s(e.indexv),s(e.indexf));var t=s(e.paused),n=s(e.overview);"boolean"==typeof t&&t!==De()&&Ie(t),"boolean"==typeof n&&n!==T.isActive()&&T.toggle(n)}},getSlidePastCount:qe,getProgress:function(){var e=_e(),t=qe();if(h){var n=h.querySelectorAll(".fragment");if(n.length>0){t+=h.querySelectorAll(".fragment.visible").length/n.length*.9}}return Math.min(t/(e-1),1)},getIndices:We,getSlides:Ke,getSlidesAttributes:function(){return Ke().map((function(e){for(var t={},n=0;n