Skip to content

luoyeshu0507/fullscreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullscreen.js

A js plugin which let you fullscreen a DOM Element on your browsers.

Here is a demo

How to use?

var full=new fullscreen({
	btnClass:"active", //the className which shold be toggled on the button after you click to fullscreen some DOM or not;
	element:document.getElementById("full"),//the dom element you want to view on fullscreen
	fullscreenBtn:document.getElementById("btn")//the dom element you will click to do this
});

// now you can fullscreen a DOM element like this.
full.launchFullscreen();

API list

api description
launchFullscreen() fullscreen the DOM
exitFullscreen() exit full screen
fullscreenedElement the dom element which is displaying on full screen

browser supported

Almost any browser is supported even ie7 8 9.

About

a js which let you to fullscreen DOM Element on browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •