Skip to content

Kotrotsos/fullscreen-api-jquery-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

fullscreen-api-jquery-plugin

Fullscreen jQuery Plugin that takes care of the prefix hell we are in at the moment. When things change, I will update the plugin.

To go fullscreen on an element, you need to bind it to a user event first.

Given this HTML

<div id="fsthis">This element will go fullscreen  
<button id="cafs">Cancel Fullscreen</button></div>
<button id="gofs">Go Fullscreen</button>

To go fullscreen on the element #fsthis:

$('#gofs').click(function(){
    $('#fsthis').requestFullScreen();
})

To cancel fullscreen mode- do:

$.cancelFullScreen();

About

Fullscreen jQuery Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •