Browse Source

fixed max length of renderedImage

visualizer
edoardoo 9 years ago
parent
commit
6f2d6ddcba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/scripts/functions.js

+ 1
- 1
public/scripts/functions.js View File

@ -154,7 +154,7 @@ function slideBack(){
function slideForward(){
var actual = document.getElementById("renderedHoneyComb").getElementsByClassName("visible")[0];
var actualId = actual.id.split("_")[1];
if(actualId < 10){
if(actualId < document.getElementsByClassName("renderedCanvas").length){
actualId++;
}
actual.className = "renderedCanvas";


Loading…
Cancel
Save