{"id":20461066,"url":"https://github.com/ericgj/accordion","last_synced_at":"2026-06-01T02:31:06.311Z","repository":{"id":138269721,"uuid":"9751050","full_name":"ericgj/accordion","owner":"ericgj","description":"Basic (vertical) accordion component","archived":false,"fork":false,"pushed_at":"2014-04-01T21:40:52.000Z","size":200,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T11:34:26.650Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-04-29T15:18:12.000Z","updated_at":"2014-04-03T18:31:22.000Z","dependencies_parsed_at":"2023-03-12T12:45:14.073Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/accordion","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ericgj/accordion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Faccordion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Faccordion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Faccordion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Faccordion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/accordion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Faccordion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33757790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-15T12:23:02.825Z","updated_at":"2026-06-01T02:31:06.294Z","avatar_url":"https://github.com/ericgj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Accordion\n\n  Basic (vertical) accordion component\n\n  \u003cimg alt=\"Example\" src=\"http://i.imgur.com/KF8uNcR.png\" /\u003e\n\n  See `test/index.html` for example usage.\n  \n## Installation\n\n    $ component install ericgj/accordion\n\n## Events\n\n  - `select(panel)`    when an accordion panel is selected\n  - `deselect(panel)`  when an accordion panel is deselected\n\n## API\n  \n### Accordion(el, options)\n\n  Creates a new `Accordion` bound to the given DOM element or selector.\n\n  It makes the following assumptions about the markup:\n  \n  1. The given element contains one or more [hAtom][hatom] entries. That is,\n  `div` or `article` elements matched by `.hentry`.\n\n  2. Each entry has an `.entry-title` element (again following hAtom),\n  which is used as the accordion header. Typically this would be an\n  `h3` etc, but could also be a `header` that contains several inline-\n  block elements, etc.\n\n  3. If you want a `caret` (CSS arrow), for convenience the built-in CSS\n  includes styles for this. Simply include a `\u003cspan class=\"caret\"\u003e\u003c/span\u003e`\n  within your `.entry-title` element.\n\n  The following options are available:\n\n  - `deselect {Boolean}`    allows collapse of selected panel (default true)\n  - `multiselect {Boolean}` allows expansion of more than one panel (default false)\n\n### Accordion#select(panel)\n\n  Programmatically select (expand) given panel\n\n### Accordion#deselect(panel)\n\n  Programmatically deselect (collapse) given panel\n\n### Accordion#deselectAll\n\n  Deselect all panels\n  \n\n## License\n\n  MIT\n\n\n[hatom]: http://microformats.org/wiki/hatom  \"hAtom Microformat Spec\"\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Faccordion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Faccordion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Faccordion/lists"}