Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement