Get new jQuery plugins just once a week

×

BigScreen

August 27, 2012

Bigscreen | simple Javascript Fullscreen API lib

BigScreen is a simple library for using the JavaScript Full Screen API with size < 1Kb minified and gzipped.This javascript plugin also smoothes out a couple browser fullscreen bugs for you.It has got the following methods :- 1.BigScreen.request(element) Request that an element go into full screen. If the element is null or undefined, the documentElement will be used instead.You can only call this from a user-initiated event, otherwise the browser will deny the request. That means click, key, or touch events. 2.BigScreen.exit()

Will exit full screen. Note that if there are multiple elements in full screen, only the last one will exit full screen.

3.BigScreen.toggle(element)

Will request full screen if there is no element in full screen, otherwise it will exit full screen.

4.BigScreen.onenter()

Override to get notified when an element enters full screen. BigScreen.element will be set to the element that is entering full screen.

5.BigScreen.onexit()

Override to get notified when fully exiting full screen (there are no more elements in full screen).

6.BigScreen.element

Set to the element that is currently displaying full screen, or null if no element is in full screen.

7.BigScreen.enabled

A boolean that will tell you if it is possible to go into full screen. If your page is in an