Skip to content

Instantly share code, notes, and snippets.

@salimhb
Created February 27, 2012 11:46
Show Gist options
  • Save salimhb/1923194 to your computer and use it in GitHub Desktop.
Save salimhb/1923194 to your computer and use it in GitHub Desktop.
showoff copy classes from .content to its parent .slide
$(document).bind("showoff:loaded", function (event) {
$('.content').each( function(index){
$(this).parents('.slide').addClass($(this)[0].className).removeClass('content');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment