Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery().ready(function(){
- jQuery('.shelf_holder .more').hide();
- jQuery('a.shelf_trigger').toggle(function() {
- shelf = jQuery(this); // storing scope for future use
- // retract all the shelves
- jQuery('.shelf_holder').animate({height:6});
- // content back to show glimpse again
- jQuery('.shelf_holder ul').animate({bottom:100});
- // roll out the selected shelf
- shelf.prev().animate({height:120});
- shelf.prev().find('ul').animate({bottom:0});
- // make more tag visible for pagination
- jQuery('.shelf_holder .more').fadeIn('fast');
- // stop link being followed
- return false;
- }, function() {
- // Stuff to do every *even* time the element is clicked;
- //retract all shelves
- jQuery('.shelf_holder').animate({height:6});
- jQuery('.shelf_holder ul').animate({bottom:100});
- jQuery('.shelf_holder .more').fadeOut('fast');
- // roll out the selected shelf
- // shelf.prev().find('ul').animate({bottom:0});
- return false;
- });
- });
Add Comment
Please, Sign In to add comment