Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. jQuery().ready(function(){
  2.  
  3. jQuery('.shelf_holder .more').hide();
  4.  
  5. jQuery('a.shelf_trigger').toggle(function() {
  6. shelf = jQuery(this); // storing scope for future use
  7.  
  8. // retract all the shelves
  9. jQuery('.shelf_holder').animate({height:6});
  10. // content back to show glimpse again
  11. jQuery('.shelf_holder ul').animate({bottom:100});
  12.  
  13. // roll out the selected shelf
  14. shelf.prev().animate({height:120});
  15. shelf.prev().find('ul').animate({bottom:0});
  16. // make more tag visible for pagination
  17. jQuery('.shelf_holder .more').fadeIn('fast');
  18. // stop link being followed
  19. return false;
  20.  
  21. }, function() {
  22. // Stuff to do every *even* time the element is clicked;
  23. //retract all shelves
  24. jQuery('.shelf_holder').animate({height:6});
  25. jQuery('.shelf_holder ul').animate({bottom:100});
  26. jQuery('.shelf_holder .more').fadeOut('fast');
  27. // roll out the selected shelf
  28. // shelf.prev().find('ul').animate({bottom:0});
  29. return false;
  30. });
  31.  
  32. });
Add Comment
Please, Sign In to add comment