7. The o Shortcut


#1


https://www.codecademy.com/courses/web-beginner-en-4hxyb/0/7?content_from=make-an-interactive-website%3Ajquery-events#

<7. The o Shortcut>


var main = function() {
   $('.article').click(function() {
    $('.article').removeClass('current');
    $('.description').hide();
    
    $(this).addClass('current');
    $(this).children('.description').show();
    
    $(document).keypress(function(event) { 
     if(event.which === 111) {
      $('.current').children('.description').toggle();
     }
    });
    
});
};





$(document).ready(main);


#2

What is your question?