Created
April 26, 2013 01:42
-
-
Save renzocastro/5464594 to your computer and use it in GitHub Desktop.
JavaScript: Modulo 2 » Clase 2: jQuery I
This file contains hidden or 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
// ;()(); | |
;(function($){ | |
$(document).ready( function(){ | |
console.log('READY!'); | |
$( '#popup1' ).css({ | |
display: 'none' | |
}); | |
$( '#popup-btn' ).click(function(){ | |
$('#popup1').css({ | |
display: 'block' | |
}); | |
}); | |
// -- | |
$('.popup button').click(function(){ | |
$( '#popup1' ).css({ | |
display: 'none' | |
}); | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment