From 14ebfb1a5dd11193077d33c022bba9c05c317a84 Mon Sep 17 00:00:00 2001 From: edoardoo Date: Sun, 9 Aug 2015 01:57:17 +0200 Subject: [PATCH] fixed overflow on slide rendered images, maybe --- public/scripts/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";