Skip to content

Instantly share code, notes, and snippets.

@leobalter
Created June 1, 2012 17:48
Show Gist options
  • Select an option

  • Save leobalter/2853959 to your computer and use it in GitHub Desktop.

Select an option

Save leobalter/2853959 to your computer and use it in GitHub Desktop.
(function() {
var viewFullScreen = document.getElementById("view-fullscreen");
viewFullScreen.addEventListener("click", function() {
var docElm = document.documentElement;
if (docElm.mozRequestFullScreen) {
docElm.mozRequestFullScreen();
} else if (docElm.webkitRequestFullScreen) {
docElm.webkitRequestFullScreen();
}
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment