Skip to content

Instantly share code, notes, and snippets.

@andreypelykh
Created June 29, 2015 20:33
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 andreypelykh/beae7321483b3f4e194f to your computer and use it in GitHub Desktop.
Save andreypelykh/beae7321483b3f4e194f to your computer and use it in GitHub Desktop.
modals
$('#circles .open-modal').click(function(e){
e.stopImmediatePropagation();
$('#circles .modal:visible').fadeOut();
$(this).next('.modal').fadeIn();
});
$('#circles .close').click(function(){
$(this).parent('.modal').fadeOut();
})
$("body").click(function(e) {
$('#circles .modal:visible').fadeOut();
});
$('#circles .modal').click(function(e){
e.stopImmediatePropagation();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment