Browse Source

fixed overflow on slide rendered images

visualizer
edoardoo 10 years ago
parent
commit
3da181d58d
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      public/scripts/functions.js

+ 5
- 4
public/scripts/functions.js View File

@ -146,9 +146,10 @@ function slideBack(){
var actualId = actual.id.split("_")[1];
if(actualId > 0){
actualId--;
actual.className = "renderedCanvas";
document.getElementById("rendered_"+actualId).className += " visible";
}
actual.className = "renderedCanvas";
document.getElementById("rendered_"+actualId).className += " visible";
}
function slideForward(){
@ -156,9 +157,9 @@ function slideForward(){
var actualId = actual.id.split("_")[1];
if(actualId < document.getElementsByClassName("renderedCanvas").length){
actualId++;
actual.className = "renderedCanvas";
document.getElementById("rendered_"+actualId).className += " visible";
}
actual.className = "renderedCanvas";
document.getElementById("rendered_"+actualId).className += " visible";
}
function hasClass(el, cls) {


Loading…
Cancel
Save