This code counts the words within in HTML documents providing summaries for paragraphs, sections, articles and the body. Summaries are added to elements using HTML5 data attributes under the name
- Add jsWordCount.js to any HTML5 document.
- Add jsWordCount.css to the docmument.
- Load the document.
- Observe that word counts are added to elements.
The sample cascading style sheet uses this data-jsWordCount value to augment on-screen content using the :before pseudo selector.
Free Software: see [license.txt][license.txt] Copyright (c) 2011 Rich Boakes http://boakes.org
[license]: jsWordCount/license.txt "MIT License (GPL v3 compatible) [modal]: http://example.com/ "Modal Dialogue explained on Wikipedia"