theopolisme / jquery-fullscreen Goto Github PK
View Code? Open in Web Editor NEWBarebones jQuery wrapper for the JavaScript Fullscreen API
License: GNU General Public License v2.0
Barebones jQuery wrapper for the JavaScript Fullscreen API
License: GNU General Public License v2.0
MMV is licensed under the GPLv2. By distributing a derivative work under the MIT license, you are violating section 2, subsection b of the GPL. Please license this library under the GPLv2 license.
Thanks!
EDIT: Changed title - it might not be a violation, but it's certainly a complication, and I'd like to avoid that if possible.
Most browsers have a "manual" fullscreen mode, which can be initiated with F11, and looks identically to the fullscreen mode initiated via the Fullscreen API, but is completely different on an API level (no event, no document.fullscreenElement, the :fullscreen selector does not match etc). I'm wondering if it made sense for the plugin to detect those and issue a fullscreen event (or maybe a separate fake fullscreen event).
There is no clean way to detect the manual fullscreen, but allegedly listening for resize and then comparing screen width and viewport width does the trick.
From comment at 050b6bf#commitcomment-4791918
The more involved version is to have
enterFullscreen
retrun a promise, and only resolve it successfully if after ~100ms there was no error event. That would also take care of the WebKitElement.ALLOW_KEYBOARD_INPUT
mess and failures to go fullscreen when you issue the command at the wrong moment.
Since this is now upstream instead of downstream in MediaWiki, please take care of linting on this side.
The easiest way to do this is probably via npm (locally) and Travis (publicly for GitHub).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.