{"id":20525545,"url":"https://github.com/code-lts/jquery-fullscreen-plugin","last_synced_at":"2025-12-12T03:19:31.120Z","repository":{"id":2969945,"uuid":"3985017","full_name":"code-lts/jquery-fullscreen-plugin","owner":"code-lts","description":"This jQuery plugin provides a simple to use mechanism to control the new fullscreen mode of modern browsers","archived":false,"fork":false,"pushed_at":"2020-05-29T22:07:04.000Z","size":8656,"stargazers_count":342,"open_issues_count":14,"forks_count":143,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-08-09T09:02:11.598Z","etag":null,"topics":["fullscreen-mode","javascript","jquery","jquery-fullscreen-plugin","jquery-plugin"],"latest_commit_sha":null,"homepage":"https://code-lts.github.io/jquery-fullscreen-plugin/demo/","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/code-lts.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":"2012-04-10T17:30:48.000Z","updated_at":"2025-06-22T19:08:49.000Z","dependencies_parsed_at":"2022-08-30T06:11:25.657Z","dependency_job_id":null,"html_url":"https://github.com/code-lts/jquery-fullscreen-plugin","commit_stats":null,"previous_names":["kayahr/jquery-fullscreen-plugin"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/code-lts/jquery-fullscreen-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lts%2Fjquery-fullscreen-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lts%2Fjquery-fullscreen-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lts%2Fjquery-fullscreen-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lts%2Fjquery-fullscreen-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-lts","download_url":"https://codeload.github.com/code-lts/jquery-fullscreen-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lts%2Fjquery-fullscreen-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27675424,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"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":["fullscreen-mode","javascript","jquery","jquery-fullscreen-plugin","jquery-plugin"],"created_at":"2024-11-15T23:06:06.651Z","updated_at":"2025-12-12T03:19:31.101Z","avatar_url":"https://github.com/code-lts.png","language":"JavaScript","readme":"jQuery Fullscreen Plugin\n========================\n\n[![npm version](https://badge.fury.io/js/jquery-fullscreen-plugin.svg)](https://badge.fury.io/js/jquery-fullscreen-plugin)\n\n[![CDNJS](https://img.shields.io/cdnjs/v/jquery-fullscreen-plugin.svg)](https://cdnjs.com/libraries/jquery-fullscreen-plugin)\n\n\nDescription\n-----------\n\nThis jQuery plugin provides a simple to use mechanism to control the\nnew fullscreen mode of modern browsers. Currently only newer Webkit-based\nbrowsers (Like Chrome and Safari), Firefox and IE11+ provide this new \nfullscreen feature.\n\n\nUsage\n-----\n\n### Entering Fullscreen mode\n\nYou can either switch the whole page or a single HTML element to fullscreen\nmode:\n```js\n    $(document).fullScreen(true);\n    $(\"#myVideo\").fullScreen(true);\n```\nThis only works when the code was triggered by a user interaction (For\nexample a onclick event on a button). Browsers don't allow entering\nfullscreen mode without user interaction.\n\n\n### Exiting Fullscreen mode\n\nFullscreen mode is always exited via the document but this plugin allows\nit also via any HTML element. The owner document of the selected HTML \nelement is used then:\n```js\n    $(document).fullScreen(false);\n    $(\"#myVideo\").fullScreen(false);\n```\n\n### Querying Fullscreen mode\n\nSimply pass no argument to the `fullScreen` method to query the current\nstate.  The method returns the current fullscreen element (or true if\nbrowser doesn't support this) when fullscreen mode is active, `false` if not\nactive or `null` when the browser does not support fullscreen mode at all. \nSo you can use this method also to display a fullscreen button only when the\nbrowser supports fullscreen mode:\n```js\n    $(\"#fullscreenButton\").toggle($(document).fullScreen() != null))\n```\n\n### Toggling Fullscreen mode\n\nThe plugin provides another method for simple fullscreen mode toggling:\n```js\n    $(document).toggleFullScreen();\n```\n\n### Notifications\n\nThe plugin triggers a `fullscreenchange` event on the document when the \nfullscreen mode has been changed. If the browser rejected a fullscreen \nstate change then the plugin triggers a `fullscreenerror` event on the\ndocument. Example:\n```js\n    $(document).bind(\"fullscreenchange\", function() {\n        console.log(\"Fullscreen \" + ($(document).fullScreen() ? \"on\" : \"off\"));\n    });\n\n    $(document).bind(\"fullscreenerror\", function() {\n        alert(\"Browser rejected fullscreen change\");\n    });\n```\n\n### Fullscreen iframe\n\nEntering fullscreen mode from within an iframe is not allowed by default but\nit can be enabled with a few attributes on the iframe:\n```html\n    \u003ciframe src=\"iframe.html\" webkitAllowFullScreen mozAllowFullScreen allowFullScreen\u003e\n    \u003c/iframe\u003e\n```\n### Known issues\n\n* In IE 11 an empty page is displayed when entering fullscreen from within an\n  iframe. No idea why. Any help is welcome.\n* In Safari (At least in Safari 7) no keyboard input is allowed in fullscreen\n  mode.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lts%2Fjquery-fullscreen-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-lts%2Fjquery-fullscreen-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lts%2Fjquery-fullscreen-plugin/lists"}