feat(revealjs): disable menu open button

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2023-02-02 11:24:06 +01:00 committed by Antonin Stefanutti
parent 8a0893ddb5
commit d1f450a37b

View File

@ -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=<true|false> so we work around that by parsing the page query string