document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. jQuery(document).ready(function(){
  2. var
  3.   speed = 600,  // animation speed
  4.   $wall = jQuery(\'#content\').find(\'.tobemasoned .view-content\')
  5. ;
  6.  
  7. $wall.masonry({
  8.   columnWidth: 172,
  9.   // only apply masonry layout to visible elements
  10.   itemSelector: \'.views-row:not(.invis)\',
  11.   animate: true,
  12.   animationOptions: {
  13.     duration: speed,
  14.     queue: false
  15.   }
  16. });
  17.  
  18. jQuery(\'.view-header a\').click(function(){
  19.   var colorClass = \'.\' + jQuery(this).attr(\'class\');
  20.  
  21.   if(colorClass==\'.all\') {
  22.     // show all hidden boxes
  23.     $wall.children(\'.invis\')
  24.       .toggleClass(\'invis\').fadeIn(speed);
  25.   } else {
  26.     // hide visible boxes
  27.     $wall.children().not(colorClass).not(\'.invis\')
  28.       .toggleClass(\'invis\').fadeOut(speed);
  29.     // show hidden boxes
  30.     $wall.children(colorClass+\'.invis\')
  31.       .toggleClass(\'invis\').fadeIn(speed);
  32.   }
  33.   $wall.masonry();
  34.  
  35.   return false;
  36. });
  37.  
  38. jQuery(\'#titleButton\').click(function(){
  39.    jQuery(".views-field-title").slideToggle(speed, function() { $wall.masonry(); });
  40.    return false;
  41.    });
  42.  
  43. jQuery(\'#postDate\').click(function(){
  44.    jQuery(".views-field-created").slideToggle(speed, function() { $wall.   masonry(); });
  45.    return false;
  46.    });
  47. });
');