{"id":23461052,"url":"https://github.com/jsilvermist/fullscreen-api","last_synced_at":"2025-07-26T17:11:39.639Z","repository":{"id":57122481,"uuid":"134020039","full_name":"jsilvermist/fullscreen-api","owner":"jsilvermist","description":"A modular Fullscreen API interface","archived":false,"fork":false,"pushed_at":"2019-06-28T02:09:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T03:54:43.331Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsilvermist.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}},"created_at":"2018-05-19T01:44:17.000Z","updated_at":"2019-06-28T02:09:44.000Z","dependencies_parsed_at":"2022-08-24T14:59:28.936Z","dependency_job_id":null,"html_url":"https://github.com/jsilvermist/fullscreen-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Ffullscreen-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Ffullscreen-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Ffullscreen-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Ffullscreen-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsilvermist","download_url":"https://codeload.github.com/jsilvermist/fullscreen-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514220,"owners_count":21116911,"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-12-24T07:28:43.265Z","updated_at":"2025-04-12T04:19:48.728Z","avatar_url":"https://github.com/jsilvermist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fullscreen API Interface\n========================\n\nA modular Fullscreen API interface (mind the double 'interface') that can be\nused without interfering with other potential polyfills added at a global level.\n\n[More information about the Fullscreen API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API).\n\n## Installation\n\n```sh\nnpm install --save @jsilvermist/fullscreen-api\n```\n\n## Usage\n\nYou can use the default import to import all methods using simplified names:\n\n```javascript\nimport fullscreen from '@jsilvermist/fullscreen-api';\n\nfullscreen.enabled;\nfullscreen.element;\nfullscreen.request(targetElement);\nfullscreen.exit();\n```\n\nOr you can import individual functions based on w3 api names:\n\n```javascript\nimport { fullscreenEnabled, fullscreenElement, requestFullscreen, exitFullscreen } from '@jsilvermist/fullscreen-api';\n\nfullscreenEnabled;\nfullscreenElement;\nrequestFullscreen(targetElement);\nexitFullscreen();\n```\n\nTo maintain encapsulation and prevent side effects, there are 2 listeners provided for you to add callbacks to:\n\n```javascript\nfunction handleChange() {...}\nfunction handleError() {...}\n\n\u003cfullscreen.addListener|addFullscreenListener\u003e('change', handleChange);\n\u003cfullscreen.addListener|addFullscreenListener\u003e('error', handleError);\n\n\u003cfullscreen.removeListener|removeFullscreenListener\u003e('change', handleChange);\n\u003cfullscreen.removeListener|removeFullscreenListener\u003e('error', handleError);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvermist%2Ffullscreen-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsilvermist%2Ffullscreen-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvermist%2Ffullscreen-api/lists"}