Last active
December 28, 2015 20:29
-
-
Save jonathanstark/7557823 to your computer and use it in GitHub Desktop.
TechCrunchblog post: readmorify
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
// Initialize any "read more" elements | |
$('.press-release').readmorify({ | |
buttons: { | |
more: '<p class="align-center text-btn read-more"><a href="#">Read more</a></p>', | |
less: '<p class="align-center text-btn read-less"><a href="#">Read less</a></p>' | |
}, | |
threshold: 280, | |
duration: 1000 // milliseconds | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment