{"id":19157129,"url":"https://github.com/kinduff/readpercent","last_synced_at":"2026-06-19T19:03:50.153Z","repository":{"id":16104075,"uuid":"18849071","full_name":"kinduff/readpercent","owner":"kinduff","description":"Simple jQuery plugin to get the percent of a div scrolled inside the viewport. ","archived":false,"fork":false,"pushed_at":"2014-04-17T00:07:15.000Z","size":656,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T20:12:56.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kinduff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-16T17:31:10.000Z","updated_at":"2022-08-25T00:43:57.000Z","dependencies_parsed_at":"2022-09-02T14:25:47.746Z","dependency_job_id":null,"html_url":"https://github.com/kinduff/readpercent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Freadpercent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Freadpercent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Freadpercent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Freadpercent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kinduff","download_url":"https://codeload.github.com/kinduff/readpercent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240241802,"owners_count":19770463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T08:38:25.316Z","updated_at":"2026-06-16T05:30:16.051Z","avatar_url":"https://github.com/kinduff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"readpercent.js\n===========\n\n## Welcome\n\nThis is a jQuery plugin that offers an easy way to show reading progress to your users. There are a few ways to get the percentage value. Make sure to checkout the demo inside this page.\n\n## Demo\n\n[Check it out](http://kinduff.github.io/readpercent/).\n\n## Install\n\nMake sure to include jQuery in your page.\n\n```html\n\u003cscript src=\"jquery.min.js\"\u003e\u003c/script\u003e\n```\n\nAnd then include **readpercent.js**\n\n```html\n\u003cscript src=\"js/readpercent-min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nWorks as a normal jQuery plugin. \n\n### Get raw percent (0-100)\n\n```javascript\n$('#content').readpercent();\n```\n\n### Get rounded percent (0-100)\n\n```javascript\n$('#content').readpercent(true);\n```\n\nI recommend you to append the previous methods to a `$(window).scroll` event to get live data.\n\n### Fill HTML5 Progress Element\n\n```javascript\n$(\"#content\").readpercent('#progress');\n```\n\n### Change width (%) of an element\n\n```javascript\n$(\"#content\").readpercent('#container', '.bar');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinduff%2Freadpercent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinduff%2Freadpercent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinduff%2Freadpercent/lists"}