At post :
Reading time: <span class="eta"></span> (<span class="words"></span> words)
In the footer:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="http://michael-lynch.github.io/reading-time/js/readingTime.min.js"></script>
<script>
$(function() {
$('#Blog1').readingTime({
wordCountTarget: '.words',
});
});
</script>
<script src="http://michael-lynch.github.io/reading-time/js/readingTime.min.js"></script>
<script>
$(function() {
$('#Blog1').readingTime({
wordCountTarget: '.words',
});
});
</script>
Source: https://github.com/michael-lynch/reading-time
No comments:
Post a Comment