{"id":24030480,"url":"https://github.com/callmecavs/maximize.js","last_synced_at":"2025-04-19T11:41:37.289Z","repository":{"id":57292753,"uuid":"50397179","full_name":"callmecavs/maximize.js","owner":"callmecavs","description":"A tiny wrapper for cross-browser requestFullscreen.","archived":false,"fork":false,"pushed_at":"2016-02-04T18:28:23.000Z","size":8,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T13:43:53.232Z","etag":null,"topics":["fullscreen"],"latest_commit_sha":null,"homepage":"","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/callmecavs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-01-26T02:30:38.000Z","updated_at":"2020-01-13T21:14:44.000Z","dependencies_parsed_at":"2022-08-27T16:41:11.518Z","dependency_job_id":null,"html_url":"https://github.com/callmecavs/maximize.js","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/callmecavs%2Fmaximize.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fmaximize.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fmaximize.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fmaximize.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callmecavs","download_url":"https://codeload.github.com/callmecavs/maximize.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685294,"owners_count":21310577,"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":["fullscreen"],"created_at":"2025-01-08T17:44:17.620Z","updated_at":"2025-04-19T11:41:37.264Z","avatar_url":"https://github.com/callmecavs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maximize.js\n\n[![Maximize.js on NPM](https://img.shields.io/npm/v/maximize.js.svg)](https://www.npmjs.com/package/maximize.js)\n\nA tiny wrapper for cross-browser requestFullscreen (not the entire [Fullscreen API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API)).\n\n## Usage\n\nMaximize was developed with a modern JavaScript workflow in mind. To use it, it's recommended you have a build system in place that can transpile ES6, and bundle modules. For a minimal boilerplate that does so, check out [outset](https://github.com/callmecavs/outset).\n\nFollow these steps to get started:\n\n* [Install](#install)\n* [Call](#call)\n\n## Install\n\nUsing NPM, install Maximize.js, and add it to your `package.json` dependencies.\n\n```\n$ npm install maximize.js --save\n```\n\n## Call\n\nSimply import Maximize, then call it.\n\n* **Passed one element:** clicking the element will _fullscreen the browser_\n* **Passed two elements:** clicking the first element will _fullscreen the second element_\n* **Passed two elements, and a callback:**: clicking the first element will _fullscreen the second_, then the callback will be fired\n\n```es6\n// import Maximize\nimport maximize from 'maximize.js'\n\n// clicking .button will fullscreen the browser\n// event.preventDefault will be called if .button is an \u003ca\u003e tag\nmaximize(document.querySelector('.button'))\n\n// clicking .toggle will fullscreen .video\nmaximize(document.querySelector('.toggle'), document.querySelector('.video'))\n\n// clicking .toggle will fullscreen .video, then fire the callback\nmaximize(document.querySelector('.toggle'), document.querySelector('.video'), () =\u003e {\n  // ...\n})\n```\n\n## License\n\nMIT. © 2016 Michael Cavalea\n\n[![Built With Love](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmecavs%2Fmaximize.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallmecavs%2Fmaximize.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmecavs%2Fmaximize.js/lists"}