Last active
December 31, 2015 05:49
-
-
Save skmp/7943288 to your computer and use it in GitHub Desktop.
Summaries by using my fork of textteaser!
This file contains hidden or 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
// Open the debug tools | |
// load the function using | |
// This requires the target site to have jquery loaded as $ | |
$('<script src="https://rawgithub.com/skmp/textteaser/master/tease.js"></script>').appendTo('body'); | |
//Use directly from console | |
//(replace with proper selectors for your page) | |
tease($('.title-selector').text(), $('.content-selector').text()) |
This file contains hidden or 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
<!-- Load after jquery --> | |
<script src="https://rawgithub.com/skmp/textteaser/master/tease.js"></script> | |
<!-- .... --> | |
<script> | |
tease($('.title-selector').text(), $('.content-selector').text()) | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment