assets/javascript/app.js
//   if the state is static, make it orignal or animated
if the state is static, make it orignal or animated
if the state is static make it orignal or animated
function makeAnimated() {
    var state = $(this).attr("data-state");
    var animateImage = $(this).attr("data-animate");
    var stillImage = $(this).attr("animated");
    if (state == "still") {
      $(this).attr("src", animateImage);
      $(this).attr("data-state", "animate");
    } else if (state == "animate") {
      $(this).attr("src", stillImage);
      $(this).attr("data-state", "still");
    }
  }
function makeAnimated ( ) { var state = $ ( this ) . attr ( "data-state" ) ; var animateImage = $ ( this ) . attr ( "data-animate" ) ; var stillImage = $ ( this ) . attr ( "animated" ) ; if ( state == "still" ) { $ ( this ) . attr ( "src" , animateImage ) ; $ ( this ) . attr ( "data-state" , "animate" ) ; } else if ( state == "animate" ) { $ ( this ) . attr ( "src" , stillImage ) ; $ ( this ) . attr ( "data-state" , "still" ) ; } }
if the state is static, make it orignal or animated
if the state is static make it orignal or animated