Last active
August 29, 2015 14:16
-
-
Save loulou2u/edb290bd1280fd6bee31 to your computer and use it in GitHub Desktop.
shorten summary with dotdotdot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" language="javascript"> | |
$(document).ready(function() { | |
//indicate the class or id to apply the dotdotdot function | |
$(".events_summary").dotdotdot({ | |
//configuration goes here | |
ellipsis: '... ', | |
wrap: 'word' | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment