Comments (2)
Could I suggest redoing your example so that it doesn't use React? Examples are so often informal documentation for JS libraries and seeing a block of minified script is uninspiring.
At any rate, it's great (for you) that you've completely adopted ES6 package bundling and committed to the transpiling ecosystem, but for the vast majority of web devs this stuff is essentially gibberish and you could reduce pain for these people by just providing a version that isn't encumbered by the need to learn a mountain of concepts to fix what is supposed to be a simple problem.
For @l-g-dev and anyone else still paying attention, this is what you're looking for.
https://gist.github.com/pjforde1978/4545ac76957437d9b6b0e420b70410ee
Thanks so much for building and distributing this!
from fscreen.
It's written in JS, but needs to be transpiled to run in the browser. Currently it's meant to included in a JS project (that would bundle it) and is not available as a script on the window. If you're interested you can make a PR to the build setup to generate a dist
version which would be automatically served from https://unpkg.com/fscreen/ and available on the window. It would probably make sense to use Rollup for this https://github.com/rollup/rollup
from fscreen.
Related Issues (19)
- Not working on Safari iOS HOT 5
- how to give custom message on full screen dialog like youtube HOT 1
- Provide indication of fullscreen support HOT 2
- return Promise from requestFullscreen() HOT 2
- fullscreenchange on Element not available in fscreen HOT 4
- how to trigger full screen mode after a screen orientation change HOT 1
- Fullscreen not working in Chrome iOS, should it? HOT 3
- Black screen on Safari Desktop 12.4 and 13.1 HOT 2
- Chrome android exits fullscreen when keyboard is open. HOT 1
- support for options in requestFullscreen() HOT 2
- Safari support HOT 1
- Enabling fullscreen triggers a "visibilitychange" event on safari HOT 1
- `requestFullscreen()` doesn't work after YouTube video played full screen
- fullscreenEnabled is false for Safari and Chrome on iOS HOT 1
- Fscreen block dialog to open HOT 2
- prefixing: what about Samsung SmartTV browsers? HOT 3
- wondering why fullscreen events aren't thrown when user uses menu commands to enter full screen HOT 2
- Unable to zoom in mobile browsers when in full screen. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fscreen.