Created
June 29, 2015 20:33
-
-
Save andreypelykh/beae7321483b3f4e194f to your computer and use it in GitHub Desktop.
modals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#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