diff --git a/public/scripts/functions.js b/public/scripts/functions.js index 16f2ade..1becbe0 100644 --- a/public/scripts/functions.js +++ b/public/scripts/functions.js @@ -155,7 +155,7 @@ function slideBack(){ function slideForward(){ var actual = document.getElementById("renderedHoneyComb").getElementsByClassName("visible")[0]; var actualId = actual.id.split("_")[1]; - if(actualId < document.getElementsByClassName("renderedCanvas").length){ + if(actualId < document.getElementsByClassName("renderedCanvas").length - 1){ actualId++; actual.className = "renderedCanvas"; document.getElementById("rendered_"+actualId).className += " visible";