Skip to content

Instantly share code, notes, and snippets.

@baisong
Created June 6, 2013 20:05
Show Gist options
  • Save baisong/5724489 to your computer and use it in GitHub Desktop.
Save baisong/5724489 to your computer and use it in GitHub Desktop.
/**
* Custom jQuery effects for gking theme.
*
* Note: this (function ($) { ... }(jQuery); is a Drupal idiom, optional to use and FASTER :)
*/
(function ($) {
Drupal.behaviors.rosa = {
attach: function (context) {
//hides all dates on Works page in ". YYYY." format
if ($(.node-teaser).length == 0){
($(.node-teaser).replace(/. 2005.|. 2006.|. 2007.|. 2008.|. 2009.|. 2010.|. 2011.|. 2012.|/gi, ""));
}
//alert('Cogito ergo burrito');
//$('body').hide();
}
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment