Million Dollar Project in 10 Mins

Some Software company billed TSA more than Million Dollar

by Abid Shaik

HTML

<img class="arrow left" src="https://upload.wikimedia.org/wikipedia/commons/6/6a/Orange_animated_left_arrow.gif" />
<img class="arrow right" src="https://upload.wikimedia.org/wikipedia/commons/9/92/Orange_animated_right_arrow.gif" />
<img class="clickMe" src="http://www.psdgraphics.com/wp-content/uploads/2009/07/push-button.jpg" />
<div id="r">
</div>
</div>

CSS

.arrow {
  display: none;
  width: 500px;
  height: 500px;
  margin: 0 auto; 
}

.clickMe {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

JavaScript

$(document).ready(function() {
  $(".clickMe").on("click", function() {
    var dir = Math.floor(Math.random() * 2);
    $(".arrow").hide();
    if (dir == 0) {
      $(".left").show().css("display", "block");
    } else {
      $(".right").show().css("display", "block");
    }
    $(".clickMe").hide();
    setTimeout('$(".clickMe").show(); $(".arrow").hide()', 2000);
  })
});