jQuery Plugin For Showing The Percentage Of Your Page The Visitor Has Read

jQuery Plugin For Showing The Percentage Of Your Page The Visitor Has Read
File Size: 4.74KB KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

jQuery Percent Read is a simple jQuery plugin that shows your users what percentage of your web page they’ve read.

How to use it:

1. Include jQuery library and jQuery Percent Read on the page

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="../jquery.percentread.js"></script>

2. Create a container for showing the percentage

<span id="percent_read">0%</span>

3. Call the plugin and set the target area

<script>
$(document).ready(function() {
$("#percent_read").percentRead({
targetArea: "#body"
});
});
</script>

This awesome jQuery plugin is developed by harmesy. For more Advanced Usages, please check the demo page or visit the official website.