Mint: A Fresh Look at your Site Minted
  1. 1 jQuery(function(){
  2. 2 jQuery(".sp-body.folded").hide();
  3. 3
  4. 4 jQuery(".sp-head").on('click', function(event){
  5. 5 $this = jQuery(this);
  6. 6 if($this.hasClass("unfolded")) {
  7. 7 $this.removeClass("unfolded");
  8. 8 $this.next().slideUp("fast");
  9. 9 $this.next().addClass("folded");
  10. 10 $this.prop('title', title.unfolded);
  11. 11 } else {
  12. 12 $this.addClass("unfolded");
  13. 13 $this.next().slideDown("fast");
  14. 14 $this.next().removeClass("folded");
  15. 15 $this.prop('title', title.folded);
  16. 16 }
  17. 17 });
  18. 18
  19. 19
  20. 20 jQuery(".spdiv").on('click', function(event){
  21. 21 $this = jQuery(this).closest("div.sp-body").prev();
  22. 22 if($this.hasClass("unfolded")) {
  23. 23 $this.removeClass("unfolded");
  24. 24 $this.next().slideUp("fast");
  25. 25 $this.next().addClass("folded");
  26. 26 $this.prop('title', title.unfolded);
  27. 27 }
  28. 28 });
  29. 29 });
  30. 30
Bookmark: javascript:location='http://shauninman.com/vs/?url='+escape(location)