{"id":24836724,"url":"https://github.com/boscop-fr/explicit","last_synced_at":"2025-10-14T10:31:06.760Z","repository":{"id":96897917,"uuid":"470517399","full_name":"boscop-fr/explicit","owner":"boscop-fr","description":"Turn title attributes into tooltips to make them accessible on hover and focus","archived":false,"fork":false,"pushed_at":"2024-04-18T09:11:34.000Z","size":240,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-30T12:26:16.911Z","etag":null,"topics":["a11y","accessibility","title","tooltip"],"latest_commit_sha":null,"homepage":"https://explicit.empreintedigitale.fr","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/boscop-fr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-16T09:38:14.000Z","updated_at":"2025-01-27T16:54:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc7ec575-7b9c-4ab1-ad88-18c1327249ad","html_url":"https://github.com/boscop-fr/explicit","commit_stats":null,"previous_names":["ligeo-dev/explicit","boscop-fr/explicit"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boscop-fr%2Fexplicit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boscop-fr%2Fexplicit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boscop-fr%2Fexplicit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boscop-fr%2Fexplicit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boscop-fr","download_url":"https://codeload.github.com/boscop-fr/explicit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236464800,"owners_count":19152979,"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":["a11y","accessibility","title","tooltip"],"created_at":"2025-01-31T05:03:50.829Z","updated_at":"2025-10-14T10:31:01.414Z","avatar_url":"https://github.com/boscop-fr.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# explicit\n\nTurn title attributes into tooltips to make them accessible on hover and focus.\n\n## Usage\n\n### CDN\n\nYou can setup explicit in the blink of an eye by using a CDN like unpkg:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@empreinte-digitale/explicit@latest/dist/explicit.css\" /\u003e\n\u003cscript src=\"https://unpkg.com/@empreinte-digitale/explicit@latest/dist/explicit.js\"\u003e\u003c/script\u003e\n```\n\nBy default, explicit will run on `\u003cbody /\u003e` and all of its descendents.\nIf you need to set it up on another element, mark it with this attribute:\n\n```html\n\u003cdiv data-explicit-container\u003e\n  \u003c!-- some elements with title attributes --\u003e\n\u003c/div\u003e\n```\n\nYou can also configure a duration after which a tooltip will close when losing focus.\nThis delay allows the user to jump from an element to its tooltip if there is some space between them.\n\n```html\n\u003cdiv data-explicit-container data-explicit-delay=\"500\"\u003e\n  \u003c!-- some elements with title attributes --\u003e\n\u003c/div\u003e\n```\n\nYou may want to avoid showing tooltips on specific elements.\nThis can be done with the `data-explicit-ignore` attribute:\n\n```html\n\u003ca href=\"…\" title=\"…\" data-explicit-ignore\u003e\u003c/a\u003e\n```\n\nNote that this can also be used to discard all elements inside a tag:\n\n```html\n\u003ca href=\"…\" title=\"Tooltip will be shown\"\u003e\u003c/a\u003e\n\u003cdiv data-explicit-ignore\u003e\n  \u003ca href=\"…\" title=\"Tooltip will not be shown\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n```\n\n### NPM\n\nJust install the module and use it from your code:\n\n```sh\nnpm i @empreinte-digitale/explicit\n```\n\n```js\nimport {setup} from '@empreinte-digitale/explicit';\n\nsetup({\n  // options\n});\n```\n\nSee [here for available options](https://github.com/empreinte-digitale/explicit/blob/main/src/setup.ts#L3)\nand [here for defaults](https://github.com/empreinte-digitale/explicit/blob/main/src/setup.ts#L13).\n\n`setup()` returns two functions for you to control tooltips programmatically:\n\n```js\nconst {show, hide} = setup();\n\n// shows a tooltip on the given element\nshow(document.querySelector('[title]'))\n\n// hides any open tooltip\nhide();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboscop-fr%2Fexplicit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboscop-fr%2Fexplicit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboscop-fr%2Fexplicit/lists"}