@farberg/reveal-template 1.1.22 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/dhbw.css
CHANGED
package/package.json
CHANGED
|
@@ -28,12 +28,19 @@ function showTitle(deck, packageJson) {
|
|
|
28
28
|
let slideTitle = el.innerText;
|
|
29
29
|
|
|
30
30
|
// Mark the enclosing slide so simplemenu hides on it (handled in dhbw.css
|
|
31
|
-
// via body.hide-menubar)
|
|
32
|
-
// still read data-name. Equivalent to writing in the markdown:
|
|
31
|
+
// via body.hide-menubar). Equivalent to writing in the markdown:
|
|
33
32
|
// <!-- .slide: data-state="hide-menubar" -->
|
|
33
|
+
// Reveal mirrors data-state to body classes on every slidechanged event.
|
|
34
|
+
// We're running here in the 'ready' callback — after the first
|
|
35
|
+
// slidechanged has already fired during init — so for the *current*
|
|
36
|
+
// slide we also need to apply the body class manually. Subsequent
|
|
37
|
+
// navigations are then handled by Reveal automatically.
|
|
34
38
|
const section = el.closest('section');
|
|
35
39
|
if (section) {
|
|
36
40
|
section.setAttribute('data-state', 'hide-menubar');
|
|
41
|
+
if (section === deck.getCurrentSlide()) {
|
|
42
|
+
document.body.classList.add('hide-menubar');
|
|
43
|
+
}
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
el.innerHTML = `
|