{"id":20604084,"url":"https://github.com/ardean/jsfullscreen","last_synced_at":"2025-03-06T16:46:40.397Z","repository":{"id":57284369,"uuid":"80924711","full_name":"ardean/jsFullscreen","owner":"ardean","description":"WHATWG Fullscreen API Fallback","archived":false,"fork":false,"pushed_at":"2017-05-18T10:28:27.000Z","size":174,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T12:02:55.251Z","etag":null,"topics":["browser","events","fallback","fullscreen","fullscreen-api","fullscreen-api-fallback","fullscreen-fallback","html5-fullscreen","html5-fullscreen-api","javascript","jsfullscreen","whatwg","whatwg-fullscreen","whatwg-fullscreen-api","whatwg-org"],"latest_commit_sha":null,"homepage":"https://ardean.github.io/jsFullscreen/","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/ardean.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":"2017-02-04T14:32:06.000Z","updated_at":"2017-02-04T14:49:02.000Z","dependencies_parsed_at":"2022-09-16T22:41:47.329Z","dependency_job_id":null,"html_url":"https://github.com/ardean/jsFullscreen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardean%2FjsFullscreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardean%2FjsFullscreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardean%2FjsFullscreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardean%2FjsFullscreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardean","download_url":"https://codeload.github.com/ardean/jsFullscreen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250330,"owners_count":20096891,"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":["browser","events","fallback","fullscreen","fullscreen-api","fullscreen-api-fallback","fullscreen-fallback","html5-fullscreen","html5-fullscreen-api","javascript","jsfullscreen","whatwg","whatwg-fullscreen","whatwg-fullscreen-api","whatwg-org"],"created_at":"2024-11-16T09:20:43.450Z","updated_at":"2025-03-06T16:46:40.372Z","avatar_url":"https://github.com/ardean.png","language":"JavaScript","readme":"# jsFullscreen\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![License][license-image]][license-url]\n\n**WHATWG Fullscreen API Fallback**\n\n[Demo](https://ardean.github.io/jsFullscreen/)\n\n## Specification\n[Fullscreen API, WHATWG](https://fullscreen.spec.whatwg.org/)\n\n## Usage\n\nI suggest you to use [jspm](http://jspm.io/) as your package manager.\n\n```js\nimport Fullscreen from \"jsfullscreen\";\n\nconst fullscreen = new Fullscreen(document.body);\n\nfullscreen.on(\"change\", (isActive) =\u003e {\n  console.log(`fullscreen is ${isActive ? 'active' : 'not active'}`);\n});\n\nfullscreen.element.addEventListener(\"click\", () =\u003e {\n  fullscreen.requestFullscreen();\n});\n```\n\n### Directly in a browser\n\nPlease checkout the [index-dist.html](https://ardean.github.io/jsFullscreen/index-dist.html) file for direct usage in a browser.\n\n## API\n\n### Classes\n\n- _Fullscreen_\n  - **Constructor**(**Element** element) extends **[EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter)**\n  - **Members**\n    - _requestFullscreen()_ =\u003e **Promise**\n  - **Static Members**\n    - _exitFullscreen()_ =\u003e **Promise**\n  - **Properties**\n    - _element_ =\u003e **Element**\n    - _isActive_ =\u003e **Boolean**\n  - **Static Properties**\n    - _fullscreenElement_ =\u003e **Element**\n    - _isSupported_ / _fullscreenEnabled_ =\u003e **Boolean**\n  - **Events**\n    - _change_ / _fullscreenchange_ =\u003e (**Boolean** _isActive_, **Event** _e_)\n    - _error_ / _fullscreenerror_ =\u003e (**Error** _err_, **Event** _e_)\n    - _unsupported_ =\u003e ()\n\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/jsfullscreen.svg\n[npm-url]: https://npmjs.org/package/jsfullscreen\n[downloads-image]: https://img.shields.io/npm/dm/jsfullscreen.svg\n[downloads-url]: https://npmjs.org/package/jsfullscreen\n[license-image]: https://img.shields.io/npm/l/jsfullscreen.svg\n[license-url]: LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardean%2Fjsfullscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardean%2Fjsfullscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardean%2Fjsfullscreen/lists"}