{"id":21597276,"url":"https://github.com/spheresoftware/jquery_rating","last_synced_at":"2025-03-18T11:22:09.157Z","repository":{"id":32764353,"uuid":"36355788","full_name":"SphereSoftware/jquery_rating","owner":"SphereSoftware","description":null,"archived":false,"fork":false,"pushed_at":"2015-06-05T00:44:30.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T17:36:44.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"matrix-org/gomatrix","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SphereSoftware.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":"2015-05-27T09:06:06.000Z","updated_at":"2018-09-27T12:48:17.000Z","dependencies_parsed_at":"2022-09-12T06:41:01.808Z","dependency_job_id":null,"html_url":"https://github.com/SphereSoftware/jquery_rating","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/SphereSoftware%2Fjquery_rating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SphereSoftware%2Fjquery_rating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SphereSoftware%2Fjquery_rating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SphereSoftware%2Fjquery_rating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SphereSoftware","download_url":"https://codeload.github.com/SphereSoftware/jquery_rating/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244208607,"owners_count":20416110,"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-24T18:08:37.032Z","updated_at":"2025-03-18T11:22:09.136Z","avatar_url":"https://github.com/SphereSoftware.png","language":"JavaScript","readme":"# Rating\njQuery plugin to display rating component \n\n## Installation\nInclude script after the jQuery library:\n\n```html\n\u003cscript src=\"/path/to/jquery.rating.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nCreate an html element on the page\n\n```html\n\u003cdiv class=\"rating_element\"\u003e\u003c/div\u003e\n```\nInitialize rating component when scripts loaded:\n```javascript\n$('.rating_element').rating();\n```\n\nThis will create rating component with default settings.\n\n## Customization\nPlugin supports next options:\n\n```javascript \n$('.rating_element').rating({\n    orientation: 'horizontal',\n    width: 300, \n    height: 30,\n    scale: 1.5,\n    grades: ['5','4','3','2','1'],\n    grade: 1,\n    onGradeChanged: function () {}\n  });\n```\n\n```javascript\norientation: 'horizontal/vertical' // define orientation of the component\n```\n\n```javascript\nwidth: 200 // define width of maximized component\nheight: 20 // define height of maximized component\n```\n\n```javascript\nscale: 1.5 // define how many times minified component will be related to maximized component. eg. 300/1.5 = 200\n```\n\n```javascript\ngrades: ['great', 'good', 'better', 'woops', 'bad'] // define grades that will be displayed on the page.\n```\n\n```javascript\ngrade: 2 // Define at which grade component will be initialized. eg. 2 =\u003e good\n```\n\n```javascript\nonGradeChanged: function () {} // callback to be called when user confirm selection of grade (click on grade in maximized view)\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspheresoftware%2Fjquery_rating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspheresoftware%2Fjquery_rating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspheresoftware%2Fjquery_rating/lists"}