~ihabunek/vampires

bb37ed150c64bb4d2a214e1755eea81ff63cbad9 — Ivan Habunek 7 months ago 95c2ced master
Fix last slide
1 files changed, 1 insertions(+), 1 deletions(-)

M index.html
M index.html => index.html +1 -1
@@ 140,7 140,7 @@

    const getIndex = (timestamp) => {
      const index =  times.findIndex(slideTimestamp => slideTimestamp > timestamp)
      return index == -1 ? slideTimings.length - 1 : index - 1
      return index == -1 ? slides.length - 1 : index - 1
    }

    audio.addEventListener("timeupdate", event => {