Skip to content

Instantly share code, notes, and snippets.

@krutz27
Created October 4, 2013 13:27
Show Gist options
  • Save krutz27/6825887 to your computer and use it in GitHub Desktop.
Save krutz27/6825887 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($){
$("h3").each(function(){
if ($(this).text().length > 30) {
$(this).text($(this).text().substr(0, 27));
$(this).append('...');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment