Skip to content

Instantly share code, notes, and snippets.

View spite's full-sized avatar
馃摝
i'm a smaller box

Jaume Sanchez spite

馃摝
i'm a smaller box
View GitHub Profile
@spite
spite / gist:8506285
Created January 19, 2014 15:23
Going Fullscreen
var c = document.body;
document.getElementById( 'fullscreenBtn' ).addEventListener( 'click', function( e ) {
c.onwebkitfullscreenchange = function(e) {
c.onwebkitfullscreenchange = function() {
};
};
c.onmozfullscreenchange = function(e) {
c.onmozfullscreenchange = function() {
};
};