From 9c83edbf13f48b4cbb4fd77da5b47209d4bd14dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Este-Gracias?= Date: Sat, 13 Feb 2021 00:23:50 +0100 Subject: [PATCH 1/2] Expose showPreview --- js/reveal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/reveal.js b/js/reveal.js index 67ad0b8b..5927f50c 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2461,6 +2461,9 @@ export default function( revealElement, options ) { // Randomizes the order of slides shuffle, + // Opens a preview window for the target URL + showPreview, + // Returns an object with the available routes as booleans (left/right/top/bottom) availableRoutes, From 2d050f83c19bbfa9dcab6eec759751cc03ca251f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Este-Gracias?= Date: Sat, 13 Feb 2021 01:20:37 +0100 Subject: [PATCH 2/2] Expose preview management functions --- js/reveal.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/reveal.js b/js/reveal.js index 5927f50c..c72bd8ab 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2461,9 +2461,6 @@ export default function( revealElement, options ) { // Randomizes the order of slides shuffle, - // Opens a preview window for the target URL - showPreview, - // Returns an object with the available routes as booleans (left/right/top/bottom) availableRoutes, @@ -2503,6 +2500,10 @@ export default function( revealElement, options ) { loadSlide: slideContent.load.bind( slideContent ), unloadSlide: slideContent.unload.bind( slideContent ), + // Preview management + showPreview, + hidePreview: closeOverlay, + // Adds or removes all internal event listeners addEventListeners, removeEventListeners,