Skip to content

Instantly share code, notes, and snippets.

@renzocastro
Created April 26, 2013 01:42
Show Gist options
  • Save renzocastro/5464594 to your computer and use it in GitHub Desktop.
Save renzocastro/5464594 to your computer and use it in GitHub Desktop.
JavaScript: Modulo 2 » Clase 2: jQuery I
// ;()();
;(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