cesarzigma
7/5/2013 - 1:07 AM

Fullscreen Window

Fullscreen Window

// ====== FULLSCREEN ====================================
  
	$('#fullscreen').click(function(e) {
		e.preventDefault()
		if (!isFullscreen) {
			 window.fullScreenApi.requestFullScreen($('html').get(0));
		} else {
			window.fullScreenApi.cancelFullScreen();
		}
		$(this).toggleClass('active')
		isFullscreen = !isFullscreen;
	});