revealJS presentations work sorta

I still have lots of bugs, but the groundwork is there. At least a
proof of concept.
This commit is contained in:
Chris Cochrun 2023-11-14 21:39:30 -06:00
parent 7d79c38c2a
commit e30066b101
6 changed files with 71 additions and 4 deletions

View file

@ -208,10 +208,27 @@ Controls.Page {
function changeSlide(index) {
console.log("index grabbed: " + index);
const item = SlideModel.getItemRust(index, SlideMod);
const isMoveDown = currentSlide < index;
currentSlide = index;
currentServiceItem = item.serviceItemId;
console.log("index grabbed: " + index);
console.log(item);
console.log("html?: " + item.html);
console.log("type: " + item.type);
console.log("text: " + item.text);
console.log("slide_index: " + item.slideIndex);
console.log("slide_count: " + item.imageCount);
if (item.html) {
let index = item.slideIndex;
let count = item.imageCount;
if (index > 0 && index < count - 1) {
console.log("I should advance revealy");
if (isMoveDown)
presentation.revealNext()
else
presentation.revealPrev()
return
}
}
/* presentation.stopVideo(); */
/* pWindow.stopVideo(); */