Skip to content

Commit

Permalink
enter and esc key functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
emmacunningham committed May 25, 2012
1 parent 26cb4a6 commit a0c3b0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hydra/templates/hydra/index.html
Expand Up @@ -328,6 +328,27 @@ <h1>{{ abouthead }}</h1>

</script>

<script type="text/javascript">
$(document).keyup(function(e) {
if (e.keyCode == 27) {
$('#aboutbox').animate({'top':'-200%'},0,function(){
$('#aboutoverlay').fadeOut('fast');
$('#footer').show(0);
$('#mobilemain').show(0);
});
$('#newsletterbox').animate({'top':'-200%'},500,function(){
$('#newsletteroverlay').fadeOut(0);
$('#newsletterboxclose,#newmobileboxclose,#signup').fadeOut(0);
});
$('#thanksbox').animate({'top':'-200%'},0,function(){
$('#thanksoverlay').hide(0);
$('#thanksclose').hide(0);
$('#mobilethanksclose,#signup').hide(0);
});
}
});
</script>

<script type="text/javascript">
$(function() {
$('#newsletteractivator,#nnewsletteractivator').click(function(){
Expand Down
Binary file modified static/.DS_Store
Binary file not shown.

0 comments on commit a0c3b0a

Please sign in to comment.