{"id":28383839,"url":"https://github.com/cedaro/skip-link-focus","last_synced_at":"2025-06-25T22:31:38.469Z","repository":{"id":29434323,"uuid":"32970354","full_name":"cedaro/skip-link-focus","owner":"cedaro","description":"Make \"skip to content\" links more accessible.","archived":false,"fork":false,"pushed_at":"2022-03-24T16:45:50.000Z","size":29,"stargazers_count":12,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-05-30T08:14:59.283Z","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":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-27T05:57:02.000Z","updated_at":"2023-01-17T15:59:02.000Z","dependencies_parsed_at":"2022-09-13T17:01:54.377Z","dependency_job_id":null,"html_url":"https://github.com/cedaro/skip-link-focus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cedaro/skip-link-focus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fskip-link-focus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fskip-link-focus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fskip-link-focus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fskip-link-focus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedaro","download_url":"https://codeload.github.com/cedaro/skip-link-focus/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fskip-link-focus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261962403,"owners_count":23236940,"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":"2025-05-30T07:38:07.400Z","updated_at":"2025-06-25T22:31:38.461Z","avatar_url":"https://github.com/cedaro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Skip Link Focus\n\nMake \"skip to content\" links more accessible.\n\n## Usage\n\nInclude `skip-link-focus.js` above the closing `\u003c/body\u003e` tag and initialize it:\n\n```html\n\u003cscript src=\"skip-link-focus.js\"\u003e\u003c/script\u003e\n\u003cscript\u003eskipLinkFocus.init();\u003c/script\u003e\n```\n\nOr if you're using Browserify:\n\n```js\nrequire( 'skip-link-focus' ).init();\n```\n\n`init()` takes an optional `options` argument:\n- `options.selector` {String} Specifies a DOM selector where skip links are to be found. This is used to handle an edge case where, if a hash is present in the URL on initial load (or refresh), clicking the skip link wouldn't actually fire a hashchange event, making the skip link unusable. Usage example: `init( { selector: '.generic-skip-link-class' } )`. Defaults to `.skip-link`.\n\n## Background\n\nMakes \"skip to content\" links work correctly in IE9, Chrome, and Opera to improve accessibility.\n\nInitial code and background can be found here:  \nhttp://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/\n\nFurther improvements were made in the [*_s* WordPress theme](https://github.com/Automattic/_s) by Automattic.\n\nThis module is based on the *_s* implementation with the following enhancements:\n\n* Implemented the [UMD pattern](https://github.com/umdjs/umd) for use as an AMD, CommonJS, or stand-alone module.\n* Added a skip link click handler to fix cases when a `hashchange` event isn't fired because the address bar already has the corresponding hash.\n* Split the functionality into methods to provide a simple API.\n\nAdditional reading on skip link accessibility:\nhttps://www.bignerdranch.com/blog/web-accessibility-skip-navigation-links/\n\n## Testing\n\nTo manually test the script in a browser of your choice, run `npm test` and head to `http://localhost:5000/test/`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedaro%2Fskip-link-focus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedaro%2Fskip-link-focus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedaro%2Fskip-link-focus/lists"}