function prevSlide() {
  var nextSlideIndex;
  if (currentSlideIndex === 0) {
    nextSlideIndex = slideArray.length - 1;
  } else {
    nextSlideIndex = currentSlideIndex - 1;
  }

  document.getElementById("slide" + nextSlideIndex).style.left = "-100%";
  document.getElementById("slide" + currentSlideIndex).style.left = 0;

  document.getElementById("slide" + nextSlideIndex).setAttribute("class", "singleSlide slideInLeft");
  document.getElementById("slide" + currentSlideIndex).setAttribute("class", "singleSlide slideOutRight");

  currentSlideIndex = nextSlideIndex;
}
// Navigates to the previous slide in the list
Navigates to the previous slide in the list
Navigates to the previous slide in the list
function prevSlide() {
  var nextSlideIndex;
  if (currentSlideIndex === 0) {
    nextSlideIndex = slideArray.length - 1;
  } else {
    nextSlideIndex = currentSlideIndex - 1;
  }
  document.getElementById("slide" + nextSlideIndex).style.left = "-100%";
  document.getElementById("slide" + currentSlideIndex).style.left = 0;
  document.getElementById("slide" + nextSlideIndex).setAttribute("class", "singleSlide slideInLeft");
  document.getElementById("slide" + currentSlideIndex).setAttribute("class", "singleSlide slideOutRight");
  currentSlideIndex = nextSlideIndex;
}
function prevSlide ( ) { var nextSlideIndex ; if ( currentSlideIndex === 0 ) { nextSlideIndex = slideArray . length - 1 ; } else { nextSlideIndex = currentSlideIndex - 1 ; } document . getElementById ( "slide" + nextSlideIndex ) . style . left = "-100%" ; document . getElementById ( "slide" + currentSlideIndex ) . style . left = 0 ; document . getElementById ( "slide" + nextSlideIndex ) . setAttribute ( "class" , "singleSlide slideInLeft" ) ; document . getElementById ( "slide" + currentSlideIndex ) . setAttribute ( "class" , "singleSlide slideOutRight" ) ; currentSlideIndex = nextSlideIndex ; }
Navigates to the previous slide in the list
Navigates to the previous slide in the list