{"id":21510609,"url":"https://github.com/svinkle/a11yclick","last_synced_at":"2025-03-17T15:21:04.713Z","repository":{"id":25225894,"uuid":"28650256","full_name":"svinkle/a11yclick","owner":"svinkle","description":"Easily handle keyboard click events on non semantic button elements.","archived":false,"fork":false,"pushed_at":"2019-01-13T16:56:14.000Z","size":7,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T23:06:14.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svinkle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-31T00:25:36.000Z","updated_at":"2023-01-29T09:47:16.000Z","dependencies_parsed_at":"2022-07-24T04:46:14.935Z","dependency_job_id":null,"html_url":"https://github.com/svinkle/a11yclick","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/svinkle%2Fa11yclick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svinkle%2Fa11yclick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svinkle%2Fa11yclick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svinkle%2Fa11yclick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svinkle","download_url":"https://codeload.github.com/svinkle/a11yclick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056428,"owners_count":20390720,"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-23T21:49:33.138Z","updated_at":"2025-03-17T15:21:04.693Z","avatar_url":"https://github.com/svinkle.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# a11yclick\n\nEasily handle keyboard click events on non semantic button elements.\n\nThis is a fork from the blog post entitled \"[Ridiculously easy trick for keyboard accessibility](http://www.karlgroves.com/2014/11/24/ridiculously-easy-trick-for-keyboard-accessibility/)\" by Karl Groves.\n\nThe script weighs in at 20 bytes gzipped and has no dependencies.\n\n## Installation\n\nInstall with [Bower](http://bower.io):\n\n```\nbower install --save a11yclick\n```\n\nAdd a ```script``` tag at the bottom of the page, before your application logic.\n\n```html\n\u003cscript src=\"a11yclick.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"app.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nWrap the event logic with a conditional statement, checking the return value of the a11yclick() function. Make sure to pass in the event object.\n\n```javascript\n$('#fake-button').on('click keydown', function(event) {\n    if (a11yClick(event)) {\n        // Event logic\n    }\n});\n```\n\n## Browser support\n\n* Google Chrome (latest)\n* Opera (latest)\n* Firefox 4+\n* Safari 5+\n* Internet Explorer 7+\n\n## License\n\nThis project and its source code is licensed under the [MIT](LICENSE.txt) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvinkle%2Fa11yclick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvinkle%2Fa11yclick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvinkle%2Fa11yclick/lists"}