From d1f450a37ba5d4cc77389b28e0a2c47200366ebe Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Thu, 2 Feb 2023 11:24:06 +0100 Subject: [PATCH] feat(revealjs): disable menu open button Signed-off-by: Mark Sagi-Kazar --- plugins/reveal.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/plugins/reveal.js b/plugins/reveal.js index d014da1..8011039 100644 --- a/plugins/reveal.js +++ b/plugins/reveal.js @@ -30,12 +30,19 @@ class Reveal { } configure() { - return this.page.evaluate(fragments => Reveal.configure({ - controls : false, - progress : false, - fragments : fragments, - transition: 'none' - }), + return this.page.evaluate(fragments => { + Reveal.configure({ + controls : false, + progress : false, + fragments : fragments, + transition: 'none' + }); + + var menuOpenButtons = document.getElementsByClassName('slide-menu-button'); + for (var i = 0; i < menuOpenButtons.length; i++) { + menuOpenButtons[i].style.display = 'none'; + } + }, // It seems passing 'fragments=true' in the URL query string does not take precedence // over globally configured 'fragments' and prevents from being able to toggle fragments // with ...?fragments= so we work around that by parsing the page query string