Skip to content

Instantly share code, notes, and snippets.

@arfon
Created March 14, 2012 01:31
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 arfon/2033237 to your computer and use it in GitHub Desktop.
Save arfon/2033237 to your computer and use it in GitHub Desktop.
<div id="into_the_lab">
<div class="arrow"></div>
<p><%= link_to "Go into the lab", "http://ec2-50-17-36-93.compute-1.amazonaws.com", :target => "_blank" %></p>
</div>
<script>
// Make the whole div clickable
$("#into_the_lab").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment