Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created July 28, 2015 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codigoconjuan/02ccd1badf5f375df005 to your computer and use it in GitHub Desktop.
Save codigoconjuan/02ccd1badf5f375df005 to your computer and use it in GitHub Desktop.
<section id="screenshots">
<h1 class="text-center">Screenshots</h1>
<div class="separator"></div>
<div class="container">
<div class="row">
<div class="col-xs-4">
<a href="#modal" data-toggle="modal" data-image-url="img/tickets.png">
<img src="img/tickets.png" class="img-responsive anima1">
</a>
</div> <!-- ./col-sm-4-->
<div class="col-xs-4">
<a href="#modal" data-toggle="modal" data-image-url="img/points.png">
<img src="img/points.png" class="img-responsive anima2">
</a>
</div>
<div class="col-xs-4">
<a href="#modal" data-toggle="modal" data-image-url="img/trailers.png">
<img src="img/trailers.png" class="img-responsive anima3">
</a>
</div>
</div> <!-- ./row -->
</div> <!-- ./container -->
<div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledy="myModalLabel"
aria-hidden=true>
<div class="modal-body">
<img src="#">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</section> <!-- #/screenshots -->
$('section#screenshots a').on('click',function() {
$('#modal img').attr('src', $(this).attr('data-image-url') );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment