Skip to content
Permalink
Browse files

Fix slides in chrome and exported slides as PDF

  • Loading branch information...
schrieveslaach committed Mar 1, 2019
1 parent f188098 commit 312589bd947ef616cc2e6b9cccbad25dead6be42
File renamed without changes.
@@ -274,6 +274,10 @@ <h2>Thank you for your attention.</h2>
let currentSection = undefined;
let index = 0;
slides.forEach(function (slide) {
if (slide.id == null || slide.id == "") {
return;
}
const section = slide.dataset.section;
if (section != null) {
currentSection = {name: section, index};
@@ -283,12 +287,12 @@ <h2>Thank you for your attention.</h2>
});
rootElement.addEventListener("impress:stepenter", function (e) {
const index = slides.indexOf(e.explicitOriginalTarget) + 1;
const index = slides.indexOf(e.target) + 1;
const slideNumbers = document.getElementById("slide-numbers");
slideNumbers.innerHTML = `${index}/${slides.length}`;
const section = slideSectionMapping[e.explicitOriginalTarget.id];
const section = slideSectionMapping[e.target.id];
const sectionName = document.getElementById("section-name");
sectionName.innerHTML = section.name;
});
Binary file not shown.

0 comments on commit 312589b

Please sign in to comment.
You can’t perform that action at this time.