Skip to content

Instantly share code, notes, and snippets.

@harbhub
Created September 11, 2012 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harbhub/3696089 to your computer and use it in GitHub Desktop.
Save harbhub/3696089 to your computer and use it in GitHub Desktop.
doctype 5
html
head
link(rel='stylesheet', href='/stylesheets/style.css')
script
function goFullscreen(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {element.mozRequestFullScreen();}
else if (element.webkitRequestFullScreen) {element.webkitRequestFullScreen();}
}
function leaveFullscreen(id) {
var element = document.getElementById(id);
if (element.mozCancelFullScreen) {element.mozCancelFullScreen();}
else if (element.webkitCancelFullScreen) {element.webkitCancelFullScreen();}
}
style
#full:-moz-full-screen button#go {display:none;}
#full:-webkit-full-screen button#go {display:none;}
body
#full
include menu
p Marquee is the best photographer
button#go(onclick="goFullscreen('full')") Full Screen
button#leave(onclick="leaveFullscreen('full')") Exit Full Screen
include footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment