Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Trigger projInfo when fa-expand is clicked
- var faIcon = $('.fa-expand');
- var faClose = $('.fa-times');
- faIcon.on('click', function() {
- $(this).find('.project-info').fadeIn( function() {
- $('html').one('click', function() {
- $(".project-info").fadeOut();
- });
- $('.project-info').on('click', function(e) {
- e.stopPropagation();
- });
- });
- });
- faClose.on('click', function(e) {
- projInfo.fadeOut();
- e.stopPropagation();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement